7-4
Section
Sample Program
103
leading address with the rightmost 2 digits (Data L) first and the leftmost 2 digits
(Data H) second, as shown in the following diagram.
Leading address
Leading a 1
Leading a 2
Write data
0
1
0
2
1
3
1
4
2
5
2
6
02
01
14
13
26
25
7-4
Sample Program
This operation reads 10 bytes (5 words) of data beginning at PT memory ad-
dress PM0100 in the Slave PT (DeviceNet Interface Unit’s node number: 01)
from the PC’s Master (DeviceNet Unit with node number 63).
The command used to read the data is the EXPLICIT MESSAGE SEND com-
mand (command code 2801 Hex).
The explicit message used is PT Memory Read (L
→
H). This explicit message
has the Service Code 33 Hex, Class ID 008A Hex, and Instance ID 0001 Hex.
The command and response data are stored in the PC’s DM Area with the com-
mand data beginning at DM 1000 and the response data beginning at DM 2000
(07D0 Hex).
[IOWR C
S
D]
C: DM0000
3FFE Hex Response required, destination node number
3F Hex (DeviceNet unit with node number 63),
destination unit address FE Hex
(Communications Unit)
S: 0: 8207 Hex Leading address for response: DM 2000
+1: D000 Hex (The contents of +0 and +1: 82 Hex: DM (Area
type), 07D0 Hex: 2000 (address))
+2: 0064 Hex Response monitoring time: 10 seconds
+3: 000B Hex Number of command data bytes: 11 bytes
+4: 2801 Hex Command code: 2801 Hex
(EXPLICIT MESSAGE SEND command)
+5: 0133 Hex Command
parameters
Destination node number 01,
service code 33 Hex (PT Memory
Read (L
→
H))
+6: 008A Hex Command
parameters
Destination Class ID: 008A Hex
+7: 0001 Hex Command
parameters
Destination Instance ID: 0001 Hex
+8: 6400 Hex Command
parameters
Leading PT memory address to
read: 0100
+9: 0A00 Hex Command
parameters
Number of bytes to read: 10 bytes
D: #0010
Destination unit number: 0 Hex,
Number of transfer words: 10 words (010 BCD)
Operation
IOWR Parameters