Omron PRT1-COM Operation Manual page 60

Profibus-dp multiple i/o terminal, gt1 series
Table of Contents

Advertisement

Examples of Counter Unit Operation
25315
23201
(1 cycle ON)
23200
23200
35500
23202
Set 1 Setting
Completion
Flag
23201
23201
35501
23203
Set 2 Setting
Completion
Flag
23202
23202
35502
Count Value Set
23203
Completion Flag
23203
23204
48
MOV(21)
When the program starts, set value 1 will be set under
the following conditions:
#5000
S Words 51, 52
051
Set value 1:
Output conditions:
MOV(21)
S Word 53
#0000
Bit 00:
Bit 03:
052
MOV(21)
#0001
053
Bit 23200 is a Step Advance Flag.
23200
When the Step Advance Flag 23200 turns ON and
MOV(21)
set value 1 has been set, set value 2 will be set under
#0000
the following conditions:
051
S Words 51, 52
Set value 2:
MOV(21)
Output conditions:
Bit 01:
#0001
Bit 03:
052
MOV(21)
#0002
053
Bit 23201 is a Step Advance Flag.
23201
MOV(21)
When the Step Advance Flag 23201 turns ON and
set value 2 has been set, the count value will be set
#0000
under the following conditions:
051
S Words 51, 52
Count value:
MOV(21)
S Word 53
#0000
Bit 02:
Bit 03:
052
MOV(21)
#0004
053
Bit 23202 is a Step Advance Flag.
23202
When the Step Advance Flag 23202 is ON and
the count value has been set, the Step Advance
23203
Flag 23203 turns ON.
When the Step Advance Flag 23203 turns ON, the initial
MOV(21)
settings are complete. Commence count operation under
#2F40
the following conditions:
S Word 53
053
Bit 03:
Bit 06:
Bit 08:
23204
Bit 09:
Bit 10, 11:
Bits 12 to 14: External input, reset mode
Bit 15:
When the settings and operations for the counter
have been completed, the Step Advance Flag 23204
turns ON.
Section
+5000 (BCD)
Present value ≥ Set value 1
Setting value 1 set
Data code BCD
+10000 (BCD)
Present value ≥ Set value 2
Set value 2 set
Data code BCD
0 (BCD)
Count value set
Data code BCD
Data code BCD
Count value read
External output 1 enabled
External output 2 enabled
Count mode phase difference ×1
Count stop during I/O Unit Interface error
5-1

Advertisement

Table of Contents
loading

Table of Contents