Standard function blocks
353
Input Sign input (SIGN): Boolean
Input (IN1…IN31): Boolean
Output Output (OUT): DINT (31 bits + sign)
BOOL_TO_INT
(10019)
Illustration
Execution time 5.00 µs
Operation The output (OUT) value is a 16-bit integer value formed from the boolean input
(IN1…IN15 and SIGN) values. IN1 = bit 0 and IN15 = bit 14.
Example:
IN1…IN15 = 1, SIGN = 0
Inputs Input (IN1…IN15): Boolean
Sign input (SIGN): Boolean
Outputs Output (OUT): DINT (15 bits + sign)
BOOL_TO_INT
82
TLA1 1 msec (1)
IN1
IN2
IN3
IN4
IN5
IN6
IN7
IN8
IN9
IN10
IN11
IN12
IN13
IN14
IN15
SIGN
OUT
OUT(82)
OUT = 0111 1111 1111 1111
IN15…IN1
SIGN