DeviceNet Slave Communication Module IFD9502
DVP-PLC Application Manual
12
Format of messages responded
Byte position
Data read from PLC
Data written into PLC
0
Frag [0]+XID+MAC ID
Frag [0]+XID+MAC ID
1
R/R [1]+Service code [0x32]
R/R [1]+Service code [0x33]
2 ~ 7
Response data
N/A
If error occurs during the communication, IFD9502 will send the error code to the master.
See the table below for the definitions of error codes.
Error code
Byte 1
Byte 2
Definition
0x08
0xFF
Service not supported (Invalid service code)
0x16
0xFF
Object polled does not exist (Illegal instance ID or class ID)
0x20
0x01
Communication instruction is illegal
0x20
0x02
The register address is illegal
0x20
0x03
The register No. in PLC exceeds the range
0x20
0x04
Cannot respond to the inquiry
0x20
0x07
IFD9502 and PLC communication error
4.
I/O data mapping (default)
z
PLC
→
DeviceNet master
Project
Start address of
I/O data mapping
Default length of
I/O data mapping
Max. Length of
I/O data mapping
Unit
Description
D408 (H’1198)
6
128
word
PLC
→
DeviceNet
M256 (H’0900)
10
256
bit
(M/8)+(D*2)<=Max
size (256 bytes)
z
DeviceNet
master
→
PLC
Project
Start address of
I/O data mapping
Default length of
I/O data mapping
Max. Length of
I/O data mapping
Unit
Description
D500 (H’11F4)
6
128
word
DeviceNet
→
PLC
M512 (H’0A00)
10
256
bit
(M/8)+(D*2)<=Max
size (256 bytes)
z
Explanation
When the equipment connected to IFD9502 is PLC, the length of data downloaded from
IFD9502 to PLC is preset as 7 words at addresses D500 ~ D505 and M512 ~ M521.
IFD9502 is able to download maximum 128 words to the word device D, T, and C and 256
bits to bit devices M, Y, and S in PLC, but the total data length downloaded to M and D
should be no more than 256 bytes. The length of data uploaded from the PLC to IFD9502 is
preset as 7 words at addresses D408 ~ D413 and M256 ~ M265. IFD9502 is able to be
uploaded maximum 128 words from the word device D, T, and C and 256 bits to bit devices
M, Y, and S in PLC but the total data length uploaded from M and D should be no more than
256 bytes.
The length of I/O data to be exchanged and address for mapping can be modified through
changing Class 0x97 as listed below. The modification will be valid after IFD9502 is
re-powered. Maximum 16 words are allowed for I/O data exchange.
If you are to return the I/O mapping to default setting, change Attribute1 of Instance1 of
Class 0x97 into H0001 and re-power IFD9502. Please note that doing so can only recover