Omron CJ1W-DRM21 Operation Manual page 200

Machine automation controller cj-series, nj-series cpu unit
Hide thumbs Also See for CJ1W-DRM21:
Table of Contents

Advertisement

6 Message Communications
Operation
Here, an example of reading the vendor code (OMRON vendor code: 002F hex) from the DeviceNet
slave (unit address: 16#10).
SendCmd
Execute
DstNetAdr
CommPort
CmdDat
CmdSize
RespDat
Option
Input Variable
Execute
DstNetAdr
CommPort
CmdDat
CmdSize
RespDat
Option
6-12
Command source
Sdata[0]
Sdata[1]
Done
Sdata[7]
Busy
Sdata[8]
Error
ErrorID
ErrorIDEx
Rdata[0]
RespDat
Rdata[1]
Rdata[8]
Rdata[9]
Function
The operation SendCmd is executed when TRUE is set.
The destination network address is specified with the use of
the network address/node address/unit address.
The destination port is specified.
Sdata[0]
Command code
Sdata[1]
Sdata[2]
Slave node address (11)
Sdata[3]
ServiceCode
Sdata[4]
ClassID
Sdata[5]
Sdata[6]
InstanceID
Sdata[7]
Sdata[8]
AttributeID
The number of bytes corresponding to the
command data to be sent is specified.
Rdata[0]
Command code
Rdata[1]
Rdata[2]
End code
Rdata[3]
Rdata[4]
Number of bytes received
Rdata[5]
Rdata[6]
Slave node address (11)
Rdata[7]
ServiceCode (when completed normally)
Rdata[8]
Vendor code
Rdata[9]
Response monitoring, and number of resends, are specified.
CJ-series DeviceNet Units Operation Manual for NJ-series CPU Unit(W497)
Destination
Command code
interpretation
Execution
Example Details
---
Network address: 0
Node address: 0
Unit address: 16#10
NONE (Default)
16#28
16#01
16#0B
16#0E
16#00
16#01
16#00
16#01
16#01
9
16#28
16#01
16#00
16#00
16#00
16#04
16#0B
16#8E
16#2F
16#00
ResponseTime = 20
Retry = 2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents