EasyManua.ls Logo

Omron CJ1W-DRM21 - Page 201

Omron CJ1W-DRM21
350 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
6-13
6 Message Communications
CJ-series DeviceNet Units Operation Manual for NJ-series CPU Unit(W497)
6-2 Sending Explicit Messages
6
6-2-2 Sending Explicit Messages Using SendCmd Instruction
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.

Table of Contents

Related product manuals