APPENDICES
Appendix 4 Sample Programs when Using CC-Link
Appendix 4.3 Devices Used in Programs
App
- 14
9
PR
OC
ES
S
ING
T
IME
FOR RED
UNDA
NT
S
YSTEM
S
A
P
P
E
NDICE
S
INDE
X
Appendix 4.3 Devices Used in Programs
(1) CPU Module Devices
Device Nos. used in sample programs and their applications are shown in Table
App.10 and Table App.11.
(2) CC-Link Master/Local Module Devices
* 1: Indicates the device number on CPU side in (3) of this Section.
Table App.10 CPU Module Devices
Device Number
Application
Remarks
SM400
Always On
-
SM402
ON for 1 scan only after RUN
-
SM1515
Control system judgment flag
Control system: SM1515:ON,SM15165:OFF
Standby system: SM1515:OFF,SM1516:ON
SM1516
Standby system judgment flag
SM1518
Standby system to control system switching status
flag
-
SM1592
Enable manual system switching flag
OFF : Manual switching prohibited
ON
: Manual system switching enabled
M100
Enable control program execution flag
OFF : control program execution not possible
ON
: control program execution possible
M101
System switching execution flag
OFF : system switching must not be executed
ON
: system switching executed
M102
System B first startup system switching flag
OFF : system switching must not be executed
ON
: system switching executed
M202
SP.CONTSW instruction error flag
OFF : normal
ON
: error
M4531
During data link execution
OFF :Not executed data link
ON :During data link execution
D100-D107
Interrupt enable or interrupt disable (IMASK
instruction)
0: interrupt prohibited
1: interrupt enabled
SD1601
System switching condition
16: system switching instruction
SD1602
System switching instruction argument
Argument specified by SP.CONTSW instructions
I41
Pointer performed at STANDBY error
Switches the stand-by master station in CC-Link to
the master station
Table App.11 CC-Link Master/Local Module Devices
Device Number
*1
Application
Remarks
X40
Module error
OFF : Module normal
ON
: Module error
X41
Host data link status
OFF : Data link is stopped
ON
: Data linking in progress
X4F
Module ready
OFF : Operation not possible
ON
: Operation possible
SB40C
Forced master switching
OFF : Not requested
ON
: Requested
SB401
Refresh instruction at standby master switching
OFF : Not instructed
ON
: Instructed
SB442
Refresh instruction acknowledgment status at
standby master switching
OFF : Not executed
ON
: instruction acknowledged
SB443
Refresh instruction complete status at standby
master switching
OFF : Not executed
ON
: Switching complete
SB45A
Master switching request acknowledgment
OFF : Not acknowledged
ON
: Request acknowledged
SB45B
Master switching request complete
OFF : Not complete
ON
: Complete
SW443
Refresh instruction at standby master switching
result
0: Normal
Other than 0: Stores an error code