stand-alone
operation
SYNRAD FH Series Flyer Operator’s Manual Version 3.4
103
Conguration
Output masks
An output mask is required for SetDigitalInit, SetDigitalMatch, SetDigitalNoMatch,
SetDigital16, and Error keywords. For example, the SetDigitalMatch keyword denes the
output state to set when Flyer successfully matches an input state to a particular mark le. The
rst argument is a mask value and the second argument is the desired output state. The mask
value prevents Flyer from changing any outputs that fall outside the mask boundary.
Output example # 1:
Output # OUT7 OUT6 OUT5 OUT4 OUT3 OUT2 OUT1 OUT0
Current output state (0x4F) 0 1 0 0 1 1 1 1
Output mask value (0x60) 0 1 1 0 0 0 0 0
Desired output state (0x20) 0 0 1 0 0 0 0 0
Result of mask (0x2F) 0 0 1 0 1 1 1 1
The mask value (0x60) means that only OUT5 and OUT6 will be changed, if necessary, to the desired
output state. In this example, OUT5 is Set and OUT6 is Cleared to indicate that a le match was success-
ful. Note that outputs OUT7, OUT4, and OUT3–OUT0 are unchanged because of the mask operation.