EasyManua.ls Logo

Omron DEVICENET#05-2003 - Page 44

Omron DEVICENET#05-2003
233 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
32
Examples of Counter Unit Operation Section 3-1
23200
MOV(21)
#5000
051
23201
25315
23200
MOV(21)
#0000
052
MOV(21)
#0001
053
(1 cycle ON)
23201
MOV(21)
#0000
051
2320223200
23201
MOV(21)
#0001
052
MOV(21)
#0002
053
Set 1 Setting
Completion
Flag
35500
23202
MOV(21)
#0000
051
2320323201
23202
MOV(21)
#0000
052
MOV(21)
#0C04
053
35501
23203
23202 35502
MOV(21)
#2F40
053
23204
23203
23203
23204
Count Value Set
Completion Flag
Set 2 Setting
Completion
Flag
When the program starts, set value 1 will be set under
the following conditions:
Words 51, 52
Set value 1: +5000 (BCD)
Output conditions: Present value . Set value 1
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:
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:
Words 51, 52
Count value: 0 (BCD)
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:
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.
Bit 10, 11: Differential phase pulse input ×1

Table of Contents

Related product manuals