Organization of the in- and output data:
The counter begins processing with pulses at the CLOCK input for a special time span. The time span is predefined as 10 s. The state of the counter is stored in the processs image until the next period. After the recording the counting starts again at 0.
The activation of the counting and the synchronisation with the SPS is made by a handshake in the control and status byte.
The end of thre counting period and thus the new process data is signaled by a toggel bit in the status byte.
The control byte has the following bits:
Bit 7 Bit 6 Bit 5
00 start of the periodic counting
Bit 4
0
Control Byte
Bit 3
Output value at output O2
Bit 2
Output value at output O1
Bit 1
0
Bit 0
0
The status byte has the following bits:
Bit 7 | Bit 6 | Bit 5 |
|
|
|
0 | 0 | counting |
|
| started |
|
|
|
Bit 4
0
Status Byte
Bit 3 | Bit 2 |
|
|
actual signal at | actual signal |
O2 | at O1 |
|
|
Bit 1
actual signal at input U/D
Bit 0
Toggelbit for end of the record
CounterModule | 7 |
:$*2⇓,2⇓6<67(0