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 Variables for CJ-series Unit (Software
Switches, Statuses)
3
3-6-1 Software Switches (*_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 3-6-1)
*_StartCommCmd BOOL RW Bit 00: Start communication
*_StopCommCmd BOOL RW Bit 01: Stop communication
*_SlvSta WORD R Status flags (see section 3-6-2)
*_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)
1514131211109876543210
*_SwCmd
*_StartCommCmd
*_StopCommCmd