Guest_Urmala
Mar 18 2005, 11:23 AM
I need help with my MAD42 analog module. My problem is that I cannot get 4-20ma output signal. I am using CJ1M-CPU13 PLC. I do not know, what I am doing wrong. I set my unit number to 1 and I set DM20100 to 00F3, DM20101 to 000A, and my DM20135 to 0003. After that, I use MOV(021) command to write 4000(decimal) in CIO 2012. The interesting sing, I can read analog input signal 0 to 10 V, on CIO 2016, but no matter what I am doing, I cannot set my output singal to 4 to 20 mA. To read my output signal, I use calibrator Promac. I have tested it, and everything is o'k, but I cannot get my signal from PLC. As soon as I turn PLC on and run the program, it gives me reading of 3.2mA and it does not changes.
PdL
Mar 18 2005, 12:49 PM
Check your supply power ?
I don't have acces on the MAD manual right now so somebody else will have to verify your settings if they are correct.
Guest_Urmala
Mar 18 2005, 01:44 PM
| QUOTE |
| Check your supply power ? |
What do you mean? In Allen Bradley I just connect output from PLC to the load. For Omron is different? In the manual, it shows staight connection.
Gooch
Mar 18 2005, 03:24 PM
Did you set either CIO 2010.0 or CIO 2010.1 ON (or a value of 1)? This enables the output conversion.
Jay Anthony
Mar 18 2005, 03:43 PM
Good call, Gooch!
Urmala
Mar 18 2005, 04:51 PM
I am sorry, this morning, when I posted the topic, I forgot to login. It is why I was as a Guest_Urmala.
Thanks, Gooch, I will try on Monday. However, how come, I did not find anything about CIO 2010.0/2010.1 set to 1 in the manual? I have studied it very carefully.
ECSI
Mar 18 2005, 10:13 PM
| QUOTE |
| Did you set either CIO 2010.0 or CIO 2010.1 ON (or a value of 1)? This enables the output conversion |
This is only for the AD081/AD041 units. DM20100 is used for the MAD042 unit.
All of your settings seem to be correct.
You say you are setting CIO2012. This is actually the second output. The first output is CIO 2011. Which one are you measuring with your meter? Also, can you see the value &4000 in CIO 2012 while you are online monitoring?
Another thing to check is the rotary switches for the unit number. Make sure they are set to 01 instead of 10.
Good luck....
Urmala
Mar 18 2005, 11:18 PM
ECSI, it is true, I am measuring second output; to be precise, terminals B3 and B2 on the MAD42 module. I need only one analog input, and I have chosen second (no particular reason). Regarding CIO 2012, if I send number 4000 using MOV(021) instruction, I can see it in the memory table when I monitor different memory areas. My unit number is 1, there is no doubt; otherwise, I wouldn’t have been able to read analog input, which I see perfectly. I am jus thinking that maybe I have problem because I use electronic calibrator? Any ideas?
PdL
Mar 19 2005, 04:21 AM
Urmala, sorry for my first suggestion. I had another unit in my mind.
But now I've studied the MAD manual, from the download section
According to your first post, you say you set D20135 to 3.
If I look to page 279 and 375, this setting is correct.
But according to the picture on page 331 it looks like 4 bits are assigned to this setting.
You could try to set it to A or 5 instead of 3 ?
Like I intrepretid it, it looks at the absolute value of bits 00
and 01 or 02
and 03, if it is 0 you set 1-5V, if it is 1 you set 4-20mA.
That would explain your 3.2 mA (conversion stopped), as the setting of 3 would be an illegal setting according to this picture.
I've never used current outputs on this unit so I never had to set this area. Factory set is voltage.
If I'm wrong, can anybody explain how to read this picture ?
Jay Anthony
Mar 19 2005, 12:49 PM
0101
5 (4+1) would be the correct setting.
Urmala
Mar 19 2005, 10:21 PM
PdL, I have tried both 3 and 5 in hexadecimal for word DM20135. I was not sure, which setting is right yours on page 314 or on page 284 of the manual. You know, I might try voltage signal too. I am used to current (4 to 20 mA) signal, but my frequency drive can work with voltage signal (-10 to +10V) too. Maybe it is easier to do.
Jay Anthony
Mar 19 2005, 10:58 PM
| QUOTE |
| PdL, I have tried both 3 and 5 in hexadecimal for word DM20135. |
How are you setting this value? Using a MOV function?
The syntax would be MOV #0005 D20135.
PdL
Mar 20 2005, 03:46 AM
We're not giving up that quick
Make sure you cycle CPU power after changing a setting!
The best way to play around with the settings is to put all settings adresses in the watch list, there you can easily check and change the values.
Make sure if you do that to disable or remove any other references in your ladder.
Did you also try the first output ? Same there ?
Urmala
Mar 20 2005, 08:40 AM
I set values in the memory table and transfer them to the PLC. Then I monitored them so everything would be right. I think the values are right because once I changed the values to something else and got an error indication on the I/O module until I set them back. I cycled the power to the PLC, but it did not work. I am thinking, maybe the problem is in the calibrator I used. Don’t know. I am going to try again on Monday. I cannot give up, nobody will let me.
Jay Anthony
Mar 20 2005, 10:43 AM
| QUOTE |
How are you setting this value? Using a MOV function? The syntax would be MOV #0005 D20135. |
The reason I asked about the above was that I was concerned that he was using the memory table to set and transfer the DMs. Depending on what data type he sets in the memory table, the values in the PLC may not be identical to what he sees on the screen. When you are using the memory table, be sure to select the "16" button which is a literal setting.
Urmala
Mar 20 2005, 11:11 AM
On the picture, it is why I used #3 in the word 20135. But I really tried #5. Did not worked.
When I set the value of the word 20135 I used “2” (binary) option of the table. But I looked in the hexadecimal mode too. The value was correct. Maybe tomorrow, I will use MOV(021) command to be sure about it.
PdL
Mar 20 2005, 02:20 PM
Yes, some of the examples are in contradictory to others what makes it all even more confusing.
Also for the D20100 setting at manual page 282, it says F7 but in fact the bit combination makes F3.
To resume here are your settings as they should be.
Together with monday morning coffee victory is yours
Urmala
Mar 20 2005, 07:30 PM
| QUOTE |
| Together with monday morning coffee victory is yours |
The morning coffee is my only hope.
Your table is exactly what I did except the last word (20135) I‘ve tried both #3 and #5. Both did not work. Looks like Monday is going to be busy.
Thank you, PdL, at least now I know that I am on the right track; otherwise, there is always doubt.
Urmala
Mar 20 2005, 07:49 PM
PdL, one more question. If I decide to go with voltage output -10V to +10V signal settings, my table has to be set up as on the picture? Just want to be sure.
PdL
Mar 21 2005, 12:45 AM
Yes, that's the correct setting for -10 to 10V.
You might want to go for 0 to 10V, it's a more common range, and I find it easier when scaling frequencies to have an idea on the frequency with a certain voltage.
Depends on what the drive can do.
You might want to clear D20100 to D20199 in the PLC memory and try one last time ? Just to be sure ?
I really hate to go for another solution when you have no clue whatsoever what is wrong.

p.s. don't forget to move B3 to B1 when using voltage output!
PdL
Mar 21 2005, 03:42 AM
| QUOTE (ECSI @ Mar 19 2005, 04:13 AM) |
This is only for the AD081/AD041 units. DM20100 is used for the MAD042 unit. All of your settings seem to be correct. |
ESCI, I still think Gooch was right about starting output conversion by setting CIO 2010.0 and 2010.01 on.
I checked a program here at the office where it was also set, and after studying the manual one more time I found the setting. at manual page 313.
So Urmala, try it again with following settings ?
ECSI
Mar 21 2005, 07:39 AM
Yes PdL, I think you're right. DM20100 is for IO usage, but each output still has to be enabled by 2010.00 and 2010.01. Sorry to mislead you Urmala.
Makes me wonder what the actual purpose of DM20100 is though if each output can be turned on/off with CIO2010.
Urmala
Mar 21 2005, 08:09 AM
PdL, I do not understand. On page 313, there is nothing about CIO memory area, but I will try today. It is strange and confusing manual. ECSI is right, if I have to set up CIO 2010.0 and 2010.1 to 1, what is DM20100 for?
PdL
Mar 21 2005, 08:10 AM
D20100 is meant to actually set which in/outputs are going to be used. If you set the inputs for 4-20mA but don't connect sensors, you get an annoying red error light although everything is fine.
CIO2010 is meant for starting/stopping I/O conversion during operation, reasons for that are application dependant (alarms, emergency stop, etc).
*editUrmala, I meant actual manual page 313, that's page 332 of the Acrobat document
Urmala
Mar 21 2005, 01:16 PM
It is working!!!
Thanks everybody for help. You were right, the problem was in energizing 2010.0 and 2010.1 bits. Now it is giving me what I want.
PdL
Mar 21 2005, 03:18 PM
Good job Urmala
Urmala
Mar 21 2005, 05:09 PM
Thank you, PdL. To tell the truth, if not your help with CIO 2010.0/1, I would have spent tons of time trying to figure it out. The manual wasn’t very clear (very unclear) about this key moment.
mos89
Feb 1 2007, 09:20 AM
QUOTE(Urmala @ Mar 21 2005, 11:09 PM) [snapback]15530[/snapback]
Thank you, PdL. To tell the truth, if not your help with CIO 2010.0/1, I would have spent tons of time trying to figure it out. The manual wasn’t very clear (very unclear) about this key moment.
dear all
I try to set up a MAD42
+/-10 on CH 1 output
on unit 0
I set:
I_O_SIG_R CHANNEL D20001 to #F3
I_O_USAGE CHANNEL D20000 to #00
I_O_Voltage CHANNEL D20035 to #00
start_conv CHANNEL 2010 to #3
and 1 set 4000 in CIO 2001
what is wrong ?
ECSI
Feb 1 2007, 10:04 AM
QUOTE(mos89 @ Feb 1 2007, 10:20 AM) [snapback]48944[/snapback]
dear all
I try to set up a MAD42
+/-10 on CH 1 output
on unit 0
I set:
I_O_SIG_R CHANNEL D20001 to #F3
I_O_USAGE CHANNEL D20000 to #00
I_O_Voltage CHANNEL D20035 to #00
start_conv CHANNEL 2010 to #3
and 1 set 4000 in CIO 2001
what is wrong ?
Set D20000 to #00F3 This enables all inputs and outputs
Set D20001 to #0000 This sets all ranges to -10V to +10V
Turn on 2000.00 and 2000.01 to start conversion on outputs
mos89
Feb 1 2007, 10:10 AM
QUOTE(ECSI @ Feb 1 2007, 04:04 PM) [snapback]48948[/snapback]
QUOTE(mos89 @ Feb 1 2007, 10:20 AM) [snapback]48944[/snapback]
dear all
I try to set up a MAD42
+/-10 on CH 1 output
on unit 0
I set:
I_O_SIG_R CHANNEL D20001 to #F3
I_O_USAGE CHANNEL D20000 to #00
I_O_Voltage CHANNEL D20035 to #00
start_conv CHANNEL 2010 to #3
and 1 set 4000 in CIO 2001
what is wrong ?
Set D20000 to #00F3 This enables all inputs and outputs
Set D20001 to #0000 This sets all ranges to -10V to +10V
Turn on 2000.00 and 2000.01 to start conversion on outputs
Yes but it is not working i have 0 as physical output
sathaporn
Feb 1 2007, 10:26 AM
QUOTE(ECSI @ Feb 1 2007, 10:04 AM) [snapback]48948[/snapback]
QUOTE(mos89 @ Feb 1 2007, 10:20 AM) [snapback]48944[/snapback]
dear all
I try to set up a MAD42
+/-10 on CH 1 output
on unit 0
I set:
I_O_SIG_R CHANNEL D20001 to #F3
I_O_USAGE CHANNEL D20000 to #00
I_O_Voltage CHANNEL D20035 to #00
start_conv CHANNEL 2010 to #3
and 1 set 4000 in CIO 2001
what is wrong ?
Set D20000 to #00F3 This enables all inputs and outputs
Set D20001 to #0000 This sets all ranges to -10V to +10V
Turn on 2000.00 and 2000.01 to start conversion on outputs
Dear friends
my suggestion to you .for analog output module after you set anything attach manual.It'not to used it .
Ok if you set address of analog output module = 2110 and your module are AD008C.It means ,you can use address for 4-20 madc output 2111 -2118.You need to set address 2110=ff by write command mov #ff to 2110 . After you write this command already . You can measure output terminal form 3.2 madc >> 3.9 madc surely.I ever do my project with scada and see this same problem.
Goog luck my friends
sathaporn ( thailand)
mos89
Feb 1 2007, 10:50 AM
QUOTE(sathaporn @ Feb 1 2007, 04:26 PM) [snapback]48954[/snapback]
Dear friends
my suggestion to you .for analog output module after you set anything attach manual.It'not to used it .
Ok if you set address of analog output module = 2110 and your module are AD008C.It means ,you can use address for 4-20 madc output 2111 -2118.You need to set address 2110=ff by write command mov #ff to 2110 . After you write this command already . You can measure output terminal form 3.2 madc >> 3.9 madc surely.I ever do my project with scada and see this same problem.
Goog luck my friends
sathaporn ( thailand)
Sorry but i do not understant your reply ?
ECSI
Feb 1 2007, 11:00 AM
If you are using a resolution of 4000, then the hex range for +/-10V is F830 to 07D0, so to get an output of +10V you need to MOV #07D0 2001. To get -10V you need to MOV #F830 2001.
mos89
Feb 2 2007, 02:54 AM
QUOTE(ECSI @ Feb 1 2007, 05:00 PM) [snapback]48958[/snapback]
If you are using a resolution of 4000, then the hex range for +/-10V is F830 to 07D0, so to get an output of +10V you need to MOV #07D0 2001. To get -10V you need to MOV #F830 2001.
i do not understand what is wrong, my output is always 0v
Open the I/O table and create one if it is empty, or add the MAD42 manually.
Open the unit settings and set the parameters accordingly.
Download with "Transfer from PC to unit".
Power cycle the CPU.
Remove or disable any settings done by ladder.
Set an output value on CIO2001.
See if your luck has changed.

mos89
Feb 2 2007, 07:01 AM
thanks
i manage to set it up!
so now it is ok now
kazy_48098
Oct 27 2009, 12:46 PM
Am I missing something here? I have the MAD42 and have a 4-20ma input signal. I am trying to get that scaled so I can read it on cx-designer. Problem is that I have tried and tried and can not get it to read right on the screen. Am I adressing it worng? Scaling worng? I can attach a pic of what I got and maybe that will help. Or should I not use the MAD42? I have set up my program, so I can see the designer on a web page. I am using a cell modem. So I want to be able to see the screen and see where my moisture level is and it uses a 4-20 mA signal. Thanks in advance
PdL
Oct 27 2009, 01:46 PM
QUOTE (kazy_48098 @ Oct 27 2009, 06:46 PM)

Am I missing something here? I have the MAD42 and have a 4-20ma input signal. I am trying to get that scaled so I can read it on cx-designer. Problem is that I have tried and tried and can not get it to read right on the screen. Am I adressing it worng? Scaling worng? I can attach a pic of what I got and maybe that will help. Or should I not use the MAD42? I have set up my program, so I can see the designer on a web page. I am using a cell modem. So I want to be able to see the screen and see where my moisture level is and it uses a 4-20 mA signal. Thanks in advance
What you are trying to achieve is possible but you will have to provide more information before we can tell what is going wrong.
So yes, post screenshots of your configuration.
First of all, you need to get a value 0-4000 that corresponds to 4-20mA on the analog input channel of your MAD42 visible in CX-Programmer. Worry about scaling in CX-Designer later.
Did you check the input wiring?
Input voltage/current switch settings?
Open the I/O table like in the picture above. Open the MAD42, then check settings and change if necessary. Following a power cycle and open the I/O table again. Look at input # conversion value. Perform transfer unit to PLC. Does it correspond to the applied current? If it stays 0 despite you have a signal, it has to do with the physical setup of the card, either wiring or switch settings.
kazy_48098
Oct 29 2009, 06:10 AM
ok, I did nothing with the input conversion value. That may be where I have to start. My 4-20mA signal will correspond with the values from 0-500. So what you are telling me is that I need to connect to the plc and transfer the value to plc. I have never done that. Everything else appears to be fine. I will check the unit and let you know. Thanks again for your help
PdL
Oct 29 2009, 09:50 AM
QUOTE (kazy_48098 @ Oct 29 2009, 12:10 PM)

ok, I did nothing with the input conversion value. That may be where I have to start. My 4-20mA signal will correspond with the values from 0-500. So what you are telling me is that I need to connect to the plc and transfer the value to plc. I have never done that. Everything else appears to be fine. I will check the unit and let you know. Thanks again for your help
You need to transfer the input value FROM the PLC into CX-Programmer to check the input channel value. Or you can just enter the address in the watch list.
kazy_48098
Nov 18 2009, 07:16 AM
QUOTE (PdL @ Oct 29 2009, 09:50 AM)

QUOTE (kazy_48098 @ Oct 29 2009, 12:10 PM)

ok, I did nothing with the input conversion value. That may be where I have to start. My 4-20mA signal will correspond with the values from 0-500. So what you are telling me is that I need to connect to the plc and transfer the value to plc. I have never done that. Everything else appears to be fine. I will check the unit and let you know. Thanks again for your help
You need to transfer the input value FROM the PLC into CX-Programmer to check the input channel value. Or you can just enter the address in the watch list.
Do I Transfer[UNIT TO PC] or Transfer[PC TO UNIT] ?? I tried it both ways and figured I would have to transfer pc to unit, that right? I got a value of 525 in the conversion value does not seem like it is working at all. This is getting frustratiing for me.
I am using input #2. So I will give every option: Input enabled, Input signal range 1-5V/4-20mA, Input mean values Mean value processing for 2 buffers, Input scaling lower limit is 0, upper limit is 500, Input voltage/current setting 4-20mA
Is there anything I should check? Do different?
PdL
Nov 18 2009, 02:34 PM
QUOTE (kazy_48098 @ Nov 18 2009, 01:16 PM)

QUOTE (PdL @ Oct 29 2009, 09:50 AM)

QUOTE (kazy_48098 @ Oct 29 2009, 12:10 PM)

ok, I did nothing with the input conversion value. That may be where I have to start. My 4-20mA signal will correspond with the values from 0-500. So what you are telling me is that I need to connect to the plc and transfer the value to plc. I have never done that. Everything else appears to be fine. I will check the unit and let you know. Thanks again for your help
You need to transfer the input value FROM the PLC into CX-Programmer to check the input channel value. Or you can just enter the address in the watch list.
Do I Transfer[UNIT TO PC] or Transfer[PC TO UNIT] ?? I tried it both ways and figured I would have to transfer pc to unit, that right? I got a value of 525 in the conversion value does not seem like it is working at all. This is getting frustratiing for me.
I am using input #2. So I will give every option: Input enabled, Input signal range 1-5V/4-20mA, Input mean values Mean value processing for 2 buffers, Input scaling lower limit is 0, upper limit is 500, Input voltage/current setting 4-20mA
Is there anything I should check? Do different?
UNIT TO PC transfers parameters and values from from the CPU (MAD42) to CX-Programmer.
PC TO UNIT transfers parameters and values from CX-Progammer to the CPU.
You said you tried both, but if you first upload a wrong set of parameters out of the CPU and then download them back in that doesn't make a difference.
Correct procedure:
-Do all settings in IO Table Unit Setup
-PLC in STOP
-Transfer PC TO UNIT
-Do a compare
-Now you can use Transfer UNIT TO PC everytime you want to check the input. The conversion value doesn't auto update, it is a snapshot of the upload moment!!
Did you check your dipswitch settings are correct?
Be aware that the dipswitches are numbered in pairs, top one 1st set is for input 2, bottom one first set for input 1, top one second set for input 4, bottom one second set for input 3. Can be confusing but download the manual and you will understand.
See the Omron FAQ for download links it might even be in the download section on MrPLC.
I see you have set input scaling, leave this value default and do the scaling in the PLC logic!!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.