The deployment of the request interface takes place at the following sequence:
1.
Edit the following input parameters:
Name
Data type
Address (DB)
Default
Comment
JOB_REQ
BOOL
4.3
FALSE
Initiates the job (edges 0-1) *
JOB_ID
WORD
6.0
0
Job ID:
00h Job without function
01h Writes the
count value
02h Writes the
load value
04h Writes the
comparison value
08h Writes the
hysteresis
10h Writes the
pulse duration
20h Writes the
end value
82h Reads the
load value
84h Reads the
comparison value
88h Reads the
hysteresis
90h Reads the
pulse duration
A0h Reads the
end value
JOB_VAL
DINT
8.0
0
Value for write jobs
*) State remains set also after a CPU STOP-RUN transition.
2.
Call the SFB. The job is processed immediately.
JOB_DONE
only applies to SFB
run with the result FALSE.
JOB_ERR
= TRUE if an error occurred. Details on the
error cause are indicated at
JOB_STAT
.
Name
Data type
Address (DB)
Default
Comment
JOB_DONE
BOOL
22.0
TRUE
New job can be started
JOB_ERR
BOOL
22.1
FALSE
Job error
JOB_STAT
WORD
24.0
0000h
Job error ID
0000h No error
0121h
Comparison value
too low
0122h
Comparison value
too high
0131h
Hysteresis
too low
0132h
Hysteresis
too high
0141h
Pulse duration
too low
0142h
Pulse duration
too high
0151h
Load value
too low
0152h
Load value
too high
0161h
Count value
too low
0162h
Count value
too high
01FFh Invalid
job ID
3.
A new job may be started with
JOB_DONE
= TRUE.
Proceeding
VIPA System 300S
+
Deployment I/O periphery
Counter > SFB 47 - COUNT - Counter controlling
HB140 | CPU-SC | 313-5BF23 | en | 19-01
114