6-5
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
Additional Information
You can send acyclic messages to OMRON slaves by setting the command code to 28 01.
In this case, set the response monitoring time to at least the value set for the message monitor-
ing timer (default: 2s). If it is set to less than the value, communications may be busy even if the
next command is executed after the first one times out.
Unit Settings
Program Example
System-defined variable
User-defined variables (Define before or when creating a program)
Device variables for CJ-series Unit (Create on the I/O Map View window after the unit configuration is
created)
Name
Setting target
Settings
Unit Configuration
CPU/Expansion Racks under
Controller Configurations and
Setup of Sysmac Studio
Mount CJ1W-PNT21 in slot 0 of the
CPU Rack.
Device name of this unit
"PNT21"
Unit number
Unit No. Switch and Unit Con-
figuration and Setup
(CPU/Expansion Racks under
Controller Configurations and
Setup of Sysmac Studio)
Unit number 0
Name
Data type
Default
Comments
Details
_Port_isAvailable
BOOL
---
Communications Port
Enabled Flags
TRUE when there are internal
logical ports available, FALSE
when there is no internal logical
port available.
Name
Data type
Default
Details
Trigger
BOOL
False
Execution conditions
OperatingEnd
BOOL
False
Process completed
Operating
BOOL
False
Processing
InDNetAdr
_sDNET_ADR
(NetNo := 0, NodeNo := 0,
UnitNo := 16#0)
Destination network
address
InOption
_sRESPONSE
(isNonResp := False, TimeOut :=
0, Retry := 0)
Response monitoring and
retry setting
Sdata
ARRAY[0..8] OF BYTE [9(16#0)]
Send data
Rdata
ARRAY[0..9] OF BYTE [10(16#0)]
Receive data
RS_instance
RS
---
---
SendCmd_instance
SendCmd
---
---
Name
Data type
Default
Allocated
address (AT)
Comments
Details
PNT21
_AllDatXc
hgSta
BOOL
---
IOBus://rack#0/slot
#0/IoDevSta/
All-
DatXchgSta
All IO Devices are
in Data Exchange
TRUE when the
Unit is receiving
valid input data
from all active IO
Devices allocated
to the controller.
Содержание 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 ...