Software Switches 2 (N + 1Ch) - 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 Data Exchange with the CPU Unit
3-2-2

Software Switches 2 (n + 1CH)

Use one of the following device variables for CJ-series Unit to operate Software Switches 2 from the
user program:
• WORD-type device variable for CJ-series Unit holding all switch functions contained in Software
Switches 2
• BOOL-type device variable for CJ-series Unit separating functions per each switch contained in Soft-
ware Switches 2
All switches are set to TRUE by the user. The Unit automatically changes them to FALSE after the
function is executed.
Once a function is set by changing the status to TRUE (except for the switches listed below), it is saved
regardless of whether the power is turned OFF and back ON again.
• *_Sw2SlavCOSSendCmd (Slave COS Send Switch)
• *_Sw2FileRestoreCmd (Unit Setup File Restore Switch)
• *_Sw2FileBkupCmd (Unit Setup File Backup Switch)
If multiple switches are changed to TRUE simultaneously, all requests will generate errors but they will
not alter Unit operation.
The error bits corresponding to the following words will change to TRUE if a request made by a
software switch ends in an error.
• *_Slav1Sta (Slave Status 1)
WORD-type device variables for CJ-series Unit holding all switch functions contained in Software
Switches 2 are shown below.
Name of device variable for
CJ-series Unit
*_Sw2Cmd
3-18
Type
R/W
Area
WORD
RW
Software
Switches 2
CJ-series DeviceNet Units Operation Manual for NJ-series CPU Unit(W497)
Function
Bits 0 to 05: Reserved by system
Bit 06: Slave Enable Switch
Bit 07: Slave Stop Switch
Bit 08: Slave Fixed Allocation Setting 1
Switch
Bit 09: Slave Fixed Allocation Setting 2
Switch
Bit 10: Slave Fixed Allocation Setting 3
Switch
Bit 11: Slave User Allocations Switch
Bit 12: Slave COS Send Switch
Bit 13: Reserved by system
Bit 14: Unit Setup File Restore Switch
Bit 15: Unit Setup File Backup Switch
Default: 16#0000

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents