IP Relay HWg-ER02b - Manual
HW group
www.HW-group.com
31/ 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)
#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 IP Relay.
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.
Periodic data synchronization in normal operation:
- PrevOut =
previous output state
- RxData =
received remote data
Keep I/O
– (#K, #L, #M, #N) – IP Relay periodically sends the state of its inputs to the remote
side.
#K: KEEP mask
255
#L: AND mask
0
#M: OR mask
0
#N: XOR mask
0
#K#L#M#N commands correspond to #X#Y#Z#W and define the behavior when two IP Relays are
connected back-to-back and configured to periodically transmit port states. #X#Y#Z#W commands
define the behavior of the two IP Relays whenever the port states change (more precisely, whenever
the bits determined by #T change).
Output =
((
PrevOut
AND
#K
) OR
(RxData
AND
#L
) OR
#M
) XOR
#N