Program Example - Omron CS1W-FLN22 Operation Manual

100base-tx, sysmac cs / cj series, fl-net units
Table of Contents

Advertisement

Sending Commands from a PLC
7-2-2

Program Example

Execution
condition (See note)
000000
A20207 120002
120001
120000
(See note)
120000
A20207
120000
A21907
(Continued on next page.)
When the Communications Port Enabled Flag for port 7
S
KEEP
is ON, and RECV(098) is not being executed, the send
120000
execution program will start when execution condition
CIO 000000 turns ON.
R
Input CIO 120000 remains ON from the start of
@MOV(21)
SEND(090) execution until completion.
#000A
D00000
Control Data Creation
Word
Contents
@MOV(21)
#0002
D0000
D00001
D0001
@MOV(21)
D0002
#0400
D00002
D0003
@MOV(21)
#0705
D00003
D0004
@MOV(21)
#0064
D00004
Send Data Creation
@XFER(70)
Ten words of data from word CIO 0000 is
#000A
stored from D00010 onwards.
0000
D00010
@SEND(90)
Ten words of data from D00010 at the local node is
D00010
sent to D00020 onwards at network number 2, node
number 4, unit address 0 (the PC).
D00020
D00000
DIFU(13)
Reset Input Creation
120001
120000
Send Error Display
Section 7-2
Meaning
00
0A
Number of send words = 10
00
02
Destination network number = 2
04
00
Destination node number = 4
Destination unit address = 0
07
05
Response required.
Communications port No. used = 7
Number of retries = 5
00
64
Response monitor time = 10 s
103

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cj1w-fln22

Table of Contents