Manual BG41/BG42/BG43 Interface modules
Rev. 99/49 3-45
Reading the counter status
Command 00
The counter module’s status is read by the interface building block from a register. In this register a
counter overflow which may arise is saved upwards (carry) or downwards (borrow).
Fig. 3-36: Reading the counter status with command 00
The status byte is returned over the respective channel and can therefore be processed by the PLC.
Reading out of the counter state
Command 01/02/03
With the command 01 the counter state of the counter 1 is returned via the channel, to which the
counter module is connected. The high-order byte of the counter value comes first and then the
lower-order byte. Analogues apply for counter 2 and 3.
Describing a counter with a value
Command: 81 xx yy / 82 xx yy / 83 xx yy
In order to pre-occupy one of the 3 counters with a value, the command 81 (or 82/83), followed by
the value chosen, is given via the corresponding channel. In this case xx is the high-order byte, yy is
the low-order byte of the chosen 16-bit value.