EasyManua.ls Logo

Omron CJ1W-DRM21 - Page 200

Omron CJ1W-DRM21
350 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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

Table of Contents

Related product manuals