I'm a bit confused by the role/value of an integer in a PLC programme. My understanding of it was that it represented a 16 bit binary word but in the Texas PLC it can only represent up to 32767 which is 15 bit isn't it ? what's the remaining bit for is it a positive negative indicator ? Or am I way off ?
I'm a bit confused by the role/value of an integer in a PLC programme. My understanding of it was that it represented a 16 bit binary word but in the Texas PLC it can only represent up to 32767 which is 15 bit isn't it ? what's the remaining bit for is it a positive negative indicator ? Or am I way off ?
There are two typical ways to represent signed integers. 1) Two complement and 2) Magnitude + sign
The 1st yields a range of -32768 to +32767. The second -32767 to + 32767 with two representations for zero. A +0 and a -0.
Excess 3 Grey is another. It is used when you only want one bit to change when counting up or down by 1. It's used in some positioning systems.
An unsigned 16 bit integer represents the numbers 0-65535.