4-11
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-2 Global-Control Command (*_GlobCtlCmd)
Note 1 When switching the PROFIBUS Master Unit from one mode to another, it will internally implement the
mode transition via the intermediate modes, e.g. from OFFLINE to OPERATE, will be performed as
OFFLINE - STOP - CLEAR - OPERATE. See 1-1-7 Network Operation Modes.
2 If two or more mode switches, i.e. *_MstrOperateCmd, *_MstrStopCmd, *_MstrClearCmd,
*_MstrOfflineCmd, have been set at the same time, or the Unit can not implement the mode change due to
an invalid configuration, the command will be ignored and the Mode command error flag in the Master
Errors word (*_MstrErrSta) will be TRUE. See 4-2-5 Master Errors (*_MstrErrSta).
3 If the PROFIBUS Master Unit is not in the correct mode, i.e. the Unit is in OFFLINE or STOP mode, the
Transmit Global-Control command will be ignored, but the bit will remain TRUE. The command will be sent
when the Unit transitions to the correct mode, unless the user clears the Bit. No error indication will be
generated.
One of the following Device Variables for CJ-series Unit is used to operate the Global-Control Com-
mand from the user program:
• WORD-type Device Variable for CJ-series Unit holding all switch functions contained in Global-Con-
trol Command.
• BOOL-type Device Variable for CJ-series Unit separating functions per each switch contained in
Global-Control Command.
A PROFIBUS Global-Control command can be transmitted by the Unit on user demand to either:
*_MstrOfflineCmd BOOL RW Switch master
to OFFLINE
mode
FALSEï‚®TRUE:
Switches the Unit to the OFFLINE mode. If the
Unit is already in this mode, no action will be
taken.
In the OFFLlNE mode the Unit will be discon-
nected from the network.
See Note 1 and 2.
FALSE:
If the PROFIBUS Master Unit has entered the
OFFLINE mode, the Unit will change this bit to
FALSE again.
*_GlobCtlTxCmd BOOL RW Transmit
Global-Control
command
FALSEï‚®TRUE:
Upon setting this switch the Unit will transmit
one Global-Control command over the network.
The contents of the message is defined in
*_GlobCtlCmd, see 4-2-2 Global-Control Com-
mand (*_GlobCtlCmd)
See Note 3.
FALSE:
The bit will be changed to FALSE if the Global-
Control command has been transmitted.
*_ClrNewDiagCmd BOOL RW Clear new
diagnostics bits
FALSEï‚®TRUE:
Upon setting this switch the Unit will clear all
new diagnostics bit in the Slave New Diagnos-
tics flags, see 4-2-9 Slave New Diagnostics
Flags (*_SlvNewDiagL, *_SlvNewDiagH,
*_SlvNewDiag).
These bits indicate reception of new slave diag-
nostics data.
Clearing the bit flags provides a clear indication
for new messages to arrive.
FALSE:
If the bit flags have been cleared, the Unit will
reset this bit to FALSE.
4-2-2 Global-Control Command (*_GlobCtlCmd)
Name of Device Variable for CJ-
series Unit
Type R/W Description Function