dexdyne
Civil/Environmental
- Jul 10, 2007
- 8
I'd like to find out what number formats are in use in a representative range of PLCs. I guess there's nowhere better to ask ???
We're reading values out of them across modbus. I want to know what possible formats I an expect to meet.
I don't know how much flexibility the PLCs give to the programmer when setting stuff up.... can you specify the number format for something, or are you terribly restricted?
I can conceive of meeting any of the following... anyone able to say "never" or "always" to each?
unsigned 16-bit integer
signed 16-bit integer
16-bit integer with 8000h as zero
unsigned 32-bit integer
signed 32-bit integer
32-bit integer with 80000000h as zero
unsigned 64-bit integer
signed 64-bit integer
64-bit integer with 8000000000000000h as zero
32-bit floating point
64-bit floating point
Thanks for any help you can give.
David
We're reading values out of them across modbus. I want to know what possible formats I an expect to meet.
I don't know how much flexibility the PLCs give to the programmer when setting stuff up.... can you specify the number format for something, or are you terribly restricted?
I can conceive of meeting any of the following... anyone able to say "never" or "always" to each?
unsigned 16-bit integer
signed 16-bit integer
16-bit integer with 8000h as zero
unsigned 32-bit integer
signed 32-bit integer
32-bit integer with 80000000h as zero
unsigned 64-bit integer
signed 64-bit integer
64-bit integer with 8000000000000000h as zero
32-bit floating point
64-bit floating point
Thanks for any help you can give.
David