SINT in PLC is a signed short integer (abbreviation of short int).
The type specifier is short int or short'C110F1. The occupied bytes and value range will vary depending on different compilation systems. For 16-bit machines, short int occupies 2 bytes. In most 32-bit machines, short int occupies 4 bytes. But in general, short int is at least 16 bits, which is 2 bytes.
The long integer type specifier is long int or long, which occupies 4 bytes in memory, and its value is a long integer constant. In any compilation system, long integers occupy 4 bytes. Under normal circumstances, its number of bytes and value range are the same as those of the basic type.
The unsigned type specifier is unsigned. In the compilation system, the system distinguishes between signed numbers and unsigned numbers. The distinction is based on how to interpret the highest bit in the byte. If the highest bit is interpreted as a data bit, the integer data is represented as an unsigned number.
Extended information
Integer data is divided into long integer type (long [int]), general integer type (int) and short integer type (short ?[int]), Visual C++6.0 integer occupies 4 bytes.
In front of the integer symbol int and the character symbol char, you can add the modifier signed (meaning "signed") or unsigned (meaning "unsigned").
If signed is specified, the value is stored in complement form, and the highest bit in the storage unit is used to represent the sign of the value. If unsigned is specified, the value has no sign and all binary bits are used to represent the value.
It can be seen that the maximum value that can be stored in a signed short integer is 215-1, which is 32767, and the minimum value is -215, which is -32768.
Unsigned segment integer type, the maximum value that can be stored is 216-1, which is 65535, and the minimum value is 0. If there are no negative values ??in some data, you can use unsigned, which can store positive numbers twice as much as signed.
Baidu Encyclopedia-Integer Variable