1
Support Questions / Re: Ethernet.Write error when writing large numbers to a DINT
« on: June 26, 2019, 10:13:09 AM »
Archie,
I just this minute discovered, once again, that I R A Idiot.
I'm sending a variety of data to the PLC in the same loop.
For each item: I declare the var type as object then load var with the converted value (Integer, Decimal).
I failed to include these new tags in the test to determine how to convert the value to var. They default to type Decimal. var holds the correct value. But when treated as decimal by the downstream logic it is converted to decimal.
Once I let the code now these values were integer, all is well.
:-P
regards
GF
I just this minute discovered, once again, that I R A Idiot.
I'm sending a variety of data to the PLC in the same loop.
For each item: I declare the var type as object then load var with the converted value (Integer, Decimal).
I failed to include these new tags in the test to determine how to convert the value to var. They default to type Decimal. var holds the correct value. But when treated as decimal by the downstream logic it is converted to decimal.
Once I let the code now these values were integer, all is well.
:-P
regards
GF