Up Counter Description :
Count Up Instruction Use to Increment the Value at Output CV.
- Count Up Input Changes from 0 to 1 (Positive Signal Edge) Current Counter Value Increment at Output CV.
- Counter Value Increment Each Time When Positive Signal Edge Is Detected.
- When Counter High Limit Reached, the Signal State at the CU Input no longer effect on the Count up Instruction.
- Current Counter Value is Greater than or Equal to the Value of the PV Parameter the Output Q is set to Signal State 1.
- When the Signal State at Input R Changes from 0 to 1 the Value at CV Output is Reset to Zero.
Up Counter Parameters :
Parameter |
Declaration |
Data type |
Description |
CU |
Input |
BOOL |
Count
input |
R |
Input |
BOOL |
Reset
input |
PV |
Input |
Integers
|
Value
at which the output Q is set. |
Q |
Output |
BOOL |
Counter
status |
CV |
Output |
Integers,
CHAR, WCHAR, DATE |
Current
counter value |
Up Counter Example :
Up Counter |
- When the Signal State of the TAG_1 Changes From 0 to 1, the Count Up Instruction is executed at and the Current Counter Value of the CV Value is Incremented by one.
- Counter Value is Incremented until the High Limit of the Specified Data Type (INT= 32768) is Reached.
- When Current Counter Value is Greater than or equal to Zero the value of the PV Value Output Tag_3 Signal State 1.
- In all other cases, the Output TAG_3 has Signal State 0.
- When the Signal State at Input TAG_2 Changes from 0 to 1 the Value at CV Output is Reset to Zero.
No comments:
Post a Comment