![background image](http://html1.mh-extra.com/html/omron/cj1w-drm21/cj1w-drm21_operation-manual_742341200.webp)
6 Message Communications
6-12
CJ-series DeviceNet Units Operation Manual for NJ-series CPU Unit(W497)
z
Operation
Here, an example of reading the vendor code (OMRON vendor code: 002F hex) from the DeviceNet
slave (unit address: 16#10).
Input Variable
Function
Example Details
Execute
The operation SendCmd is executed when TRUE is set.
---
DstNetAdr
The destination network address is specified with the use of
the network address/node address/unit address.
Network address: 0
Node address: 0
Unit address: 16#10
CommPort
The destination port is specified.
NONE (Default)
CmdDat
Sdata[0]
Command code
16#28
Sdata[1]
16#01
Sdata[2]
Slave node address (11)
16#0B
Sdata[3]
ServiceCode
16#0E
Sdata[4]
ClassID
16#00
Sdata[5]
16#01
Sdata[6]
InstanceID
16#00
Sdata[7]
16#01
Sdata[8]
AttributeID
16#01
CmdSize
The number of bytes corresponding to the
command data to be sent is specified.
9
RespDat
Rdata[0]
Command code
16#28
Rdata[1]
16#01
Rdata[2]
End code
16#00
Rdata[3]
16#00
Rdata[4]
Number of bytes received
16#00
Rdata[5]
16#04
Rdata[6]
Slave node address (11)
16#0B
Rdata[7]
ServiceCode (when completed normally)
16#8E
Rdata[8]
Vendor code
16#2F
Rdata[9]
16#00
Option
Response monitoring, and number of resends, are specified.
ResponseTime = 20
Retry = 2
Execute
DstNetAdr
CommPort
CmdDat
CmdSize
RespDat
Option
Done
Sdata[0]
Sdata[1]
Sdata[7]
Command code
interpretation
Execution
Sdata[8]
Response
SendCmd
Busy
Error
ErrorID
ErrorIDEx
SendCmd
Rdata[0]
Rdata[1]
Rdata[8]
Rdata[9]
Command source
Destination
RespDat
Содержание CJ1W-DRM21
Страница 12: ...Manual Structure 10 CJ series DeviceNet Units Operation Manual for NJ series CPU Unit W497 ...
Страница 42: ...Revision History 40 CJ series DeviceNet Units Operation Manual for NJ series CPU Unit W497 ...
Страница 214: ...6 Message Communications 6 26 CJ series DeviceNet Units Operation Manual for NJ series CPU Unit W497 ...
Страница 345: ...Index 1 CJ series DeviceNet Units Operation Manual for NJ series CPU Unit W497 I Index ...
Страница 349: ......