Sign in to follow this  
Followers 0
Guest Guest_Urmala

MAD42 analog module

45 posts in this topic

Good job Urmala

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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 ? Edited by mos89

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
Yes but it is not working i have 0 as physical output

Share this post


Link to post
Share on other sites
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)

Share this post


Link to post
Share on other sites
Sorry but i do not understant your reply ?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
i do not understand what is wrong, my output is always 0v

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
thanks i manage to set it up! so now it is ok now Edited by mos89

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
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!!

Share this post


Link to post
Share on other sites
I still can not get this to work correctly. I have it running right now so I will have to wait till I can get into the program again. The one question I do have is, you mentioned that it is not an auto update. Here is what I have: I have a trailer that has a Omorn NS-12 display. I screen shows everything that is running. I also have a cell modem on this to check this trailer remotely. I have different inputs and outputs. What I am trying to do is see what the moisture value is coming off this equipment. You are saying that you can not get an auto update. Does that mean that if I wanted this moisture reading, I would have to go to the program and go thru the tranfer unit to pc everytime? On this trailer I can see the value on a monitor so it doesnt matter if its on the disply when I am at the unit. I just want to be able to see this value remotely and have it show on the omron display. Any suggestions?

Share this post


Link to post
Share on other sites
Nevermind the "auto update". Refreshing what PDL has already posted - Leave the input scaling to 0 - 4000, do the scaling in the PLC ladder as done in the example. Then monitor the "scaled value" in the ladder. If you can see a number between 0-500 and that number changes when the moisture level changes, then then the hardware settings and wiring on the input side should be correct. Now, be sure that the address in the NS matches the "scaled value" address in the PLC. Do you have any other things on the display coming from the PLC? If so, are these working? If not then you have a hardware or wiring issue on the PLC to NS side. Example.cxp

Share this post


Link to post
Share on other sites
Yes I do have other things showing values. I should email you my program Let me know your thoughts.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0