Omron Mad42 analog card

James Mcquade

Member
Join Date
Oct 2007
Location
Nashville, Tennessee area
Posts
3,683
Hi all,

i was trying to learn the analog card and got pulled off.
now i am asking for your help again.
this is what i have.
all i/o are enabled and set for 0 - 10 volts
all i/o conversion numbers are 0 and 4096
all i/o voltage settings are 0 - 5 volts.

analog 3 input is connected and i can see the data changing in the data viewer screen. the input is connected to an ultrasonic sensor.
at 13" i get an input of 0.067 volts and d102 reads 25
at 6 1/2" i get an input voltage of 9.52 volts and d102 reads 3830.

what i want to do is scale the output to read 0 to 6"

i copied a function block with parameters from another program, but could not figure out how to put in the data numbers.

i also want to scale the data with another instance of the function block that will output 0 - 21 cm for example.

i have looked at youtube videos and i must admit that this is one item that is getting the best of me. omron digital i/o programming is no issue, but the analog,rtd, and thermocouple logic is getting the best of me.

if someone would look at my code and help, i would be ever grateful. any comments and explainations would be appreciated.
thanks in advance.
james
 
As a note, or clarification, the function block is a template. I would call it ScaleWithParameters or something like that. The Instance you create in ladder will need a unique name like Hot_Water_LVL to be a more specific description of your process.

For each parameter in the instance of your function block, you'll need to choose Insert > Function Block Parameter... I'm not sure why they don't allow a double click to do this.
 
Last edited:

Similar Topics

Hi all, While i am not new to omron, i'm totally new to the analog part and lost. i have a CJ2M cpu 33. then there are 4 i/o cards card 5 is a...
Replies
26
Views
2,583
I have little to no experience with Omron. A co-worker is trying to set up a MAD42 Analog I/0 card with a CJ1M CPU 11 on a little trainer unit. He...
Replies
5
Views
2,921
Hi. I have an OMRON PLC CJ1M (cpu 13) with an analog module MAD42. This is my first time working with OMRON PLCs and im having a hard time...
Replies
3
Views
2,629
Hey guys, first time posting here. I am having trouble reading a 0-10V input into the MAD42 module on the Omron PLC. I have already switched the...
Replies
3
Views
2,289
Has anyone done SMS messaging from an Omron CJ2J-CPU31 PLC? If so could you help please. Omron here in Oz have not had any experience doing this...
Replies
5
Views
125
Back
Top Bottom