Escolar Documentos
Profissional Documentos
Cultura Documentos
Redundancy System
GLOFA-GM GMR-CPUA
GMR-CPUB
LG Industrial Systems
SAFETY PRECAUTIONS
► Read this manual thoroughly before using LGIS equipment. Also, pay
careful attention to safety and handle the module properly.
► Safety precautions are for using the product safely and correctly in order to
prevent the accidents and danger, so make sure to follow all directions in
safety precautions.
► The precautions are divided into 2 sections, ‘Warning’ and ‘Caution’. Each
of the meaning is represented as follows
► The symbols which are indicated in the PLC and User’s Manual mean as
follows;
► Store this manual in a safe place so that you can take it out and read it
whenever necessary. Always forward it to the end user.
SAFETY PRECAUTIONS
Design Precautions
Warning
Install a safety circuit external to the PLC that keeps the entire system
safe even when there are problems with the external power supply or
the PLC module. Otherwise, serious trouble could result from
erroneous output or erroneous operation.
- Outside the PLC, construct mechanical damage preventing interlock
circuits such as emergency stop, protective circuits, positioning upper
and lower limits switches and interlocking forward/reverse operation.
When the PLC detects the following problems, it will stop calculation and
turn off all output in the case of watchdog timer error, module interface
error, or other hardware errors.
However, one or more outputs could be turned on when there are
problems that the PLC CPU cannot detect, such as malfunction of output
device (relay, transistor, etc.) itself or I/O controller. Build a fail safe
circuit exterior to the PLC that will make sure the equipment operates
safely at such times. Also, build an external monitoring circuit that will
monitor any single outputs that could cause serious trouble.
Make sure all external load connected to output does NOT exceed the
rating of output module.
Overcurrent exceeding the rating of output module could cause fire, damage
or erroneous operation.
Build a circuit that turns on the external power supply when the PLC
main module power is turned on.
If the external power supply is turned on first, it could result in erroneous
output or erroneous operation.
SAFETY PRECAUTIONS
Design Precautions
Caution
Do not bunch the control wires or communication cables with the main
circuit or power wires, or install them close to each other. They should
be installed 100mm (3.94inch) or more from each other.
Not doing so could result in noise that would cause erroneous operation.
Installation Precautions
Caution
Use the PLC in an environment that meets the general specification
contained in this manual or datasheet.
Using the PLC in an environment outside the range of the general
specifications could result in electric shock, fire, erroneous operation, and
damage to or deterioration of the product.
Completely turn off the power supply before loading or unloading the
module.
Not doing so could result in electric shock or damage to the product.
Warning
Completely turn off the external power supply when installing or
placing wiring.
Not doing so could cause electric shock or damage to the product.
Caution
Be sure that wiring is done correctly be checking the product’s rated
voltage and the terminal layout.
Incorrect wiring could result in fire, damage, or erroneous operation.
Switch all phases of the external power supply off when cleaning the
module or retightening the terminal or module mounting screws.
Not doing so could result in electric shock or erroneous operation.
Caution
Do not disassemble or modify the modules.
Doing so could cause trouble, erroneous operation, injury, or fire.
Switch all phases of the external power supply off before mounting or
removing the module.
Not doing so could cause failure or malfunction of the module.
Use a cellular phone or walky-talky more than 30cm (11.81 inch) away
from the PLC
Not doing so can cause a malfunction.
Disposal Precaution
Caution
When disposing of this product, treat it as industrial waste.
Not doing so could cause poisonous pollution or explosion.
Revision History
• User’s Manual No. is inscribed on the right bottom side of the back cover.
INDEX
Chapter 1. Introduction
This User’s Manual describes the performance specification and operation of GLOFA redundant
system including GMR-CPUA. It also describes some communication structure and redundant use of
special module, and etc.
This manual provides the specification of CPU module, Power Module, Input/Output Module,
Basic/Extended Base, Interface Module, and Interrupt Module applied to base system and refers to the
following items and user’s manuals.
For detailed special and communication module, refer to the related user’s manual and technical data.
1-1
Chapter 1. Introduction
1.2 Precautions
Take precautions to the followings for reliability and safety of system when installing this machine.
y In high temperature, install fan and air conditioner but install heater to keep
Remedy
proper temperature, if low,
1-2
Chapter 1. Introduction
Each module combined into opera table system (Basic Unit, Extended
2 Unit
Unit.
When starting in Cold, Warm or Hot Restart mode, used to set system
8 Initialization Program defaults prior to task program running or run scan and task programs
after the object could be controlled.
Input/Output Image Memory space in PLC having input module contacts to be output and
10
Space contacts to be output as a result of processing.
Instruction, operation Program operation unit; general term of operator, function and function
11
unit block such as LD(LOAD),AND,OR,ST(STORE).
Operation unit immediately output the result of operation without
12 FN:Function memorizing it in memory such as +/-/x/ ÷ operation and comparative
operation. Also called Function.
Operation unit with the result of operation in memory and used over
13 FB:Function block
several scans. Also called Function Block.
1-3
Chapter 1. Introduction
1-4
Chapter 2. System Characteristics
This section provides how to establish redundant system in several types required by various
application fields.
2-1
Chapter 2. System Characteristics
(6) Enables long data type (64Bit) and real number operation.
2-2
Chapter 3. Redundant System Construction
Redundant CPU system can be realized through connecting two CPU systems to redundant base
as shown in the following figure. That is to say, if an error of master occurred during operation, GMR-B
automatically becomes master and continues operation. After a failure of GMR-A recovered, user can
switch the master to GMR-A using program tool and key switch.
GMR-A GMR-B
0 1 0 1
P C C P
O I I P D P I I O
W / / U I U / / W
E F F F F F E
R A B R
(Redundant Basic Base)
GMR-A GMR-B
0 1 2 3 0 1 2 3
P C C P
O I I I I P D P I I I I O
W / / / / U I U / / / / W
E F F F F F F F F F E
R A B R
(Extended Redundant Basic Base)
* Enables Distributed Control System to be configured with Communication Module mounted at I/F
Module mounting place.
* In Redundant Base, Redundant CPU is located at left and right with the center of DIF Module. (Both
of CPU O/S versions should be the same.) It should have the same kinds of module at position 0, 1,
2 and 3 of GMR-A and position 0, 1, 2 and 3 of GMR-B as shown in [Fig. 3.1].
In other words , If G3L-EUEA(Enet) module mounted at slot 0 of GMR-A, G3L-EUEA(Enet) module
should be also mounted at slot 0 of GMR-B.
3-1
Chapter 3. Redundant System Construction
Input/Output depends on user’s selection and can be used as Redundant I/O, Switched I/O, One-
sided I/O, and its combination according to parameter setting.
I I I I I I I I I I
P P
/ / / / / / / / / /
W W
R R O O O O O O O O F F
3-2
Chapter 3. Redundant System Construction
Redun. Base
P P
O I I C D C I I O
W / / P I P / / W
E F F U F U F F E
R A B R
Redundant Input/
Output A Redundant Input/Output B
중복 입출력 A Switc I/O 중복 입출력 B
P P P
O I I I I I I I I I O I I I I I I I I I I O I I I I I I I I I
W / / / / / / / / / W / / / / / / / / / / W / / / / / / / / /
E 0 0 0 0 0 0 0 0 F E 0 0 0 0 0 0 0 0 F F E 0 0 0 0 0 0 0 0 F
R R R
Sensor
센서
부 하
Load
3-3
Chapter 3. Redundant System Construction
Set each base to ‘One-sided I/O’ and this structure is used when no backup required, saving costs of
entire redundancy.
Remarks
The following shows the example of Redundant I/O, Switched I/O, One-sided I/O, and combined structure.
‘Switched I/O #1’ is used for switched I/O and ‘switched I/O #2’ for Redundant I/O.
Redundant Base
P P
O I I C D C I I O
W / / P I P / / W
E F F U F U F F E
R A B R
Switched I/O #1
P
O I I I I I I I I I I
W / / / / / / / / / /
E 0 0 0 0 0 0 0 0 F F
R
Switched I/O #2
P
O I I I I I I I I I I
W / / / / / / / / / /
E 0 0 0 0 0 0 0 0 F F
R
P P
O I I I I I I I I I O I I I I I I I I I
W / / / / / / / / / W / / / / / / / / /
E 0 0 0 0 0 0 0 0 F E 0 0 0 0 0 0 0 0 F
R R
One-sided I/O
P
O I I I I I I I I I
W / / / / / / / / /
E 0 0 0 0 0 0 0 0 F
R
[Fig. 3.4] Example Combined with Switched, Redundant, and One-sided I/O
3-4
Chapter 3. Redundant System Construction
This connects Switched Base Unit and Redundant Base Unit to CPU Redundant Unit using Extended Cable.
0 1 2 3 0 1 2 3
Redundant P P
Basic 이중화 O I I I I C D C I I I I O
W / / / / P I P / / / / W
I/O #0기본베이스
#0
E F F F F U F U F F F F E
R A B R
SLOT 0 1 2 3 4 5 6 7
x 32
x 16
Switched x 8
P P x 4
Base O O H R I I I I I I I I x 2
전환입출력 S T / / / / / / / /
I/O #1
베이스 W W x 1
E E C D O O O O O O F F
#1 R R
Base번호
베이스 No
SLOT 0 1 2 3 4 5 6 7
Switched P P
Base전환입출력 O O H R I I I I I I I I
베이스 W W S T / / / / / / / /
I/O #2
#2 E E C D O O O O O O F F
R R
SLOT 0 1 2 3 4 5 6 7 SLOT 0 1 2 3 4 5 6 7
Redundant Redunda-
P P
Base중복입출력 O I I I I I I I I I nt Base
중복입출력
O I I I I I I I I I
베이스(A) / / / / / / / / / 베이스(B) / / / / / / / / /
I/O(A) W W
#3 #3 E O O O O O O O O F I/O(A)
#3 #3 E O O O O O O O O F
R R
증설 베이스 8 슬롯
SLOT 0 1 2 3 4 5 6 7 SLOT 0 1 2 3 4 5 6 7
Redundant Redunda-
Base 중복입출력 P nt Base
중복입출력 P
I I I I I I I I I I I I I I I I I I
I/O(A)베이스(A)
#4 O
/ / / / / / / / /
베이스(B)
I/O(A) #4 O
/ / / / / / / / /
#4 W F #4 W F
E O O O O O O O O E O O O O O O O O
R R
3-5
Chapter 3. Redundant System Construction
Indicates the number of slot at which I/O module mounted between 0 and 7.
Remarks
• Corresponding two contacts of Redundant Base have the same address.
• It is regarded as one contact in programming.
Slot Number: 0 1 2 3 4 5 6 7 0 1 2 3
P I I I I O O O O I O O O I
W N N N N U U U U N U U U /
R 16 16 32 64 T T T T 32 T T T F
16 32 32 64 16 32 32
%QX 3.3.0 ~ 31
%QX 3.2.0 ~ 31
%QX 3.1.0 ~ 15
%IX 3.0.0 ~ 31
%QX 2.7.0 ~ 63
%QX 2.6.0 ~ 31
%QX 2.5.0 ~ 31
%QX 2.4.0 ~ 15
%IX 2.3.0 ~ 63
%IX 2.2.0 ~ 31
%IX 2.1.0 ~ 15
%IX 2.0.0 ~ 15
3-6
Chapter 3. Redundant System Construction
Remarks
• Basic Base is assigned with Redundant Basic Base set to ‘0’ and the other extended bases set in accordance
with Dip switch (mounted at Interface Module) of Extended Unit.
• Never assign the same base number in Dip Switch Setting of Extended Base.
• 12-slot extended base is assigned with two base numbers. Dip Switch shall be even number. (If setting to No.
2, No. 2 and 3 bases will be occupied.)
• If 4-slot, 6-slot, and 12-slot type bases used, the total number of mounting module will be decreased.
3-7
Chapter 4. Configuration and Products Table
4.1 Configuration
Redundant
I/F
Memory module
module
Communi
-cation
module
Power module
Fuse
Basic base
Input
module
Extended base
Output
module
Spec
ial
module
4-1
Chapter 4. Configuration and Products Table
4-2
Chapter 4. Configuration and Products Table
4-3
Chapter 4. Configuration and Products Table
4-4
Chapter 4. Configuration and Products Table
4-5
Chapter 5. Product Specifications
1 Operating 0 ~ 55℃
Temp.
2 Storage -25 ~ 70℃
Temp.
3 Operating 5 ~ 95%RH, non-condensing
Moist.
4 Storage 5 ~ 95%RH, non-condensing
Moist.
For discontinuous vibration
Frequency Acceleration Amplitude Number
10≤f∠57 Hz - 0.075mm
Vibration 57 ≤f≤150 Hz 9.8m/s2(1G) -
5 IEC 61131-2
proof For continuous vibration Each 10 times in
X, Y, Z
Frequency Acceleration Amplitude direction
10≤f∠57 Hz - 0.035mm
2
57≤f≤150 Hz 4.9m/s (0.5G) -
• Max. impact acceleration : 147m/s2(15G)
6 Impact proof • Authorized time : 11ms IEC 61131-2
• Pulse wave : Sign half-wave pulse(each 3 times in X, Y, Z
3 direction)
Test spec.
Square wave impulse ±1,500 V reference within
noise LGIS
Static electric Voltage :4kV(Contact discharging) IEC 61131-2
discharging IEC 1000-4-2
Radiation electro- 27 ~ 500 MHz, 10V/m IEC 61131-2
7 Noise proof magnetic field noise IEC 1000-4-3
Digital I/O
(24Vor less)
Power Digital I/O Analogue
Fast transient/burst Segment Module (24V more) Input/Output IEC 61131-2
noise Communication IEC 1000-4-4
Interface
Voltage 2kV 1kV 0.25kV
8 Ambient No corrosive gas and dust
conditions
9 Operating 2,000m or less
height
10 Pollution level 2 or less
11 Cooling type Natural air cooling
Remark
1) IEC(International Electro-technical Commission)
: International Electro-technical Commission, International non-governmental organization enacting international
standards of electric and electronic fields.
2) Pollution
: Index indicating the pollution of operating environment to determine the insulation capacity of equipment. Pollution
Grade 2 means when only non-conductive pollution normally occurred. But, temporary conduction can be occurred due
to condensing.
5-1
Chapter 5. Product Specifications
LD (Ladder Diagram)
Program Language IL (Instruction List)
SFC (Sequential Function Chart)
5-2
Chapter 5. Product Specifications
Performance Specifications
Item Remark
GMR-CPUA GMR-CPUB
Communication
Communication module redundancy, cable redundancy
Redundancy
5-3
Chapter 5. Product Specifications
5-4
Chapter 5. Product Specifications
∗1
LED Display 7-Segment Operation
RUN STOP REMOTE ERROR FAIL Status Mode
∗2
Mode Key Position Operation Mode
STOP → REM Remote Stop
REM → RUN Local Run
RUN → REM Remote Run
REM → STOP Local Stop
Remarks
∗ Remote Mode Change (By GMWIN or Communication) is enabled only when Mode Key set to ‘REM’
Remote (Refers to ‘6.2.4 How to change program run mode’)
Within 5 seconds ‘rSt’ is displayed in 7-Segment and restarted in Cold or Warm mode
(Press→Release) as setting parameter
More than 5 seconds ‘rSt c’ is displayed in 7-Segment and restarted in Cold mode
(Press→Release) unconditionally when switch released.
5-5
Chapter 5. Product Specifications
Item Specification
Rated Voltage DC 3.0 V
Warranty period 5 years
Usage User program and data backup, RTC operation in a power failure
Specification Lithium 3V, CR1/2AA, VARTA
Remarks
∗ Warranty period and back-up time due to a power failure can be varied as operating temperature.
5-6
Chapter 5. Product Specifications
5-7
Chapter 5. Product Specifications
(1) GMR−B02M
Redundant IF
Module
connect/disconnect
cable connector
Power
Module
Connector
* There are ‘Interface Driver and Communication Module Mounting Slot’ set to 2 slot (See Above
Figure) and Extended(4-slot:GMR-B04M) in redundant base.
(2) GMR-B04M
5-8
Chapter 5. Product Specifications
Slot No. 0 1 2 3 4 5 6 7
I/O/Communic
I/O/Communic
I/O/Communic
I/O/Communic
GMR-B08E
I/O Module
I/O Module
I/O Module
I/O Module
I/F(FRIC)
I/F(FRIC)
PWR
PWR
ation
ation
ation
ation
Slot No. 0 1 2 3 4 5 6 7 0 1 2 3
GMR-B12E
I/O Module
I/O Module
I/O Module
I/O Module
I/O Module
I/O Module
I/O Module
I/O Module
I/O Module
I/O Module
I/O Module
I/O Module
I/F (FRIC)
I/F (FRIC)
PWR
PWR
I/O Module: Digital I/O Module, Special Module(Position Control Module Diavailable), Interrupt Module
I/O, Communication: Computer Communication(Cnet) Module can be mounted in Slot 0 through 3 of
the first Switched Base with Base No. set to 1.(Disabled in 12-slot type base)
12-slot base operates with the same of that attached with 2 bases(Slot 0 through 7 are designated
with the number set in Interface and next Slot 0 through 3 recognized as Slot 0 through 3 of the next
base number.
Slot No. 0 1 2 3 4 5 6 7
GM2-B08E
I/O Module
I/O Module
I/O Module
I/O Module
I/O Module
I/O Module
I/O Module
I/O Module
I/F(FRIC)
I/F(FRIC)
PWR
GM2-B06E
I/O Module
I/O Module
I/O Module
I/O Module
I/O Module
I/O Module
I/F(FRIC)
I/F(FRIC)
PWR
I/O Module
I/O Module
I/O Module
I/O Module
I/O(I/F)
I/F(FRIC)
Slot No. 0 1 2 3 4 5 6 7 0 1 2 3
GM2-B12E
I/O Module
I/O Module
I/O Module
I/O Module
I/O Module
I/O Module
I/O Module
I/O Module
I/O Module
I/O Module
I/F(FRIC)
I/F(FRIC)
I/O Module
I/O Module
PWR
5-9
Chapter 5. Product Specifications
2) Type
• There are 4 types of GMR-PA1A, GMR-PA2A, GMR-PA1B, GMR-PA2B as operating Input Power
Voltage and Output Power/Voltage.
• For detailed, refer to ‘5.3 Power Module’.
5-10
Chapter 5. Product Specifications
Remarks
∗1 : Overcurrent Protection
y If applied with the current exceeding the specification in DC 5V, DC24V circuit, overcurrent protection
device shuts off the circuit and makes the system stopped.
y If this device operated, remove the cause of lack in current capacity, short, and etc. and then restart
the system.
y If system doesn’t operate with LED exhausted, it is necessary to replace the power module.
5-11
Chapter 5. Product Specifications
(Unit:mA)
Config. Name Consumption Current Config. Name Consumption Current
GMR-CPUA G3Q-SS2A 370
1,200
GMR-CPUB G3Q-SS4A 690
GMR-DIFA 250 G3F-INTA 190
GM2-FDIA 630 G3F-AD4A 670
GM2-FRIA 670 G3F-AD4B 540
GM2-FRIB 690 G3F-AD3A 610
G3I-D22A 70 G3F-DA4V 200
G3I-D22C 70 G3F-DA4I 200
G3I-D24A 140 G3F-DA3V 600
G3I-D28A 150 G3F-DA3I 70
G3I-A12A 70 G3F-TC4A 350
G3I-A14A 140 G3F-RD3A 440
G3I-A22A 70 G3F-PIDA 200
G3I-A24A 140 G3F-AT4A 240
G3Q-RY2A 110 G3F-HSCA 300
G3Q-RY4A 220 G3L-CUEA 150
G3Q-TR2A 120 G3L-FUEA 170
G3Q-TR4A 220 G3L-FUOA 130
G3Q-TR4B 200 G3L-RBEA 160
G3Q-TR8A 300 G3L-RBOA 170
G3Q-TR8B 280 G3L-EUEA 290
5-12
Chapter 5. Product Specifications
PWR
Power LED : DC5V Power Display LED
5-13
Chapter 5. Product Specifications
In Redundant System Configuration, there are some limitations when using special module. See the
following to match with system configuration.
2) Switched Base:
• Special Module: Any Modules excepting Position Control(G3F-POPA, G3F-POAA, and etc.) and
Communication Module (But, Slot 0 through 3 set as No. 1 of 8-slot type switched bases can be
mounted with Computer Communication Module).
3) Redundant Base:
• Special Module: A/D Module, D/A Module, TC Input Module, RTD Input Module
- If receiving redundant ‘A/D Input Module’ in a sensor, only Circuit configuration for voltage
input can be used.
- If using redundant ‘D/A output Module’ as a package, only 16 Channel Voltage Output Type
Module can be used.
- TC, RTD module should be installed with two sensors respectively.
• Digital I/O: ‘DC Input Module’ and ‘TR Source Output Module’ are recommended to be used.
(See ‘Chapter 10 Input Triplex, Output redundancy’)
5-14
Chapter 5. Product Specifications
This describes I/O Module and Interrupt Module used commonly in GLOFA PLC GMR GM1, GM2,
and GM3.
Open/Close
5-15
Chapter 5. Product Specifications
Circuit External
Configuration Connection
Diagram
Inside Circuit
DC In
DC In
Terminal No
5-16
Chapter 5. Product Specifications
Circuit External
Configuration Connection
Diagram
DC
In
Inside Circuit
Terminal No
DC In
5-17
Chapter 5. Product Specifications
Circuit External
Configuration Connection
Diagram
Terminal No
Inside Circuit
Terminal No
5-18
Chapter 5. Product Specifications
Circuit External
Configuration Connection
Diagram
Inside
Circuit
Inside
Circuit
DC In DC In
5-19
Chapter 5. Product Specifications
Circuit External
Configuration Connection
Diagram
Inside
Circuit
AC110V
IN
AC110V
IN
AC110V
IN
Terminal
No
5-20
Chapter 5. Product Specifications
Circuit External
Configuration Connection
Diagram
AC110V
IN
Inside
Circuit
AC110v
IN
AC110v
IN
Terminal No
5-21
Chapter 5. Product Specifications
Circuit External
Configuration Connection
Diagram
Inside Circuit
AC110v
IN
AC110v
IN
AC110v
IN
Terminal No
5-22
Chapter 5. Product Specifications
Circuit External
Configuration Connection
Diagram
Inside
Circuit
Terminal No
5-23
Chapter 5. Product Specifications
Circuit External
Configuration Connection
Diagram
External Load
Inside Circuit
Terminal No
5-24
Chapter 5. Product Specifications
Circuit External
Configuration Connection
Diagram
External load
Inside Circuit
Terminal No
5-25
Chapter 5. Product Specifications
Circuit External
Configuration Connection
Diagram
External Load
Inside Circuit
External Load
Terminal
No
5-26
Chapter 5. Product Specifications
Circuit External
Configuration Connection
Diagram
External Load
Inside
Circuit
External Load
Terminal No
5-27
Chapter 5. Product Specifications
Circuit External
Configuration Connection
Diagram
Terminal No
External
load
Inside
Circuit
Terminal No
5-28
Chapter 5. Product Specifications
Circuit External
Configuration Connection
Diagram
External
Load
Inside
Circuit
5-29
Chapter 5. Product Specifications
Circuit External
Configuration Connection
Diagram
Pin NO
Inside
Circuit
5-30
Chapter 5. Product Specifications
Circuit External
Configuration Connection
Diagram
External Load
Terminal
No
5-31
Chapter 5. Product Specifications
Circuit External
Configuration Connection
Diagram
External load
Terminal No
5-32
Chapter 5. Product Specifications
Circuit External
Configuration Connection
Diagram
Inside
Circuit
Terminal No
5-33
Chapter 5. Product Specifications
P C
W P I/O D
R U CH0
Extended Base #1 CH1 Extended Base #5
P P
W I/O R1 W I/O R5
R R
P P
W I/O R2 W I/O R6
R R
P P
W I/O R3 W I/O R7
R R
Extended Base #4 Extended Base #8
P P
W I/O R4 W I/O R8
R R
5-34
Chapter 5. Product Specifications
CH1 CH1 ON/OFF : Turns On/Off the extended base connected to CH1.
CH2 CH2 ON/OFF Switch: Turns On/Off the extended base connected to
Ch2.
The channel without extended cable should be mounted with Termination Resistance Module with
On/Off switch set to Off.
5-35
Chapter 5. Product Specifications
If not installed with Extended Cable at OUT of Final Base, set END switch to Y and mount the
terminal resistance at OUT.
Base number can be set between 1 and 15.
If mounting to 12-slot base, base number is set to even number(See page. 3.3.1).
5-36
Chapter 5. Product Specifications
(1) Structure
CH0
P C
W P I/O D
R U
CH1
P P
W I/O R W I/O R
R R
P P
W I/O R W I/O R
R R
Mounting Mounting
Position Position
5-37
Chapter 5. Product Specifications
P F F F F P
o D D D D o GM2-FDIA : CH1 Off, CH2 On
w I I I I w
er A A A A er GM2-FDIA : CH1 On, CH2 On
5-38
Chapter 5. Product Specifications
2) Error Check
5-39
Chapter 6. Operation Mode
There are program run modes of each CPU module and operation mode of redundant system in
Operation Mode.
(1) Program Run Mode
With program process of each CPU module, there are RUN, STOP and DEBUG. Each mode
operation can be varied in accordance with Redundant Operation.
(2) Redundant System Operation Mode
With Redundant system operation, there are redundant operation, stand-alone operation, master
operation, and stand-by operation.
6-1
Chapter 6. Operation Mode
Operation Description
Operation Condition
(If operation instruction done, the operation will stops after one
(Per one operation)
performed)
According to Break If Break Point designated in program, stops at the designated point. Up
Point designation to 32 break points can be designated.
According to scan If scan frequency to be operated designated, operates and then stops
frequency designation after operating as designated.
6-2
Chapter 6. Operation Mode
Remarks
6-3
Chapter 6. Operation Mode
Operation of Redundant system is classified as follows according to installation, power, DIF key and
operation mode of respective CPU.
CPU-A(B) CPU-B(A)
Current Operation Operation
Mode Description
Operation Mode Mode
Stand- Only CPU-A or B is operated equally with stand-alone
RUN STOP
alone CUP while running in Redundant Operation Mode.
Redundant
Redundant CPU-A and CPU-B runs redundant operation as
Operation Mode RUN RUN
Operation master and stand-by in Redundant Operation Mode.
(Key: A+B)
CPU-A and CPU-B is set to master and stand-by but
Stop STOP STOP
operation stops in Redundant Operation Mode.
In
1. Only CPU selected from CPU A or B is operated
Stand-alone Operation
equally with stand-alone CPU.
CPU Mode mode of -
2.The operation without designated will be STOP
(Key:A or B) stand-
mode.
alone CPU
* Power off in redundant operation is treated as STOP.
6-4
Chapter 6. Operation Mode
(2) In redundant operation mode, operation or master can be changed using DIF key or GMWIN as
follows.
Current Operation DIF Key status Operation Control and Operation
Redundant operation as
A+B DIF Key: A+B -> B B Stand-alone operation
A Master
Redundant operation as B
Stand-alone operation B DIF Key: B -> A+B
Master
Redundant operation as
A+B DIF Key: A+B -> A A stand-alone operation
B Master
Redundant operation as A
A stand-alone operation A DIF Key: A -> A+B
Master
2) During redundant operation, master auto changeover is disabled in the following conditions. This
time, warning message will be displayed.
(1) When an error occurred in any redundant power of switched base
(2) If stand-by error occurred in a failure of master
A) Operation stops if the same error detected.
B) In case of the above A), if mask flag set on the desired error, continues operation without
master changeover.
C) If master and stand-by not having the same failure e.g. cause of failure not redundant,
continues operation without master changeover (Ex. If a failure detected at another position
among triplex input).
3) When normal redundant operation disabled due to a failure of DIF module, master is changed
into stand-alone operation and stand-by stops operation.
6-5
Chapter 7. Basic Concept of Program
• Program is written by GMWIN, and then compiled and run by transmitting to PCL after converting active
file compiling the program and converted to active file.
• Program consists of Scan and Task Program. Scan Program is operated repetitively per scan and Task
Program is operated by task.
• Scan Program is operated and then stopped from the start to the end in accordance with registered order
in project. This total process is called “1 scan”.
• After operating the Program from the start to the end as mentioned above, running the Program
repetitively with the same process is “Repetitive operation system”.
• Reading and storing the status of input module in the input image area before computing Scan Program
and detecting the contents of the output image area after computing Scan Program is called I/O Refresh.
• GLOFA PLC series is Repetitive operation system and do not input and output directly the status of I/O
during operation, and just operated by running I/O refresh. In this case, the status of each I/O contact is
stored at the memory area in PLC. This area is called I/O image area.
Operation Start
1 scan
7-1
Chapter 7. Basic Concept of Program
1) Initial Program
• Initial Program for cold or warm restart: operated by _INIT Task
• Initial Program for hot restart: operated by _H_INIT Task
2) Task Program
• Positive period Task Program: Max. 32 EA
• Outside Contact Task Program: Max. 16 EA
• Inside Contact Task Program: Max. 16 EA
3) Scan Program
• Max. 180 EA: 180 minus the Number of assigned Task Program are available.
4) Error Program
• Error Task Program : Operated by _ERR_SYS Task
• It is used to initiate system such as special module as initial program (_INIT Task) when operating cold
or worm restart mode.
Initial program performs repetitive operation until satisfying setting condition (until INITDONE flag is on
at initial program). In this case, operate I/O Refresh.
• When operating on Hot Restart mode, the purpose of Initial Program is to start from stopped step when
power failure occurred. Initial Program is used to need special module to restore to condition before
power failure or outside condition to make for normal operation.
This initial program performs repetitive operation until setting condition satisfied with (until INITDONE
flag is on at initial program); do not operate Output Refresh during operating Hot Restart Initial
Program
Use ‘DIREC_O’ function as output refresh is needed at Hot Restart Initial Program.
After completing Hot Restart Initial Program, run Scan Program from previous stopped step and
complete Scan Program that was stopped. In this case, do not operate Output Refresh and operate
normal I/O Refresh from the next Scan.
• During initial program, system operating status flag_INIT_RUN turns ON.
2) Task Program
• Program assigned by Positive period Task operates program at time interval set in task.
• Program assigned by Outside interrupt task operates program by Outside interrupt contact signal
occurred from interrupt module.
• Program assigned by inside contact task operates program when rising edge of inside contact
occurred.
7-2
Chapter 7. Basic Concept of Program
3) Scan Program
Program that is not assigned as Initial Program and Task Program among programs written by user
becomes Scan Program automatically. Scan Program is running repetitively regardless of task and the
priority is the lowest. And Scan Program is running sequential repetitive operation in accordance with
registered order on GMWIN screen.
4) Error Program
It is error task program used when system error occurred during operating a user program. User
operates program under _ERR_SYS task condition after writing a program against system error. It is
possible to protect stopping of system operating with controlling System Error Mask Flag at Error Task
Program (see “9.4 Error Remedy”).
Operation Start
*1
Initialization _INIT,_H_INIT:Initial Task
Operated when user writes
Initial Program
_ERR_SYS:Error Task
Operated when errors occurred
*2 and program written by user
Self Diagnosis
*1 Verify whether normal operation is available or not after checking structure information of system,
module,
condition of program and memory module.
*2 Verify whether normal operation is still available or not after checking changed structure condition,
abnormal operating of module and program.
7-3
Chapter 7. Basic Concept of Program
7.2.4.1 Synchronization
Synchronize data and operation point between CPU modules when running like below during redundant
operation.
(1) Scan Input (Image Area)
(2) Scan Output (Image Area)
(3) Immediate Input (Command)
(4) Immediate Output (Command)
(5) When starting Program Scan
(6) When starting Task
(7) When processing communication
(8) When processing GMWIN communication
(9) When running function block for special module
(10) When changing time data inside CPU
7-4
Chapter 7. Basic Concept of Program
7-5
Chapter 7. Basic Concept of Program
Restart Mode is to set whether to operate RUN Mode after initialization parameters and system when
stating to operate RUN Mode by returning Mode or re-power on. It consists of Cold, Worm and Hot. The
followings are operating condition of each re-start Mode (See “12.1 Basic Parameter” for setting method).
7.3.1 Cold restart
• It is performed when restart mode is set to Cold Restart at parameter.
• Eliminate all data to “o” and set only parameter which initial value is set to initial value.
• Though Worm Re-start Mode is set at parameter, operated by Cold Re-start Mode when initial running
after program to be run changed.
• If pressing manual reset switch more than 5 sec during operating, operated by Cold Restart Mode
regardless of setting Re-start Mode
7.3.2 Warm restart
• It is performed when restart mode is set to Warm Restart at parameter.
• Maintain previous value of data that is set to maintain previous value and the data that is set only initial
value is set to initial value. Except this, eliminate all data to “0”
• Though Worm Re-start Mode is set at parameter, operated by Cold Re-start Mode when initial running
after program changed.
• Though Worm Re-start Mode is set at parameter, operated by Cold Re-start Mode if data is abnormal.
• If pressing manual reset switch within 5 sec during operating when Worm Re-start Mode is set at
parameter, operated by Worm Re-start Mode.
7.3.3 Hot restart
• It is a run mode when re-power on after power off during normal operation (in RUN Mode). It is operated
on Hot Restart Mode when the time is within Hot Restart allowance setting time until re-power on after
power off.
• All data and program running factor is restored to the status of before power-off. Program is maintained
as
sudden power failure because the program runs at the status before power-off.
• Operating on Restart Mode set at parameter when excess Hot Restart allowance setting time
• If data contents are abnormal, operating on Cold Restart Mode.
Remarks
• Above mode is adapted when master CPU operates in shutdown. Standby is not adapted on Restart mode
due to operating under currently operating master condition
• Consider followings when controlling manual reset switch during redundant operating.
Total system is operating when controlling reset switch of CPU operated by master switch but only standby
CPU is operating when controlling reset switch of standby CPU.
7-6
Chapter 7. Basic Concept of Program
Power on
STOP
Operation STOP Mode Operation
RUN
Abnorma
Power Failure holding data ?
Normal
Hot RestartTime?
Time? Excess
Hot Restart
Power On
Power
withinon
setwithin
time the
specified time
Cold Restart
Basic Parameter Setting
Restart mode?
Warm Restart
Mode
COLD WARM HOT
Parameter
Maintain previous
Default Initialize to “0” Initialize to “0”
value
Maintain previous
Retain Initialize to “0” Maintain previous value
value
Initialize to user assigned Maintain previous
Initialization Initialize to user assigned value
value value
Retain & Initialize to user assigned Maintain previous
Maintain previous value
Initialization value value
7-7
Chapter 7. Basic Concept of Program
• Warm Restart:
Several (parts) processes Initialized and then operated but it is used when restarting operation under
remembering previous operation result of control system
• Hot Restart:
It is used when starting operation under remembering to several (parts) processes in previous operating
status of total control system. Processing status control of parts processed is used to system that is
remembered and controlled by inside memory not Outside signal.
1) Scope
GLOFA GM series PLC become stop status after retaining operation data if operation is not available
any more due to shut down during operating. And it can operate continuously because previous
operation status can be restored. But changing of occurred Outside controller can’t be known under
PCL shut down and also requirements that are occurred before stopping are processed following restart.
2) Cold Restart
CPU operates like below when Cold Restart.
(1) Delete all previous operation data and initialize parameter.
(2) Perform initialization program. In this case run I/O refresh.
(3) Start normal scan program.
3) Warm Restart
CPU operates like below when Warm Restart.
(1) Complete scan program and task program that are shut down.
Do not process FB of special/communication module and operate with previous data.
(2) Ignore task and communication service on standby.
(3) Perform only input refresh and high-speed link input.
(4) Initialize the parameter.
(5) Perform initialization program. In this case run I/O refresh.
(6) Start normal scan program.
4) Hot Restart
CPU operates like below when Hot Restart.
(1) Complete scan program and task program that are shut down.
Do not process function block of special/communication module and operate with previous data.
(2) Perform the task on standby and ignore communication on standby.
(3) Perform only input refresh and high-speed link input.
(4) Initialize the parameter.
7-8
Chapter 7. Basic Concept of Program
(5) Perform Hot initialization program at this time perform only input refresh. If output refresh is
necessary, use ‘DIREC_O” function.
(6) Start normal scan program.
Remarks
y Retain forced ON/OFF data, I/O skip data, failure mask setting data and failure history information when
restart. If necessary, delete them with GMWIN.
y Task that was shut down or on standby is processed when Warm and Hot restart. Result of performance
is output by scan refresh. Therefore process result can be output by input data before power failure.
y Positive period task is calculated by adding times which were measured before system shot down (Except
time during system shut down at calculating time
7-9
Chapter 7. Basic Concept of Program
This section provides kind of user definition task and method of task program usage. See “7.2.1 Kind of
task”, “7.2.2 Operation Type of Program” for initialization and error task.
Kind Positive period Task Outside Contact Task Inside Contact Task
Spec (Interval Task) (Interrupt Task) (Single Task)
Number 32 EA 16 EA 16 EA
Positive period Task (Cycle
Rising or falling edge of Rising edge of Bool
Operation setting is available until max.
input contact of interrupt parameter data among
condition 4294967.29 sec by 10ms
module inside memory data (0->1)
unit)
Perform immediately when Perform with searching edge
Output and Perform periodically per
an error occurred at interrupt after completing scan
Operation setting time
module contact program operation
Delay max. 5ms + Delay
Output delay Delay as much as max.
Delay max. 5ms interrupt module (within
time scan time
0.5ms)
0~7 level setting 0~7 level setting 0~7 level setting
Performance
(the order of priority of 0 level (the order of priority of 0 (the order of priority of 0
priority
is first) level is first) level is first)
User assign to not overlap User assign to not overlap User assign to not overlap
Task Num.
among 0~31 among 32~47 among 48~63
For instance if using timer and counter at Positive period Task Program of 10 sec cycle, error of this timer
can be max 10 sec. Changed input within 10 sec is not counted because the counter checks the input
status of the counter per 10 sec.
7-10
Chapter 7. Basic Concept of Program
• Ends running task and performs standby task during operating task program.
• Performs with checking standby task whenever each program block ends during operating scan
program
7.4.2.3 System operation and performance of task when instantaneous power failure
• User definition task doesn’t operate during initialization task program running.
• When instantaneous power failure occurred within 20ms, after recovering power failure, perform a task
that was waiting before power failure and a task that was occurred during power failure. Task that was
occurred redundantly can be ignored.
• In case of re-operation by Hot Restart, task that performed before power failure and standby task can be
processed but interrupt task that was occurred during power failure or positive period task that was
occurred redundantly during power failure will be ignored.
• Ignore all tasks, which were occurred during power failure and standby task when re-running with cold or
warm restart.
7-11
Chapter 7. Basic Concept of Program
Remarks
• When setting running cycle of positive period task program, consider that performance requirements of
various positive period task programs can be occurred simultaneously.
If using 4 positive period task programs that each cycle is 2, 4, 10 and 20 sec. There can be some
problems such as scan time can extend momentary cause 4 performance requirements are occurred per
20 sec.
Module contact
0 1 2 3 ... 12 13 14 15
number
Task number 32 33 34 35 ... 44 45 46 47
7-12
Chapter 7. Basic Concept of Program
• Inside contact task program is performed after completing performance of scan program. Although
performance condition of inside contact task program is occurred at scan program or task program
(positive period, Outside contact), it is not performed immediately but performed after completing
performance of scan program.
• Inside contact task checks at the completed performance point of scan program. Therefore if inside
contact task performance condition is occurred and disappeared(if doing OFF→ON→OFF assigned
contact) by scan program or task program (positive period, Outside contact) during “1 scan”, task
doesn’t perform cause performance condition is not detected at performance condition checking point.
(4) Is there any effective to other program due to performance result of task?
If scan program and task program share input image, direct parameter (%M) and global parameter,
check that the process results of the task programs effect scan program. It has to be paid more
attention, if using “standby task process function” or spiriting scan program.
Refer to “Example of Scan Time Calculation” of “7.8 Scan Time” for process speed of scan program and
task program.
7-13
Chapter 7. Basic Concept of Program
If the performance time of program is the same as the occurrence time of Outside interrupt,
• Performance time of each program : S0,…,S9 = approximately 6ms, P1 = 4ms, P2 = 7ms, P3 =
1ms
• Interrupt occurrence time of E_INT1: occurred at 22ms, 60ms, 94ms after operating
• Occurrence of PROC_1: occurred during scan program
the following is program performance.
S0 S1 S2 S3 S4 S5 S6 S7 S8 S9 End S0 S1 S2
Perform P0
Perform P1
T_SLOW
occurred
Perform P2
PROC 1
Perform P3
E_INT1
occurred
Time : 0 10 20 30 40 50 60 70 80 90 100 110 [mS]
7-14
Chapter 7. Basic Concept of Program
7.5 Timer/Counter
7.5.1 Timer
Timer of PLC is Addition Timer that increases current value per measuring time. There are ON Delay
Timer (TON), OFF Delay Timer (TOF), Pulse Timer (TP), etc.
Performance and output process of timer processed immediately when running a function block. Time
range can be measured from 0.001sec to 4294967.295sec (1193 hours) by 1ms unit.
Refer to “GLOFA PLC command book” for detail instruction.
NAME
TON
BOOL IN Q BOOL
TIME PT ET TIME
IN
t0 t1 t2 t3 t4 t5
Q
t0+PT t1 t4+PT t5
PT
ET
t0 t1 t2 t3 t4 t5
7-15
Chapter 7. Basic Concept of Program
IN
t0 t1 t2 t3 t4 t5
Q
t0 t1+PT t2 t5+PT
PT
ET
t1 t3 t5
IN
t0 t1 t2 t3 t4 t5
Q
t0 t0 +PT t2 t 2+ PT t4 t4 +P T
PT
ET
t0 t1 t2 t4 t5
Timer error means the time from max. ‘1 scan time + scan start to timer function block performance’
7-16
Chapter 7. Basic Concept of Program
7.5.2 Counter
The Counter of PLC CPU detects rising edge (OFF→ON) of input signal and increases current value.
There are Counter Up (CTI), Counter Down (CTD), Counter Up/Down (CTUD), etc. for more details, see
“GLOFA PLC command book”.
(1) Count up Counter increases current value.
(2) Countdown Counter decreases current value.
(3) Count up/down counter compares count value of two input conditions.
NAME
CTU
BOOL CU Q BOOL
BOOL R
INT PV CV INT
Turn the output contact of counter ON if Current Value (CV) increases and then become the same as
Setting Value (PV). When RESET signal input, current value become 0 and output contact (Q) become
OFF.
NAME
CTD
BOOL CD Q BOOL
BOOL LD
INT PV CV INT
Turn the output contact (Q) of counter ON if Current Value (CV) decreases and then become 0. When
LD signal input, current value become setting value and output contact (Q) become OFF.
NAME
CTUD
BOOL CU QU BOOL
BOOL CD QD BOOL
BOOL R
BOOL LD
INT PV CV INT
When RESET signal input, current value
become 0.
When LD signal input, current value become setting value.
7-17
Chapter 7. Basic Concept of Program
Current Value (CV) increases 1 at rising edge of CU and decreases 1 at rising edge of CD.
QU is ON if Current Value (CV) is more than Setting Value (PV) and QD is ON if Current Value (CV) is
less than or the same as 0.
n 1 n : D uty (% )
M ax Factor Speed C m ax 100 X [tim es/s]
ts ts : Scan Tim e [s]
Remarks
ON
Pulse Input
OFF OFF
Of Counter
T1 T2
T1
When T1 ≤ T2 n= X 100 [%]
T1+T2
T2
When T1 > T2 n= X 100 [%]
T1 T2
7-18
Chapter 8. Program Operation
8-1
Chapter 8. Program Operation
Remarks
• (1),(2),(3) are processed in separately to do within delay time of about 50ms at each scan of master.
• (4),(5),(6) shall be processed within one scan of master and within delay time of max. 50 ms.
(If operating variable exceeds the standard, its delay time may be over 50ms. See 8.5.3 Delay Time in
Redundant Operation’.)
8-2
Chapter 8. Program Operation
8-3
Chapter 8. Program Operation
Remarks
• If forcedly controlling the contact of switched base from triplex input, input value is not changed and an error
detected in its contact.
• If controlling the input used for system monitoring such as output feedback, system error can be occurred.
Remarks
• In case of OFF -> ON, Operation Mode Change and Reset Key operation, forced On/Off setting data
previously set is retained in PLC.
• If program download and backup broken, forced On/Off setting data will be erased.
On/Off setting data will be erased in operating program memory even if restarted with flash memory
program.
• To set new forced data from start, release all setting of Input and Output respectively using ‘ERASE’ key.
8-4
Chapter 8. Program Operation
This can be used effectively when reading immediately input contact during program operation or
outputting immediately operation results at output contact.
CPU module contains two kinds of memory available for users. One is program memory saving
user’s program for establishing system and the other is data memory saving data during operation.
8-5
Chapter 8. Program Operation
Item Size
Overall data memory Area 512kbyte
System Area:
• I/O Information Table
50kbyte
• Forced I/O Table
• Module Skip Table and etc.
System Flag Area 4,096byte
Input Image Area(%IX) 4,096byte
Output Image Area(%QX) 4,096byte
Direct Variable Area(%M) 0~64kbyte
256kbyte -
Symbolic Variable Area (Max.)
Direct Variable Area
Redundant System Flag Area 254kbyte
Stack Area 4,096kbyte
1) System Area
Saves CPU module self-producing data for system management and system control data through
GMWIN.
2) System Flag Area
As saving area of user flag and system flag as shown in Chapter 11, users control this with flag
name.
8-6
Chapter 8. Program Operation
Direct Variable can be used directly in each program and symbolic one used after designating those
with the same name as ‘VAR-EXTERNAL’.
Resource Global Variable can be written in applicable variable immediately when program
performed. There are no problem between programs in scan task while processing sequentially, there
may be confusion of data due to intervention of task program while running scan program. Take
considerations of the followings in programming.
(1) When using resource global variable, don’t ‘Write’ the same variable in more than two task
programs. In other words, do ‘write’ in one task and ‘read’ in required location unconditionally.
(2) When doing program block, save the value of global variable in Local Variable and then do
program using Local Variable value. Then, homogeneous data will be hold in program block
even if global variable value changed by task during program operation.
8-7
Chapter 8. Program Operation
This means the time elapsed after scan program of one time until restarting of scan program.
Remarks
• Scan Time can be increased excessively when standby system participated in operation.
• Scan Time is longer than stand-alone operation during redundant operation.
To measure processing time of task program for calculating scan time, enter task number to be
measured in '_STSK_NUM' of system operation information flag in Variable Monitor Mode and monitor
'_STSK_MAX, _STSK_MIN, and _STSK_CUR'.
8-8
Chapter 8. Program Operation
(1) With only scan program(S0,…S9) run excepting task program, measure scan time
(_SCAN_MAX) while doing communication service through communication module and
monitor through GMWIN.
(2) To measure running time of positive period program, start program including positive period
task program, register '_STSK_NUM, _STSK_MAX, _STSK_MIN, _STSK_CUR' flag in
GMWIN Variable Monitor Mode, enter Task Number ‘0’ at '_STSK_NUM’ and then measure
the value of ‘_STSK_MAX’.
(3) Start the program including single task program, enter task number ‘48’ at '_STSK_NUM’, start
task in GMWIN (1->%MX0), and then measure the value of _STSK_MAX’.
(4) Start the program including interrupt task program, enter task number ‘32’ at '_STSK_NUM’,
turn ON the input of interrupt module, and then measure the value ‘_STSK_MAX’.
If the max. run time being Tscan(S0~S9) = 80 ms, Tp1 = 4 ms, Tp2 = 7 ms,
(5) Tp3 = 1 ms, basic san time will be 87 msec (Tscan + Tp2) if single task started during program
operation and scan time be 95 msec(Tscan + Tp2 + Tp1 x 2) with two times positive period
occurred. If external task occurred three times, scan time will be 98 msec(Tscan + Tp2 + Tp1 x
2 + Tp3 x 3) and max. scan time be 102 msec(Tscan + Tp2 + Tp1 x 3 + Tp3 x 3) with positive
period run once more. If external task can be occurred within 102 msec, add its processing
time and review the number positive period occurred. (See 7.4.7 Ex. Of Program Composition
and Processing’ timing diagram)
(3) If Scan Watchdog time is expected to exceed in a specific program process during user’s program
operation, use ‘WDT_RST’ function. If ‘WDT_RST’ function started, initialize the elapsed time of
watchdog timer and restart from 0.
(4) Power Input, Manual Reset Switch or Mode Change to STOP can be used to exit scan error.
8-9
Chapter 8. Program Operation
Remarks
Scan Time will be increased excessively to entry Redundant Operation from Single when standby CPU
activated.
This PLC CPU module is basically mounted with RTC. RTC provides ‘Time Display Flag’ available
in program and displays the time on Fault Report. It also provides hot restart time measuring when Hot
Restart used. In case of a power failure more than 20ms or Power OFF, clock continues operation by
battery back up. RTC time value updates at system flag area every scan. RTC time value is enabled in
Read/Write through GMWIN (See ‘PLC Information’ of ‘On-line’ Menu of GMWIN).
Item Data
Year 4 digits in solar calendar
Month 1 ~ 12
Day 1 ~ 31
Hour 0 ~ 23 (24 hours)
Min. 0 ~ 59
Sec. 0 ~ 59
1/100
0 ~ 99
seconds
Day of the
0 ~ 6 (Monday ~ Sunday)
Week
8-10
Chapter 8. Program Operation
If using time in Operation Program, do programming using User Flag ‘_RTC_DATE’, ‘_RTC_TOD’,
‘_RTC_WEEK’ available in the above table. It can be used in system control such as Start/Stop and
Time Stamp of operation history, and etc.
‘_RTC_TIME[n]’, provided as system flag, is provided in BCD form to facilitate data transfer to simple
display device or the equipment where time data type not handled.
Remarks
y If battery back up stooped more than 30 min., RTC may stop its operation.
Time data was not set when the product purchased. Set and then use time data in system setup.
y If writing time data in RTC besides the range specified in the above table, it doesn’t operate normally.
( Ex. : 13 Month 32 Day 28 Hour )
y If RTC error found, _RTC_ERR of system flag _CNF_WAR turns ON.
If RTC error corrected, _RTC_ERR of system flag _CNF_WAR turns OFF(For error of RTC by CPU, see
_CNF_A,B_WAR 의 _RTC_A_ERR, _RTC_B_ERR).
y RTC stop or error can be occurred due to battery error and etc. If writing new time value in RTC, RTC error
will be resolved.
GLOFA system provides convenience and high performance of program compared with the
previous method when using special module. Take some precautions when establishing the system.
Make you understood what the following describes and review the applicable system.
(1) Function block takes a role as interface between data of users program and special module,
monitors the operation of special module, and displays errors. Special error detection program
is not required.
(2) Function block consists of ones for ‘initialization’ and ‘controlling’ the operation of special
module.
(3) Function block is provided with one for single module(attached to switched base) and for
redundant module(attached to redundant base) according to mounting method.
Remarks
For detailed function block, see ‘Appendix 2.3 Special module function block table’ of this manual and user’s
manual of special module.
8-11
Chapter 8. Program Operation
(1) When system started, initialization shall be completed before master CPU performs scan
program and so done in restart program (initialization task program). But function block
required to change set data during operation can be done in general program.
(2) Standby CPU doesn’t perform initialization program. Special module, which is located at
redundant base and controlled by standby CPU among redundant special modules, performs
module initialization in the method of automatically transferring the information of special
module to master.
Remarks
• Special module of switched base can cause errors in a power failure of applicable extended base unit. If
programming to override errors and proceeds to operation, special module can be restarted using
GMWIN after a recovery of power(See ‘Special Module Initialization’ of 9.3.3 Switched Base
Replacement’.
Remarks
• It is recommended to use array type function block rather than single channel to minimize the scan time.
• If using hot restart, output the standard of STOP mode until new data used in the program. If writing every
scan data in special module, immediately normal output can be done. But when output data value changed
or written periodically, standard output can be done until that time. To keep the continuity of output, it is
recommended to output the data one time in hot restart program after initialization of special module.
8-12
Chapter 8. Program Operation
This describes how to retain memory and how to mount memory module and operate PLC.
This PLC uses Flash Memory as memory module. Memory Module is enabled in read/write with
mounted at CPU module without special write-dedicated equipment.
Initiation
Power Off
Change the operation mode into Remote STOP and then turn Off
Mount Memory
Power On
Run
Select Flash Memory Write in GMWIN.
(As the command to write the contents of program memory in
memory module, there should be memory program).
End
Remarks
• When mounting memory module to write user’s program in it, its contents can be transferred to program
area if power applied in Run Mode.
• You can download the program for upload with capacity more than that of program memory of CPU
module using GMWIN. This time, it is recommended to use memory module with capacity of 2Mbyte more
than that of program memory.
• During program debugging, operate without memory module and after a completion of debugging, mount
with memory module.
8-13
Chapter 8. Program Operation
Initiation
Power Off
Power OFF After changed to STOP mode in operation mode
Mount Memory
Mount memory module with user’s program saved at mounting
connector of CPU module.
Power On
Run write of memory module if mounting memory module without
program.
Change Operation
Change operation mode to RUN mode.
Check
Check changed program run.
END
8-14
Chapter 8. Program Operation
This flag is provided for users to detect fault of outside equipment and perform system stop and
warning. If using this flag, outside fault will be displayed without complex program and fault position be
monitored without special device(GMWIN and etc.) or source program.
In case of fault, users can find the cause of fault using GMWIN or by monitoring ANC_ERR[n] flag.
ANC_ERR[n] has 16(n : between 0 and 15) fields and classifies fault status greatly. If is able to write
fault number designated temporarily by users in each field and the number can be between 1 and
65,535.
Ex.)
Error Detection
MOVE
10 _ANC_ERR[0]
If light fault removed from outside equipment, e.g. after a completion of user’s program, those
removed from _ANC_WB[n] will be automatically deleted from _ANC_WAR[n] flag and if all removed,
_ANNUN_WR display of system flag _CNF_WAR will be reset.
Ex.)
8-15
Chapter 8. Program Operation
_ANNUN_WR = 1 During user’s program operation, if system error detected with user’s
_ANC_WAR[0] = 10 program and set _ANC_WB[10] to ON, complete operating scan, and
_ANC_WAR[1] = 0 _ANNUN_WR 과 _ANC_WAR[0..7] will be shown as in the left.
_ANC_WAR[2] = 0
_ANC_WAR[3] = 0
_ANC_WAR[4] = 0
_ANC_WAR[5] = 0
_ANC_WAR[6] = 0
_ANC_WAR[7] = 0
_ANNUN_WR = 1
_ANC_WAR[0] = 10 After the next scan completed, if Nos. 1, 2, 3, 10, 15, 40, 50, 60, and 75 set
_ANC_WAR[1] = 1 to ON, _ANC_WAR[n] will be shown as in the left.
_ANC_WAR[2] = 2
No. 10 has lower priority than Nos. 1, 2, and 3, but set to ON in the
_ANC_WAR[3] = 3
previous scan(occurred in advance), so it will be written before
_ANC_WAR[4] = 15
_ANC_WAR[n]. Although _ANC_WB[75] set to ON, the warning occurred
_ANC_WAR[5] = 40 in advance will not be displayed due to _ANC_WAR[n] full.
_ANC_WAR[6] = 50
_ANC_WAR[7] = 60
_ANNUN_WR = 1
_ANC_WAR[0] = 1
_ANC_WAR[1] = 2 After the next scan completed, if Nos., 2, 3, 15, 40, 50, 60, 75 set to ON,
_ANC_WAR[2] = 3 _ANC_WAR[n] will be shown as in the left.
_ANC_WAR[3] = 15
_ANC_WAR[4] = 40 Because No. 10 warning removed, it will be deleted from _ANC_WAR[0]
_ANC_WAR[5] = 50 and the content of _ANC_WAR[1..7] be get ahead of. After data moved,
_ANC_WAR[6] = 60 _ANC_WAR[7] will be empty and _ANC_WB[75] be written in
_ANC_WAR[7] = 75 _ANC_WAR[7].
_ANNUN_WR = 0
_ANC_WAR[0] = 0 If all warnings displayed in _ANC_WB[n] during operation, _ANNUN_WR
_ANC_WAR[1] = 0 and _ANC_WAR[n] will be shown as in the left.
_ANC_WAR[2] = 0
_ANC_WAR[3] = 0
_ANC_WAR[4] = 0
_ANC_WAR[5] = 0
_ANC_WAR[6] = 0
_ANC_WAR[7] = 0
Remarks
When light error detected, error will not be displayed in CPU Module.
8-16
Chapter 8. Program Operation
CPU Module detects instantaneous power failure when input power off or the voltage of input power
lower than the specified.
If CPU detected instantaneous power failure, perform operations as follows.
8-17
Chapter 8. Program Operation
Remarks
If instantaneous power failure occurred in redundant system, its operation will be delayed about 20ms to
detect the fault.
8-18
Chapter 8. Program Operation
There are error history, power off history, redundant operation mode change history and operation
mode change of respective CPU. Each history can be saved up to the latest 16(For detailed, see 11.5
System Error and Warning Detailed Flag and ‘PLC Information’ in GMWIN User’s Manual).
8-19
Chapter 9. Error Remedy
9.1.3 By Flag
Fault Mask Flag can be preset before error occurred and set by error task program started when error
occurred.(See ‘System Fault Mask Flag’).
Remarks
• If removing cause of errors without error flag deleted in CPU module, system stops operation. Before
releasing of fault mask flag, check error flag.
9.1.4 By Parameter
In programming, it can be set in parameter, compiled with program, and then downloaded. Parameter
setting will be copied to fault mask flag in first initialization of system after download of program. In spite
of parameter setting, flag can be changed using flag control during operation.
Remarks
• Modules set in Redundant Base continues operation if any one failed. When corresponding two modules
failed, to continue operation, set fault mask.
• When Power OFF->ON, Operation Mode changed and Reset Key operated, fault mask setting data set
previously would be retained and performed in PLC. It is able to be deleted using GMWIN or program.
• Data of Fault Mask flag are updated with parameter data as follows.
1) Restart operation after download of program using GMWIN
2) If operating program memory has different program with flash memory module and restarts operation
with memory module program loaded into program memory.
3) If memory backup broken due to drop of battery voltage
9-1
Chapter 9. Error Remedy
(2) 12-slot base can be recognized as subsequent 2 base, so all of two base areas should be set.
(3) Input(I) Image stops input refresh and keeps previous value of skip setting. But, image control is
valid
by Forced On/Off.
Actual output of output module turns OFF in skip setting, but output(Q) image varies to the operation
of user’s program regardless of skip setting. Output value control of output module is disabled after
skip setting.
(4) Skip function will be run equally when immediate I/O function used.
Remarks
• When Power OFF->ON, Operation Mode changed and Reset Key operated, skip setting data set
previously would be retained and performed in PLC. Skip function is able to be released using GMWIN or
program.
• Skip setting data are deleted if any of the following occurred.
1) If restarting operation after download of program using GMWIN
2) If operating program memory has different program with flash memory module and restarts operation
with memory module program loaded into program memory.
3) If memory backup broken due to drop of battery voltage
9-2
Chapter 9. Error Remedy
REMARK
• In GMR Redundant system, it is possible to replace the module during operation. But special precautions
should be taken that it can cause mis-operation of overall system.
• 12-slot base can be recognized as subsequent 2 bases, so skip and fault mask should be set for all of
two base areas.
• Always set fault mask sequentially during replacement to prevent mis-operation of replaced module or
overall system.
9-3
Chapter 9. Error Remedy
Remarks
• When CPU stopped, attached communication and I/O system stopped simultaneously. Check there is no
error in remaining CPU communication and I/O system.
Remarks
• If power down without switch control of interface module, overall system becomes AC_Fail state. Take
precautions of it.
9-4
Chapter 9. Error Remedy
Remarks
• In these procedures, I/O module operated in the same base can cause wrong data instantaneously.
• Due to an error of replaced module, the other fault of the same base can be detected. It is safe to set fault
mask at overall base.
2) Digital Module Replacement of the Base that consisted of combined Special Module
Replace as in the above (1) ‘Module Replacement of the base that consisted of only digital I/O module’.
Remarks
• Due to an error of replaced module, the other fault of the same base can be detected. It is safe to set fault
mask at overall base. If an error occurred in special module, perform initialization in GMWIN for normal
operation.
Remarks
• Due to an error of replaced module, the other fault of the same base can be detected. It is safe to set fault
mask at overall base. If an error occurred in special module, perform initialization in GMWIN for normal
operation.
9-5
Chapter 9. Error Remedy
Remarks
• When CPU stopped, attached communication and I/O system stopped simultaneously. Check there is no
error in remaining CPU communication and I/O system.
9.3.4.2 Module Replacement Procedures after stopping operation of the base to be replaced
(1) Perform skip setting to base to replace module in GMWIN.
(If replacement module belong to A CPU system, set only A and if belonged to B CPU, only B).
(2) Set Fault Mask to the same base in GMWIN.
(3) Set ‘OPER’ switch of remote I/F Module to ‘N’.
(4) Turns off the base.
(5) Replace module.
(6) Reapply the power.
(7) Set ‘OPER’ switch of remote I/F Module to ‘Y’.
(8) Release skips setting of the base in GMWIN.
(9) Check it for normal operation(Check Error Detailed Flag, see ’9.1.1’).
If replacing with the other module due to faulty replaced module, proceed to (1).
(10) Release fault mask and return to normal operation.
Remarks
• If power down without switch control of interface module, overall system becomes AC_Fail state. Take
precautions of it.
9-6
Chapter 9. Error Remedy
Remarks
• In these procedures, I/O module operated in the same base can cause wrong data instantaneously.
• Due to an error of replaced module, the other fault of the same base can be detected. It is safe to set fault
mask at overall base.
2) Digital Module Replacement of the Base that consisted of combined Special Module
Replace as in the above (1) ‘Module Replacement of the base that consisted of only digital I/O
module’.
Remarks
• Due to an error of replaced module, the other fault of the same base can be detected. It is safe to set fault
mask at overall base. If an error occurred in special module, perform initialization in GMWIN for normal
operation.
Remarks
• Due to an error of replaced module, the other fault of the same base can be detected. It is safe to set fault
mask at overall base. If an error occurred in special module, perform initialization in GMWIN for normal
operation.
9-7
Chapter 9. Error Remedy
9-8
Chapter 9. Error Remedy
Remarks
• Displayed error flag will not be deleted automatically during operation even if an error removed(Power
OFF→ON),
• Error flag will not be deleted with Fault Mask Flag set.
• With error flag set, ‘_ERR_SYS’ task will be occurred in END of every scan to do programming.
9-9
Chapter 9. Error Remedy
16#30
Row 3 IN2
Row
4
Among the above program, 16#30 will be indicated as ‘0011 0000’, mask slot in base(See ‘_SLOT_M’
of Fault Mask Flag).
9-10
Chapter 10. Input Triplexing, Output Redundancy
10.1 Principle
Read data of the same switch as three input contacts and if data matched with more than two,
choose the value as normal data. Three inputs can be read one another instantaneously by the factors
of switch position, switch state, wiring, filter delay of input module, and etc., but if no error in input,
normal data will be choose after some delay.
CPU determines it to be fault and remove from operation if any input value not changed until the
other two changed input data again.
Three inputs are located at Redundant Base A and B and Switched Base respectively. When
installing triplex input, multi power and sensor can be applied to increase availability of system.
sensor
Redundant
Base B
Switched
Base
10-1
Chapter 10. Input Triplexing, Output Redundancy
For output module, wrong output can be occurred due to a failure of output module and element. Error
consists of Permanent 0 Output and 1 Output. This time, CPU can verify the fault and cut off the
output if faulty. Users shall set feedback input and measuring delay time to find where a fault
occurred(set in the unit of 16-point).
When installing redundant output, ‘Single Redundant Output’, ‘Detection of only Fault Contact’, and
‘A/B Discrimination and Load Power Off’ can be applied to increase fault detection and safety of
system.
Output Module
Load Power
(+) (-)
Redundant Load
Base A
Load
Switched
Base
Load Power
(+) (-)
Redundant
Base B
Input Module
* %QX2.4.0 ~ %QX2.4.15 : Redundant Output
%QX2.5.0 ~ %QX2.5.15 : Output Feedback
%QX2.2.0 ~ %QX2.2.1 : Load Power Off Output
%QX1.2.0 ~ %QX1.2.1 : Load Power Monitoring
When a failure of switched base occurred, it can be recognized that there are errors in both
Master Control Contacts of Redundant Base A and B. If possible, install each in separately at
Redundant Base.
[Fig. 10.2] Redundant Output Circuit Diagram
10-2
Chapter 10. Input Triplexing, Output Redundancy
Analogue Input Module detects the error of input data by user’s program(FB). Redundant FB outputs
each module state and data as a result of operation. Users check module and select data. If short of
sensor detected in Module(Temperature Sensor Module), error will be detected in FB when sensor
disconnected.
Sensor
Redundant
Base B
When signal received from one source as shown in the figure, only voltage input is enabled.
If using Current Input and TC, RTD sensor, install two sensors in separately.
Installed at redundant I/O and outputs the same value. It realizes output redundant by outside
connection and detects output error using analogue input module by user’s program.
Analogue Load
Redundant
Base A
Redundant
Base B
10-3
Chapter 10. Input Triplexing, Output Redundancy
START
END
• Signal holding time of the signal entered in PLC has scan time longer than that of PLC. If input
changed rapidly, input signal may not be detected and in case of multi input, it can be detected as
contact Trouble.
• The scan time of redundant operation will be longer than that of single operation. While entering
redundant operation of standby CPU, scan time of master CPU will be longer temporarily. Take
considerations of it when defining I/O(See 8.5 Scan Time).
10-4
Chapter 10. Input Triplexing, Output Redundancy
(2)
Exchange read data.
(3)
Release the indication of ‘Wrong
Input’ in previous input or treat as
fault.
(4)
Determine right input value from
three input data according to
majority rule.
(5)
Additionally update ‘Wrong Input’
indication according to new data.
10-5
Chapter 10. Input Triplexing, Output Redundancy
The following provides timing diagram related to extraction of Right input value used in program
operation when actual input signal received normally.
%IX2.0.0(A)
%IX2.0.0(B)
%IX1.0.0
Right Input
Value
(%IX2.0.0) Input Scan : 1 2 3 4 5 6 7 8 9
%IX2.0.0(A)
%IX2.0.0(B)
%IX1.0.0
Right Input
Value
(%IX2.0.0) Input Scan : 1 2 3 4 5 6 7 8 9
B) Right Input Value Detection according to input filter when signal delay occurred
%IX2.0.0(A)
%IX2.0.0(B)
%IX1.0.0
Right Input
Value
(%IX2.0.0) Input Scan : 1 2 3 4 5 6 7 8 9
C) Right Input Value Detection When On/Off delay of input signal occurred in other signal
O: Wrong Input detection X: Wrong Input Release
[Fig. 10.7] Right Input Value Detection
10-6
Chapter 10. Input Triplexing, Output Redundancy
The following shows timing diagram related to extract of right input and detection of error used in
program operation when a partial fault of input occurred.
Wrong input is detected in input refresh and released every 20ms. Perform troubleshooting to
determine if error detection setting time exceeded or not at scan END every 20ms.
The contacts detected as a fault will be displayed with _RIQ_A_ERR[n], _RIQ_B_ERR[n],
_RIQ_C_ERR[n] and verified in ‘I/O Error Detailed Information’ menu of GMWIN.
%IX2.0.0(A) 20ms
%IX1.0.0
Right Input
Value
(%IX2.0.0) Input Scan : 1 2 3 4 5 6 7 8 9
A) Permanent Fault 0 of input signal
20ms
20ms
%IX2.0.0(A)
%IX2.0.0(B)
%IX1.0.0 F
Fault Detection
Right
정입력값Input
Value
(%IX2.0.0)
(%IX2.0.0) Input Scan : 1 2 3 4 5 6 7 8 9
10-7
Chapter 10. Input Triplexing, Output Redundancy
%IX2.0.0(A)
20ms
%IX2.0.0(B)
F
Right Input
정입력값
Value
(%IX2.0.0)
(%IX2.0.0)
Input Scan : 1 2 3 4 5 6 7 8 9
%IX2.0.0(A)
Fault Detection
%IX2.0.0(B) F
20ms
%IX1.0.0
Right
정입력값Input
Value
(%IX2.0.0)
(%IX2.0.0) Input Scan : 1 2 3 4 5 6 7 8 9
D) Permanent Fault 0 of Input Signal During Operation(1
Return Disabled)
O : Wrong Input Detection X : Wrong Input Release
F : Fault Input Detection N : Wrong Input Not Detected
In Scan 2, the input rather than right input(%IX2.0.2(A)) is indicated as ‘Wrong Input’, but released
from wrong input because two inputs being 1 after 20ms.
In Scan 3, two inputs set at 1, so right input value changed to 1 and 0 inputIX1.0.0) indicated as ‘wrong input’.
This contact will be detected as a fault in scan 5 because it exceeded fault detection setting time without
‘wrong input’ released. %1X1.0.0 Fault Mark continues.
From Scan 5, exclude fault contact and determine right input value using the other two inputs. To
improve safety in this process, right input value will be set to 0 if any two signals excepting faulty
input being 0.
10-8
Chapter 10. Input Triplexing, Output Redundancy
In Scan 2, right input value changed to 1 and input(%1X1.0.0) remained as 0 indicated as ‘wrong
input’, but released from wrong input after 20ms.
In Scan 4, input(%1X2.0.0(A)) indicated as wrong input will be released from wrong input after
20ms.
In Scan 5, input(%1X1.0.0) indicated as wrong input will be detected as a fault because not being
normalized within fault detection setting time.
‘Wrong Input’ signal of scan 2 will be soon returned and input circuit of %1X1.0.0 between scan 3
and 6 can cause Permanent 1 fault due to switch contact fusion and etc., which can be detected as
wrong input in scan 6 and then as a fault after fault detection setting time. ‘Fault Mark’ of 1%IX1.0.0
will be continued.
As above mentioned, wrong data will not be occurred in right input value in the middle of fault and right
input value be 1 only when the remained two signals are 1 for safety from fault detection.
10-9
Chapter 10. Input Triplexing, Output Redundancy
2)
Read output data through
feedback input module and check
output contact for disabnormal.
3)
Turn off output power and mark the
fault when fault contact found.
4)
Output data in output module of
base connected to each.
5)
Save new output value in memory.
Remarks
• If output change time by user’s program being shorter than the sum of signal delay time between
output and input modules, it can cause wrong fault detection.
10-10
Chapter 10. Input Triplexing, Output Redundancy
The above timing diagram shows that two output signals output the same signal
(%QX2.4.0(A), %QX2.4.0(B)) through each output module of redundant output base, feedback
output signal(%IX2.5.0(A), %IX2.5.0(B)) through input module of each base, and if error detected,
main power turned off by master control output (%QX2.2.0(A), %QX2.2.1(B)) operation. For
module configuration and connection, see ’10.2 Digital Output Redundancy’.)
CPU module starts (T0) operation with Master Control Output(%QX2.2.0(A), %QX2.2.1(B)) set to
ON after power supply and self diagnosis. Whenever one time operation completed, output
operation results at output module. Output data of output module will be output to outside after
delay time (Td1,Td2) of output element. Output signal can be received to CPU Module after filter
delay time of feedback input module. Then, CPU module checks feedback data after constant
delay time(Td3,Td4).
In the above figure, if assumed to output delay 5ms and input delay 10ms, Td3, Td4 becomes
15ms and output signal will be feedback within time delay(Td3, Td4) shorter than setting feedback
time 50ms. CPU module checks if there are no errors in output and continues operation with
master control output ON.
Remarks
• If feedback time set to 10ms shorter than signal delay time in the above system, CPU may monitor
feedback data until 10ms and determine it as a fault.
10-11
Chapter 10. Input Triplexing, Output Redundancy
%QX2.2.0(A) T0
%QX2.2.0(A)
%QX2.2.1(B)
%QX2.2.0(B)
Output
출력 scan
스캔: 1 2 3 4 5 6 7
The configuration and connection of each signal is as described in ‘Ex. Of Normal Output
Processing’.
When faults occurred with Permanent 1 in %QX2.4.0(B) output, %QX2.4.0(A) is feedback with 0
after Td4, but %QX2.4.0(B) not returned to 0 and determined as a fault by feedback input
(%IX2.5.0(B)) check of CPU module after 50ms of setting time. Then, master control output
(%QX2.2.1(B)) controlling main load power of applicable output will be shutoff automatically and
displayed in Fault Flag.
This time load is driven normally with A side output and system continues operation. When
Permanent 1 Fault occurred, time setting can cause wrong output as feedback setting time.
%QX2.2.1(B)
%QX2.2.0(B)
Output scan
출력 스캔: 1 2 3 4 5 6 7
The configuration and connection of each signal is as described in ‘Ex. Of Normal Output
Processing’.
10-12
Chapter 10. Input Triplexing, Output Redundancy
When faults occurred with Permanent 0 in %QX2.4.0(B) output, %QX2.4.0(A) is feedback with 1
after Td3, but %QX2.4.0(B) not returned to 1 and determined as a fault by feedback input
(%IX2.5.0(B)) check of CPU module after 50ms of setting time. Then, master control output
(%QX2.2.1(B)) controlling main load power of applicable output will be shutoff automatically and
displayed in Fault Flag.
This time load is driven normally with A side output and system continues operation. When
Permanent 0 Fault occurred, wrong output will not be occurred.
10-13
Chapter 11. Flag Table
Write
Key Word Type Content Description
Enable
As operation error latch flag in the unit of program
Operation Error block(PB), error occurred during programming will be kept
_LER BOOL Enable
Latch Flag until the end of program block. Can be deleted by
program.
As operation error flag in the unit of operation
Operation Error
_ERR BOOL Enable function(FN) or function block(FB), updated whenever
Flag
operation run.
_T20MS * BOOL 20ms Clock Available in user program and toggled ON/OFF in half
_T100MS * BOOL 100ms Clock period. As proceeding signal toggle after a completion of
scan, clock signal can be delayed or distorted according
_T200MS * BOOL 200ms Clock to programming time. Use clock sufficient longer than
_T1S * BOOL 1 sec. Clock scan time.
_T2S * BOOL 2 sec. Clock Clock signal starts at OFF when initialization program and
_T10S * BOOL 10 sec. Clock scan program started.
Remarks
* Initialized when running initialization programming and after a completion of initialization programming
1) Initialized(Cold, Warm) when starting scan programming
2) Returned(Hot) to the previous state before stop when starting scan programming
* To match with operation data in redundant, copy the value of master into standby at scan END in case of
‘_T20MS ~ _STOG’, ‘_RTC_DATE ~ _RTC_WEEK’.
11-1
Chapter 11. Flag Table
11-2
Chapter 11. Flag Table
A CPU System
Displayed if module configuration changed in base,
Module
_IO_A_DEER BOOL BIT 2 controlled by A CPU system. (See _IO_A_DEER_N,
Mount/Dismount
_IO_A_DEERR[n] )
Error
A CPU System
Displayed if fuse of output module disconnected in base,
FUSE
_FUSE_A_ER BOOL BIT 3 controlled by A CPU system, during operation. (See
Disconnection
_FUSE_A_ER_N, _FUSE_A_ERR[n])
Error
A CPU System
Displayed if normal interface disabled due to initialization
Special/Communi
failure or misoperation of special or communication
_SP_A_IFER BOOL BIT 5 cation Module
module in base, controlled by A CPU system. (See
Interface
_SP_A_IFER_N, _SP_A_IFERR[n])
Error(Failure)
A CPU Standby Displayed if A CPU failed to participate in redundant
BIT 7
Entry Error operation while operating B CPU.
11-3
Chapter 11. Flag Table
BIT
Key Word Type Content Description
position
Represe-
B CPU System
_CNF_B_ER WORD ntative Error occurred in B CPU system.
error
key word
Occurred when normal operation disabled in CPU
B CPU module due to B CPU self diagnostic error, errors of CPU
_CPU_B_ER BOOL BIT 0 Configuration mounting position of base, redundant composition and
Error etc. (For details, see _SYS_ERR and S 002~S 116 of
Chap. 13)
B CPU System
Displayed if module configuration changed in base,
Module
_IO_B_DEER BOOL BIT 2 controlled by A CPU system. (See _IO_B_DEER_N,
Mount/Dismount
_IO_B_DEERR[n] )
Error
B CPU System
Displayed if fuse of output module disconnected in base,
FUSE
_FUSE_B_ER BOOL BIT 3 controlled by A BPU system, during operation. (See
Disconnection
_FUSE_B_ER_N, _FUSE_B_ERR[n])
Error
B CPU System
Displayed if normal interface disabled due to initialization
Special/Communi
failure or misoperation of special or communication
_SP_B_IFER BOOL BIT 5 cation Module
module in base, controlled by B CPU system. (See
Interface
_SP_B_IFER_N, _SP_B_IFERR[n])
Error(Failure)
11-4
Chapter 11. Flag Table
BIT
Key Word Type Content Description
position
Represe- Continue operation
_CNF_ER_M BYTE ntative in system Continue operation when errors occurred
key word error(heavy fault)
Continue operation Detection of heavy fault from external equipment, e.g. when
_ANNUN_ER
BOOL BIT 6 when user error overriding and continuing to operation when _ANNUN_ER
_M
detected occurred.
Continue operation
If all multi I/O contacts(A, B toggle) failed during redundant
_RIQ_ER_M BOOL BIT 14 when I/O contacts
operation, to override and continue operation.
detected
_SLOT_M[15] Base1515
베이스
11-5
Chapter 11. Flag Table
_SLOT_A_S[15] Base1515
베이스
7 6 5 4 3 2 1 0
_BASE_B_S[n]
15 14 13 12 11 10 9 8
_SLOT_B_S[15] Base1515
베이스
11-6
Chapter 11. Flag Table
BIT
Key Word Type Content Description
Position
Repres-
_CNF_WAR WORD entative System Warning Batch processing of the following warning flags.
key word
_RTC_ERR BOOL BIT 0 RTC Data Error Displayed when RTC data error occurred.
Used in initialization program to indicate if operation data
lost in data memory due to back up error, normal hot or
Data Back up
_D_BCK_ER BOOL BIT 1 warm restart disabled, and cold restart performed.
Error
[Reset automatically after a completion of initialization
program.]
Used in initialization program to indicate if warm or cold
restart performed as parameter because hot restart time
Hot Restart exceeded to recover power during programming and
_H_BCK_ER BOOL BIT 2
Disable Arror impossible to back up operation data necessary in hot
restart. [Reset automatically after a completion of
initialization program.]
Displayed if cold restart performed because operation
unable to be recovered in power on after program
stopped due to power off during operation. Used in
ABNORMAL initialization program to alert continuous operation not
_AB_SD_ER BOOL BIT 3
SHUTDOWN performed to retain data. [Reset automatically after a
completion of initialization program.]
Also displayed If program stopped by 'ESTOP' function.
Task
Indicates task collision if redundant operation required
Collision(Positive
_TASK_ERR BOOL BIT 4 when running user program. (For details, see
period, outside
_TC_BMAP[n], _TC_CNT[n])
task)
Displayed when battery voltage for user program and
_BAT_ERR BOOL BIT 5 Battery Error
data memory back up below the specified.
Light Fault
Detected of If light fault detected from external equipment by user
_ANNUN_WR BOOL BIT 6
External program and recorded in _ANC_WB[n].
Equipment
Displayed when power supply not normalized in
_E_PWR_ER BOOL BIT 7 Base Power Error extension base of A CPU or B CPU when power on. (See
_CNF_AB_WAR)
Highway Link
_HSPMT1_ER BOOL BIT 8
Parameter 1 Error
Highway Link
_HSPMT2_ER BOOL BIT 9 Displayed when checking parameter error of each
Parameter 2 Error
highway link and notifying its operation disabled.
Highway Link
_HSPMT3_ER BOOL BIT 10 Reset in highway link disabled(stop)
Parameter 3 Error
Highway Link
_HSPMT4_ER BOOL BIT 11
Parameter 4 Error
Displayed when network or cable redundant composed
Network, Cable
_FDNET_WR BOOL BIT 12 wrong or disconnected in redundant network
redundant Error
configuration.
11-7
Chapter 11. Flag Table
BIT
Key Word Type Content Description
Position
Indicates partial fault when errors occurred in any I/O
_RIQ_WR BOOL BIT 14 Contact Failure contacts(A, B, C) of redundant system but operated
through normal contacts.
Redundant Power
Displayed when errors occurred in one of two powers if
_E_RPWR_WR BOOL BIT 15 Error of Extension
applying power redundant base to extension base.
Base
BIT
Key Word Type Content Description
Position
Represe
_CNF_AB_WAR WORD ntative System Warning Detailed warning flag of CPU A, CPU B
Key word
A CPU of RTC
_RTC_A_ERR BOOL BIT 0 Indicates RTC data error of A CPU.
error
B CPU of RTC
_RTC_B_ERR BOOL BIT 1 Indicates RTC data error of B CPU.
error
Used in initialization program to indicate if operation data
lost in data memory due to back up error of A CPU,
A CPU of data normal hot or warm restart disabled, and cold restart
_D_A_BCK_ER BOOL BIT 2 performed.
BACK_UP error
Reset automatically after a completion of initialization
program.
Used in initialization program to indicate if operation data
lost in data memory due to back up error of B CPU,
B CPU of data normal hot or warm restart disabled, and cold restart
_D_B_BCK_ER BOOL BIT 3
BACK_UP error performed.
Reset automatically after a completion of initialization
program.
A CPU of battery Displayed when battery voltage below the specified for A
_BAT_A_ERR BOOL BIT 4
error CPU user program and data memory back up.
B CPU of battery Displayed when battery voltage below the specified for B
_BAT_B_ERR BOOL BIT 5
error CPU user program and data memory back up.
A CPU of Displayed if power of extension base not normalized yet
_E_A_PWR_ER BOOL BIT 6 extension base of when power on of A CPU. CPU waits for power
power error normalization in standby.
B CPU of
Displayed if power of extension base not normalized yet
extension
_E_B_PWR_ER BOOL BIT 7 when power on of B CPU. CPU waits for power
Base of power normalization in standby.
error
11-8
Chapter 11. Flag Table
_IO_A_TYERR[15] Base1515
베이스
Module Type If mounted with module different from that in I/O configuration
_IO_B_TYER Mismatch Slot parameter in B CPU system or specific module mounted to
UINT 0~127
_N Number of B disavailable slot when started. Detect this and record the lowest
CPU system slot number.
If mounted with module different from that in I/O configuration
parameter in B CPU system or specific module mounted to
disavailable slot when started. Detect this and record slot position
Module Type at Bit-MAP of base.
_IO_B_TYER BYTE Mismatch 7 6 5 4 3 2 1 0
n:0~15
R[n] ARRAY Position of B _IO_B_TYERR[0] 베이스
Base00
CPU system _IO_B_TYERR[1] 베이스
Base11
_IO_B_TYERR[15] Base1515
베이스
Module
Mount/Dismou While operating, if module configuration changed in the base
_IO_A_DEER
UINT 0~127 nt Slot controlled by A CPU system, e.g. if module mount/dismount error
_N
Number of A occurred. Detect slot error and record the lowest slot number.
CPU System
While operating, if module configuration changed in the base
controlled by A CPU system, e.g. if module mount/dismount error
occurred. Detect slot error and record slot position at Bit-MAP of
Module base.
Mount/Dismou
_IO_A_DEER BYTE 7 6 5 4 3 2 1 0
n:0~15 nt Position of
R[n] ARRAY _IO_A_DEERR[0] Base00
베이스
A CPU Base11
_IO_A_DEERR[1] 베이스
System
_IO_A_DEERR[15] Base1515
베이스
Module
Mount/Dismou While operating, if module configuration changed in the base
_IO_B_DEER
UINT 0~127 nt Slot controlled by B CPU system, e.g. if module mount/dismount error
_N
Number of B occurred. Detect slot error and record the lowest slot number.
CPU System
11-9
Chapter 11. Flag Table
FUSE
While operating, if fuse disconnected of output module in the
_FUSE_A_E disconnection
UINT 0~127 base controlled by A CPU system. Detect if fuse disconnected
R_N slot number of
and record the lowest slot number.
A CPU system
While operating, if fuse disconnected of output module in the
base controlled by A CPU system. Detect if fuse disconnected
and record slot position at Bit-MAP of base.
FUSE
7 6 5 4 3 2 1 0
_FUSE_A_E BYTE disconnection
n:0~15 _FUSE_A_ERR[0] Base0 0
베이스
RR[n] ARRAY slot position of
_FUSE_A_ERR[1] Base1 1
베이스
A CPU system
_FUSE_A_ERR[15] Base1515
베이스
FUSE
While operating, if fuse disconnected of output module in the
_FUSE_B_E disconnection
UINT 0~127 base controlled by B CPU system. Detect slot position errors
R_N slot number of
detected and record the lowest slot number.
B CPU system
While operating, if fuse disconnected of output module in the
base controlled by B CPU system. Detect slot position errors
detected and record slot position at Bit-MAP of base.
FUSE
_FUSE_B_E BYTE disconnection 7 6 5 4 3 2 1 0
n:0~15 _FUSE_B_ERR[0] Base0 0
베이스
RR[n] ARRAY slot position of
_FUSE_B_ERR[1] Base1 1
베이스
B CPU system
_FUSE_B_ERR[15] Base1515
베이스
I/O Module
Read/Write While operating, if Read/Write error occurred of I/O module in the
_IO_A_RWE
UINT 0~127 Error Slot base controlled by A CPU system. Detect slot position errors
R_N
Number of A detected and record the lowest slot number.
CPU System
11-10
Chapter 11. Flag Table
Special/Comm
unication
When an error occurred if special or communication module
Module
_SP_A_IFER failed in initialization or due to misoperation of module in the base
UINT 0~127 Interface Error
_N controlled by A CPU system. Detect slot position errors detected
Slot Number
and record the lowest slot number.
of A CPU
System
When an error occurred if special or communication module
Special/Comm failed in initialization or due to misoperation of module in the base
unication controlled by A CPU system. Detect slot position errors detected
Module and record slot position at Bit-MAP of base.
_SP_A_IFER BYTE n:
Interface Error 7 6 5 4 3 2 1 0
R[n] ARRAY 0~15 _SP_A_IFERR[0] Base0 0
베이스
Slot Position
_SP_A_IFERR[1] Base1 1
베이스
of A CPU
System Base 15
_SP_A_IFERR[15] 베이스 15
Special/Comm
unication
When an error occurred if special or communication module
Module
_SP_B_IFER failed in initialization or due to misoperation of module in the base
UINT 0~127 Interface Error
_N controlled by B CPU system. Detect slot position errors detected
Slot Number
and record the lowest slot number
of B CPU
System
When an error occurred if special or communication module
Special/Comm failed in initialization or due to misoperation of module in the base
unication controlled by B CPU system. Detect slot position errors detected
Module and record slot position at Bit-MAP of base.
_SP_B_IFER BYTE n: 7 6 5 4 3 2 1 0
Interface Error
R[n] ARRAY 0~15 _SP_B_IFERR[0] 베이스
Base0 0
Slot Position
_SP_B_IFERR[1] Base1 1
베이스
of B CPU
System Base 15
_SP_B_IFERR[15] 베이스 15
Fault
Where detected and recorded heavy fault from external
_ANC_ERR n: Detection from
UINT equipment by user program and the number to be identified with
[n] ∗1 0~15 External
error type recorded at each 16-point( 0 disavailable).
Equipment
11-11
Chapter 11. Flag Table
Equipment
511 510 509 508 507 506 505 504
TASK Detected and displayed with bitmap when the same task running
COLLISION by each task or ‘task collision’ occurred in standby state.
Bit_Map _TC_BMAP[n]: 7 6 5 4 3 2 1 0
_TC_BMAP BOOL 15 14 13 12 11 10 9 8
n:0~47 Positive: 23 22 21 20 19 18 17 16
[n] ∗1 ARRAY
n:0~31 31 30 29 28 27 26 25 24
Outside: 39 38 37 36 35 34 33 32
47 46 45 44 43 42 41 40
n:32~47
_TC_CNT[n] TASK
While running user program, detect when task collision occurred
UINT n:0~47 COLLISION
∗1 by each task and record task collision number(n; task number)
COUNTER
Battery
_BAT_A_ER DATE& Voltage Drop Record the time first detected battery voltage drop of A CPU.
_TM TIME Time of A Reset if battery voltage returned to normal.
CPU
Battery
_BAT_B_ER DATE& Voltage Drop Record the time first detected battery voltage drop of B CPU.
_TM TIME Time of B Reset if battery voltage returned to normal.
CPU
Count the occurred number of instantaneous power failure in Run
_AC_F_CNT 0~ AC FAIL
UINT mode. That is, count all of instantaneous power failures in A
∗1 65535 Count
CPU, B CPU, and Extension Base.
DATE& Instantaneous Retained with the time instantaneous power failure occurred on
_AC_F_TM[n
TIME n:0~15 Power Failure the basis of the latest up to 16 in Run Mode. (n=0; the latest
]
ARRAY History data).
Time error occurred, up to 16 on the basis of the latest. (n=0; the
_ERR_HIS[n] BLOCK latest data).
n:0~15 Error History
*2 ARRAY Stop Time : DATE&TIME(8 BYTE)
Error Code : UINT (2 BYTE)
Record operation mode changed time, operation mode, and
_MODE_A_H
restart mode of A CPU system up to 16 on the basis of the
IS Operation
latest((n=0; the latest data).
[n] BLOCK Mode Change
n:0~15 Changed time : DATE&TIME(8 BYTE)
ARRAY History of A
*2 CPU Operation Mode : UINT (2 BYTE)
Restart : UINT (2 BYTE)
11-12
Chapter 11. Flag Table
11-13
Chapter 11. Flag Table
BIT
Key Word Type Content Description
Position
CPU Type Identification No. – GMR-CPUA:16(0), GMR-
_CPU_TYPE UINT 0~255 System Type CPUB:15
Reference: GM1-CPUA:0, GM2-CPUA:1, GM3-CPUA:2
O/S Version No. of
_VER_A_NUM UINT O/S version number of A CPU module
A CPU
O/S Version No. of
_VER_B_NUM UINT O/S version number of B CPU module
B CPU
Memory Module Type of program memory module mounted at A CPU
_MEM_A_TYPE UINT 1~5
Type of A CPU (0:Not mounted, Type:1~5)
11-14
Chapter 11. Flag Table
BIT
Key Word Type Content Description
Position
Mode and Status Information of mode and operation of A CPU
-
Operation of B CPU system.
Operation Mode can be changed only by mode key or by
BIT 0 Local Control
GMWIN.
BIT 1 STOP
BIT 2 RUN
Indicates the operation of CPU.
BIT 3 PAUSE(None)
BIT 4 DEBUG
Operation Mode
BIT 5
Change by Key
Change by Local
BIT 6
GMWIN에
Change by Remote Factor changed into current operation mode.
BIT 7
GMWIN에
_SYS_B_STATE WORD
Operation Mode
BIT 8 Change by
Communication
STOP by STOP Stopped after a completion of scan by STOP function in
BIT 9
function RUN mode.
BIT 10 Forced Input Running forced On/Off for input contact.
BIT 11 Forced Output Running forced On/Off for output contact.
STOP by ESTOP
BIT 12 Immediately stopped by ESTOP function in Run Mode.
function
There is designated I/O module to stop trouble check and
BIT 13 I/O Skip Running
data refresh.
BIT 14 Monitor Running Running outside monitor for program and variable.
BIT 15 Remote Mode ON Operating in Remote Mode.
GMWIN
- Path connected with GMWIN and CPU.
Connection
Local GMWIN
BIT 0 Connected with connector mounted at CPU module.
Connection
_PADT_CNF BYTE Remote GMWIN Connected with connector in communication module of
BIT 1
Connection remote I/O base.
Remote
BIT 2 Communication Connected with communication line and other PLC.
Connection
Restart Mode
-
Information
_RST_TY BYTE BIT 0 Cold Restart
Displayed in restart mode performed to start current
BIT 1 Warm Restart
running program
BIT 2 Hot Restart
_INIT_RUN BOOL BIT 3 Initializing Users are running user’s initialization program.
Max. Scan
_SCAN_MAX*1 UINT Record the max. scan time during operation.
Time(ms)
11-15
Chapter 11. Flag Table
BIT
Key Word Type Content Description
Position
Min. Scan
_SCAN_MIN*1 UINT Record the min. scan time during operation.
Time(ms)
Current Scan Update and record the current scan time during
_SCAN_CUR*1 UINT
Time(ms) operation.
Run time check
_STSK_NUM*1 UINT task Designate the task number to require run time check.
designation
Task Scan
_STSK_MAX*1 UINT Max. value of task run time designated at _STSK_NUM
Time(ms) – Max.
Task Scan
_STSK_MIN*1 UINT Min. value of task run time designated at _STSK_NUM
Time( (ms) – Min.
Task Scan
Current. value of task run time designated at
_STSK_CUR*1 UINT Time( (ms) -
_STSK_NUM
Current
BCD data RTC current time
(Ex. :96-01-01-12-00-00-00-20)
_RTC_TIME[0]: Year, _RTC_TIME[1]: Month,
_RTC_TIME[2] :Day
BIT
Key Word Type Content Description
Position
Redundant
_RED_STATE BYTE - Indicates the operation of redundant system.
Operation
Running
During redundant operation, normal operation of CPU A,
_RUN_RED BOOL BIT_0 Redundant
CPU B
Operation
A Side One-sided
_RUN_SA BOOL BIT_1 Only CPU A operating one-sidedly in redundant system.
Operation
B Side One-sided
_RUN_SB BOOL BIT_2 Only CPU B operating one-sidedly in redundant system.
Operation
A CPU Master
_A_MASTER BOOL BIT_3 CPU A operating as a master in redundant system.
Operation
B CPU Master
_B_MASTER BOOL BIT_4 CPU B operating as a master in redundant system.
Operation
11-16
Chapter 11. Flag Table
BIT
Key Word Type Content Description
Position
SW configuration
- Display errors by block of user program in A CPU system
of A CPU system
Basic Parameter
BIT 0 Check and display errors of basic parameter.
Error
I/O Configuration
BIT 1 Check and display errors of I/O configuration parameter.
_DOMAIN_A_ST BYTE Parameter Error
BIT 2 Program Error Check and display errors of user program.
Access Variable
BIT 3 Check and display errors of access parameter.
Error
High Link
BIT 4 Check and display errors of highway link parameter.
Parameter Error
SW configuration
- Display errors by block of user program in A CPU system
of B CPU system
Basic Parameter
BIT 0 Check and display errors of basic parameter.
Error
I/O Configuration
BIT 1 Check and display errors of I/O configuration parameter.
_DOMAIN_B_ST BYTE Parameter Error
BIT 2 Program Error Check and display errors of user program.
Access Variable
BIT 3 Check and display errors of access parameter.
Error
High Link
BIT 4 Check and display errors of highway link parameter.
Parameter Error
Key BIT
Type Content Description
Word Position
- A CPU Key
Display key switch of A CPU and DIF.
setting position
BIT 0 KEY_STOP
BIT 1 KEY_RUN
Display Mode Key switch setting of A CPU.
BIT 2 KEY_PAUSE/RE
_KEY_A_ MOTE
BYTE
STATE
-
BIT 4 KEY_B
BIT 5 KEY_A Display Key switch of DIF.
BIT 6 KEY_A+B
-
11-17
Chapter 11. Flag Table
Key BIT
Type Content Description
Word Position
Key setting
- position of B Display Key switch of B CPU and DIF.
CPU
BIT 0 KEY_STOP
BIT 1 KEY_RUN
Display Mode Key switch setting of BCPU.
_KEY_B_
BYTE KEY_PAUSE/RE
STATE BIT 2
MOTE
BIT 3 -
BIT 4 KEY_B
BIT 5 KEY_A Display Key switch of DIF.
BIT 6 KEY_A+B
CPU
Configuration
- Display the configuration of CPU modules.
Status
Information
BIT 0 GM1/GM2 Display CPU type. GM1:0, GM2:1, redundancy:0
Multi_CPU
BIT 1 Display when PLC configuration is GM1-Multi CPU.( redundancy:0)
Configuration
Redundant
_CPU_ BIT 2 Display when PLC configuration is GMR-redundancy.
Configuration
WORD
CNF In case of GM1-Multi CPU of PLC configuration, display the
BIT CPU0~3
position of mounted CPU and in case of redundant system, set to
4~7 Mounting
BIT8 in CPU-A and to BIT9 in CPU-B.
CPU Module In case of GM1-Multi CPU of PLC configuration, display the
BIT
Mounting mounted position of its own and in case of redundant system, set
8~11
Position to BIT8 in CPU-A and to BIT9 in CPU-B.
Matched with
BIT If resource built-in CPU module installed in right position, the
CPU and
12~15 applicable BIT is set.
resource
A CPU system Indicates the slot position mounted with controllable
_IO_A_ I/O module in base at Bit-Map.
I/O Module
7 6 5 4 3 2 1 0
INSTALL Mounting
BYTE n:0~15 _IO_A_INSTALL[0] Base00
베이스
[n] Position of A _IO_A_INSTALL[1] Base11
베이스
CPU system
_IO_A_INSTALL[15] Base1515
베이스
11-18
Chapter 11. Flag Table
11-19
Chapter 11. Flag Table
Applicable
Key Word Type Content Description
NET
_CnSVBSY BIT12 Common-used Indicates lack of source in common-used RAM on
Applicable
RAM Lack communication module.
to all (Lack=1)
_CnCRDER BIT11 Communication Indicates H/W or system O/S error of communication module.
Applicable Module System
to all Error
(Error=1)
_CnCHSEL BIT10 Fdnet Current Indicate the channel((cable) being used by current
Operating communication module during cable redundant.
Channel
(CHA=0)
_CnCHASTS BIT 9 Fdnet Channel A Indicate the connection of Channel A(Cable A) (normal=1).
_CnCHBSTS BIT 8 Fdnet Channel B Indicate the connection of Channel B(Cable B) (normal=1).
_CnNETWAR BIT 7 Fdnet Network Network configuration error flag
Configuration
Indicate the
_NETn_LIV[k] station Indicate if network connected with remote station with no. K or
BOOL connected to
k=0-63 Fnet with local PLC by bit.
ARRAY network in bit.(1
k; station no. This value indicates current network state(write disabled).
= Connected, 0
= Disconnected)
Indicate the
station
_NETn_RST[k] Indicates the station reconnected after disconnected from
reconnected to
BOOL network by bit. To detect next reconnection, always set this
k=0-63 Fnet network after
ARRAY value to 0 in user program with latched to ‘1’ in reconnection.
k; station no. disconnected..(1
(Write Enabled)
= reconnected, 0
= no change)
Indicate user
_RCVn_232[k] defined fame
When RS422 operated in user defined mode and reception
BOOL received by
k=0-63 k; Cnet frame received at RS422, BIT corresponding to setting number
ARRAY setting
setting no. will be 1 and if reading RCV_MSG F/B, deleted to 0.
number.(Receiv
ed=1)
Indicate user
_RCVn_422[k] defined fame When RS422 operated in user defined mode and reception
BOOL
k=0-63 k; Cnet received by frame received at RS422, BIT corresponding to setting number
ARRAY setting number will be 1 and if reading RCV_MSG F/B, deleted to 0.
setting no.
(Received=1)
Indicate data
frame received
_RCVn_ECM[k] BOOL
When data frame received through Enet communication
at applicable
k=0-15 k; Enet channel, BIT corresponding to setting number will be 1 and if
ARRAY communication
Channel No. reading RCV_MSG F/B, deleted to 0..
channel(Receive
d=1)
11-20
Chapter 11. Flag Table
11-21
Chapter 11. Flag Table
11-22
Chapter 11. Flag Table
Some flag is enabled for variable service through network without controlling user’s program. For
operation of flag, data type, size and composition of data block, see between para 11.1 and 11.8.
_SCAN_MAX,
_CPU_TYPE / _VER_A_NUM / _VER_B_NUM _SCAN_MIN,
_MEM_A_TYPE / _MEM_B_TYPE _SCAN_CUR,
_SYS_A_STATE / _SYS_B_STATE / _PADT_CNF / _RST_TY
11.6 System Operation _STSK_NUM,
_INIT_RUN
Status Information Flag _STSK_MAX,
_SCAN_MAX / _SCAN_MIN / _SCAN_CUR
_STSK_NUM / _STSK_MAX / _STSK_MIN / _STSK_CUR _STSK_MIN,
_RTC_TIME[n] / _SYS_ERR / _RED_STATE _STSK_CUR 만
Write Enable
_FSMn_RESET / _FSMn_IO_RESET
11.8 Communication Flag Enabled
_FSMn_HS_RESET / _FSMn_ST_NO
11-23
Chapter 11. Flag Table
11-24
Chapter 12. System Definition
As basic parameter necessary in PLC operation, there are memory assignment, restart mode, scan
watchdog time and etc.
12-1
Chapter 12. System Definition
%M
Bit Range Byte Range Word Range Dword Range Lword Range
Designation
1K byte %MX0 ~ 8191 %MB0 ~ 1023 %MW0 ~ 511 %MD0 ~ 255 %ML0 ~ 127
8K byte %MX0 ~ 65535 %MB0 ~ 8191 %MW0 ~ 4095 %MD0 ~ 2047 %ML0 ~ 1023
16K byte %MX0 ~ 31071 %MB0 ~ 16383 %MW0 ~ 8191 %MD0 ~ 4095 %ML0 ~ 2047
32K byte %MX0 ~ 62143 %MB0 ~ 32767 %MW0 ~ 16383 %MD0 ~ 8191 %ML0 ~ 4095
64K byte %MX0 ~ 24287 %MB0 ~ 65535 %MW0 ~ 32767 %MD0 ~ 16383 %ML0 ~ 8191
• In Redundant System, it can be set from 0 byte to 64K byte in the unit of 1K byte. %M area
setting has an influence on operation delay time in redundant entry. Don’t set more than as
required.
12-2
Chapter 12. System Definition
To set module configuration of system to be operated, mount with the slot of each base module and
set operation module. If there is difference between setting parameter and actual mounted module,
operation is disabled. I/O configuration parameter was set to empty slot(DEF_EMPTY).
Even if I/O configuration parameter set to empty slot(DEF_EMPTY), module type mismatch error may
be occurred if actual mounted module exists in power on.
Default module setting is disabled in GMR. Mount I/O configuration Parameter actually and set operation module.
12-3
Chapter 12. System Definition
G3I-D22A(16-point), G3I-D22C(16-point),
DC Input DC Input Module
G3I-D24A(32-point), G3I-D28A(64-point)
AC 110V Input AC 110V Input Module G3I-A12A(16-point), G3I-A14A(32-point)
12-4
Chapter 12. System Definition
This means the parameter for highway link to set transmit/receive destination, data, period and etc. when
transmitting and receiving certain data repetitively through communication module(For details, see
communication related manual).
Station Type : indicates type of the opposite communication module and sets to Local/Remote.
Station Number : Indicates the station where data occurred in Transmit/Receive.
Mode : Sets Transmit/Receive.
Block Number : Unique number to distinguish data block from the same communication module.
Transmit/Receive Period : Sets Transmit/Receive period.
Area : Enabled in I,Q,M area selection for data transmission/reception. Sets start address in digit.
Size : Sets the number of word of transmit/receive area.
12-5
Chapter 12. System Definition
12-6
Chapter 12. System Definition
Redundant Base : Designates the position of redundant base to word unit among triplex inputs.
The setting will be applied to both of Base A and Base B.
Switched Base: Designates the position of switched base among triplex inputs.
Time Monitoring: Sets fault detection time(minimum setting : 20ms)
Output Position : Designates the position of output word to set circuit type.
Feedback Position : Designates the position of input word to feedback output signal.
Feedback Time : Designates the maximum feedback monitoring time.
Master Control : When faults detected, sets the position of output contact to be used for load
power off.
Master Control Monitoring : Sets the position of input contact to monitor master control output
contacts.
Number : Sequential Number.
Continuous Module Position in a fault: When faults of module occurred, sets the position of
module to override this and continue operation. (%IQ[Base No.].[Module Position])
12-7
Chapter 13. Program Troubleshooting
13-1
Chapter 13. Program Troubleshooting
(x:
Standby .Indicates the cause of Master Change by type.
(x:0~4) 0~4)
.During power on standby of extension base in initial start
Master/Standby .If base not supplied with power, mark base number and
(xx:0~15) (xx:0~15)
wait for power on(see 8.1.5.1).
.During power normal return, when AC input power of main
or extension base to OFF/Instantaneous Power
Master/Standby Failure/Voltage Drop(AC_Fail).
.Power Check -> Extension Cable Mounting Check ->
Power Module Replacement
.If changed to STOP Mode by ‘USTOP’ function during
Master/Standby
programming
Master/Standby .Error code(see ‘13.2 Fault Check by error code)
Master/Standby . Error code(see ‘13.2 Fault Check by error code)
Master/Standby .While deleting data of flash memory module.
Master/Standby .While saving program into flash memory module.
Master(One-sided) .Displays mode state in debug(only in one-sided operation.
.Indicates the times of scan when scan break performed in
Master(One-sided)
debug mode.
.Designates the times of break at data break in debug mode
Master(One-sided)
and indicates the number of designated break.
. Designates the times of break at code break in debug
Master(One-sided)
mode and indicates the number of performed break.
Master(One-sided) .When step break performed in debug mode
Master(One-sided) .When abnormal break performed in debug mode
8888 88888 Master/Standby .Checks the operation of display in initial start.
13-2
Chapter 13. Program Troubleshooting
LED
Error
Cause Remedy Operation Display Diagnosis
Code
(7 SEG)
CPU(microprocessor) -A/S required if not removed with
- failure or OS ROM Read Failure Fail:ON Power On
power resupply.
Disabled
-A/S required if not removed with
02 OS ROM Error Failure (S 002) Power On
power resupply.
-A/S required if not removed with
03 OS RAM Error Failure (S 003) Power On
power re-supply.
-A/S required if not removed with
04 Clock IC(RTC) Failure Failure (S 004) Power On
power re-supply.
Dedicated Processor -A/S required if not removed with
05 Failure (S 005) Power On
failure power re-supply.
Memory module program -A/S required if not removed with Power On
06 not saved due to faulty Failure (S 006) RUN Mode
power on in RUN MODE.
program memory Change
Data Memory error -A/S required if not removed with
07 Failure (S 007) Power On
power re-supply.
Communication IC error -A/S required if not removed with
08 Failure (S 008) Power On
power re-supply.
-A/S required if not removed with
09 Interrupt controller error Failure (S 009) Power On
power re-supply.
Watchdog error due to During
- -Power re-supply RESET Fail:ON
congestion of OS program Operation
Installation Position Error -Move to suitable position if CPU
101 STOP (S 101) Power On
of CPU module module mounted at disavailable slot.
110~ CPU misoperation during Restart and if not removed, (S 110 During
RESET
116 operation Check installation environment. ~S 116) Operation
-
13-3
Chapter 13. Program Troubleshooting
LED
Error
Cause Remedy Operation Display Diagnosis
Code
(7 SEG)
-Check wrong slot position in GMWIN,
modify module or parameter, and then Power On,
Mismatch of mounted restart(cold when modifying program). Program
STOP
30 module with parameter (E 030) Loading
Reference flag: module type mismatch (RUN)
setting. RUN Mode
error flag (_IO_TYER,_IO_TYER_N,
Change
_IO_TYERR[n])
-Check missed/added slot position in
GMWIN, correct module mounting, and
Missing or additional then restart(as paramter).
STOP
31 mounting of module during Reference flag: module install/remove (E 031) Scan Stop
(RUN)
operation error
flag(_IO_DEER,_IO_DEER_N,_IO_DEER
R[n])
-Check slot position where fuse
disconnection occurred in GMWIN,
Disconnection of module replace fuse and then restart(as
parameter). STOP
32 attached with fuse during (E 032) Scan Stop
(RUN)
operation. Reference flag: Fuse disconnection error
flag(_FUSE_ER,_FUSE_ER_N,
_FUSE_ERR[n])
-Check slot position where access error
occurred in GMWIN, replace module and
then restart(as parameter). Scan Stop
Normal access disabled of STOP
33 I/O module data during Reference flag: I/O module read/write (E 033) During
operation error flag (RUN)
Programming
(_IO_RWER,_IO_RWER_N,_IO_RWERR
[n])
-Check slot position where access error
occurred in GMWIN, replace module and Power On
Normal access disabled of then restart(as parameter). STOP Scan Stop,
34 Special/Link module data Reference flag: Special/Link Module (E 034)
(RUN) During
during operation Interface error
Programming
rror(_SP_IFER,IP_IFER_N,_IP_IFER[n])
13-4
Chapter 13. Program Troubleshooting
LED
Error
Cause Remedy Operation Display Diagnosis
Code
(7 SEG)
Stack exceeded normal During
42 -Restart(cold) STOP (E 042)
range during programming Programming
13-5
Chapter 14. Installation and Wiring
1) Environmental Conditions
(1) Install in Control Panel available for waterproof and dustproof.
(2) Avoid continuous shock or vibration.
(3) Do not expose to direct ray of light.
(4) Not condensed due to rapid changed temperature.
(5) Do not exceed 0~55°C of ambient temperature.
(6) Do not exceed 5~95% of relative humidity.
(7) No corrosive or flammable gases.
2) Construction
(1) Prevent leftovers entered PLC when machining screw hole or connecting wires.
(2) Install where easy to handling.
(3) Do not install at the same panel with high voltage equipment.
(4) Keep the distance between wiring duct and environmental module more than 100mm.
(5) Ground to good noise environment.
The followings describe how to calculate its own power consumption of PLC system necessary in
radiation design.
1) Block Diagram on Power Consumption of PLC system
14-1
Chapter 14. Installation and Wiring
(4) Average Power consumption by Output Terminal Voltage Drop of Output Module(Power
Consumption of Number of Simultaneous On Points)
If voltage drop occurred between both output terminal in load driving such as TR and SSR
output module, calculate the power consumed as a heat in drive element of module.
• Wout = Iout X Vdrop X Output Point X Simultaneous On Rate (W)
Iout : Output Current(Actually Used) (A)
Vdrop : Voltage drop of each output module (V)
The sum of power consumption as calculated above by block will be overall power consumption of
system.
• W = WPW + W5V + W24V + Wout + Win + Ws (W)
Calculate heating amount as this overall power consumption(W) and check temperature rist in
control panel.
14-2
Chapter 14. Installation and Wiring
14.1.2 Precautions
This describes precautions from opening to installing each module.
• Avoid dropped or shocked.
• Do not disconnect PCB from case. It can cause a failure.
• Prevent foreign matters such as leftovers entered module in wiring. If entered, remove them.
• Make sure the wire not passed in front of I/O operation display(LED). (It can’t identify I/O mark
correctly).
• If inductive load connected to output module, connect surge killer or diode in parallel with load.
Connect cathode of diode to + of power.
Output
COM Surge Killer
14-3
Chapter 14. Installation and Wiring
(6) Terminal
Check that terminal tight connected and prevent leftovers entered PLC in terminal wiring or
screw hole machining works. This can cause misoperation or failure.
(7) Besides as above mentioned, do not disconnect PCB board from case.
This describes the precautions when attaching PLC at control panel and etc.
(1) Keep sufficient distance between module and structure or parts to facilitate module replacement
and ventilation.
(2) Avoid longitudinal connection and horizontal attachment for ventilation.
(3) Use different panel or install in separately with vibration source such as large electronic
contactor or no fuse breaker, and etc.
(4) Install wiring duct as follows if necessary.
• If installed in the upper of PLC, keep the height of wiring duct less than 50mm for good ventilation. Keep
the distance from upper of PLC enough to press HOOK located at top of base.
• If installed in the bottom of PLC, optical cable or coaxial cable can be connected. When
bending the connected cable, take considerations of minimum radius.
(5) If the equipment located in front of PLC to avoid radiation noise or heat(located inside of door),
install with a distance of more than 100mm. Install the equipment with a distance of more than
50mm from left/right direction of base.
Base
14-4
Chapter 14. Installation and Wiring
Contactor
Relay,
PLC
More than
100mm
[Fig. 14.2] Distance from Front Equipment [Fig. 14.3] Longitudinal Attachment(Unavailable) [Fig. 14.4] Horizontal Attachment(Unavailable)
14-5
Chapter 14. Installation and Wiring
1) Installing Module
• Insert mounting lug in the bottom of module into module mounting hole of base.
• Push top of module and set in base.
• Pull top of module and make sure firmly mounted at base.
Hook
Module
Base
Module
Connector
REMARK
• Always set the module after inserting module-mounting lug into module mounting hole. Attaching
excessively can cause pin bent or module broken.
• Especially if used in the place exposed to vibration and shock, set the module into base with screws.
14-6
Chapter 14. Installation and Wiring
2) Removal of Module
• Take seize the module by hands and push the hook of bash to the end.
• While pressing the hook, pull out the module upward with the center of bottom.
• While pulling out the module upward, remove mounting lug from module mounting hole.
Hook
Module
Module
Connector
REMARK
• When removing the module, remove module from base with hook pressed and detach mounting lug from
module mounting hole of base. This time, detaching forcedly can cause hook or module mounting lug
damaged.
14-7
Chapter 14. Installation and Wiring
14.2 Wiring
Base
Power
Constant-
voltage
transformer
2) Connect the power with small noise between lines and earth.
(In case of big noise, connect insulation transformer.)
Insulat Insulat
ion PLC ion I/O
Transf Transf Device
ormer ormer
3) Disconnect I/O and Power Devices from the power of PLC as shown in the following schematic
diagram.
Main
Power PLC Power
*
PLC
AC220V T1
I/O Power
Main Power PLC Power
* I/O
I/O Power
Power
Device
전 전
System 원 Redundant Basic 원
A Base B
A System
Power
전 전
Power
Switched I/O
원 원 Extension Base
A B
전
Base A
원
Power
14-8
Chapter 14. Installation and Wiring
Power I 전원
Power I
/ /
AC O AC O
LG LG
24V 24V
전원
Power DC 24V
I
AC
/
O Power
LG
24V Supply
y Redundant power module can be connected with DC24V in parallel. This time, connect wiring in
consideration of module replacement.
전원
Power 전원
Power I
6) Connect C 110V line, AC 220V line, DC 24V /
line in the shortest distance
AC AC O
as tight as possible. LG LG
24V 24V
7) Use AC110V line, AC 220V line as thick as
possible to decrease voltage drop.
(See 14.2.4 Wiring Lead Specification)
To prevent surge such as thunder, use serge absorber for preventing thunderbolt as shown in the
following figure.
PLC
I/O Device
E1 E2
14-9
Chapter 14. Installation and Wiring
Remarks
• Disconnect Earth(E1) of surge absorber for thunderbolt protection and Earth(E2) of PLC.
• Select surge absorber for thunderbolt protection not exceeding the max. permissible voltage of surge
absorber when power voltage increased to the maxim.
10) Use insulation shield trans and noise filter to prevent noise entered.
11) Connect the wiring of each input power with twisted as short as possible and do not pass, the
wiring of shield trans or noise filter through duct.
RA
Output
DC
14-10
Chapter 14. Installation and Wiring
(4) Use ground lead of more than 2mm. Place ground point as near as possible in PLC to shorten the
length of ground line.
(5) Ground LG of power module and FG of base board in separately.
Power
Power
Power
LG LG
FG FG FG
(6) If wrong operation occurred due to ground, disconnect FG of Base from ground.
(7) Ground of Redundant Base
전 전 전
Power
Power
C D C
Power
Power
P I P 원 원 원 Switched I/O
U F U Extension Base
B A
A
B
B
A A B B
LG LG FG
FG
14-11
Chapter 14. Installation and Wiring
14-12
Chapter 14. Installation and Wiring
Checkpoint Description
• Did the connector of Interface Driver/Receiver Module connected with that
Extension Cable Connection of extension cable properly?
Interface Module Setting • Did switch setting of Interface Driver/Receiver Module done properly?
• Is configuration name and mounting of module mounted at each slot of
Module Mounting Basic and Extension Base good?
Fuse • Didn’t fuse damaged or broken?
• Did the cable connected with each terminal matched with signal name?
Connection of Power Line
• Is terminal screw torque of power module and I/O module terminal good?
and I/O line
• Is current capacity of cable good?
Start
Power On :
1) Check input power.
2) Check power voltage for I/O device.
3) Set key switch of CPU Module A, B to Stop and mode key of DIF module to ‘A+B’.
4) Set CH On/Off switch of interface driver module.
5) Set Oper switch, base number setting switch and END switch of interface receiver module.
6) Turn on CPU_A side. After starting CPU_A , turn on CPU_B side.
7) Check that Power LED of power module illuminated.
8) Check that Stop LED of CPU module illuminated.
9) Check that Oper LED of Interface Driver Module illuminated.
10) Check that Oper LED of Interface Receiver Module illuminated.
(See 5.7.3 How to install Remote Interface Module)
Programming : Perform programming with peripheral equipment, download program in CPU and then test
it(see 8.1.3 Initial Operation Start).
Check of external output wiring : Check external output wiring using forced output function of
peripheral equipment(GMWIN).
Check of external input wiring : Check the wiring of input equipment in Monitor Mode of
peripheral equipment(GMWIN).
14-13
Chapter 15. Maintenance
PLC module consists of semi-conductor element (except of relay output module) and has semi-
permanent life. But regular check is required to prevent error occurred in element due to the
environmental effect. The following table describes what should be checked about one or two times 6
months.
15-1
Chapter 15. Maintenance
Take necessary actions with checking these items about 1 or 2 times 6 months.
It is recommended to stop operation of module and base during operation and replace the module to
be installed at base. For procedures, 9.3 Module Replacement During Operation’.
15-2
Chapter 15. Maintenance
When back up battery less than the specified voltage(2.6V) for maintaining program and power
failure, 501’ will be displayed on 7_SEG in front of CUP.
Remarks
• If system warning flag _BAT_ERR turned On, it indicates battery voltage for memory backup and user
program less than the specified. Replace battery as soon as possible.
Replacement of Battery
END
15-3
Chapter 15. Maintenance
Remarks
Replacement of Fuse
Turn on PLC.
Is ‘PWR’ LED No
illuminated in front of
power module?
Yes
END
15-4
Chapter 16. Troubleshooting
To improve system reliability, it is important to use the equipment with high reliability, but take an
action rapidly when trouble occurred.
To operate system rapidly, find the cause of trouble and take corrective actions rapidly. Take
precautions of the followings when performing troubleshooting.
16.2 Troubleshooting
This describes how to fine trouble and error code with divided into content and remedy.
Trouble
If Power LED
extinguished Go to flow if Power LED extinguished
If program disabled to
write Go to remedy if communication not connected normally
16-1
Chapter 16. Troubleshooting
Is power supply No
Power Supply.
enabled?
Yes No Yes
Is Power LED
illuminated?
No
Is power module set?
Supply power module.
16-2
Chapter 16. Troubleshooting
16-3
Chapter 16. Troubleshooting
No
No
Fill in troubleshooting
question sheet and then
contact local A/S center or
END agent.
16-4
Chapter 16. Troubleshooting
Yes
Yes
16-5
Chapter 16. Troubleshooting
No
Set key switch to remote stop
Is key switch set to mode and run program write.
remote stop mode?
Yes
16-6
Chapter 16. Troubleshooting
FAIL LED
If mounting position error of driver, turn off and then correct it.
Driver
If no error in position, contact A/S center.
.In case of wrong mounting position of receiver, turn off and then correct it.
Receiver .Check if multi receiver installed at desired extension base..
If no error, contact A/S center.
CH ERROR LED
ON
16-7
Chapter 16. Troubleshooting
If errors occurred while using PLC in GMR redundant series, fill in this question sheet and contact A/S
center by telephone or fax.
y For errors related special and communication modules, fill in the question sheet attached to
applicable user’s manual. .
16-8
Chapter 16. Troubleshooting
Leakage current by capacity between leads of y Apply the power at external equipment as
wiring cable shown in the following figure.
AC Input AC Input
Input Signal
will not off 누설전류
Leakage
current
~ ~
외부기기
External equipment 외부기기
External equipment
External 외부기기
equipment
16-9
Chapter 16. Troubleshooting
Output Timer
T
Load
~
C
Leakage current ~
R Output X
~
y Leakage current by surge absorption y Drive C-R type timer with relay.
circuit connected with output element in y Use besides C-R type timer.
parallel. NOTE) Inside circuit may be half-wave rectified
In case of C- according to timer.
R type timer,
time error
16-10
Chapter 16. Troubleshooting
Output
Output
Load
Load
E1
E2 E1
E2
16-11
Chapter 16. Troubleshooting
Output
Broken
transistor for Rush Current of incandescent lamp y To inhibit rush current, flow dark current
output between one third(1/3) and one fifth(1/5) of
Output rated power in incandescent lamp.
Output
E1
R E1
E1
16-12
Chapter 16. Troubleshooting
Empty Page
16-13
Chapter 17. Outside Dimension
130.5 35
17-1
Chapter 17. Outside Dimension
250
118 35
17-2
Chapter 17. Outside Dimension
E
GMR-B02M
C D
E
GMR-B04M
C D
17-3
Chapter 17. Outside Dimension
E
↔
C D
(Unit : mm)
Items A B C D E
17-4
Chapter 17. Outside Dimension
250
128
17-5
Chapter 17. Outside Dimension
53
17
Connector
21
17-6
Appendix 1. Example of Redundant System
This shows the block diagram of Redundant system. It consists of CPU, Power, I/O, Remote I/O
communication Redundancy. For network Redundancy between PLC and with higher next system,
see ‘Communication Redundancy’ manual.
Power Module
Power Module
0 1 2 3 C C 0 1 2 3 P
P P o
Redundant E F F D E F F
U U w
Basic Base # 0 U U D I U U D
I I er
E E I F E E I
A B M
A A A A A A
o
Power Module
Power Module
P P 0 1 2 3 4 5 6 7
o o F F
Base # 1 w w In In In In In Out A D R R
(switched) er er put put put put put put D A I I
M M 16 16 C C
o o 32 32 32 32 32 32
Power Module
P 0 1 2 3 4 5 6 7
Base # 2 o F I
w In In Out Out Out In A D R
(Redundant−A) /
er put put put put put put D A I
M 16 16 C F
o 32 32 32 32 32 32
Power Module
P 0 1 2 3 4 5 6 7
o F I
Base # 2 w In In Out Out Out In A D R
(Redundant−B) /
er put put put put put put D A I
M 16 16 C F
o 32 32 32 32 32 32
Power Module
Power Module
P P 0 1 2 3 4 5 6 7
R
o o
Remote Station 16 w w B In In In Out Out Out A D
er er R put put put put put put D A
M M A 16 16
o o 32 32 32 32 32 32
A1-1
Appendix 1. Example of Redundant System
Base #1
Position Usage Related Circuit
0slot Triplex Assigned Input : Overall Process Data *1 (Triplex Input1)
1slot Triplex Assigned Input: Detailed Data of Each Process *2 (Triplex Input 2)
Input(Switched Input)
*3 (Redundant
2slot Set No. 0 Contact to 0 of 2 slot in #2-A (Output Power Off)
Output 1)
Set No. 1 Contact to 0 of 2 slot in #2-A (Output Power Off)
Input(Switched Input) *4 (Redundant
3slot
Monitor Redundant Output Contact(3slot of #2-A,B) Output 2)
4slot Input(Switched Input) : BCD Counter of Product Output None
5slot Output(Switched Output) : BCD Indicator of Product Output None
6slot Switched A/D Input Module None
7slot Switched D/A Output Module None
Base #2-A
Position Usage Related Circuit
0slot Triplex Assigned Input : Overall Process Data *1 (Triplex Input 1)
1slot Triplex Assigned Input: Detailed Data of Each Process *2 (Triplex Input 2)
Redundant Output
*3 (Redundant
2slot Set No. 0 Contact to power off of 4 slot in #2-A
Output 1)
Set No. 1 Contact to power off of 4 slot in #2-B(not connected)
Redundant Output : Overall Process Output *4 (Redundant
3slot (Provide with Fault Contact Check Function) Output 2)
Redundant Output : Detailed Output of Each Process
*3 (Redundant
4slot (Provide each A and B base with Fault Contact No. Check and
Output 1)
Auto Shut Off function. )
*3 (Redundant
5slot Monitor output contact of 4 slot in #2-A
Output 1)
*Special Redundant
6slot Redundant A/D Input Module
1
*Special Redundant
7slot Redundant D/A Output Module
2
Base #2-B
Position Usage Related Circuit
0slot Triplex Assigned Input: Overall Process Data *1 (Triplex Input 1)
1slot Triplex Assigned Input: Detailed Data of Each Process *2 (Triplex Input 2)
이중화 출력
*3 (Redundant Output
2slot Set No. 0 Contact to power off of 4 slot in #2-A(not connected)
1)
Set No. 1 Contact to power off of 4 slot in #2-B
Redundant Output : Overall Process Output *4 (Redundant Output
3slot (Provide with Fault Contact Check Function) 2)
Redundant Output : Detailed Output of Each Process
*3 (Redundant Output
4slot (Provide each A and B base with Fault Contact No. Check and
1)
Auto Shut Off function. )
*3 (Redundant Output
5slot Monitor output contact of 4 slot in #2-A
1)
6slot Redundant A/D Input Module *Special Redundant 1
7slot Redundant D/A Output Module *Special Redundant 2
A1-2
Appendix 1. Example of Redundant System
Remote 16 Station
Position Usage Related Circuit
0slot Remote Input : Product End Item Loading BCD Counter None
1slot Remote Input None
2slot Remote Output : Product Raw Material Loading BCD Indicator None
3slot Remote Output : Product Output BCD Indicator None
4slot Remote Output None
5slot Remote Output None
6slot Remote A/D Input Module None
7slot Remote D/A Output Module None
According to ‘Appendix 1-2 Function Setting by Module’ as above-mentioned, only the related parts
will be indicated with contact number. This part shall be registered in parameter. When programming,
do not divide into A and B for I/O Redundancy and treat as one contact.
A1-3
Appendix 1. Example of Redundant System
A1.4 Project
This shows overall configuration of ex. Program. For parameter and variable, see applicable section
of this manual. Here only the content of program will be provided.
The following configuration component can be applied selectively according to its own system
configuration.
Parameter
Basic Parameter
I/O Parameter
I/O Highway Link Parameter
I/O Redundancy Parameter
Inserted Library Files
c:\gmwsin30\lib\communi.rfb
c:\gmwsin30\lib\redutil.rfb
c:\gmwsin30\lib\remote3.rfb
c:\gmwsin30\lib\special.rfb
A1-4
Appendix 1. Example of Redundant System
C : \gmwin30\source\sp_initial.src
Comment ### ------ Special Module Initialization when restarting COLD & WARM
Row 2 SADINIT
AD4INI
Row 3 RE Q DONE
• Program Description : In Cold or Warm Restart, initialize special module
Row 4 1 BASE STAT installed at No. 1 and No. 2 Base. When positioning
start, start function block once (OFF -> ON) and
Row 5 6 SLOT ACT connected to bus unconditionally.
Row 14
Row 16 SDAINIT
DA4INI
Row 17 RE Q DONE
Row 20 DACHEN CH
DATYPE DATA
Row 21
TYPE
Row 23
Row 25 RADINIT
RAD4INI
Row 26 RE Q DONE
ADCHEN CH
Row 29
ADTYPE DATA
Row 30 TYPE
Row 31
A1-5
Appendix 1. Example of Redundant System
Row 34 RDAINIT
DA4INI
Row 35 RE Q DONE
Row 38 DACHEN CH
Row 41
Row 44 ( )
Row 45
• Program Description : Check if initialization of special module completed, turn ON
_INIT_DONE flag to exit initialization program and then enter
scan program.
A1-6
Appendix 1. Example of Redundant System
C : \gmwin30\source\sp_hinitial.src
SADINIT
Row 2
AD4INI
1OFF
Row 3 RE Q DONE • Program Description : In Hot Restart, initialize special module installed at
No. 1 and No. 2 Base. As Function Block memorized
1 BASE STAT
previous REQ status(ON), turn OFF(I_10FF condition)
Row 4
and then restart(ON -> OFF -> ON).
Row 5 6 SLOT ACT
• Function Block Description :
ADCHEN CH AD4INI : Initialization Function Block of A/D Module installed at
Row 6
Switched Base.
ADTYPE DATA DA4INI : Initialization Function Block of D/A Module installed at
Row 7 TYPE Switched and Redundant Base.
ADFTEN FILT RAD4INI : Initialization Function Block of A/D Module installed at
Row 8
_EN Redundant Base.
ADFTVAL FILT
Row 9
_VAL
Row 14
Row 23
ADCHEN CH
Row 29
ADTYPE DATA
Row 30 TYPE
A1-7
Appendix 1. Example of Redundant System
Continued From
Previous Page
Row 41 B_AC
T
Row 42
Row 44 _INIT_DO
SADINIT.D SDAWR.DON RADINIT.D RDAWR.DONE
ONE E ONE NE
Row 45 ( )
• Program Description : Check if initialization of special module and writing to D/A Module
completed, turn ON _INIT_DONE flag to exit initialization program
and then enter scan program.
A1-8
Appendix 1. Example of Redundant System
C : \gmwin30\source\err_mask.src
C : \gmwin30\source\sw_analog.src
SDAOUT DATA
Row 6
Row 7
• Program Description : Read A/D module value installed at slot No. 6 of switched base(No. 1) and output to
D/A module installed at slot No. 7.
• Function Block Description
AD4ARD : Function Block reading value and status of A/D module.
ADMODIFY : User Defined Function Block receiving A/D value and making it enable to be output
DA4AWR : Function Block outputting data to D/A Module.
C : \gmwin30\source\sw_io.src
• Program Description : Read Input Contact Value installed at slot No. 4 of Switched Base(No. 1) and output
to Output Contact installed at slot No. 5.
A1-9
Appendix 1. Example of Redundant System
C : \gmwin30\source\red_analog.src
# -Analog I/O of Redundant Base
Comment
Row 1
RADRD DATASEL MODIFY RDAWR
RAD4ARD ADDATASEL ADMODIFY RDA4AWR
Row 2 RE Q DONE RE Q DONE RE Q DONE RE Q DONE
2 BASE A_DO RADRD A_D A_DON DATA SELDATA SELDATA DATA DATA RDAOUT 2 BASE A_DO
Row 3
NE ONE E _OUT IN _OUT NE
Row 9 B_AC
T • Program Description : Read a pair A/D value installed at slot No. 6 of Redundant Base No. 2
and
Row 10 B_DA output equal value to both two D/A Modules installed at slot No. 7 of Base No. 2.
TA
• Function Block Description :
Row 11 RAD4ARD : Function block reading and outputting both of value and status of Redundant
A/D.
ADDATASEL: User defined function block outputting only normal value from two A/D values.
ADMODIFY : User defined function block reading A/D value and making data enable to be
t t
C : \gmwin30\source\red_io.src
Row 4
### ------ Output Control for detailed data input of each process in Redundant Base
Comment SCTRL
STEP_CTRL • Program Description : Read input value of triplex system, calculate
Row 6 RE Q DONE
operation and then output to Redundant output
%IW2.1.0 IN OUT %QW2.4.0 module.
Row 7 • Function Block Description :
MAIN_CTRL : User defined function block running control algorithm
Row 8
of main process.
STEP_CTRL : User defined function block processing detailed
A1-10
Appendix 1. Example of Redundant System
C : \gmwin30\source\remote_analog.src
1 NET_ ERR
Row 3
NO • Program Description : Initialize A/D and D/A modules installed at
Row 4 16 ST_N STAT Remote. Check initialization condition every
O 200ms.
0 BASE ACT • Function Block Description :
Row 5
ADR4INI : Function block initializing A/D Module of Remote
DAR4INI : Function block initializing D/A Module of Remote
Row 6 6 SLOT
Row 7 CHEN CH
Row 26 RMTADINTE
RMTADINT.
ERR N
Row 27 ( R )
RMTADRD.E
RR • Program Description : Create initialization condition when special module
Row 28 of Remote not accessed due to power OFF and etc.
• Feedback at Row 2 and Row 10 and start initialization function block.
Row 29
RMTDAINT. RMTDAINTE
ERR N
Row 30 ( R )
RMTDAWR.E
RR
Row 31
A1-11
Appendix 1. Example of Redundant System
C : \gmwin30\source\remote_io.src
### ------ Output Product End Item Loading BCD Counter Input of Remote Station 16 to BCD Indicator.
Comment
MOVE
Row 2 EN EN0
Row 4
### ------ Output Product Output BCD Counter Input to Output BCD Indicator of Remote Station 16.
Comment
MOVE
Row 6 EN EN0
Row 8
A1-12
Appendix 1. Example of Redundant System
C : \gmwin30\source\remote_check.src
Row 1 REMOTEST
T100MS STATUS • Program Description : Detect the operation of Remote Station and the
Row 2 RE Q NDR status of Redundant communication line and make
data
Row 3 NET_ ERR enabled to be monitored at next higher system.
NO
• Function block Description :
Row 4 ST_N STAT STATUS : Function Block verifying operation status of Remote Station
CH US
Row 7 USR_
D
Row 8
Comment REMOTE_A
REMOTE_AC REMOTEST.
CH_ACT
TIVE USR_D[115]
Row 16 ( )
REMOTEST] REMOTE_B
USR_D[115] CH_ACT
Row 17 ( )
Row 18 # ------Good Remote A-side Connection
Row 20 REMOTE_A
REMOTE_AC REMOTSET.
CH_OK
TIVE USR_D[116]
Row 21 ( )
REMOTSET. REMOTE_B
USR_D[117] CH_OK
Row 22 ( )
A1-13
Appendix 2. Function/Function Block Table
This describes the example data of program size and processing speed for basic function.
Processing
FB Size (Byte) *1 Library *2
Speed(us)
Name Function
IL LD Size (Byte) IL LD *3
ABS (int) Absolute Value operation 24 44 - 0.72 1.36
ADD (int,dint) Add 16 36 - 0.48 1.12
ADD (lint) Add 40 60 - 1.72 2.36
AND (word,dword)
AND 4 24 - 0.12 0.76
AND (lword) AND 8 28 - 0.24 0.88
DIV (int,dint) Divide 16 36 - 0.48 1.12
DIV (lint) Divide 28 48 - 290 290
EQ (int,dint) ‘Equal’ Comparison 12 32 - 0.36 1.00
LIMIT(int,dint)Upper/Lower Limit 40 60 964 7.2 7.9
MAX (int,dint) Max. 40 60 1120 9.4 10.0
MOVE (lint) Data Copy 0 20 - 0.00 0.64
MUL (int,dint) Multiply 16 36 - 0.48 1.12
MUL (lint) Multiply 28 40 - 310 310
MUX (int,dint) Multiplex 48 68 552 8.4 9.0
MUX (lint) Multiplex 56 76 - 12.0 12.6
ROL Rotate Left 32 52 392 1.80 2.44
SUB (int,dint) Subtract 16 36 - 0.48 1.12
SUB (lint) Subtract 40 60 - 1.72 2.36
BCD_TO_DINT Convert BCD type to DINT type. 4 24 280 10.0 10.6
BCD_TO_INT Convert BCD type to INT type 4 24 136 10.0 10.6
BCD_TO_SINT Convert BCD type to SINT type 4 24 84 10.0 10.6
BYTE_TO_SINT Convert BYTE type to SINT type 0 20 - 0.00 0.64
Convert DATE type to STRING
DATE_TO_STRING 28 48 60 360 360
type
DINT_TO_INT Convert DINT type to INT type 56 76 - 1.68 2.32
DINT_TO_BCD Convert DINT type to BCD type 4 24 172 17.4 18.0
DT_TO_DATE Convert DT type to DATE type 0 20 - 0 0.64
DT_TO_TOD Convert DT type to TOD type 4 24 2 0.60 1.24
DT_TO_STRING Convert DT type to STRING type 28 48 60 442 442
DWORD_TO_WOR Convert DWORD type to WORD
0 20 - 0 0.64
D type
INT_TO_DINT Convert INT type to DINT type 4 24 - 0.12 0.76
INT_TO_BCD Convert INT type to BCD type 4 24 108 6.0 6.6
NUM_TO_STRING(
Convert Number to STRING 36 56 312 280 280
int)
SINT_TO_BCD Convert SINT type to BCD type 4 24 84 6.0 6.6
Convert STRING type to INT
STRING_TO_INT 4 24 48 360 360
type
CONCAT Connect String 48 68 168 31.4 32.0
DELETE Delete String 44 64 328 21.5 22.1
A2-1
Appendix 2. Function/Function Block Table
Processing
FB Size(Byte) *1 Library Size(Byte) Speed(us)
Name Function *2
IL LD IL LD *3
EQ(str) ‘Eaual’ Comparision 44 64 752 13.5 14.1
FIND Find String 28 48 228 7.1 7.7
INSERT Insert String 48 68 348 40.9 41.5
LEFT Obtain Left of String 36 56 140 18.6 19.2
LEN Calculate Length of String 4 24 88 6.5 7.1
LIMIT(str) Uppwer/Lower Limit 70 90 964 38.4 39.0
MAX(str) Max. 56 76 1120 19.8 20.4
MID Obtain MID of string 44 64 208 31.6 32.2
REPLACE Replace String 56 76 424 37.3 37.9
RIGHT Obtain RIGHT of string 36 56 220 28.4 29.0
ADD_TIME (time) Add time 32 52 220 3.1 3.7
DIV_TIME (i1=time) Divide time 32 52 436 6.9 7.5
Remarks
• Processing speed of the above functions can be faster according to the version of CPU module.
A2-2
Appendix 2. Function/Function Block Table
This shows data example for program/data memory size and processing speed of basic function block.
FB Size (Byte)*1 Instance Processing Speed(us) *4
Library Size
Name Function Memory Size
IL LD (Byte) *2 IL LD
(Byte) *3
CTU Count up counter 56 56 120 6 6.4 6.4
CTD Count down Counter 56 56 166 6 6.4 6.4
Count Up/Down
CTUD 88 88 196 6 10.4 10.4
Counter
6.2:Run 6.2: Run
TON ON Delay Timer 40 40 248 20
4.5:Not run 4.5: Not run
7.7: Run 7.7: Run
TOF OFF Delay Timer 40 40 288 20
4.9: Not run 4.9: Not run
8.1: Run 8.1: Run
TP Pulse Timer 40 40 312 20
6.1: Not run 6.1: Not run
Rising Edge
R_TRIG 32 32 24 1 2.6 2.6
Detection
Falling Edge
F_TRIG 32 32 24 1 2.6 2.6
Detection
SR Set Priority Bistable 48 48 32 1 2.9 2.9
RS Reset Priority Bistable 48 48 20 1 2.9 2.9
System Resource
SEMA 48 48 44 1 2.9 2.9
Distribution
Remarks
If using communication Redundancy in Redundant System or C-NET Module in Switched Base, use
the function block with the same style of communication function block of Single CPU system
(GM1, GM2, GM3).
For detailed information of function block, see user’s manual for communication module or
communication Redundancy.
A2-3
Appendix 2. Function/Function Block Table
For detailed information of Redundancy function block, see user’s manual of applicable special
module.
Remarks
• If function block running request continues ON, changed to new value every scan and if OFF, keep
existing value.
• In Redundant System, prepare initialization function block in Initialization Task Program.
Remarks
• If function block running request continues ON, changed to new value every scan and if OFF, keep
existing value.
• Remote Initialization Function Block shall be prepared in Scan Program to start Special Module
Initialization when Remote restarted during operation.
A2-4
Appendix 2. Function/Function Block Table
In Redundant System, use Immediate I/O Function with separate and different style for data
synchronization between Redundant CPUs.
RDIREC_IN
Input Data Immediate Update Name GMR GM1 GM2 GM3 GM4 GM6 GM7
(WORD) Applicability ○
Input
EN : Function run at 1.
RDIREC_IN BASE : Position No. of base with Input Module installed.
SLOT : Position No. of slot at base with Input Module installed.
BOOL ENO MASK: Designate BIT not updated among WORD data to
EN BOOL
USINT OUT update input
BOOL
USINT BASE
USINT SLOT
Output
WORD CH
ENO : If no error, output 1.
MASK OUT : If Input Data Update completed, output 1.