52
6-3 Programming Examples
This example explains the programming required to start the entire Control
System shown below only after all preparation-completed flags are turned
ON for both Subsystems. Using the following programming, any PC that is
not in RUN mode will be ignored and operations will continue for the other
PCs. The program is designed to start the System only if none of the PCs is
already running. The Control System consists of 15 PCs and 16
C500-LK009-V1 PC Link Units using 32 transfer bits each. Both polling units
are mounted to a C1000H PC. All other PC Link Units are mounted to C500
PCs in two Subsystems each consisting of seven PC Link Units.
Unit 0 Unit 1Unit 0 Unit 2 Unit 3 Unit 4 Unit 5 Unit 6 Unit 7
Unit 1 Unit 2 Unit 3 Unit 4 Unit 5 Unit 6 Unit 7
C500 PCs
C500 PCs
Level 0
Level 1
C1000H PCs
LR 0000 Level 0 START command bit
LR 3200 Level 1 START command bit
LR 0001 Preparation-completed flag for Units #0, level 0 and level 1
LR 0201 Preparation-completed flag for Unit #1, level 0
LR 0401 Preparation-completed flag for Unit #2, level 0
LR 0601 Preparation-completed flag for Unit #3, level 0
LR 0801 Preparation-completed flag for Unit #4, level 0
LR 1001 Preparation-completed flag for Unit #5, level 0
LR 1201 Preparation-completed flag for Unit #6, level 0
LR 1401 Preparation-completed flag for Unit #7, level 0
LR 1801 Preparation-completed flag for Unit #1, level 1
LR 2001 Preparation-completed flag for Unit #2, level 1
LR 2201 Preparation-completed flag for Unit #3, level 1
LR 2401 Preparation-completed flag for Unit #4, level 1
LR 2601 Preparation-completed flag for Unit #5, level 1
LR 2801 Preparation-completed flag for Unit #6, level 1
LR 3001 Preparation-completed flag for Unit #7, level 1
C1000H Write Bits
C500 Write Bits
Programming Examples Section 6-3