Logic
16-Bit Binary Encoder
Description Output is a hexadecimal, unsigned 16-bit integer that is defined by the combination of the states of the Bit parameters, with Bit 0 as the Least Significant Bit. Bit parameters can be set LOW (0) or HIGH (1).

0x0 ≤ Output ≤ 0xFFFF

Hexadecimal numbers are the same as decimal numbers, they are only written in a different format. Hexadecimal numbers are base-16, rather than the base-10 used in the standard decimal format.

For example: 0xBDAC in hexadecimal is equal to 48556 in decimal.
Availability
  • Requires library: Process Control (option -05) or Basic Functions
  • Firmware versions 0x1021 and later
savvy-SFD Graphic 16bitBinEnc
Graphic with Parameters 16bitBinEnc

Parameters

Bit 0 Input, Read-write, Boolean (signed 16-bit integer)
0 = Low
1 = High
Bit 1 Input, Read-write, Boolean (signed 16-bit integer)
0 = Low
1 = High
Bit 2 Input, Read-write, Boolean (signed 16-bit integer)
0 = Low
1 = High
Bit 3 Input, Read-write, Boolean (signed 16-bit integer)
0 = Low
1 = High
Bit 4 Input, Read-write, Boolean (signed 16-bit integer)
0 = Low
1 = High
Bit 5 Input, Read-write, Boolean (signed 16-bit integer)
0 = Low
1 = High
Bit 6 Input, Read-write, Boolean (signed 16-bit integer)
0 = Low
1 = High
Bit 7 Input, Read-write, Boolean (signed 16-bit integer)
0 = Low
1 = High
Bit 8 Input, Read-write, Boolean (signed 16-bit integer)
0 = Low
1 = High
Bit 9 Input, Read-write, Boolean (signed 16-bit integer)
0 = Low
1 = High
Bit 10 Input, Read-write, Boolean (signed 16-bit integer)
0 = Low
1 = High
Bit 11 Input, Read-write, Boolean (signed 16-bit integer)
0 = Low
1 = High
Bit 12 Input, Read-write, Boolean (signed 16-bit integer)
0 = Low
1 = High
Bit 13 Input, Read-write, Boolean (signed 16-bit integer)
0 = Low
1 = High
Bit 14 Input, Read-write, Boolean (signed 16-bit integer)
0 = Low
1 = High
Bit 15 Input, Read-write, Boolean (signed 16-bit integer)
0 = Low
1 = High
Output Output, Read-only, Hexadecimal (unsigned 16-bit integer)
0x0 to 0xFFFF