Saia-Burgess Controls AG
User Manual PCD2.M4x60 │
Document 27-648
│ Edition ENG06 │ 2020-10-21
Usage as CPU onboard Counter
Interrupts
10-4
10
10.3.2
Function Description
10.3.2.1 Function Block Diagram
Counter
Input IX1
Input IX0
Call XOB
Start
*(–1)
Comparator
Reference value
Count/Rotate
DIR
DIR
XOB
Number
XOB
Info
PED
65000
Clock
Clock/Direction
PAD
65000
Configurable Parameters with SFC Call
10.3.2.2 Function Description (applies to counter 0 as well as to counter 1)
To configure, to start and stop the Onboard Counter there exist a system call
(BOARDCNT). For the configuration and to start the Counter only a single call of
the system call is necessary. The Counter value can be read with a direct periph
-
ery access on address 65’000 / 65004. The Value of the Counter can be set at any
time with a direct periphery write access to address 65’000 (Counter 0) or 65004
(Counter1).
¾
On a startup, the Counter is preset to 0.
¾
If the PCD goes to halt the counter is stopped.
¾
To change the Counter Parameter, the counter must be stopped.
ROTATE
(round counting)
In the Rotate Mode the counter counts up to the Reference Value (Parameter Ref)
and starts then from 0. Or it counts down to 0 and starts with the Reference Value.
In “normal” Mode theCountingRangeis from 0 to 0xFFFF'FFFF.