16
Support Questions / Re: Any way to write a double (in hex) into integer values?
« on: July 25, 2016, 02:52:58 PM »
I appreciate the info, but unfortunately this seems a bit over my head. I have some programming knowledge, but not much in vb.
I don't necessarily need to translate the number to hex before writing it to the PLC. If I do a .write command, and specify the starting address N1:1, and then the double variable, will it write it to the 4 consecutive integer addresses? (assuming the .write command works).
For example, in N1:1 I want to write the value of 4A45. If it is written as an equivalent integer (19013), I assume that would be ok since the PLC sees these two as the same thing, and the Hex/BCB Radix option is only changing the way the data is displayed to me in the data table on the RsLogix program.
I don't necessarily need to translate the number to hex before writing it to the PLC. If I do a .write command, and specify the starting address N1:1, and then the double variable, will it write it to the 4 consecutive integer addresses? (assuming the .write command works).
For example, in N1:1 I want to write the value of 4A45. If it is written as an equivalent integer (19013), I assume that would be ok since the PLC sees these two as the same thing, and the Hex/BCB Radix option is only changing the way the data is displayed to me in the data table on the RsLogix program.