
I/O Controller 2 Manual
HW group
www.HW-group.com
28/ 42
Bitwise AND
0 (0x00)
AND 0 (0x00) = 0 (0x00)
255 (0xFF) AND 0 (0x00) = 0 (0x00)
255 (0x0F) AND 3 (0x03) = 3 (0x03)
240 (0xF0) AND 16 (0x0F) = 0 (0x00)
Bitwise XOR
0 (0x00)
XOR 0 (0x00)
= 0 (0x00)
255 (0xFF) XOR 0 (0x00)
= 255 (0x00)
255 (0x0F) XOR 3 (0x03)
= 252 (0xFC)
0 (0x00)
XOR 255 (0xFF) = 255 (0xFF)
Data synchronization in normal operation:
- PrevOut =
previous output state
- RxData =
received remote data
Note:
The previous formula is only used when two I/O Controllers are connected to each
other back-to-back. Inputs at one device are automatically mirrored at the outputs of
the other device. This is called the Box-2-Box mode.
Standard NVT commands can be used to access all the 8 output bits either directly,
without respect to the #B to #Z parameters, or using the defined masks.
However, in the common Box-2-Box mode, it is not possible to access the output
states from a PC because the I/O Controller supports only one TCP connection at a
time. As long as a TCP connection to the other I/O Controller is established, the I/O
Controller cannot be accessed from a PC.
#X: KEEP mask 0
Defines the outputs that will keep their previous values (using bitwise AND).
#Y: AND mask
255
Using bitwise AND, defines the inputs whose states
are transmitted from the remote side to the outputs
of the I/O Controller.
Note:
Be careful when controlling the outputs over NVT and using the Box-2-Box mode at the
same time. #X and #Y can define which bits can be set only over NVT and which bits will
be synchronized with the remote inputs.
Example: #Y= 0x00, #X=0xFF
– The output is not affected by the remote side at all, all
output bits can be controlled over NVT.
#Z: OR mask
0
Defines the output bits that will be affected by automatic synchronization
– see #C.
#W: XOR mask
0
The bitwise XOR function is useful for inverting
individual output bits with respect to the respective
remote inputs
– see #D.
OUTPUT =
((
PrevOut
AND
#X
) OR
(RxData
AND
#Y
) OR
#Z
) XOR
#W
Summary of Contents for I/O Controller 2
Page 1: ...I O Controller 2 Manual HW group www HW group com 1 42 I O Controller 2 MANUAL...
Page 5: ...I O Controller 2 Manual HW group www HW group com 5 42...
Page 17: ...I O Controller 2 Manual HW group www HW group com 17 42 Network parameters TCP Setup Mode...
Page 18: ...I O Controller 2 Manual HW group www HW group com 18 42...