Chapter 10 DeviceNet Master Scanner Module AS01DNET-A PLC Program S1 : The number of the module sending DeviceNet communication. The first one of the right side is 01. S2 : DeviceNet node ID (MAC ID); Node ID of VFD-C2000: 00. S3 : Service code; 0X10: read one single attribute content. S4 : Class ID; Class ID of CMC-DN01: 05. S5 : Instance ID; Instance ID of CMC-DN01: 01. S6 : Attribute ID; Attribute ID of CMC-DN01: 09. S7 : Write data size with the unit: Byte. The written-data size is 2 in this example. S8 : The start device where the written data are stored. S10 : Times of re-transmission. Times of re-sending communication when communication timeout occurs.
S9 : Communication timeout time. D1 : Completion flag. D2 : Error flag. D3 : Error code. D4 : Read data size. When DNETRW instruction is used to write data, the value in D4 can be set to any data. D5 : The start device where read data are stored. When DNETRW instruction is used to write data, the value in D5 can be set to any data. Program Explanation When M0 changes to ON, AS01DNET-A sends the request message and 000AHex is written to Class ID: 05>> Instance 1 >> Attribute ID: 09 of the target equipment with node ID: 01. If explicit message communication succeeds, the completion flag M1 changes to ON.
When M0 changes to ON, AS01DNET-A sends out the request message only once. If the request message is to be resent, the instruction DNETRW need be re-triggered. 10 10-35