6-11
6 Message Communications
CJ-series DeviceNet Units Operation Manual for NJ-series CPU Unit(W497)
6-2 Send
ing
E
x
plicit Messa
g
e
s
6
6-2-2 Sending Explicit Messages
Using Send
Cmd Instr
u
ctio
n
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
z
Example: Sending Explicit Messages Using SendCmd Instruction
6-2-2
Sending Explicit Messages Using SendCmd Instruction
Execution Condition _Port_isAvailable *_OnlineSta
Execute
DstNetAdr
CommPort
CmdDat
CmdSize
RespDat
Option
Done
Busy
Error
ErrorID
ErrorIDEx
RespDat
sample
SendCmd
Explicit message
DeviceNet Unit No. 0
Slave node 11
Node address 05
Unit address 10 Hex
NJ series CPU Unit
SendCmd
Summary of Contents for CJ1W-DRM21
Page 12: ...Manual Structure 10 CJ series DeviceNet Units Operation Manual for NJ series CPU Unit W497 ...
Page 42: ...Revision History 40 CJ series DeviceNet Units Operation Manual for NJ series CPU Unit W497 ...
Page 345: ...Index 1 CJ series DeviceNet Units Operation Manual for NJ series CPU Unit W497 I Index ...
Page 349: ......