4-9
4 Data Exchange with the CPU Unit
CJ-series PROFIBUS Master Unit Operation Manual for NJ-series CPU Unit (W509)
4-2 Device Variables for CJ-series Unit (Software Switches, Statuses)
4
4-2-1 Software Switches (*_SwCmd)
One of the following Device Variables for CJ-series Unit is used to operate Software Switches from the
user program:
• WORD-type Device Variable for CJ-series Unit holding all switch functions contained in Software
Switches.
• BOOL-type Device Variable for CJ-series Unit separating functions per each switch contained in Soft-
ware Switches.
All the switches of Software Switches execute a function when changed to TRUE by the user (in any
CPU mode). The Unit will change the switch to FALSE after the command has been executed. All flags
are set to FALSE at Power-ON/Reset. The Unit state is not restored after a Power-Down of the Unit.
Note 1 If multiple bits (*_MstrOperateCmd, *_MstrStopCmd, *_MstrClearCmd, *_MstrOfflineCmd) are set simulta-
neously, the command is ignored. The bits are set to FALSE again and the mode command error flag in
Master Errors (*_MstrErrSta) word is set, see 4-2-5 Master Errors (*_MstrErrSta).
*_MstrHwErr BOOL R Bit 03: Hardware error
*_MstrMdCmdErr BOOL R Bit 12: Mode command error
*_MstrParamErr BOOL R Bit 13: Parameter error
*_SlvSta WORD R Slave Status (Section 4-2-6)
*_AllDatXchgSta BOOL R Bit 00: All slaves in data exchange mode
*_SlvDiagRcvSta BOOL R Bit 04: New slave diagnostics received
*_ActCycleTm WORD R Actual Bus Cycle Time
*_SlvDatXchg BOOL R Slave data exchange active flag
*_SlavDatXchgL LWORD R Slave data exchange active flags 0-63
*_SlavDatXchgH LWORD R Slave data exchange active flags 64-125
*_SlvNewDiag BOOL R Slave new diagnostics flags
*_SlavNewDiagL LWORD R Slave new diagnostics flags 0-63
*_SlavNewDiagH LWORD R Slave new diagnostics flags 64-125
4-2-1 Software Switches (*_SwCmd)
Name of Device Variable for CJ-
series Unit
Type R/W Description
*_SwCmd
15 14131211109876543210
*_MstrOperateCmd
*_MstrStopCmd
*_MstrClearCmd
*_MstrOineCmd
*_GlobCtlTxCmd
*_ClrNewDiagCmd