Example Of Sending Explicit Messages - Omron E5ZN-DRT Operation Manual

Devicenet communications unit for e5zn temperature controllers
Hide thumbs Also See for E5ZN-DRT:
Table of Contents

Advertisement

Example of Sending Explicit Messages

6-4

Example of Sending Explicit Messages

Operation
A20011
First Scan
Flag ON
000100
A20200
151100
Execution
Network
Online Flag
condition
Enabled
(Word n+11,
Flag
bit 00)
000101
A21900
A20200
Execution
Network
Network
condition
Enabled
Execution
Flag
Error Flag
000029
The following example shows when an explicit message is sent to the
DeviceNet Communications Unit from a CS1W-DRM21 Master Unit to read
general status information for the DeviceNet Communications Unit.
DeviceNet Master Unit
(unit number 0, node address 04)
PLC
Explicit message
General Status Read
DeviceNet Communications Unit
(node address 09)
• Reads the Unit status of the DeviceNet Communications Unit.
• Status information is read using the EXPLICIT MESSAGE SEND com-
mand (28 01).
• The information for the read results is as follows:
Temperature Controller Power Voltage Status Flag (bit 00) = 1 (Power
Sets 0013 in D1120.
MOV(021)
(No. of command data bytes = 19)
# 0013
D1120
MOV(021)
Sets 0013 in D1121.
(No. of response data bytes = 19)
# 0013
D1121
MOV(021)
Sets 0000 in D1122.
(Destination network address = 00)
# 0000
D1122
Sets 3FFE in D1123.
MOV(021)
(Destination node address = 3F,
# 3FFE
destination Unit address = FE)
D1123
MOV(021)
Sets 0000 in D1124.
(Response required,
# 0000
communications port No. = 0,
D1124
No. of retries = 0)
Sets 0064 in D1125.
MOV(021)
(Response monitoring time = 10.0 s)
# 0064
D1125
Sends 19 bytes of command data
CMND(490)
from D1020 to the destination node
D1020
address 00, and stores 19 bytes of
response data in D1220 of the local
D1220
node. (D1120 or Controller)
D1120
Shifts the contents of CIO 0001 one
ASL(025)
bit to the left. (CIO 000101 ON)
0001
Stores A203 (network communications
MOV(021)
response code) in D1126.
A203
D1126
Shifts the contents of CIO 0001 one
ASR(026)
bit to the right, and retries in next
0001
cycle. (CIO 000100 ON).
END(001)
END
Using
CMND(490)
instruction
Section 6-4
103

Advertisement

Table of Contents
loading

Table of Contents