Chapter 3 Programming
3
– 58
Mapping
Name
I/O
Type
Descriptions
Enable
Output (%QX)
BOOL
TRUE: Counter is enabled.
FALSE: Counter is disabled.
Direction
Output (%QX)
BOOL
TRUE: Down counter
FALSE: Up counter
Counter
Input (%ID)
DWORD
Counter value is increased or decreased with
every rising edge and stored in this register.
(0 to 4,294,967,295)
Direction can be changed only when counter is disabled.
When the counter value exceeds the maximum or minimum value, it returns to 0 or 4,294,967,295.
Operations
Counter can be controlled by variables and function blocks as below.
Operations
Variable or FB
Name
ROM version
Start/Stop counter
Variable
Enable (%QX)
Read counter value
Variable
Counter (%ID)
3.5.3.40 to 41
Function block
MV_CU_Read
3.5.3.42 or newer
Write current counter value
Function block
MV_CU_Write
Write preset values
Function block
MV_CU_preset
1
Variable
“Counter”
Counter input
Variable
“Direction”
Variable
“Enable”
2
3
0
-1
-2
-3
FALSE to change
“Direction”
0
Содержание EH-A14EDR
Страница 6: ...MEMO ...
Страница 10: ...MEMO ...
Страница 141: ...Chapter 3 Programming 3 81 Program ...
Страница 166: ...Chapter 5 Maintenance 5 4 MEMO ...
Страница 170: ...Appendix A1 4 MEMO ...