|
Tip |
|---|---|
|
The version of the function block as described here corresponds to the latest version of the function block in Version list of function blocks. |
|
Tip |
|---|---|
|
|
Its function is the counting up of a counter to a defined upper limit.
Table 86. VAR_INPUT
|
Name |
Data Type |
Initial Value |
Description, parameter values |
|---|---|---|---|
|
|
|
|
Rising edge at |
|
|
|
|
|
|
|
|
|
Upper limit for counting up |
Table 87. VAR_OUTPUT
|
Name |
Data Type |
Initial Value |
Description, parameter values |
|---|---|---|---|
|
|
|
|
|
|
|
|
|
Current counter value. Increments until |
FB code
IF R THEN CV := 0 ;
ELSIF CU AND (CV < PVmax)
THEN CV := CV+1;
END_IF ;
Q := (CV >= PV) ;
The numerical value of PVmax is 32767.