INT 16-bit integer

Also called: integer, short integer, 16-bit integer

Whole number, from −32,768 to 32,767.

What it does

A signed 16-bit integer. It is also the type of a counter's preset and current value.

When to use it

Small quantities: part count, step number, whole-number setpoint.

Size16 bits
Possible values-32,768 … 32,767
Starting value0
Constants (examples)0, 25, -40

The bits

Each bit is worth a power of 2 (bit 0 = 1, bit 1 = 2, bit 2 = 4…) and the bits at 1 add up. The last bit (bit 15) is the sign: it is worth -32,768. All bits at 1 therefore give −1.

Value1514131211109876543210
00000000000000000
10000000000000001
50000000000000101
1000000000001100100
32,7670111111111111111
-11111111111111111
-32,7681000000000000000

Behaviour in detail

European (IEC) and American styles

Same name on both sides (INT). The American style often uses DINT for almost everything; INT is more common in the European style.