![background image](http://html1.mh-extra.com/html/omron/r88a-mcw151-drt-e/r88a-mcw151-drt-e_operation-manual_742243096.webp)
81
DeviceNet (MCW151-DRT-E only)
Section 4-2
Parameters
Service code (command, response)
In the command, 05 Hex is specified. In the response, the leftmost bit is
turned ON and 85 Hex is returned.
4-2-2-3
Sample Programs
Using the CMD(490)
instruction to read data
In the following example, the CMD(490) instruction is used to read data (one-
word format) from VR(200) to VR(203) (4 words) on the Slave Unit, and store
them to the Master (CS1 PCs) from D02000 onwards. For more information
on explicit messages, refer to the DeviceNet Master Unit Operation Manual or
for information on the CMD(490) instruction, refer to the PCs Operation Man-
ual.
Example Conditions
Master node address:
0
Slave network address: 1
Slave node address:
2
Example: Using CMD(490)
Command Words (S: First Command word)
D: Response Words (D: First Response Word)
Results are stored as shown in the following table.
Word
Contents (Hex)
Meaning
S
28 01
EXPLICIT MESSAGE SEND command
code: 28 01 Hex
S+1
02 34
Slave node address: 2
VR DATA READ (ONE-WORD FORMAT)
command service code: 34 Hex
S+2
00 8A
Class ID: 008A Hex
S+3
00 01
Instance ID: 0001 Hex
S+4
00 C8
Read start address VR(200): 00C8 Hex
S+5
00 04
Number of Table elements to write: 0004
Hex
Word
Contents (Hex)
Meaning
D
28 01
EXPLICIT MESSAGE SEND command
code: 28 01 Hex
D+1
00 00
Response code (0000 Hex: Normal com-
pletion)
D+2
00 0A
No. of received bytes (data length after
D02003): 10 bytes
D+3
02 B4
Slave node address: 2
VR DATA READ (ONE-WORD FORMAT)
response service code: B4 Hex
D+4
00 0F
Data read from the MC Unit’s VR(200).
One-word format: 15
D+5
00 BF
Data read from the MC Unit’s VR(201).
One-word format: 191
CMD
S
D
C