Sign in to follow this  
Followers 0
GQALL

Omron CQM1 + AD041

20 posts in this topic

Good day. Hello, please advice. I have got PLC CQM1 CPU21 and AD041 and NT31 for home automation. AD041 is set to 0-10V range. I have a sensor that gives the output 0-10V (0V = -50 ?C. 10V= 150 ?C]. I do not know, how I do it to showed the current ?C particular under 0?C (minus) thank you

Share this post


Link to post
Share on other sites
CQM1 does not have the scaling functions like the CQM1H. However you should be able to use the arimethric process (APR) for the same purpose. Take a look at page 90 in this manual: http://www.rakurs.su/files/AutomationSystems/W384-E1-01+CS1W-HI_HC+Programming_Manual.pdf If you set Xm to the resolution of the AD041 card (4000 or 8000dec?), Y0 to -50dec and Ym to +150dec i think it should work. Remember to work with signed integer data type.

Share this post


Link to post
Share on other sites
Per the W228 manual, The CQM1 processor does support the SCL instructions. SCL2 and SCL3 would need to be assigned to a function number if you want to use either of these. I would suggest you download the W228 manual and review these instructions to see these would do what you need. Hope this will help.

Share this post


Link to post
Share on other sites
Here's the download link. See page 266. http://forums.mrplc.com/index.php?app=downloads&showfile=67

Share this post


Link to post
Share on other sites
The CQM1 CPU41-V1 processor support the SCL, SCL2, SCL3. I use SCL2 but do not know how to set it. Temp senzor -50 ?C = 0V 150 ?C = 10V How to SCL2? DM 0000 DM 0001 DM 0002 works well in a narrow range. Now it is set. DM 0000 055A DM 0001 0002 DM 0002 0001 I do not need the full range of -50 ?C - 150 ?C. Just me -30 ?C - 120 ?C. thank you Edited by GQALL

Share this post


Link to post
Share on other sites
Here is an example using a CJ1W-AD081. The SCL(194) setup is the same. Your scaling values will be different. In the example, the AD081 is set to a resolution of 0/6000 thus the values for the SCL parameters. My resullt is a percentage (0 - 100%). You'll have to verify the resolution of the CQM1-AD041 from the manual. Also be mindful of the units (BCD vs. BIN).

Share this post


Link to post
Share on other sites
Thank IO_Rack, it's for home automation. AD041 set : 0 to 10 V, 0030 - 0FD0, (SIGNED BINARY TO BCD SCALING SCL2) Program: Edited by GQALL

Share this post


Link to post
Share on other sites
I do not understand the calculation according to the manual I have it set: DM0309 = 055A First Parameter. Manual DM0000 DM0310 = 0003 Second Parameter. Manual DM0001 DM0311 = 0002 Third Parameter. Manual DM0002 Senzor: -50 ?C = 0V 150 ?C = 10V So it is not linear in its entirety. At the beginning of the scale shows less and at the end of more. Is linear only if the range 0-150 (0-10V). Once, you need to minus -50 - +150 (0-10V) so it gets going. thank you Edited by GQALL

Share this post


Link to post
Share on other sites
I don't have much time at the moment. You will need to use the SCL3 instruction because your result will need to be Signed Binary. EDIT: After looking at the programming if appears the SCL2 and SCL3 instructions are only available for processors CPU 4* and up. It will be easier to convert your values to Floating Point then do the math. There a lot of examples if you search these forums. Your 0 - 10V will not appear in your PLC code. Again, you'll need to find the resolution of your AD041 from the manual. It will be 0 - 1000 or 0 - 6000 or maybe 0 - 12000. This is the information you'll need to populate the SCL3 parameters (there are 4 of them). Do you know how to monitor different data types in CX Programmer? Do you know the difference between "#" and "&"? Edited by IO_Rack

Share this post


Link to post
Share on other sites
He have a CQM1 ( so no floating point) with AD041 module. The resolution is 4080.

Share this post


Link to post
Share on other sites
Thank you all. CQM1 CPU41-V1 dont support floating point ... I found the examples SCL66 -50=0V, +500=10V. This returns the display "decimal numbers -50.0 500.0" Edited by GQALL

Share this post


Link to post
Share on other sites
I found the examples SCL2 -50=0V, +500=10V. this does not return display "decimal numbers -50 500" Edited by GQALL

Share this post


Link to post
Share on other sites
well, does not support floating point I used the SCL instead SCL2. This query I am looking for examples of calculation. I found examples in French. Thank you all for directions Edited by GQALL

Share this post


Link to post
Share on other sites
Which PLC are you using? CPU21 or CPU41 With the CPU41 you can map the SCL3 instruction which is exactly what you want.

Share this post


Link to post
Share on other sites
I've CQM1 CPU41-V1. Supports SCL SCL 2 and 3. I got it as a hobby. I read manuals and sometimes it is not something comprehensible. Maybe now is not working the next day added twentieth timer CNT020 He does so, but the contact does not close after the time # 08 Section Studna_Well Main CPU CQM1 CPU41.cxp Edited by GQALL

Share this post


Link to post
Share on other sites
You apparently have some learning to do. Let's look at one problem at a time. In the PLC program your AD041will produce a value from 0 to 4095. You will need to make 0 = -50 and 4095 = 150. This graph may help you to understand the manual and the values in the above example. Do you understand the different data types? (BCD, BIN, HEX, etc...) If you do not then this example will be difficult to understand.

Share this post


Link to post
Share on other sites
I believe there may be a mistake in the manual. DM100 is actually the Y intercept. The SCL2 instruction uses the X intercept. Also note the Upper and Lower limit values have nothing to do with the scaling operation. They will just clamp or suppress the result should it exceed. I've set them to their extreme values just for demonstration. Edited by IO_Rack

Share this post


Link to post
Share on other sites
Your CNT020 is working. The contact is only being used to reset itself. The contact is ON for one PLC scan. Try using the contact to latch a bit. SET instruction.

Share this post


Link to post
Share on other sites
Thank IO_Rack. BCD represents 0-9, Hex represents 0-F (Dec 15, BIN 1111 ). I see Graph understand it. Range -50 DEC = 0 BCD until 0 DEC = 1024 BCD. Range 0 DEC = 1024 BCD until 150 DEC = 3071 BCD. Sum -50 DEC - 150 DEC = 4095 BCD words. Is that right? The difference between the timer < CNT019 and > CNT020? Contact CNT020 SET at 19.01 works ... Main CPU CQM1 CPU41.cxp Edited by GQALL

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