EasyManua.ls Logo

YASKAWA VIPA SPEED7 - System Function Blocks

YASKAWA VIPA SPEED7
1007 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Error code Description
8089h You have assigned the value 0 to CMP_ID.
808Ah CMP_ID not fit to EV_ID
8xyyh General error information
Ä
Chap. 4.2 ‘General and Specific Error Information RET_VAL’ page 66
14.2 System Function Blocks
14.2.1 SFB 0 - CTU - Up-counter
The SFB 0 can be used as Up-counter. Here you have the following characteristics:
n If the signal at the up counter input CU changes from "0" to "1" (positive edge), the
current counter value is incremented by 1 and displayed at output CV.
n When called for the first time with R="0" the counter value corresponds to the preset
value at input PV.
n When the upper limit of 32767 is reached the counter will not be incremented any fur-
ther, i.e. all rising edges at input CU are ignored.
n The counter is reset to zero if reset input R has signal state "1".
n Output Q has signal state "1" if CV ≥ PV.
n When it is necessary that the instances of this SFB are initialized after a restart, then
the respective instances must be initialized in OB 100 with R = 1.
Parameter Declaration Data type Memory block Description
CU INPUT BOOL I, Q, M, D, L,
constant
Count input
R INPUT BOOL I, Q, M, D, L,
constant
Reset input. R takes precedence over
CU.
PV INPUT INT I, Q, M, D, L,
constant
Preset value
Q OUTPUT BOOL I, Q, M, D, L Status of the counter
CV OUTPUT INT I, Q, M, D, L Current count
Count input:
This counter is incremented by 1 when a rising edge (with respect to the most recent SFB
call) is applied to input CU.
Reset input:
The counter is reset to 0 when input R is set to "1", irrespective of the status of input CU.
Preset value:
This value is the comparison value for the current counter value. Output Q indicates
whether the current count is greater than or equal to the preset value PV.
Description
Parameters
CU
R
PV
VIPA SPEED7
Integrated Standard
System Function Blocks > SFB 0 - CTU - Up-counter
HB00 | OPL_SP7 | Operation list | en | 18-30 729

Table of Contents

Related product manuals