Sending Explicit Messages Using Sendcmd Instruction - Omron CJ1W-DRM21 Operation Manual

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

Advertisement

6-2-2

Sending Explicit Messages Using SendCmd Instruction

The SendCmd (send command) instruction can be used in the CPU Unit user program of the CJ-series
DeviceNet Unit to send explicit messages.
The explicit message command data that contains the command code 2801 hex at its beginning is sent.
The explicit message response is received after the command code 2801 hex and the end code.
In a program that issues explicit messages, the following execution conditions are generally used based
on the AND gate:
1) Network Enabled Flag on the CPU Unit side
2) *_OnlineSta (Online Flag) or *_CMstrMsgEnblSta (Message Communications Permitted Flag) on the
DeviceNet Unit side
Execution Condition _Port_isAvailable *_OnlineSta
Example: Sending Explicit Messages Using SendCmd Instruction
CJ-series DeviceNet Units Operation Manual for NJ-series CPU Unit(W497)
NJ series CPU Unit
DeviceNet Unit No. 0
SendCmd
Node address 05
Unit address 10 Hex
Explicit message
6 Message Communications
sample
SendCmd
Execute
Done
DstNetAdr
Busy
CommPort
Error
CmdDat
ErrorID
CmdSize
ErrorIDEx
RespDat
RespDat
Option
Slave node 11
6
6-11

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents