![background image](http://html1.mh-extra.com/html/omron/prt1-com/prt1-com_operation-manual_744566060.webp)
5-1
Section
Examples of Counter Unit Operation
48
23200
MOV(21)
#5000
051
23201
25315
23200
MOV(21)
#0000
052
MOV(21)
#0001
053
(1 cycle ON)
23201
MOV(21)
#0000
051
23202
23200
23201
MOV(21)
#0001
052
MOV(21)
#0002
053
Set 1 Setting
Completion
Flag
35500
23202
MOV(21)
#0000
051
23203
23201
23202
MOV(21)
#0000
052
MOV(21)
#0004
053
35501
23203
23202
35502
MOV(21)
#2F40
053
23204
23203
23203
23204
Count Value Set
Completion Flag
When the program starts, set value 1 will be set under
the following conditions:
S
Words 51, 52
Set value 1:
+5000 (BCD)
Output conditions:
Present value
≥
Set value 1
S
Word 53
Bit 00:
Setting value 1 set
Bit 03:
Data code BCD
Bit 23200 is a Step Advance Flag.
When the Step Advance Flag 23200 turns ON and
set value 1 has been set, set value 2 will be set under
the following conditions:
S
Words 51, 52
Set value 2:
+10000 (BCD)
Output conditions:
Present value
≥
Set value 2
Bit 01:
Set value 2 set
Bit 03:
Data code BCD
Bit 23201 is a Step Advance Flag.
When the Step Advance Flag 23201 turns ON and
set value 2 has been set, the count value will be set
under the following conditions:
S
Words 51, 52
Count value:
0 (BCD)
S
Word 53
Bit 02:
Count value set
Bit 03:
Data code BCD
Bit 23202 is a Step Advance Flag.
When the Step Advance Flag 23202 is ON and
the count value has been set, the Step Advance
Flag 23203 turns ON.
When the Step Advance Flag 23203 turns ON, the initial
settings are complete. Commence count operation under
the following conditions:
S
Word 53
Bit 03:
Data code BCD
Bit 06:
Count value read
Bit 08:
External output 1 enabled
Bit 09:
External output 2 enabled
Bit 10, 11:
Count mode phase difference
×
1
Bits 12 to 14: External input, reset mode
Bit 15:
Count stop during I/O Unit Interface error
When the settings and operations for the counter
have been completed, the Step Advance Flag 23204
turns ON.
Set 2 Setting
Completion
Flag
Содержание PRT1-COM
Страница 1: ...Cat No W900 E2 1 PROFIBUS DP MULTIPLE I O TERMINAL PRT1 COM GT1 Series ...
Страница 2: ...PRT1 COM GT1 Series PROFIBUS DP MULTIPLE I O TERMINAL Operation Manual Produced December 1999 ...
Страница 3: ...iv ...
Страница 5: ...vi ...
Страница 9: ...x ...
Страница 187: ...Cat No W900 E2 1 Note Specifications subject to change without notice December 1999 Authorized Distributor ...