IzzyBonds
Hello, is there a document that explains how each function block is supposed to work? or a way to look up error codes?
Right now I'm trying to the the greater than function block and I'm getting an error, but I don't know how to resolve the error.
Based on the block properties is it saying if IN1 is greater than IN2 the output will turn on? Or is it saying if IN2 is greater than IN1 the output will turn on. I'm a little confused on the data type error, as the block shows ANY... Any data type outside of USINT gives me red lines.
[203128%2F9343016%2Fmceclip0]
thiagoralves
IEC 61131-3 languages are heavily typed. This means you cannot mix two different data types on the same operation. If one of your variables is SINT, and the other is INT for example, you will get the wrong data type error. Both must be INT, or SINT, or REAL, etc. You can use conversion blocks to have them both on the same data type.
 
Reply 0 0
IzzyBonds
Thank you!
Reply 0 0
Reply