![background image](http://html.mh-extra.com/html/omron/cj1w-pnt21/cj1w-pnt21_operation-manuals_742351154.webp)
6-3
6 Message Communications
CJ-series PROFINET IO Controller Unit Operation Manual for NJ-series CPU Unit (W511)
6
-2 Sen
d
ing
Acyclic
Message
s Using
Send
Cmd
Ins
truct
ion
s
6
6-2
Sending Acyclic Messages Using
SendCmd Instructions
The SendCmd (send command) instruction can be used in the CPU Unit user program of the CJ-series
PROFINET Unit to send acyclic messages.
In a program that issues acyclic messages, the following execution conditions are generally used
based on the AND gate:
•
Network Enabled Flag on the CPU Unit side
•
*_AllDatXchgSta
; the PROFINET IO Controller Unit is receiving valid input data from all active IO
Devices allocated to the IO Controller
Below is an example of sending a Unit Maintenance Present Value Read command using the
EXPLICIT MESSAGE SEND command (2801). This example reads the alarm data of the connected
SmartSlice I/O Unit with the following system configuration:
•
PROFINET IO Controller Unit Device Number: 0
•
PROFINET IO Controller Unit number: 0
•
PROFINET IO Controller Unit address: 11 Hex
•
GRT1-PNT Communication Unit Device Number: 65 (192.168.0.65)
•
PROFINET Network Number: 2
Example of Sending Acyclic Messages Using SendCmd Instruction
Execution Condition _Port_isAvailable *_AllDatXchgSta
Execute
DstNetAdr
CommPort
CmdDat
CmdSize
RespDat
Option
Done
Busy
Error
ErrorID
ErrorIDEx
RespDat
sample
SendCmd
Explicit me
ssa
ge
CJ1W-PNT21 Unit No.: 0
GRT1-PRT Comm
u
nic
a
tion
Unit Device N
u
m
b
er: 65
CJ1W-PNT21 Device N
u
m
b
er: 0
CJ1W-PNT21 Unit
a
ddre
ss
: 11 Hex
NJ
s
erie
s
CPU Unit
S
endCmd
Содержание CJ1W-PNT21
Страница 3: ......
Страница 16: ...13 CJ series PROFINET IO Controller Unit Operation Manual for NJ series CPU Unit W511 ...
Страница 107: ...3 Configuration Software 3 36 CJ series PROFINET IO Controller Unit Operation Manual for NJ series CPU Unit W511 ...
Страница 198: ...Index 1 CJ series PROFIBUS Master Unit Operation Manual for NJ series CPU Unit W509 I Index ...