![Omron CJ1W-PRT21 Operation Manual Download Page 83](http://html1.mh-extra.com/html/omron/cj1w-prt21/cj1w-prt21_operation-manual_742353083.webp)
3-15
3 Data Exchange with the CPU Unit
CJ-series PROFIBUS Slave Unit Operation Manual for NJ-series CPU Unit (W510)
3-6
Device V
ariables
for C
J-series U
n
it (
S
of
tware
Switch
es, S
tat
uses)
3
3-
6-1 Sof
tware Sw
itches (*_SwCmd)
3-6
Device Variables for CJ-series Unit
(Software Switches, Statuses)
When you operate and reference the control and status area, use the following Device Variables allo-
cated to the I/O port of this Unit.
The PROFIBUS-DP communication status of CJ1W-PRT21 can be controlled through the first CIO
word (device variable
*_SwCmd
) allocated via the Machine No. setting. The communication status set
by these bits is retained until the Unit is restarted (Power-on or reset). After a restart, PROFIBUS-DP
communication is enabled by default.
Name of Device Variable for CJ-
series Unit
Type
R/W
Description
*_SwCmd
WORD
RW
Software Switches (see section
)
*_StartCommCmd
BOOL
RW
Bit 00: Start communication
*_StopCommCmd
BOOL
RW
Bit 01: Stop communication
*_SlvSta
WORD
R
Status flags (see section
*_DatXchgActSta
BOOL
R
Bit 00: Data exchange active
*_ClearSta
BOOL
R
Bit 01: CLEAR
*_FreezeSta
BOOL
R
Bit 02: FREEZE
*_SyncSta
BOOL
R
Bit 03: SYNC
*_WdtDsblSta
BOOL
R
Bit 04: Watchdog disabled
*_WdtTmBaseSta
BOOL
R
Bit 05: Watchdog timebase 1 ms
*_FailSafeEnblSta
BOOL
R
Bit 06: Fail-safe enabled
*_ParamErr
BOOL
R
Bit 08: Parameter/configuration error
*_StartAdrInErr
BOOL
R
Bit 12: Incorrect start address for slave input area
*_EndAdrInErr
BOOL
R
Bit 13: Incorrect end address for slave input area
*_StartAdrOutErr
BOOL
R
Bit 14: Incorrect start address for slave output area
*_EndAdrOutErr
BOOL
R
Bit 15: Incorrect end address for slave output area
3-6-1
Software Switches (*_SwCmd)
15 14 13 12 11 10
9
8
7
6
5
4
3
2
1
0
*_SwCmd
*_StartCommCmd
*_StopCommCmd