E_BA_ByteMappingMode
TYPE E_BA_ByteMappingMode :
(
Invalid := 0,
eIndex1N := 1,
eBinary1N := 2,
eIndexUpDown := 3,
eBinaryUpDown := 4,
eBinaryDecimal := 5,
) BYTE;
END_TYPE
Name | Description |
---|---|
Invalid | No significance for the user. |
eIndex1N | Sets the indexed bit to TRUE. Sample: 2#0000_0001 | 1 2#0000_0010 | 2 2#0000_0100 | 3 2#0000_1000 | 4 |
eBinary1N | Sets only the first bit of a binary mapped decimal value to TRUE. Sample: 2#0000_0001 | 1 2#0000_0010 | 2, 3 2#0000_0100 | 4, 5, 6 2#0000_1000 | 8, 9, 10, 11, 12, 13, 14, 15 |
eIndexUpDown | Sets a specific number of bits to TRUE. Sample: 2#0000_0001 | 1 2#0000_0011 | 2 2#0000_0111 | 3 2#0000_1111 | 4 |
eBinaryUpDown | Sets all bits of a binary mapped decimal value to TRUE. Sample: 2#0000_0001 | 1 2#0000_0011 | 2, 3 2#0000_0111 | 4, 5, 6 2#0000_1111 | 8, 9, 10, 11, 12, 13, 14, 15 |
eBinaryDecimal | Binary mapped decimal value. Sample: 2#0000_0001 | 1 2#0000_0010 | 2 2#0000_0011 | 3 2#0000_0100 | 4 2#0000_0101 | 5 2#1111_1111 | 255 |
Requirements
Development environment | Required PLC library |
---|---|
TwinCAT 3.1 4024.35 | Tc3_BA2_Common from V2.1.20.0 |