Publication 1762-RM001C-EN-P
5-24 Using the High-Speed Counter
Output Mask Bits (OMB)
The OMB (Output Mask Bits) define which outputs on the controller can
be directly controlled by the high-speed counter. The HSC sub-system has
the ability to directly (without control program interaction) turn outputs
ON or OFF based on the HSC accumulator reaching the High or Low
presets. The bit pattern stored in the OMB variable defines which outputs
are controlled by the HSC and which outputs are not controlled by the
HSC.
The bit pattern of the OMB variable directly corresponds to the output
bits on the controller. Bits that are set (1) are enabled and can be turned
on or off by the HSC sub-system. Bits that are clear (0) cannot be turned
on or off by the HSC sub-system. The mask bit pattern can be configured
only during initial setup.
The table below illustrates this relationship:
The outputs shown in the black boxes are the outputs under the control
of the HSC sub-system. The mask defines which outputs can be
controlled. The high preset output or low preset output values (HPO or
LPO) define if each output is either ON (1) or OFF (0). Another way to
view this is that the high or low preset output is written through the
output mask, with the output mask acting like a filter.
The bits in the gray boxes are unused. The first 12 bits of the mask word
are used and the remaining mask bits are not functional because they do
not correlate to any physical outputs on the base unit.
The mask bit pattern can be configured only during initial setup.
Description Address Data Format Type User Program Access
OMB - Output Mask Bits HSC:0.OMB word (16-bit binary) control read only
Table 5.12 Affect of HSC Output Mask on Base Unit Outputs
Output Address 16-Bit Signed Integer Data Word
1514131211109876543210
HSC:0.HPO (high preset output) 0 1 1 0 1 0 0 1 1 0 0 1
HSC:0.OMB (output mask) 100001110011
O0:0.0
0 0 0 1 0 1