Saia-Burgess Controls AG
User Manual PCD2.M4x60 │
Document 27-648
│ Edition ENG06 │ 2020-10-21
Usage as CPU onboard Counter
Interrupts
10-6
10
10.3.2.4 System Function Parameters
With the System Function Library Number 17 Function Number 1 it is possible to
start / stop and Configure the OnBoard Counter.
The following table displays the Parameters:
Parameter
Declaration Type Range
Description
COUNT_NUM
Input
R
K
Wert
0
0: Counter 0
1: Counter 1
START/STOP
Input
F
TRUE / FALSE
Start or Stop the Counter
CONT
Input
F
TRUE / FALSE
True: Continuous counting
False: Counting until the ref value is reached
ROTATE
Input
F
TRUE / FALSE
True: Overflow handling,
see description Rotate
False: No Overflow handling
DIR
Input
F
TRUE / FALSE
Only in Mode X0 and X1
True: Input IX0 is inverted
False: Input IX0 is not inverted
REF_OUT
Input
F
TRUE / FALSE
This Functionality is not supported
(set Always to FALSE)
PULSE_OUT
Input
F
TRUE / FALSE
This Functionality is not supported
(set Always to FALSE)
REF
Input
R
K
Wert
xxx
1)
Maximum Value or Reference Value
XOB_NBR
Input
R
K
Wert
0
32…63
0:
No XOB call if Counter Value is
equal Ref Value
32…63: XOB is called if the Counter
reaches the Ref Value
XOB_INFO
Input
R
K
Wert
YYYY
2)
This Value can be read in the XOB local data.
RET_VAL
Output
R
ZZZZ
3)
Error and status message:
0: Counter started
1: Counter already running
(called when START=TRUE)
-2: COUNT_NUM is invalid (0)
-3: XOB_NBR is invalid
-4: Counter Inputs are configured as Interrupts
-5: Configuration with COUNT = TRUE,
ROTATE=TRUE, and REF = 0
REF_REACHED Output
F
TRUE / FALSE
This Flag is set if the Ref Value was reached.
The Flag will be reset after the call.
1) 4 Byte Range from 0x0000'0000 to 0xFFFF'FFFF.
2) 2 Byte Range from 0x0000 to 0xFFFF.
3) Integer Range from –32768 to +32767.