36
Process Image
WAGO-I/O-SYSTEM 750
750-633 Up/Down Counter Ex i
Manual
Version 1.3.0 HW-Version 03, SW-Version 01
4.3
Operating Mode 4 – Peak-Time Counter
In the 4 input bytes (D0 ... D3), the value of the counter is stored in binary format.
Control byte C0 is used to start periodic counting and to set the outputs. Status
byte S0 shows the counter status and the status of the inputs and outputs.
Table 26: Process Image, Operating Mode 4
Input
Output
S0
Status byte
C0
Control byte
D0
Counter value byte 0 (LSB)
D0
Reserved
D1
Counter value byte 1
D1
Reserved
D2
Counter value byte 2
D2
Reserved
D3
Counter value byte 3 (MSB)
D3
Reserved
Table 27: Control Byte C0, Operating Mode 4
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
0
0
START_
CNT
0
0
SET_DO
0
0
SET_DO
Set output DO
START_CNT
Start of periodic counting pulse detection
0
This value is always 0 and may not be changed.
Table 28: Status Byte S0, Operating Mode 4
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
X
NAMUR_
ERR
START_
ACK
X
X
ST_DO
ST_U/D TOGGLE
TOGGLE
Toggle bit for expiry of recording cycle
ST_U/D(GATE) Status output U/D(GATE)
ST_DO
Status output DO
START_ACK
Confirmation of start for counting pulse detection
NAMUR_ERR Namur error at input
X
This value is not defined and cannot be evaluated.
* In the error state (bit 6 is set), the status bits 0, 1, 2, 3, 4, 5 are always set to 0.
The counter processes the counting pulses on the CLK input over a specified
period. This period is preset to 10 s. The counter value determined in this manner
is saved in the process image until expiration of the next period. Counting begins
at zero after each recoding cycle.
Activation of the count and synchronization with the additional control occurs by
a handshake bit (bit 5) in the control and status byte.
A toggle bit (bit 0) in the status byte reports when the counting period elapses and
there is new process data.
The following functions can be executed:
4.3.1
Set Output
Bit 2 of the control byte sets the digital output DO.