How to make it possible ?
How to transmit KRC variable (maybe like a real number)to PLC
-
Sakya -
March 4, 2016 at 7:33 AM -
Thread is marked as Resolved.
-
-
You can't transfer directly real or floating point number with fieldbus. But if you multiply value to 1000 in PLC and divide 1000 in robot you can get real value. Maybe you can use RSI or Ethernet KRL XML. This technology package can be transfer direct real.
SIGNAL MYVAR $OUT[1] TO $OUT[16] ;16 bit BCD number to PLC
-
If you use 32 bits, you can write a function to encode a REAL variable using IEEE 754: http://steve.hollasch.net/cgindex/coding/ieeefloat.html Most PLCs will interpret this correctly without issue.
-