Omron E3X-DRT21 Operation Manual page 55

Fiber amplifier sensor communication units
Table of Contents

Advertisement

Explicit Message Communications
Ladder Program Example
A20011
000000
First
Cycle
Flag
Execute
conditions
000000
A20200
000014
Network
Communications
Enabled Flag
000001
A20200
000019
Network
Communications
Enabled Flag
000025
44
071
BSET #0000 D00000 D02999
MOV #2801 D01000
151100
490
CMND D01000 D02000 D00000
Online status
(word n + 1,
bit 00)
A21900
Network
Communications
Error Flag
#0000 set in D00000 to D02999.
021
#000B set in D00000 (send data bytes: 11).
MOV #000B D00000
021
#0008 set in D00001 (receive data bytes: 8).
MOV #0008 D00001
021
#0001 set in D00002 (destination network address: 01)
MOV #0001 D00002
021
#05FE set in D00003 (destination node address: 05,
MOV #05FE D00003
destination unit address: FE)
021
#0000 set in D00004 (response required,
MOV #0000 D00004
communications port No.: 0, retries: 0).
021
MOV #003C D00005
#003C set in D00005 (response monitoring time: 6 s)
021
#2801 set in D01000
(explicit command).
021
#0B10 set in D01001.
MOV #0B10 D01001
021
#009C set in D01002.
MOV #009C D01002
021
#0001 set in D01003.
MOV #0001 D01003
021
MOV #11FF D01004
#11FF set in D01004.
021
#0700 set in D01005.
MOV #0700 D01005
021
#0001 set in CIO 0000.
MOV #0001 0000
11 bytes of command data is sent from D01000 to
destination node address 05, and 8 bytes of response
data is stored in D02000 of the local node. (D00000 is
control data).
025
Contents of CIO 0000 is shifted one bit to the left. (CIO
ASL 0000
000001 turns ON)
021
MOV A203
D00006
A203 (Network Communications Response Code) is
stored in D00006.
026
Contents of CIO 0000 is shifted one bit to the right and
ASR 0000
retry executed in next cycle. (CIO 000000 turns ON).
001
END
END
Section 2-6
Command data

Advertisement

Table of Contents
loading

This manual is also suitable for:

E3x-srt21E3x-cif11

Table of Contents