I/O Write 2: Wr2(281) - Omron SYSMAC CVM1 Series Operation Manual

Duplex system
Hide thumbs Also See for SYSMAC CVM1 Series:
Table of Contents

Advertisement

Special I/O Instructions
Example 2
Sensor: 000000
Sensor
0000
00
C0010
0000
00
0200
C0010
01
0200
00
A500
06
A500
03

5-33-4 I/O WRITE 2: WR2(281)

Ladder Symbol
(281)
WR2
Description
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
Operand Data Areas
C: Control word
C
S
D
S: First source word
D: Destination word
When the execution condition is OFF, WR2(281) is not executed. When the ex-
ecution condition is ON, WR2(281) writes the specified number of words to the
specified address in a Special I/O Unit via the destination word (D). The word
specified for D is the first of the four words (i.e., the first output word) that serve
as the interface with the Special I/O Unit.
ASCII Unit
Printer or
other external
device
#0100
0200
00
0003
0200
01
0001
00
D00100
0001
01
CIO, G, A, T, C, #, DM, DR, IR
CIO, G, A, T, C, DM
CIO
Section 5-33
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
0010
#0100
0002
#0100
0003
#0000
383

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cv seriesSysmac cvm1d series

Table of Contents