// Byte operation
LD I0.0
ANDB VB1, VB2
// Word or action
MOVW VW100, VW300
ORW VW200, VW300
// Double word exclusive-OR operation
XORD AC0, AC1
// Byte negated operation
MOVB VB5, VB6
INVB VB6
Operation is as follows:
VB1 VB2 VB2
0001 1100 WAND 1100 1101 → 0000 1100
VW100 VW200 VW300
0001 1101 1111 1010 WOR 1110 0000 1101 1100 → 1111 1101 1111 1110
VB5 VB6
0000 1111 INV 1111 0000
Siemens PLC Logical programming Ladder Logic
