Hello,
Background with PL7 and just started with SoMacine 4.2 Logicbuilder.
I have Modbus Slave reading an analog value into a Word. All works great as long the value is positive (0-100) - however once reading is negative (-1...-100) value acts as a unsigned integer. -1 shows up as 65535, -2 as 65534 etc.
I see what is happening, but cant seem to get datatype conversion correct and then scaled with a division of 10 (see attached).
Quite sure this is a newbie thing, but does anyone have a pointer as to what I do wrong? Also, CFC is new for me so fumbling a bit in the darkness
Tia,
JP
Background with PL7 and just started with SoMacine 4.2 Logicbuilder.
I have Modbus Slave reading an analog value into a Word. All works great as long the value is positive (0-100) - however once reading is negative (-1...-100) value acts as a unsigned integer. -1 shows up as 65535, -2 as 65534 etc.
I see what is happening, but cant seem to get datatype conversion correct and then scaled with a division of 10 (see attached).
Quite sure this is a newbie thing, but does anyone have a pointer as to what I do wrong? Also, CFC is new for me so fumbling a bit in the darkness
Tia,
JP