Omron CVM1D Operation Manual page 404

Hide thumbs Also See for CVM1D:
Table of Contents

Advertisement

Network Instructions
Programming Example:
Synchronizing Data
The following program shows how to synchronize data transmission during
asynchronous operation using IOSP(187) and IORS(188).
In the program in PC A (the sending PC), the data is set in memory while the
Enabled Flag is ON, i.e., when SEND(192) is not being executed, and a code is
added in the last word of data to verify that the data has been transmitted suc-
cessfully.
In the program in PC B (the receiving PC), the code in the last word of the trans-
mitted data is used to prevent more data from being transferred until the trans-
mitted data is copied to another section of Data Memory for storage. The code is
erased from the original block of data after it is copied.
SEND
S
C
P
L
P
S
K
U
PC A
jSEND D00000
D01000
Data
$AAAA
Terminator set in send data
at PC A.
S
C
P
L
P
S
K
U
PC B
D02000
(020)
CMP
#AAAA D01255
(187)
IOSP
A500
13
(040)
XFER
#0255
D01000
(030)
M0V
#0000 D01255
(188)
IORS
(005)
JME
00
Section 5-34
A500
06
(004)
JMP
000
D02000
399

Advertisement

Table of Contents
loading

Table of Contents