6-13
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
Additional Information
You can send explicit messages to OMRON slaves and DeviceNet devices made by other manu-
facturers 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.
z
Unit Settings
z
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-DRM21 in slot 0 of the
CPU Rack.
Device name of this unit
"DeviceNet"
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
Special Unit Setup
System setup data
Not required
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
DeviceNet_Online
Sta
BOOL
---
IOBus://rack#0/slot
#0/Unit2Sta/Online
Sta
Online Status
TRUE when the
Unit is online.
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: ......