103
Example of Sending Explicit Messages
Section 6-4
6-4
Example of Sending Explicit Messages
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.
Operation
• 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
M OV(021)
# 0013
D1120
M OV(021)
# 0013
D1121
M OV(021)
# 0000
D1122
M OV(021)
# 3FFE
D1123
M OV(021)
# 0000
D1124
M OV(021)
# 0064
D1125
A20011
A20200 1511 00
CMND(490 )
D1 020
D1 220
00 0100
D1120
ASL( 025)
0001
A20200
A219 00
MOV( 021)
A2 03
D 1126
0 00101
AS R(026)
0001
EN D(001)
0 00029
EN D
First Scan
Flag ON
Execution
condition
Network
Enabled
Flag
Online Flag
(Word n+11,
bit 00)
Execution
condition
Network
Enabled
Flag
Network
Execution
Error Flag
Sets 0013 in D1120.
(No. of command data bytes = 19)
Sets 0013 in D1121.
(No. of response data bytes = 19)
Sets 0000 in D1122.
(Destination network address = 00)
Sets 3FFE in D1123.
(Destination node address = 3F,
destination Unit address = FE)
Sets 0000 in D1124.
(Response required,
communications port No. = 0,
No. of retries = 0)
Sets 0064 in D1125.
(Response monitoring time = 10.0 s)
Sends 19 bytes of command data
from D1020 to the destination node
address 00, and stores 19 bytes of
response data in D1220 of the local
node. (D1120 or Controller)
Shifts the contents of CIO 0001 one
bit to the left. (CIO 000101 ON)
Stores A203 (network communications
response code) in D1126.
Shifts the contents of CIO 0001 one
bit to the right, and retries in next
cycle. (CIO 000100 ON).
PLC
DeviceNet Master Unit
(unit number 0, node address 04)
Using
CMND(490)
instruction
Explicit message
General Status Read
DeviceNet Communications Unit
(node address 09)
Summary of Contents for E5ZN-DRT
Page 3: ...iv ...
Page 5: ...vi ...
Page 9: ...x ...
Page 15: ...xvi EC Directives 6 ...
Page 83: ...68 Ladder Programming Examples Section 4 5 ...
Page 123: ...108 Sending Explicit Messages Section 6 5 ...
Page 135: ...120 Message Communications Characteristics Section 7 2 ...
Page 157: ...142 Index Unit status 57 85 user set allocations 43 61 V variable types C0 51 C1 51 C3 52 ...
Page 159: ...144 Revision History ...
Page 161: ...E5ZN DeviceNet Communications Unit Cat No H119 E1 01 OPERATION MANUAL ...