43
Explicit Message Communications
Section 2-6
2-6-6
Using Explicit Messages: Example
The following example is for sending explicit messages using a CS1W-
DRM21 DeviceNet Unit.
Operation
• The threshold of the Sensor for unit number 1 connected to the Fiber
Amplifier Sensor Communication Unit is written.
• The EXPLICIT MESSAGE SEND (2801) command is used to read data.
• The command data is written starting at D01000 in the CPU Unit, and the
response data is stored starting at D02000.
• When a command is not executed properly, the end code is stored in
D00006, and the command is resent.
Command Details
[CMND
S
D
C]
S 0:
2801 Hex Command code
+ 1:
0B10 Hex Fiber Amplifier Sensor Communication Unit,
node address: 11, Service code: 10 Hex
+ 2:
009C Hex Class ID: 009C Hex
+ 3:
0001 Hex Instance ID: 0001 Hex
+ 4:
11FF Hex Attribute ID: 11 Hex
and write data in rightmost byte: FF Hex
+ 5:
0700 Hex Write data in leftmost byte: 07 Hex
D D02000:
First word where response stored
C 0:
000B Hex Number of command data bytes
+ 1:
0008 Hex Number of response data bytes
+ 2:
0001 Hex Destination network address: 1
+ 3:
05FE Hex Destination node address: 5
Destination unit address: FE Hex (or 10 Hex)
+ 4:
0000 Hex Response request,
communications port No.: 0, retries: 0 Hex
+ 5:
003C Hex Response monitoring time: 6 s
Response
D 0:
2801 Hex
+ 1:
0000 Hex
+ 2:
0002 Hex
+ 3:
0B90 Hex Response source node address: 11 (0B Hex)
Normal completion: 90 Hex
DeviceNet Unit, unit
number: 0
Node address: 05
Unit address: FE Hex or 10 Hex
CPU
Unit
CMND(490)
Fiber Amplifier Sensor
Communication Unit,
node address: 11
Explicit message
Содержание E3X-CIF11
Страница 3: ...iv...
Страница 21: ...10 Connecting Fiber Amplifier Units Section 1 3...
Страница 63: ...52 Setting Monitoring and Operating Sensors from the DeviceNet Configurator Section 2 7...
Страница 107: ...96 CompoWay F Message Communications Section 4 5...
Страница 125: ...114 Monitoring Incident Light Levels of E3X DA6 P Sensors Appendix B...
Страница 133: ...122 DeviceNet Connection Settings Appendix C...
Страница 135: ...124 DeviceNet Device Profile Appendix D...
Страница 137: ...126 Revision History...