![background image](http://html1.mh-extra.com/html/omron/e3x-drt21-s/e3x-drt21-s_user-manual_741345076.webp)
74
Sect
ion 3
Dev
ic
e
Net
Co
m
m
u
n
ic
at
io
n Se
tt
ings
E3X-DRT21-S
User’s Manual
Section 3
Explicit Message Communications
Example of Explicit Message Functions
An example of issuing Explicit messages using CS1W-DRM21 is shown below.
●
Operations
• It writes threshold values for the sensor (unit No. 1) connected to the communication
unit.
• Use the [Send Explicit Message] command (28 01) to read data.
• Command data is written starting at D01000 of the PC body, and the response data is
stored starting at D02000.
• When the command fails, the terminate code is stored in D00006, and then the same
send command is resent.
●
Command Details
[CMND S D C]
S 0 : 2801 Hex Command code
+1 : 0B10 Hex Communication unit node address 11, ServiceCode 10 Hex
+2 : 009C Hex ClassID 009C Hex
+3 : 0001 Hex InstanceID 0001 Hex
+4 : 11FF Hex AttributeID 11 Hex + write data lower byte FF Hex
+5 : 0700 Hex Write data upper byte 07 Hex
D D02000
+0
: Head CH number for response store
C 0 : 000B Hex Byte length of command data
+1 : 0008 Hex Byte length of response data
+2 : 0001 Hex Target (destination) network address 1
+3 : 05FE Hex Target (destination) node address: 5, target (destination)
unit No. address: FE Hex (10Hex is also acceptable)
+4 : 0000 Hex Response required, communication port No. 0, retry
number: 0 Hex
+5 : 00C8 Hex Response monitoring time: 20 seconds
●
Response
D 02000 +0 : 2801 Hex
+1 : 0000 Hex
+2 : 0002 Hex
+3 : 0B90 Hex Response source node address: 11 (0BHex), normal
completion: 90Hex
DeviceNet Unit, Unit Number 0
By CMNDcommand
PC
Node address OS
Unit No. address: FE Hex or 10Hex
Communication Unit
Node Address 11
Explicit Messages