Omron SYSMAC CV Series Operation Manual page 422

Ladder diagrams
Hide thumbs Also See for SYSMAC CV Series:
Table of Contents

Advertisement

Special I/O Instructions
0000
01
0110
A500
00
06
Example 2
Sensor: 000000
Sensor
0000
00
C0010
0000
00
0200
C0010
01
0200
00
A500
06
A500
03
410
The following program section uses a self-holding bit to ensure that the write op-
eration is executed even if the Special I/O Unit (or Slave Rack) is busy when
WRIT(191) is executed. The type of programming is also effective when the read
operation requires more than one cycle. The Equals Flag, which turns ON when
the reading operation is completed, is used to end execution.
(191)
WRIT
0001
D00010
Equals
Flag
The following program section shows one way to pass data from a weighing sta-
tion on a conveyor line through an ASCII Unit to a printer or other external de-
vice. Data is input via CIO 0002, stored in D00001 through D00100, and output
via CIO 0003.
PC
CNT
0010
(090)
jINC D00000
(030)
jMOV
0002 *D00000
(191)
WRIT
#0100
d00001
Equals
Flag
(041)
BSET
#0000
D00000
Error
Flag
0004
0110
00
ASCII Unit
Printer or
other external
device
#0100
0200
00
0003
0200
01
0001
00
D00100
0001
01
Section 5-35
Address Instruction
Operands
00000
LD
000000
00001
OR
011000
00002
WRIT(191)
D00010
00003
AND NOT
A50006
00004
OUT
011000
Address Instruction
Operands
00000
LD
000000
00001
LD
C0010
00002
CNT
00003
LD
000000
jINC(090)
00004
D00000
jMOV(030)
00005
*D00000
00006
LD
C0010
00007
OR
020000
00008
AND NOT
020001
00009
OUT
020000
00010
WRIT(191)
D00001
00011
AND
A50006
00012
OUT
020001
00013
OUT
000100
00014
BSET(041)
D00000
D0010
00015
AND
A50003
00016
OUT
000101
0001
0004
0010
#0100
0002
#0100
0003
#0000

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cv2000Cvm1Cv500Cv1000

Table of Contents