
Chapter 5 Deployment I/O periphery
Manual VIPA System 300S SPEED7
5-16
HB140E - CPU SC - RE_313-6CF03 - Rev. 07/45
To read/write counter registers the request interface of the SFB 47 may be
used.
So that a new job may be executed, the previous job must have be finished
with JOB_DONE = TRUE.
The deployment of the request interface takes place at the following
sequence:
•
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
(see table at the following page)
•
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 Compare value too low
0122h Compare 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
•
A new job may be started with JOB_DONE = TRUE.
•
A value to be read of a read job may be found in JOB_OVAL in the
instance DB at address 28.
Counter request
interface
Proceeding
Summary of Contents for 313-6CF03
Page 2: ...Lerrzeichen ...