Problem with scaling instruction in Omron CP1L

Lixoudis

Member
Join Date
Jun 2012
Location
Athens
Posts
3
I a trying to scale a floating number coming from an HMI I have a problem trying to scale a floating number coming from an HMI to a value to use on PID instructions.My problem is on the scaling instruction.Whenever i try to run on cx simulator it gives me an error and also on a real PLC

My setup of the scale parameters are (using SCL3(487))

D616 #0000

D617 &350

D618 #FFFF

D619 #FFFF

D620 #0000

My ladder to use the float number is:

*F(456) Value +10,0 D2120

FIX(450) D2120 D2062

SCL3(487) D2062 D616 D2072

The error that throws is 0x80F0

Thanks in advance for any help

PS Also tried all Scaling instructions.I think my problem is the setup of parameters for scaling instructions
 
You are currently using the SCL3(487) instruction - BCD to Signed Binary. The source word is 16 bit signed binary after your conversion. (FIX(450))
You should be using the SCL2(486) instruction - Signed Binary to BCD Scaling.

It helps when you draw out the scaling function on a chart.
http://www.omronkft.hu/nostree/pdfs/plc/cp1/w462-e1-08_cp1l-cpu_opermanual.pdf
You could also use the APR(069) instruction. This is listed with examples in the above manual.

Hope this helps you out.
Regards,
 

Similar Topics

I have 1769-IF4 module and 1766 micrologix 1400 series B controller, when connecting Analogue input in module it's showing maximum values of...
Replies
4
Views
1,686
Hey Guys, I am trying to scale 0 to 36000 feet in RSLogix 500 in 4 to 20 mA. It worked great when the max length was only 25000 feet but our max...
Replies
15
Views
3,442
Hello All!! I am new to the forum and have seen alot of good answers so far, but I have not been able to resolve the issue I am having. :mddr...
Replies
9
Views
4,272
hey dear anyone please hep me.. i am scaling a analog value of master drive to analog value of danfoss drive as i am replacing master drive by...
Replies
4
Views
2,179
Dear All I am working on the same thing where I have GE fanuc 341 CPU series 90-30. I need to add three analog signal coming as 4-20 mA signal...
Replies
13
Views
4,830
Back
Top Bottom