Device Variables For Cj-Series Unit (Software Switches, Statuses); Software Switches 1 - Omron CJ1W-DRM21 Operation Manual

Machine automation controller cj-series, nj-series cpu unit
Hide thumbs Also See for CJ1W-DRM21:
Table of Contents

Advertisement

3-2
Device Variables for CJ-series Unit
(Software Switches, Statuses)
When you operate and reference software switches and statuses, use the following device variables for
CJ-series Unit allocated to the I/O port of this Unit.
Name of device variable for
CJ-series Unit
*_Sw1Cmd
*_Sw2Cmd
*_MstrCOSSendCmd
*_CnctCmd
*_Unit1Sta
*_Unit2Sta
*_Mstr1Sta
*_Mstr2Sta
*_Slav1Sta
*_Slav2Sta
*_RegSlavTblSta
*_NormSlavTblSta
*_CMstrSta
The function of each device variable for CJ-series Unit is explained below.
Described with variables names automatically created on the I/O Map View window.
3-2-1

Software Switches 1

Use one of the following device variables for CJ-series Unit is used to operate Software Switches 1 from
the user program:
• WORD-type device variable for CJ-series Unit holding all switch functions contained in Software
Switches 1
• BOOL-type device variable for CJ-series Unit separating functions per each switch contained in Soft-
ware Switches 1
All switches execute some functions when the user changes them to TRUE. They change to FALSE
automatically after the functions are executed.
Once a function is set by changing a switch to TRUE (except for the switches listed below), it is saved
regardless of whether the power is turned OFF and ON again.
• *_Sw1IOCommStartCmd (Remote I/O Communications Start Switch)
• *_Sw1IOCommStopCmd (Remote I/O Communications Stop Switch)
Note No functions other than the master and slave communications are disabled by stopping master
or slave communications.
If multiple switches are changed to TRUE simultaneously, the requests will generate errors and Unit
operation will remain unchanged.
The device variables for CJ-series Unit corresponding to the following words will change to TRUE if a
request made by a software switch ends in an error.
• *_Unit2Sta (Unit Status 2)
• *_Mstr1Sta (Master Status 1)
CJ-series DeviceNet Units Operation Manual for NJ-series CPU Unit(W497)
3 Data Exchange with the CPU Unit
Type
R/W
WORD
RW

Software Switches 1

WORD
RW
Software Switches 2
LWORD
RW
Master COS Send Switch
LWORD
RW
Disconnect/Connect Switches
WORD
R
Unit Status 1
WORD
R
Unit Status 2
WORD
R
Master Status 1
WORD
R
Master Status 2
WORD
R
Slave Status 1
WORD
R
Slave Status 2
LWORD
R
Registered Slave Table
LWORD
R
Normal Slave Table
WORD
R
C200H Master Replacement Master Status 1
Area
3-9
3

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents