![background image](http://html1.mh-extra.com/html/omron/e3x-drt21-s/e3x-drt21-s_user-manual_741345077.webp)
75
E3X-DRT21-S
User’s Manual
Sect
ion 3
Dev
ic
e
Net
Co
m
m
u
n
ic
at
io
n Se
tt
ings
Section 3
Explicit Message Communications
●
Program Example
000000
A20011
BSET #0000 D00000 D02999
MOV #000B D00000
071
021
MOV #0008 D00001
021
MOV #0001 D00002
021
MOV #05FE D00003
021
MOV #0000 D00004
021
MOV #0B10 D01001
021
MOV #00C8 D00005
021
MOV #2801 D01000
021
MOV #009C D01002
021
MOV #0001 D01003
021
MOV #11FF D01004
021
MOV #0700 D01005
021
ASL 0000
025
CMND D01000 D02000 D00000
490
MOV A203 D00006
021
ASR 0000
026
END
001
000014
000019
000025
000000
A20200
000001
A20200
A21900
151100
END
MOV #0001 0000
021
One cycle ON
Set #0000 in the fields between D00000 and D02999
Executing
Condition
Network
communications
enabled
Online (n+11CH
bit 00)
Network
communications
enabled
Network
communication
error
Set #000B in D00000 (byte length of send data: 11)
Set #0008 in D00001 (byte length of receive data: 8)
Set #0001 in D00002
(destination network address: 01)
Set #05FE in D00003
(destination node address: 05,
destination unit No. address: FE)
Set #0000 in D00004
(response required, communication port No. 0, retry
number: 0)
Set #00C8 in D00005 (response monitoring time: 20
seconds)
Set #0001 in 0000CH
Command data of 11 bytes from D01000 is sent to
destination node address 05,
then the response data of 8 bytes is stored in D02000 of
the local node (D00000 is control data)
Shift one bit in 0000CH to left (000001: ON)
Store A203CH
(network communication response code) in D00006
Shift one bit in 0000CH to right,
retry on the next cycle (000000: ON)
Set #2801 in D01000
(Explicit command)
Set #0B10 in D01001
Set #009C in D01002
Set #0001 in D01003
Set #11FF in D01004
Set #0700 in D01005
(Command data)