
Chapter 5 Deployment I/O periphery
Manual VIPA System 300S SPEED7
5-14
HB140E - CPU SC - RE_313-6CF03 - Rev. 07/45
Counter - Controlling
The controlling of the appropriate counter is made from the user program
by the SFB COUNT (SFB 47). The SFB is to be called with the
corresponding instance DB. Here the parameters of the SFB are stored.
With the SFB COUNT (SFB 47) you have following functional options:
•
Start/Stop the counter via software gate SW_GATE
•
Enable/control output DO
•
Read the status bit
•
Read the actual count and latch value
•
Request to read/write internal counter registers
Name
Decla-
ration
Data
type
Address
(Inst.-DB)
Default
value
Comment
LADDR
INPUT
WORD
0.0
300h
This parameter is not evaluated. Always
the internal I/O periphery is addressed.
CHANNEL INPUT INT
2.0 0
Channel
number
SW_GATE
INPUT
BOOL
4.0
FALSE Enables the Software gate
CTRL_DO
INPUT
BOOL
4.1
FALSE Enables the output
False: Standard Digital Output
SET_DO
INPUT
BOOL
4.2
FALSE Parameter is not evaluated
JOB_REQ
INPUT
BOOL
4.3
FALSE Initiates the job (edge 0-1)
JOB_ID INPUT
WORD
6.0
0 Job
ID
JOB_VAL
INPUT
DINT
8.0
0
Value for write jobs
STS_GATE OUTPUT BOOL
12.0
FALSE Status of the internal gate
STS_STRT OUTPUT BOOL
12.1
FALSE Status of the hardware gate (is only
refreshed if "HW gate" is activated in
hardware configuration before)
STS_LTCH OUTPUT BOOL
12.2
FALSE Status of the latch input
STS_DO
OUTPUT BOOL
12.3
FALSE Status of the output
STS_C_DN OUTPUT BOOL
12.4
FALSE Status of the down-count
Always indicates the last direction of
count. After the first SFB call STS_C_DN
is set FALSE.
STS_C_UP OUTPUT BOOL
12.5
FALSE Status of the up-count
Always indicates the last direction of
count. After the first SFB call STS_C_UP
is set TRUE.
COUNTVAL
DINT
14.0
0
Actual count value
LATCHVAL
DINT
18.0
0
Actual latch value
JOB_DONE
BOOL
22.0
TRUE New job can be started.
JOB_ERR
BOOL 22.1 FALSE Job
error
JOB_STAT
WORD
24.0
0
Job error ID
Overview
Parameter SFB 47
Содержание 313-6CF03
Страница 2: ...Lerrzeichen ...
Страница 40: ...Chapter 3 Hardware description Manual VIPA System 300S SPEED7 3 14 HB140E CPU SC RE_313 6CF03 Rev 07 45 ...
Страница 122: ...Chapter 5 Deployment I O periphery Manual VIPA System 300S SPEED7 5 36 HB140E CPU SC RE_313 6CF03 Rev 07 45 ...
Страница 140: ...Chapter 6 Deployment PtP communication Manual VIPA System 300S SPEED7 6 18 HB140E CPU SC RE_313 6CF03 Rev 07 45 ...