PLC_007_BOND Posted August 7, 2013 Report Posted August 7, 2013 Hello friends, I am using BIN instruction to convert the digital inputs from DI module (16 CH) to PLC data register D100. Initially upto 127 or sometimes 255 it doesn't give me error. After this cont suddenly PLC goes into the Fault Mode and I cannot get the count. PLC error code is 4100 which is input data > 9999. But count on input is less than 9999. I am reading the data from energy monitor which sometimes gives u fast counts. Is this issue related to IO module scan time? i m using BIN K4XC0 D100 instruction continously enabled to map the reading to data register and perform other calculations. Thanks, Ashish
JRoss Posted August 8, 2013 Report Posted August 8, 2013 Which PLC are you using? The BIN command converts Binary Coded Decimal (BCD) to binary. BCD is expecting each nibble (4 bits) to be 0-9. If any nibble goes outside that range (A-F), you'll get the error. What are you trying to do? If all you want is the inputs as a binary bit pattern, then you only need the MOV instruction to map the bits into D100.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now