3-21
3 Data Exchange with the CPU Unit
CJ-series DeviceNet Units Operation Manual for NJ-series CPU Unit(W497)
3-2 Device Variables for CJ-series Unit (Software
Switches, Statuses)
3
3-2-2 Software Switches 2 (n + 1CH)
Name of device variable for
CJ-series Unit
Type R/W Area Function
*_Sw2SlavAlocCmd BOOL RW Slave User
Allocations
Switch
<Operation specifications>
FALSE→TRUE:
Reads setting data from
*_SlavAlocTblCfg[0] to
*_SlavAlocTblCfg[5] (Slave User-set Allo-
cations Setup Table) and registers slave
user-set allocations. Once registered, the
Unit will operate with slave user-set allo-
cations until slave communications are
disabled (Slave Stop Switch is changed to
TRUE), regardless of whether the power is
turned OFF and back ON again.
Note Disable slave communications
before this switch is changed to
TRUE.
After the switch is changed to TRUE,
change *_Sw2SlavEnblCmd (Slave
Enable Switch) to TRUE to enable
User-set Allocations.
FALSE:
Returns to FALSE at the start of operation
for slave user-set allocations after they are
registered.
Note *_Slav1FunSetErr (Slave Function
Enable/Disable Failed) in Unit Status
2 will change to TRUE if there is a
setting error.
Default: FALSE
<Operation conditions>
• CPU Unit is operating in PROGRAM
mode.
• Slave function is stopped.
*_Sw2SlavCOSSendCmd BOOL RW Slave COS
Send
Switch
<Operation specifications>
FALSE→TRUE:
Sends COS input data to the master.
FALSE:
Returns to FALSE after transmission is
completed regardless of whether it was
completed normally or in error.
Default: FALSE