Xgr-Cpu Manual v2.7 202306 en
Xgr-Cpu Manual v2.7 202306 en
CPU XGR-CPUH/F
XGR-CPUH/T
XGR-CPUH/S
Expansion drive XGR-DBST
XGR-DBSF(S)
XGR-DBSH(S)
XGR-DBDT
XGR-DBDF(S)
XGR-DBDH(S)
Safety Instruction
For your safety and effective operation, please read the safety instructions
thoroughly before using the product.
► Instructions are separated into “Warning” and “Caution”, and the meaning of
the terms is as follows;
► The marks displayed on the product and in the user’s manual have the
following meanings.
► The user’s manual even after read shall be kept available and accessible to
any user of the product.
1
Safety Instruction
Warning
Never connect the overload than rated to the output module nor
allow the output circuit to have a short circuit, which may cause a
fire.
2
Safety Instruction
Caution
I/O signal or communication line shall be wired at least 100mm
away from a high-voltage cable or power line. If not, it may cause
abnormal output or operation.
Caution
Use PLC only in the environment specified in PLC manual or
general standard of data sheet. If not, electric shock, fire, abnormal
operation of the product or flames may be caused.
Don’t let any metallic foreign materials inside the product, which
may cause electric shock, fire or abnormal operation.
3
Safety Instruction
Warning
Prior to wiring, be sure that power of PLC and external power is
turned off. If not, electric shock or damage on the product may be
caused.
Before PLC system is powered on, be sure that all the covers of
the terminal are securely closed. If not, electric shock may be caused
Caution
Let the wiring installed correctly after checking the voltage rated
of each product and the arrangement of terminals. If not, fire,
electric shock or abnormal operation may be caused.
Don’t let any foreign materials such as wiring waste inside the
module while wiring, which may cause fire, damage on the product
or abnormal operation.
4
Safety Instruction
Warning
Don’t touch the terminal when powered. Electric shock or abnormal
operation may occur.
Caution
Don’t remove PCB from the module case nor remodel the module.
Fire, electric shock or abnormal operation may occur.
Caution
Product or battery waste shall be processed as industrial waste.
The waste may discharge toxic materials or explode itself.
5
Safety Instruction
6
Revision History
Revision History
Version Data Main contents Revised location
1
Revision History
2
Revision History
1. Adding contents
V2.5 ’16.09 (1) Redundancy expansion driver(single mode) 1-1, 2-1, 7-7
updated
3
Revision History
Domain modification
V2.7 ’23.06
(www.lselectric.co.kr -> www.ls-electric.com)
4
About User's Manual
The User’s Manual describes the product. If necessary, you may refer to the following description and order accordingly.
In addition, you may connect our website (http://www.ls-electric.com/) and download the information as a PDF file.
XG5000 User’s Manual XG5000 software user manual describing online function such as programming,
(for XGK, XGB) print, monitoring, debugging by using XGK, XGB CPU.
XG5000 User’s Manual XG5000 software user manual describing online function such as programming,
(for XGI, XGR) print, monitoring, debugging by using XGI, XGR CPU.
XGK/XGB Instructions & User’s manual for programming to explain how to use instructions that are used
Programming User’s Manual PLC system with XGK, XGB CPU.
XGI/XGR/XEC Instructions & User’s manual for programming to explain how to use instructions that are used
Programming User’s Manual PLC system with XGI, XGR, XEC CPU.
XGK-CPUA/CPUE/CPUH/CPUS/CPUU user manual describing about XGK
XGK CPU User’s Manual
CPU module, power module, base, IO module, specification of extension cable
(XGK-CPUA/E/H/S/U)
and system configuration, EMC standard.
XGI-CPUU/CPUH/CPUS user manual describing about XGI CPU module,
XGI CPU User’s Manual
power module, base, IO module, specification of extension cable and system
(XGI-CPUU/CPUH/CPUS)
configuration, EMC standard.
XGI-CPUZ3/ CPUZ5/ CPUZ7 user manual describing about XGI CPU module,
XGI CPUZ User’s Manual
power module, base, IO module, specification of extension cable and system
(XGI-CPUZ3/ CPUZ5/ CPUZ7)
configuration, EMC standard.
XGR- CPUH/F, CPUH/T user manual describing about XGR CPU module,
XGR Redundant Series
power module, extension drive, base, IO module, specification of extension cable
User’s Manual
and system configuration, EMC standard.
XG-PM software user manual describing online function such as motion
XG-PM User’s Manual
programing, monitoring, debugging by using Motion Control Module.
1
About User's Manual
2
Table of Contents
◎ TABLE OF CONTENTS ◎
1
Table of Contents
2
Table of Contents
3
Table of Contents
4
Table of Contents
5
Table of Contents
6
Chapter 1. Overview
Chapter 1. Overview
This User Manual describes the performance specifications and operation procedures of the redundancy system including the XGR-
CPU, in addition to the configuration of communication system and the use of special module in relation to the redundancy system.
This User Manual provides the basic specifications of the CPU module, power module, I/O module, main/expansion base of
redundancy and expansion drive module, which are applied to the basic system of redundancy (XGR).
For further information on the special and communication modules, see the manuals and technical data pertinent to each special
module and communication modules.
1-1
Chapter 1. Overview
Chap.8 Power Module Describes the specifications and use of the I/O module and power module,
IO Module except the CPU module.
Chap. 9
Chap. 10 Base Expansion Cable
Chap. 11 Provides the guidelines for installation, wiring and precaution of the PLC system
Installation and Wiring
to secure system reliability.
Provides the items and methodology of maintenance for PLC system to
Chap. 12 Maintenance
prevent failure throughout the service life.
Provides the system construction and configuration in response to the EMC
Chap. 13 EMC Compliance
specification.
Describes various errors and faults which may occur in the system and
Chap. 14 Troubleshooting
countermeasures..
Append. 1 Flag List Describes the types and contents of various flags.
Append. 2 Dimensions Provides the external size of the CPU, I/O module and base.
Append. 3 GLOFA Compatibility
Append. 4 Warranty
Note
1) This User Manual does not describe the special and communication modules and programming.
Refer related manuals for the information.
2) XGR CPU is a kind of XGT PLC system whose CPU type can be classified as follows;
① XGK Series: the XGT PLC systems having the CPU using Master-K language(LS language)
② XGI Series: the XGT PLC systems having single CPU using IEC language
③ XGR Series: the XGT PLC systems having redundant CPUs using IEC language
1-2
Chapter 1. Overview
XGR Redundancy System provides reliable solution for various types of redundancy systems required in diversified applications. The
XGR Redundancy System is economical and user-convenient because the system makes use of the most resources of the XGI
system, added with the components for redundancy.
Redundancy
CPU Module
IEC 61131-3 language supported, ladder process rate of 42ns/command, 3MB (Approx. 128kstep) program capacity,
131,072 of I/O points
1Gbps optical communication for CPU synchronization
Built-in I/O communication master
Provides 2 types of CPU module according to the I/O communication media [optical, electrical]
Programming Tool
Integrated control of all the all XGT types with XG5000 – XGK, XGI, XGB, XGR
Convenient programming, various motoring function, diagnosis function, edit funtion
Supports various IEC type languages: LD, ST, SFC, IL[Only view function]
Supports communication parameter setting, frame monitoring function through XG-PD
Supported with software packages per functionalities for motion, APM, temperature controller, etc.
1-3
Chapter 1. Overview
XGR Redundancy System provides optimized solutions in various applications with its superb performance and convenience features.
High performance
Compact panel can be implemented with the minimum size among the class
CPU module: Width(55 mm) * Height(98 mm) * Depth(90 mm)
Power module
1) XGR-AC12/AC22: Width (55 mm) * Height (98 mm) * Depth (90 mm)
2) XGR-AC13/AC23: Width (55 mm) * Height (98 mm) * Depth (110 mm)
Improved maintenance maintain ace by system history, network ring configuration, etc.
Provides system analysis data including the operation, error, and system histories
Network ring configuration enables normal system operation even when a network cable fails
Provides network monitoring and protocol monitoring functions
If communication fails (smart I/O, etc.), the failed channel can be monitored (by monitoring the flag via HMI).
Graphic display of system configuration
Module Changing Wizard enables safe replacement of module during operation
Base Changing Wizard enables safe replacement of base during operation
1-4
Chapter 1. Overview
Open network enables convenient interface with other products (Ethernet, Profibus, DeviceNet, RS-232C, RS-
422/485, etc.)
Supports various protocols for improved convenience
Up to 24 communication master modules (12 high speed links, 8 P2Ps) can be mounted on one redundant system.
Simple and east network diagnosis using network and communication frame monitoring function
RAPIEnet module can be inserted on basic base
8, 16, 32, and 64 point modules are provided (8/16 point modules for relay output)
Single input, single output, mixed I/O module provided
Analog modules can be connected to the slots of all the expansion bases (max. 250 output modules, 139 input
modules)
Supports various applications with insulated type analog and temperature module
Convenient use by special parameter settings and flags
Strengthened debugging function by monitoring flags and data and changing the setting value through special monitor
display window
PID Function
Max. 256 loops supported
Parameter setting using XG5000, convenient monitoring on loop status through Trend monitor
Easy control parameter setting using improved auto-tuning function
Provides various control modes including normal/reverse combination operation, 2 step SV PID control, cascade
control, etc.
Safety secured by diversified alarm functions including PV MAX, PV change, etc.
1-5
Chapter 1. Overview
1.4 Glossary
This section provides the major terms and their definitions, used in this Manual.
A module or a set of module which is the minimum unit of a PLC system Basic unit.
Unit
operation. A PLC system comprises units and/or sets of units Expansion unit
1-6
Chapter 1. Overview
Starting a PLC system and user program after initializing all data (variables
Cold Restart and programs such as I/O image area, internal register, timer, counter, etc.)
automatically or manually
Along with the function that notifies user-program about power OFF
Warm Restart incidents, the user programs are restarted with holding previous data
according to setting, after a power OFF.
The internal memory area of the CPU module installed to maintain I/O
I/O Image Area
status
RTC Real Time Clock. The generic IC with a built-in clock function
The timer which monitors the preset running time of a user program, and
Watchdog Timer
triggers alarm if the process fails to be completed within preset time
The operation units which do not store the operation result in the
Function instructions, such as the 4 arithmetical and comparison operations, and
output the results of the inputs immediately
The operation units which store the operation results in the instruction, such
Function Block
as timer and counter, and use the results over multiple scans
%IX0.0.2
The variables used without declaring name and type. For example, I, Q, %QW1.2.1
Direct Variable
and M areas are direct variables. %MD1234,
etc.
The variables used with names and type declared by user.
Automatic Symbolic - if declared as‘INPUT_0’=%IX0.0.2, ‘RESULT’=%MD1234, ‘INPUT_0’
Variable and ‘RESULT’ names can be used in the program instead of %IX0.0.2
and %MD1234.
The condition for a program start-up, such as fixed cycle task, internal
Task
contact point task, and initialization task
1-7
Chapter 1. Overview
PLC Z: input
Sink Input
+ S/W
I impedance
Z
− Common
The method wherein the current enters switch from PLC input terminal when
the input signal is turned ON
Common PLC
Source Input +
Current Z
−
S/W
Sink Output The method wherein the current enters output terminal from load when the
PLC output is ON
PLC
Load
Output +
Contact Current
−
Common
The method wherein the current enters from output terminal when the PLC
output is ON
PLC Common
Source Output +
Current
Load
−
Output
Contact
1-8
Chapter 2. System Configuration
2-1
Chapter 2. System Configuration
2-2
Chapter 2. System Configuration
2-3
Chapter 2. System Configuration
2-4
Chapter 2. System Configuration
Positioning
XGF-PO3H • Pulse output (Open Collector type), 3 axes -
Module XGF-PO2H • Pulse output (Open Collector type), 2 axes -
Note
Recommendations of selecting USB Cable (To avoid disconnection with XG5000)
1. Recommend that the company’s USB Cable(USB-301A) which is shielded and shorter than 3m.
2-5
Chapter 2. System Configuration
Note
For the active coupler, optical converter, repeater and block type remote module, see the network related
technical documents.
2-6
Chapter 2. System Configuration
Classification Description
Basic base
• Constructed with 2 basic bases of the same structure.
configuration
Extension base
• Constructed with 2 extension drive module of the same station number
configuration
Max. extendable
• Expansion bases can be installed up to 31 stacks.
stacks
Max. I/O modules • Up to 372 I/O modules can be installed in expansion bases.
• 16-point modules: 5,952 points
Max. I/O points • 32-point modules: 11,904 points
• 64-point modules: 23,808 points
• Between bases
- Optical multi mode: 2 km
- Optical single mode: 15km
Max. expansion - Electrical: 100 m
distance • Total max length
- Optical multi mode: 62km (when installing 31 expansion modules)
- Optical single mode: 465km (when installing 31 expansion modules)
- Electrical: 3.1km (when installing 31 expansion modules)
2-7
Chapter 2. System Configuration
Classification Description
• The beginning value of the I/O numbers of each base is determined by the base number setup
in the expansion drive module.
• In the base, the I/O numbers are allocated by 64 (fixed) points per slot.
Each slot is allocated with 64 points regardless of the installation and type of module.
• Different from the digital I/O modules, special modules do not use I/O number for control.
They use U device and exclusive function block.
• An exemplary allocation of I/O numbers of a 12 slot base is shown below.
I/O number
allocation for
expansion bases
• Since communication module only can be installed on the basic base, I/O numbering is
meaningless.
I/O number of basic • Though the basic base does not use the I/O number, the same numbers (768 points) as that
base of a 12 lot expansion base are allocated.
• The basic base has the base No. of “0” located at the first digit of the I/O No.
Note
(1)The redundant basic base has a fixed base No. of 0. Expansion bases are provided with switches for
setting up base No.
(2) The base modules installed with redundant CPU are available for the basic base only.
(3) The redundant CPU is a CPU module which occupies 2 slots.
(4) The type of module setup with I/O parameter must agree with that of the actual module to enable operation
to start.
(5) In the XGR system, the extension network cable (between main base and extension base, between
extension base and extension base) and the sync cable (optical) between the CPU modules must use a
single cable. If you use hubs, switches, opto-electric converters, etc. in the XGR system, the system may
malfunction.
2-8
Chapter 2. System Configuration
2-9
Chapter 2. System Configuration
Refresh Refresh
Item Type Item Type
Size Size
XGF-PO3H 2 XGL-FMEA 16
XGF-PO4H 2 XGL-C22A 16
XGF-PD1H 2 XGL-C42A 16
XGF-PD2H 2 XGL-CH2A 16
APM module XGF-PD3H XGL-EIMT
2 16
( Advanced Position Communication module
module ) XGF-PD4H 2 XGL-EIMH 16
XGF-PN8A 3 XGL-EIMF 16
XGF-PN8B 3 XGL-ES4T 16
XGF-M16M 1 XGL-BBM 16
XGF-M32E 4 XGL-EIPT 16
Sum of Data Refresh area’s size installed in system (Input module) ≤ 5,120 WORD
Sum of Data Refresh area’s size installed in system (Output module) ≤ 3,072 WORD
2) Example
→ Input module data refresh : (4 * 20) + (22 * 20) + (30 * 10) = 820 WORD ≤ 5,120 WORD
→ Output module data refresh : (11 * 40) = 440 WORD ≤ 3,072 WORD
Note
1) Sum of Input module Data Refresh area’s size must not exceed 5,120 WORD.
Sum of Output module Data Refresh area’s size must not exceed 3,072 WORD.
2) If size of Data Refresh area exceeds the range, XGK/I system doesn’t operate properly.
2-10
Chapter 2. System Configuration
A redundant system has the redundancy of power supply modules, CPU modules, basic base modules, and
communication modules. On the basic base module of a redundant system, two identical power, CPU, and
communication modules are installed. The two CPU modules are connected with a sink cable.
One of the two CPU systems functions as the master which is in charge of the operation and the other is the
backup system which takes over the operation when the master system fails.
After correcting the failure, the previous master system can participate in the redundant operation as a backup
system. Master and backup systems can be selected using software tool and key switch during redundant
operation.
Use the switch on the CPU module to setup CPU-A and CPU-B. If the setting is duplicated with A or B, normal
redundant operation cannot be achieved.
Slot 0
Slot 1
Slot 2
Slot 3
Slot 4
Slot 5
Power Power CPU
CPU-A
Module Module Module
Slot 0
Slot 1
Slot 2
Slot 3
Slot 4
Slot 5
The modules which can be installed on the basic base are as follows.
Modules Type/Model
Main base CPU Module XGR-CPUH/T, XGR-CPUH/F
Power Module XGR-AC12, XGR-AC22, XGR-AC13, XGR-AC23
Communication EtherNet/IP I/F module, FEnet I/F module, RAPIEnet I/F module,
Module Cnet I/F module*1)
Base XGR-M02P*2), XGR-M06P
Expansion Digital I/O All types of digital I/O
base Analog I/O All types of analog I/O
Communication Pnet/Rnet/Dnet/Cnet I/F module
Module
*1) XGR CPU module V1.8 or above is needed.
*1) XGR-M02P base is supported at XG5000 V3.6 or above
Note
(1) Redundant CPU cannot be installed on an expansion base module.
(2) The O/S version of the two CPUs must be the same.
(3) As shown in [Fig. 2.3.2], the modules on CPU-A: 0, 1, 2, 3, 4, 5 slots and CPU-B: 0, 1, 2, 3, 4, 5
slots must be of the same product type. If the CPU-A: 0 slot is installed with an XGL-EFMF(FEnet)
module, the same module must be installed on the CPU-B: 0 slot.
2-11
Chapter 2. System Configuration
The power modules of the basic and expansion base systems can have a redundancy.
The redundant power module enables continuous system operation without interruption when one of the two
power modules fails to supply power.
Power system or power module failure can be repaired or the module can be replaced during operation without
interruption.
Since the cable connection of the expansion bases are ring-structured, the system can be operated without
interruption even when a cable fails, by using the other cable.
In normal ring operation mode, operation is performed using the path which is nearer to the master. When a
cable fails, the system operation is maintained by line operation mode.
The failed cable can be replaced without interrupting the operation.
2-12
Chapter 2. System Configuration
Note
(1) Extension base system can be configured by dual ring method.
(2) Diverse configuration is available but there is some limit. Refer to application note.
(3) O/S version of both extension drivers should be same.
(4) Switching of extension driver is same as that of CPU.
(5) If there is error in extension base modules (digital/analog I/O, communication module in
extension base), those are not backed up by redundancy.
(6) You can use only one extension driver. But at this time, extension driver is not backed up by
redundancy.
(7) All extension drivers in the system need not be same.
2-13
Chapter 2. System Configuration
2-14
Chapter 2. System Configuration
In a system that electrical modules are already established where distance among the stations is too far or
electrical noise is severe, the section can be replaced with optical modules to build an optical/electrical
mixed module network without an additional converter.
2-15
Chapter 2. System Configuration
(4) Example of using dedicated Ethernet for upper level HMI connection and between PLCs (Single
ring)
The communication network between upper level systems, existing PLCs and the controllers from other
suppliers can be constructed using an Ethernet communication module (FEnet). With XGT PLCs, a high
speed and reliable system can be built using an industrial Ethernet module (RAPIEnet).
Software HMI
(Info-U)
Hub Hub
Ethernet
Master Backup
GM4C
GMR
RAPIEnet (Ring)
PC Card
/HMI
XGI XGK
Modbus
Rnet
Smart
Dnet
I/O
Pnet
2-16
Chapter 2. System Configuration
XGR Series support diversified network systems for flexible system configuration methodology.
For the communication between PLCs and upper level systems or between PLCs, Ethernet (EthNet/IP, FEnet,
RAPIEnet) and Cnet are provided. For lower control network system, Profibus-DP, DeviceNet, and Rnet are provided.
Remote I/O modules are classified into base board type and block type (Smart I/O, etc.). Base board type may
not be supported in certain network types.
1 Profibus-DP O O
2 DeviceNet O O
3 Rnet O O
4 Cnet(MODBUS) O -
* The above specifications can be changed for functional improvement. Please refer to the technical material
of the network system for detail information.
2-17
Chapter 2. System Configuration
Constructed with Profibus-DP, DeviceNet, Rnet and Cnet. Block-type remote I/O can be used regardless of
the PLC series in the system. Profibus-DP and DeviceNet are developed in compliance with the international
standard, therefore, they can be connected with other suppliers’ products as well as our own.
Pnet/Dnet/Rnet/Cnet
(Master Module)
Pwr/ Mod.
Pwr/ Mod.
XGL−****
Ext. Drive.
Note
(1) Remote station numbers and areas must be set-up without overlapping.
(2) Input and output services, such as forced On/Off, are provided only when the inputs
and outputs are allocated with I/O variables (%IW,%QW).
(3) For SMART IO connected to master module, in case you set Read area(Q) and Save
area(I) through XG-PD, forced I/O setting is available.
2-18
Chapter 3. General Specifications
Note
1) IEC (International Electrotechnical Commission):
An international nongovernmental organization which promotes internationally cooperated standardization in
electric/electronic field, publishes international standards and manages applicable estimation system related with.
2) Pollution degree:
An index indicating pollution degree of the operating environment which decides insulation performance of the devices. For instance, Pollution
degree 2 indicates the state generally that only non-conductive pollution occurs. However, this state contains temporary conduction due to dew
produced.
3-1
Chapter 3. General Specifications
3-2
Chapter 4. CPU Module
4-1
Chapter 4. CPU Module
Specifications
Item Remarks
XGR-CPUH/F XGR-CPUH/S XGR-CPUH/T
Occupying 20 bytes
Timer No point limit of automatic variable area
Time range: 0.001~ 4,294,967.295 second (1,193 hours) per point
Occupying 8 bytes
Counter No point limit of automatic variable area
Coefficient range : 64 bit expression range (-32,768 ~ +32,767) per point
Total no. of programs 256
Initialization task 1(_int)
Program structure Fixed cycle task 32 (range: 0~31)
Processed at scan
Internal device task 32 (range: 64~95)
END
Operation mode RUN, STOP, DEBUG
Restart mode Cold, Warm
Operation delay monitoring, memory fault, I/O fault, battery fault, power fault
Self diagnosis function
and etc
Data protection in case of Setting retain area in the Basic Parameter
power failure Retain setting of auto variable
Max. expansion base 31 stages One base per stage
Max. length between expansion base Optical (2km) Optical (15km) Electrical (100m)
Operation monitoring
Redundant monitoring by Sync. Line and ring type I/O network
between CPU
Data backup
1 G bps optical line, max. length 200 m (recommended)
between CPU
Data Sync. Method
Set in the Redundancy Parameter
between CPU
Proportional to data which master transmits to backup
Redundancy
Delay in case of - Max. 15ms
performance
redundancy - optimization available by user setting Refer to 5.1.4
operation Basic 15ms +
user designated amount (2kword) * 0.250ms/2kword
Master switching
22ms Refer to 5.1.4
time
Operation delay in
About 10% more than single operation scan time Refer to 5.1.4
case of standby start
Internal consumption current (mA) 1,310 ㎃ 980 ㎃
Weight (g) 276 g 257 g
4-2
Chapter 4. CPU Module
4-3
Chapter 4. CPU Module
4-4
Chapter 4. CPU Module
Caution
BOOT/NORMAL
⑤-a
switch
(1) BOOT/NORMAL switch always should be set to right side.
(2) In case of setting to left side, system doesn’t operate properly and
It is not allowed for the user to use
(3) BOOT/NORMAL switch is not allowed to set to left side
for OS downloading
4-5
Chapter 4. CPU Module
Caution
(1) Data clear function is only executed in stop mode.
⑥ USB connector Connector for connecting with peripheral (XG5000 etc.) (supports USB 1.1)
4-6
Chapter 4. CPU Module
4.3 Battery
Item Specifications
Nominal Voltage / Current DC 3.0 V / 1,800 mAh
Warranty period 5 years(at ambient temperature)
Applications Program/data backup, RTC operation in case of power failure
Type LiMnO2 Lithium Battery
Dimensions (mm) φ 17.0 X 33.5 mm
Caution
In general, it generates the warning after 7 years from the purchase, but if the current is excessively discharged due to
defective battery or leakage current, it may warn it earlier. If it warns shortly after replacing a battery, the CPU module may
need A/S service.
4-7
Chapter 4. CPU Module
4.3.4 Replacement
A battery used as a backup power for program and data in case of power failure needs replacing regularly. The program and data is
kept by the super capacity for about 30 minutes even after removing the battery, but it needs urgently replacing it as soon as
possible.
Yes
‘BAT’ LED Off?
No
Defective battery End
4-8
Chapter 5. Program Configuration and Operation Method
The program for the XGR PLC is made out with XG5000, compiled into an executable program, and transmitted to
PLC for execution.
(1) The programs can be classified into scan programs and task programs. The scan programs are executed at
every scanning, and the task programs are executed by a task.
- Scan program: the program executed every scan repeatedly
- Task program: the program executed by task
(2) A scan program runs from the first to the last step registered in the project in the registered order, and terminates
the scanning (END). The entire process is referred to as “1 scan.’
(3) This process methodology which runs a program from the beginning to the end and then runs the entire process
again, is called ‘cyclic operation method.’
(4) Before starting the operation of a scan program, the status of the input module is read and saved in the input
image area, and the status of the output image area is outputted to the output module when the operation of the scan
program is completed. This process is called ‘I/O Refresh.’
(5) XGR PLC series is based on the cyclic operation method. In the operation process, input or output status is not
entered directly, but the operation is executed by I/O refreshing by scan unit basis. To this end, the statuses of the
input and output contact points are stored in the memory area of the PLC. This area is called image area.
Begin Operation
1 Scan
5-1
Chapter 5. Program Configuration and Operation Method
A program scan is an operation cycle of a program from the first step to the end step. In a cyclic operation, the
first step is restarted after the end step of the previous scan has been completed. The table below shows this
process by step.
With the program downloaded into the PLC, the instruction from the
Operation user is received.
Program starts
Program ends
As a step that the CPU module ends 1 scan process and returns to the
END first step, it processes the follows.
Note
The synchronization between the data of the master CPU and standby CPU begins after the start-up of the
standby CPU. See 5.3 Operation Mode for the details of redundant operation.
5-2
Chapter 5. Program Configuration and Operation Method
In the interrupt operation method, if it is required to execute a task program with priority during scan program
operation, the current scan program operation is interrupted and the task program is executed. When the task
program operation is completed, the system returns to the previous scan program operation.
An interrupt signal instructs the CPU to execute a task program with priority.
A typical interrupt operation is the fixed cycle interrupt operation. In this method, the interrupt signals are
generated at the times preset by the user to execute task programs. After the completion of a task program, the
system returns to the scan program.
Scan program
Interrupt 1
Interrupt 1 occurs
(Program 1)
Interrupt 2
Interrupt 2 occurs
(Program 2)
Interrupt 3
Interrupt 2
(Program 2)
END
5-3
Chapter 5. Program Configuration and Operation Method
Constant scan is an operation method which repeats the execution of a basic scan program at fixed cycle time.
In case that the fixed cycle time is longer than the time required for executing the scan program, the system waits
for the remaining time, and restarts the scan program at the beginning of the next cycle time. Therefore, different
from the fixed cycle task program, the program can be executed matching the I/O refreshing and synchronization.
In such case, the scan time is indicated excluding the waiting time.
On the contrary, if the fixed cycle time is setup shorter than the time elapsed for the scan program execution, the
‘_CONSTANT_ER’ flag is turned ‘ON’ and the operation is executed with the time during which the operation can
be executed.
The constant scan can be setup with the basic parameters of the XG5000.
Note
When configured for a constant scan operation, the scan time is indicated as follows.
The maximum and current scan times are indicated with the scan times setup with the fixed cycle operation
parameters, and the minimum scan time indicates the actual time elapsed for the program execution deducted
with the waiting time.
5-4
Chapter 5. Program Configuration and Operation Method
(3) If the system has a redundant power, the operation will be one of followings;
(a) Instantaneous power interruption in one of two power modules which have been in operation;
- the other power module keeps operation, without interrupting PLC operation.
(b) Instantaneous power interruption in both power modules by shorter than 20ms;
- the modules operate as described in Clause 1) above.
(c) Instantaneous power interruption in both power modules by longer than 20ms;
- the modules operate as described in Clause 2) above.
Note
5-5
Chapter 5. Program Configuration and Operation Method
In a single CPU operation, the scan process times of CPU are as follows.
Item Content to be processed time
Process time of scan 42ns per 4 byte of execution
Scan program+ Task program
program program
Communication module: within
Module process
Process time of basic base 200 ㎲ per one
Communication service Within 500 ㎲ per one service
5-6
Chapter 5. Program Configuration and Operation Method
System
process
① scan program ② ③ ④
CPU scan
② main base
process
Basic base
process
②-1 ②-2
③ extension base
process
Extension
base
process ③-1 ③-2
1 scan 1 scan
Scan time = ① scan program process + ② basic base process+ ③ expansion base process + ④ system
process
(For correct scan time calculation, add the execution speed of the applied instructions.)
② Basic base process
②-1. module process: processes refresh data of module in basic base
5-7
Chapter 5. Program Configuration and Operation Method
④ System process: executes system internal process includig basic O/S process routin, battery check, module error
Example
CPU(program 32KB) + 6 32-point I/O modules + 6 analog modules (total PUT/GET size 1000byte) + 4 communication
modules (two in basic base, other two in expansion base, one communication service setting for each module)
What is the scan time of above system (the number of expansion base is 2)
Scan time(㎲) = ladder process time + basic base process time + expansion base process time + system process time
= (32768/4 x 0.042) + (200 x 2(two communication modules) + 500 x 2) + (300 x 2(expansion base) + (10 x 6)+(30 x 6)+(150
x 2) + 1000 x 2 + 2500(PUT/GET)) + (4000)
= 11384 ㎲
= 11.4 ㎳
In an actual XGR CPU operation, the actual scan time can be obtained by monitoring following data.
If the _SCAN_MAX is larger than WDT (Watch Dog Timer) value, a system error occurs. The WDT time can be setup
In redundant operations, compared with single CPU operation, the scan time substantially increases due to the
system data sharing between the CPUs. The scan time also varies according to the data volume setup by the
user in the redundancy parameter setting area. The increase in the scan time by data volume is as follows.
5-8
Chapter 5. Program Configuration and Operation Method
Redundancy
Contents Operation
parameter
Though base error occurs in normal RUN mode,
Base system except that base operates. And if that base
Hot swapping is restored, it operates normally.
option Though module is disabled, module detachment
Module error doesn’t appear. If that module is enabled, it
operates normally.
When two power modules of expansion base are
Expansion base Restart and wait
off, system goes to WAIT mode (Ebxx)
power failure
When two power modules of expansion base
setup Base power failure error are off, CPU error appears
Disable warning for single power Disables warning message when one between two
operation power modules in expansion base is off
Disables warning message when becoming line
Disable warning for line Topology
topology
Warning option
Disables warning message when becoming Single
Disable warning for Single CPU Mode
CPU Mode
Disable warning message for fault Disables warning message when fault mask is
mask removal removed.
When the cable is disconnected, it is instantly
Disconnection of the cable
switched. (within 1s)
Master automatic switchover (redundancy
Communication
operation)
operation setting
Disconnection of the server connection When Master/Standby is acting as FEnet
server, if the cable of the Master is disconnected,
Standby becomes Master.
(a) Redundant CPU system data: share basic data, e.g., system flag, communication flag, etc. (2.8ms)
(b) Redundancy parameter setting data: synchronization time in each area is as follows;
I/Q base: 1ms/32 bases
M area: approx. 250 ㎲ per 2 kwords. Approx. 16 ms for synchronizing 128kword
R area: approx. 1.5ms per 2 kword. Approx. 12ms for max. 16 kword synchronization. (When 2 kword in R area is
transmitted, 2 kword in W area are also transmitted; total 4 kword are transmitted)
PID Area: 016.7 ㎲ required for each PID setting one loop. When max. 8 blocks are synchronized, approx. 4ms is
required.
Automatic variable area: 32KB 2.5ms required
Example
CPU(program 32KB) + 6 32-point I/O modules + 6 analog modules (total PUT/GET size 1000byte)
+ 4 communication modules(two in basic base, other two in expansion base, one communication service for
each one module) what is the scan time of above system? (Two expansion bases, synchronizes M area 2kword
and PID 2 blocks)
Redundancy Run scan time = single Run scan time + time for synchronizing redundancy data
= Single Run scan time + redundancy system data+ I/O base + synchronizing M area and PID area
= 11.4ms + 2.8ms + 1ms + 0.25ms + 0.5 x 2
= 16.45
5-9
Chapter 5. Program Configuration and Operation Method
Caution
(1) When the standby CPU is activated to change the system from single operation to redundant operation,
the scan time increases for a short time to synchronize the program and data from the master CPU to the
standby CPU.
(2) It should be noted that, during single mode operation, including when the standby CPU is not in operation,
data is not synchronized between the master CPU and standby CPU. Therefore, the data may differ from
each other CPU.
5-10
Chapter 5. Program Configuration and Operation Method
The programs for the XGR PLC can be classified as presented in the chart below, according to their conditions of
execution. Total 256 programs can be used.
5-11
Chapter 5. Program Configuration and Operation Method
Caution
• Of the initialization tasks, the first scan On/Off is executed for the first scan only, and not executed from the
next scan until the completion of _INIT_DONE.
• The above mode applies when the master CPU is started from stop state. Since the standby operates
according to the status of the master, restart mode does not apply.
• For manual reset switch activation in redundant operation, please take care of followings;
Activating the reset switch of the master CPU will restart the entire system, but activating the reset switch of
the standby CPU will restart the standby CPU only.
• When activating the Run/Stop switch during redundant operation, please take care of following;
If you activate Stop switch of CPU operating as master, CPU operating as master will become Stop mode
and standby CPU will operates as master
The restart mode sets up the method of initializing variables and the system at the start-up of PLC operation.
Restart mode has two types; cold and warm restart, which can be set up in the basic parameters of the
XG5000.
When the standby CPU starts up, it executes the initialization according to the restart mode and receives the
program and data backup from the master. When set up in flash operation mode, it receives the flash data
backup from the master too.
When the standby CPU is switched to master CPU during operation, it is not a restart, therefore, no further action
is taken.
5-12
Chapter 5. Program Configuration and Operation Method
Retain &
Initialize to user defined value Maintain the previous value
Initialization
5-13
Chapter 5. Program Configuration and Operation Method
(a) In the project window of the XG5000, select the PLC to which the task is added. Click the right button of
mouse, and select [Add Item]-[Task].
(b) In the Task dialog box, set up the task to be added, and click Confirm button.
Note
External contact point task is not supported in the XGR PLC Series, and will be developed in the near future.
5-14
Chapter 5. Program Configuration and Operation Method
(c) The configured task will be displayed as shown in the window below. For detail configuration, see the User
Manual of the XG5000.
Type
Initialization Cycle time Internal address
Spec.
Number 1 32 32
When entering RUN Cycle time (settable up to
Start-up mode, prior to starting Conditions of internal device
4,294,967.295 seconds at the
condition scan program designation
unit of 1ms)
Detection/exec Execute until the flag Cyclically execute at the pre- Checks and Executes after
ution _INIT_DONE is ON defined interval. completing scan program
-
Detection delay Delayed as long as 0.2ms to the Delayed as long as the max.
time max. scan time.
--
Execution Setting 2 ~ 7 levels Setting 2 ~ 7 levels
priority (level 2 is the highest priority) (level 2 is the highest priority)
-
Assigning it between 0~31 so that Assigning it between 64~95 so
Task number
it is not duplicate that it is not duplicated
5-15
Chapter 5. Program Configuration and Operation Method
Task program does not reiteratively be processed like a scan program and instead, it is executed only when the
execution conditions occur. Make sure to remember this when creating a task program.
For instance, if a task program with 10 seconds of fixed cycle is used with a timer and counter, the timer may have an
error of 10 seconds maximum while the counter checks every 10 seconds, any counter input changed within 10 seconds
is not counted.
If several tasks to execute are waiting, it processes from the highest priority task program. If there are several tasks of
Please set the priority of task program considering program features, importance level and urgency demanding
execution.
The delay of task program processing occurs due to the following factors. Make sure to consider them when setting a
(d) Correlation between scan program and task program in the initialization
Fixed Cycle task and internal contact point task does not operate while initialization task program is working.
Since scan program has a low priority, if a task occurs, it stops a scan program and executes a task program. Therefore,
if tasks frequently occur during one scan, a scan time may increase unreasonably. A special attention should be paid
5-16
Chapter 5. Program Configuration and Operation Method
If program execution continuity is lost by executing a higher priority program, you can partially protect the task program
from being executed, for a problematic part. At the moment, a program can be protected by application function
commands of ‘DI (task program operation disabled)’ or ‘EI(task program operation enabled)’
Insert the application function command, ‘DI’ into the beginning position of a section to be protected and the
application function command, ‘EI’ to the position to cancel it. Initialization task is not affected by the application
Note
(1) If task program priority is duplicate set, a program works according to the creation order.
5-17
Chapter 5. Program Configuration and Operation Method
The window below shows the setting up of a fixed cycle task. In order to set up a fixed cycle task, enter task name, priority,
and task number for task control, and select Fixed Cycle radio button in the Condition of Execution, and enter the cycle
time of execution.
task is ignored.
Only for a moment when the operation mode is RUN, a timer requiring executing a fixed cycle program is counted. Any
Remember that several fixed cycle task programs are to be executed simultaneously when setting the execution cycle
If using 4 fixed cycle task programs of which cycle is 2, 4, 10 and 20 seconds respectively, it may have simultaneous
5-18
Chapter 5. Program Configuration and Operation Method
Caution
(1) Note that if the total time length during which cycle time task are executed simultaneously is longer than the
specified time length when several cycle time tasks occur simultaneously, a short cycle time task may not be
successfully executed.
(2) The only cycle time task of which cycle is longer than scan cycle can be guaranteed for the fixed cycle.
Caution
Internal address task program is executed at the moment when a scan program is completely executed.
Therefore, although a scan program or task program generates the execution conditions of internal address task
program, it is not immediately executed and instead, it is executed at the moment when a scan program is
executed completely. Therefore, if the execution conditions of internal address task occur and disappear within a
scan program, a task is not executed because it is not detected at the moment when the execution conditions
are surveyed.
5-19
Chapter 5. Program Configuration and Operation Method
When resuming operation due to a long instantaneous interruption, ignore any waiting task and tasks that occur
during the interruption and process the only tasks from the moment of starting operation. If an interruption is
within 20ms, a task that was waiting is executed once the interruption is removed. Any fixed cycle interrupt task
that is duplicated during the interruption is ignored.
If a task occurs excessively or several tasks occur simultaneously in a scan, it may cause longer scan time or irregularity
If a task setting can not be changed, check the max. scan time.
A low priority task program may not be processed in a specified time due to a delay from a higher priority task program.
The case may be, since the next task occurs with a preceding task delayed, it may cause task collision. The priority
A longer execution time of task program may cause a longer scan time or irregularity. In addition, it may cause task
program collision. Make sure to set the execution time as short as possible(especially, create a fixed cycle task program
so that it could be executed within 10% of the shortest task cycle among several tasks. )
(d) Doesn’t the program need to be protected against the highest priority task during the execution of program?
If a different task breaks into a task program execution, it completes a current task and then, operates from a task with the
highest priority among waiting tasks. In case it is prohibited that a different task breaks into a scan program, it can be
protected by using ‘DI’/’EI’ application functional commands. It may cause a trouble while processing a global
parameter process commonly used with other program or a special or communication module.
• Registering a task :
5-20
Chapter 5. Program Configuration and Operation Method
• Registering a program :
Then, if the program execution time and the occurrence time of external interrupt signal are same,
P0 Execution
P1 Execution
T_SLOW Detection
P2 Execution
PROC_1 Detection
Time : 0 6 78 10 12 17 20 22 24 25 30 32 34 (ms)
5-21
Chapter 5. Program Configuration and Operation Method
Time(ms) Processing
0 Scan starts and the scan program P0 starts operation
0~10 Program P0 is executed
10~12 P0 stops due to the execution request for P1 and P1 is executed
17 Execution request for P2
12~20 P1 execution is complete and the suspended P0 resumes
20~24 P0 stops due to the execution request for P1 and P1 is executed
24~25 As P1 execution is complete, the suspended P0 is completely executed.
Check the execution request for P2 at the moment when scan program(P0) is
25
complete and execute P2.
25~30 Execute program P2
30~32 P2 stops due to the execution request for P1 and P1 is executed
32~34 As P1 execution is complete, the suspended P2 is completely executed.
34 Start a new scan(P2 execution starts)
5-22
Chapter 5. Program Configuration and Operation Method
5-23
Chapter 5. Program Configuration and Operation Method
5-24
Chapter 5. Program Configuration and Operation Method
Caution
1. Debug mode is only available in single system.
(1) To use debug mode, turn off the power of standby CPU and so that the system runs in single.
(2) Convert to remote stop mode by mode key switch.
2. During debug mode, the user can’t change mode by mode switch.
5-25
Chapter 5. Program Configuration and Operation Method
Caution
If changing the remote ‘RUN’ mode to ‘RUN’ mode by switch, the PLC is continuously operating without
suspension.
Editing during RUN is possible in the ‘RUN’ mode by switch, but the mode change by XG5000 is restricted.
Make sure to change it only when the mode change is not remotely allowed.
5-26
Chapter 5. Program Configuration and Operation Method
A redundant system has data synchronization (SYNC) cable between CPUs. Each CPU module has a key
switch for operation mode setting. The key switches look as shown below;
The operation statues of redundancy system can be classified as flows according to the installation, power
supply, whether dada communication cable is connected between the CPUs, and the operation mode of
each CPU.
Caution
When a standby CPU is added to a system operating with a single CPU (master) for redundant operation, the
additional (standby) CPU must be installed in accordance with following procedures for uninterrupted operation of
the PLC.
(1) With the power of the standby-side base OFF, construct a same module as the master-side base.
(2) Install the standby CPU in the CPU mounting slot. And set the A/B side switch in Standby CPU differently
from Master CPU.
(3) Connect the CPUs with the data synchronization cable (Sync cable) and expansion cable.
(4) Confirm that the cables are correctly connected, turn the power of the standby base ON.
(5) Turn the operation mode switch to Local Run mode, so that the standby CPU is incorporated
in the redundant operation.
(6) The standby CPU must be incorporated in the redundancy system operation to be able to run
the same programs as those of the master CPU.
(Take care that, if the standby CPU has not been participating in the redundant operation,
its program may differ from that of the master CPU.)
5-27
Chapter 5. Program Configuration and Operation Method
(a) According to the change of the CPU operation mode with mode key or by XG5000, the operation mode of the
redundant system is changed as follows.
Mode Change Description
Current Status Master Operation Standby Operation
STOP status is When the master is changed to STOP
RUN → STOP
maintained state, the operation is stopped
Single Operation
(RUN/STOP) Changing the standby to Run mode, the
(No change: RUN) → RUN operation is changed to redundant
operation.
If the master is changed to STOP, the
→ STOP (No change: RUN) standby becomes master in single
Redundant
operation status.
Operation
If the standby is changed to STOP, the
(RUN/RUN)
(No change: RUN) → STOP master operates in single operation
mode.
The one, A or B, that enters RUN mode
Operation Stop first gets the operation control and
→ RUN (No change: RUN)
(STOP/STOP) becomes the master in single operation
status.
5-28
Chapter 5. Program Configuration and Operation Method
5-29
Chapter 5. Program Configuration and Operation Method
Note
(1) For the redundant operation mode setting and parameter setting, see ‘6.7 Redundant System Operation Mode’
(2) (a), (b), and (c) are processed separately with delay time less than approximately 50ms at every scan of the master.
(3) (d), (e), and (f) must be processed within one scan of the master, with the delay time not exceeding 50ms.
(If the volume of the variables used exceeds the standard variable value, the delay time may exceed 50ms. For further
information, see ‘5.1.4 Scan Time’)
5-30
Chapter 5. Program Configuration and Operation Method
5.5 Memory
The CPU module contains two types of memory that can be used by a user. One is the program memory to save a
user program created to construct a system and the other one is the data memory to provide a device area to save the
data during operation.
The storage capacity and data area type of the program memory are as follows.
5-31
Chapter 5. Program Configuration and Operation Method
Item(area) Capacity
Whole data memory area 2MB
System area :
I/O data table
770KB
Forcible I/O table
Reserved area
System flag 4KB
Analogue image flag 32KB
Flag area PID flag 16KB
High speed link flag 22KB
P2P flag 42KB
Input image area(%I) 16KB
Output image area(%Q) 16KB
R area(%R) 128KB
Direct parameter area(%M) 256KB
Symbolic parameter area(max.) 512KB
Stack area 256KB
Note
(1) K, L, N and R devices are basically retained.
(2) K, L and N devices can be deleted in the memory deletion window of PLC deletion, an online menu of
XG5000.
(3) For details of directions, please refer to the ‘Online’ in the user’s manual of XG5000.
5-32
Chapter 5. Program Configuration and Operation Method
There are 3 restart mode related parameters; default, initialization and retain parameter and the initialization
methods of each parameter are as follows in the restart mode.
Mode
Cold Warm
Parameter
Default Initializing as ‘0’ Initializing as ‘0’
Retain Initializing as ‘0’ Maintaining the previous value
Initializing as a user-defined
Initialization Initializing as a user-defined value
value
Initializing as a user-defined
Retain & initialization Maintaining the previous value
value
D.CLR clear does not work at RUN mode. To do it, after make sure to change to STOP mode. In addition, the
default area can be also initialized when clearing by D.CLR switch.
When instantaneously operating D.CLR, the only retain area is deleted. If maintaining D.CLR for 3 seconds, 6
LEDs blink and at the moment, if the switch returns, even R area data are also deleted.
For the maintenance or reset(clear) of the retain area data according to the PLC operation, refer to the following
table.
Every device memory is cleared up as ‘0’ at the status of memory deletion. The data value may be assigned initially
depending on a system and at the moment, the initialization task should be used.
5-33
Chapter 5. Program Configuration and Operation Method
5-34
Chapter 6. CPU Module Functions
(1) The self-diagnostic is the function that the CPU module diagnoses any trouble of the PLC system.
(2) It detects any trouble when turning on the PLC system or any trouble is found during the operation, avoid the
system from malfunctioning and taking preventive measures.
(1) WDT is a timer used to detect an operation delay from abnormal user program. It can be set in the basic
parameter of XG5000.
(2) WDT monitors any scan overtime during operation and if it detects any overtime delay, it immediately
suspends the PLC operation and turns off every output.
(3) If it is expected that programming a specific part(using FOR ~ NEXT command, CALL command and etc)
may have an overtime delay of scan watchdog timer while executing a user program, you can clear the
timer by using ‘WDT’ command. The ‘WDT’ command restarts from 0 by initializing the overtime delay of
scan watchdog time(for the details of WDT command, please refer to the chapter about commands in the
manual).
(4) To release a watchdog error, turn it on again, operate manual reset switch or change the mode to STOP
mode.
WDT
0 1 2 3 ….. …8 9 0 1 2 … 0 1 2 … …6 7 0 1 2 …
Count (ms)
6-1
Chapter 6. CPU Module Functions
Caution
(1) The setting range of the watchdog timer is 1 ~ 999ms(1ms step), and the initial value is 200ms.
(2) If the cycle is set too short, scan watchdog time error may occur if the scan time is elongated by
communication traffic overload, etc. It is recommended to set the cycle sufficiently longer that
_SCAN_MAX
6-2
Chapter 6. CPU Module Functions
(1) When entering Run mode, check if a module disagrees with the parameter setting or in failure (E030)
(2) Check if the I/O module is isolated or failed during operation (E031)
If an abnormality is detected, the error indicator lamp (ERR LED) turns on, error number is indicated on the status
indicator, and the CPU stops operation.
Note
The results of self-diagnostic check are logged in the flag area.
For the details of self-diagnostic and troubleshooting against errors, please refer to 14.5 Error Codes List
during CPU Operation of Chapter 13. Troubleshooting.
6.1.5 Troubleshooting
6-3
Chapter 6. CPU Module Functions
Note
Error latch flag is maintained as long during a scan program if an error occurs in scan program.
Every time a command is executed, error flag is cleared and set just after a command generating an
error is executed.
Note
(1) If a fault occurs, the fault number is saved into the flag(_ANNUM_ER).
(2) If light fault is detected, the fault number is saved into the flag(_ANNUM_WAR).
(3) For further information about the flags, please refer to Appendix 1. Flags List.
The CPU module contains a clock element (RTC), which operates by the backup battery even in case of power-off or
instantaneous interruption.
By using the clock data of RTC, the time control for the operation or trouble logs of the system is available. The
present time of RTC is updated to the clock-related F device per scan.
6-4
Chapter 6. CPU Module Functions
It displays the time from the PLC RTC. If it displays the present time incorrectly, a user can fix it up by
transferring the right time after manually setting the time or performing “Synchronize PLC with PC clock”
method to transmit the time of PC clock connected to the PLC.
Input a value into the below flag area and use the ‘_RTC_TIME_USER’ function block. The time data is
updated in scan END.
Flags Examples Size F area Description
_RTC_TIME_USER[0] 16#08 BYTE %FB3860 Current time [year, last two digits]
_RTC_TIME_USER [1] 16#02 BYTE %FB3861 Current time [Month]
_RTC_TIME_USER [2] 16#23 BYTE %FB3862 Current time [Date]
_RTC_TIME_USER [3] 16#14 BYTE %FB3863 Current time [Hour]
_RTC_TIME_USER [4] 16#16 BYTE %FB3864 Current time [Minute]
_RTC_TIME_USER [5] 16#17 BYTE %FB3865 Current time [Second]
_RTC_TIME_USER [6] 16#06 BYTE %FB3866 Current time[day]
_RTC_TIME_USER [7] 16#20 BYTE %FB3867 Current time [hundred year]
Alternatively, instead of using function blocks, it is also possible to enter clock data into the above area and turn
on ‘_RTC_WR’ in order to input the time.
(b) After writing the clock data, check whether it is rightly set by monitoring Reading Clock device.
6-5
Chapter 6. CPU Module Functions
Number 0 1 2 3 4 5 6
Day Sunday Monday Tuesday Wednesday Thursday Friday Saturday
The error of RTC varies depending on the operating temperature. The following table shows the time error for a
day.
Caution
(1) Initially, RTC may not have any clock data.
(2) When using the CPU module, first make sure to set the accurate clock data.
(3) If any data out of the clock data range is written into RTC, it does not work properly.
i.e.) 14M 32D 25H
(4) RTC may stop or have an error due to abnormal battery and other causes. The error is released if a new
clock data is written.
(5) For further information of how to modify the clock data, please refer to the description of XGI commands
(6) In the sybchronization of the master and backu CPUs, time difference may occur between the master and
backup.
6-6
Chapter 6. CPU Module Functions
The operation mode of the CPU can be changed by communication, in addition to the key switch on the module.
For remote operation, set the key switch of the CPU module to REM (remote) position>
(a) Operation by connecting to XG5000 via USB or RS-232C port installed on the CPU module
(b) Operate by connecting XG5000 via the USB port on the expansion drive module
(c) Other PLC networked on the PLC can be controlled with the CPU module connected to XG5000.
(d) The PLC operation is controlled by HMI software and other applications through the dedicated
communication.
(2) Remote RUN/STOP
(a) Remote RUN/STOP is the function to execute RUN/STOP remotely with the dip switch of the CPU module
set to REMOTE and the RUN/STOP switch set to STOP.
(b) It is a very convenient function when the CPU module is located in a place hard to control or in case the
CPU module is to run/stop from the outside.
(3) DEBUG
(a) DEBUG is the function to control DEBUG with the dip switch of the CPU module set to REMOTE and
RUN/STOP switch set to STOP.
(b) It is a very convenient function when checking program execution status or data in the debugging operation
of the system.
(a) Remote reset is the function to reset the CPU module remotely in case an error occurs in a place not to
directly control the CPU module.
(b) Like the switch control, it supports ‘Reset’ and ‘Overall Reset.’
Note
For the further information about remote functions, please refer to the ‘Online’ part in the user’s manual of
XG5000.
6-7
Chapter 6. CPU Module Functions
Caution
(1) The default is ‘Flash Memory Operation Mode deselected’.
(2) Flash memory operation mode is maintained as ‘On’ as long as it is not ‘Off’ by XG5000.
(3) Flash memory operation mode can be changed, irrespective of RUN/STOP mode.
(4) Flash memory operation mode can be set by the online menu of XG5000 when executing flash ‘operation
mode setting’ after program debugging is complete with the flash memory operation mode off.
(5) If modifying during RUN with ‘flash memory operation mode’ set, the changed program may be applied only
when it restarts as long as the program is successfully written in flash memory. Note that if the PLC restarts
before a program is saved into flash memory, a program that is saved in advance, instead of the changed
program, works.
(6) If flash memory operation mode is changed from ‘disabled’ to ‘enable’, flash memory operation mode is
applied as long as the flash memory writing is complete. In case the PLC restarts before completing program
writing, “Flash memory operation mode” is released.
6-8
Chapter 6. CPU Module Functions
If restarting the PLC system or changing its operation mode to RUN, it works as follows depending on the
flash operation mode setting.
6-9
Chapter 6. CPU Module Functions
The forcible I/O function is used to forcibly turn on or off I/O area, irrespective of program execution results.
(a) To set forcible I/O, select the flag of a contact to set and the data checkbox
(b) To set “1”, select the flag and data of a bit and then, select a flag.
(c) To set “0”, select a flag only, not the data corresponding to the bit.
(d) If selecting ‘forcible input or output enabled’, the setting is applied and it works accordingly.
Caution
(1) Forcible I/O setting is available only in local I/O module.
(2) It can not be set in remote I/O module(smart I/O module).
(3) If forcible I/O is set, “CHK LED” is On.
(4) The forcible I/O set by a user is maintained even though a new program is downloaded.
6-10
Chapter 6. CPU Module Functions
‘Input’ replaces the data of a contact set by Forcible On/Off from the data read from input module at the time of
input refresh with the forcibly set data and updates input image area. Therefore, a user program can execute
operation with actual input data and forcibly set data.
‘Output’ replaces the data of a contact set by Forcible On/Off from the output image area data containing
operation result at the time of output refresh with the forcibly set data and outputs to an output module after
completing user program operation. Unlike input, the data in output image area is not changed by forcible
On/Off setting.
Caution
Cautions for using forcible I/O
(1) It works from the time when input/output are set to ‘enable/disable’ respectively after setting forcible data.
(2) Forcible input can be set even though actual I/O module is not installed.
(3) The previously set On/Off setting data are kept in the CPU module, despite of power off on, operation
mode change, program download or manipulation by reset key. However, it is deleted if overall reset is
executed.
(4) Forcible I/O data are not deleted even in STOP mode.
(5) To set new data from the first, release every setting of I/O by using ‘overall reset’.
6-11
Chapter 6. CPU Module Functions
There are four types of operation logs; Error log, Mode change log, shut down log and System log.
It saves the time, frequency and operation of each event into memory and a user can conveniently monitor them
through XG5000. Operation log is saved within the PLC unless it is deleted by XG5000.
6.5.1 Error history
It saves error log that occurs during operation.
(1) Saving error code, date, time and error details.
(2) Saving logs up to 2,048
(3) Automatically released if memory backup is failed due to low battery level and etc
6.5.2 Mode change history
It saves the change mode information and time if an operation mode is changed.
(1) Saving the date, time and mode change information.
(2) Saving up to 1,024.
Note
(1) The saved data are not deleted before it is deleted by selecting a menu in XG5000.
(2) If executing Read All in case logs are more than 100, the previous logs are displayed.
6-12
Chapter 6. CPU Module Functions
It is the flag that a user detects a fault of external device so that the suspension/warning of a system could be easily
realized. If using the flag, it can display a fault of external device, instead of creating a complex program and monitor
a fault position without XG5000 and source program.
(a) The fault of external device is detected by a user program and it can be divided into heavy fault(error) that
requires stopping the PLC operation and light fault(warning) that only displays fault status while it keeps
operating.
(b) Heavy fault uses ‘_ANC_ERR' flag and light fault uses ‘_ANC_WB' flag.
(a) If a heavy fault of external device is detected in a user program, it writes the value according to error type
defined in a system flag, ‘_ANC_ERR’ by a user. Then, with _CHK_ANC_ERR flag On, it checks at the
completion of a scan program. At the moment, if a fault is displayed, it is displayed in ‘_ANNUN_ER’ of
‘_CNF_ER’, which is the representative error flag. Then, the PLC turns off every output module(depending on
the output control setting of basic parameter) and it has the same error status with PLC fault detection. At the
moment, P.S LED and CHK LED are On, besides ERR LED.
(b) In case of a fault, a user can check the cause by using XG5000 and alternatively, check it by monitoring
‘_ANC_ERR’ flag.
(c) To turn off ERR LED, P.S LED and CHK LED, which are On by heavy fault error flag of external device, it is
necessary to reset the PLC or turn it off and on again.
Example
(a) If a light fault of external device is detected in a user program, it writes the value according to warning type
defined in ‘_ANC_WAR’ by a user. Then, with _CHK_ANC_WAR On, it checks at the completion of a scan
program. At the moment, if a warning is displayed, ‘_ANNUN_WAR’ of ‘_CNF_WAR’, which is the
representative error flag of system is On. At the moment, P.S LED and CHK LED are On.
(b) If a warning occurs, a user can check the causes by using XG5000. Alternatively, a user can check the
causes by directly monitoring ‘_ANC_WAR’ flag.
(c) With _CHK_ANC_WAR OFF, P.S LED and CHK LED are off and the display, ‘_ANNUN_WAR’ of
‘_CNF_WAR’ is reset.
Example
6-13
Chapter 6. CPU Module Functions
Different from other parameters, the dredundancy parameters can be written during running.
However, the redundancy parameters cannot be automatically dpwnloaded during running writing.
From the XG5000 online writing, select the redundancy parameters only and download them.
If the system is operation with master CPU only, without standby, redundancy system configuration warning occurs.
To configure XGR system with a single CPU, select the ‘Disable the warning message for Single CPU Mode’
check box to prevent the warning display.
6-14
Chapter 6. CPU Module Functions
Caution
It is recommended to configure the XGR system in redundant CPU system. If the redundant system is configured
with single CPU, the system stops if the CPU module fails. To prevent system interruption, set up the system in
redundant CPU configuration
In a redundant XGR system configured wuth multiple extensin bases for enhanced system reliability and diversity,
in case of detach (powr off) of expansion base(s), the user can select whether to consider it as error or CPU
restarts the system and watis until exension base in problem paricipate in operation again.
When the failed base is restarted normally and returns to the system, the CPU module restarts in the same
manner as the initial start-up and carry out normal operation.
6-15
Chapter 6. CPU Module Functions
Caution
(1) The M area retain can be set up in the “Basic Parameter Setting.” For details, see “5.5.3 Data Retain Area
Setting.”
(2) When the master/standby CPUs are performing redundant operation, followings are automatically
synchronized.
(a) L (high speed link flag), N(P2P parameter setting) device area
(b) F (system flag area) device area (however, individual flag areas are not synchronized).
(c) U (special module refresh area) device area (however, only installed modules are synchronized).
(3) If a variable value has been changed during monitoring by XG5000, it applies to the respective areas of the
master and standby CPUs, regardless of the data synchronization area setting.
6-16
Chapter 6. CPU Module Functions
When the cable of FEnet set as server or server connection is disconnected, you have to check the
Automatic switchover for automatic master switchover. This setting is applied in case of redundancy
operation
For example, In case you set slot 1 and slot 2 as group 1, slot 3 and slo4 as group 2 and slot 5 as group3,
master switchover occurs under the following three conditions. (We assumes that FEnet modules on standby
base are normal connection status)
(a) Slot 1 and slot 2 are disconnected or
(b) Slot3 and slot4 are disconnected or
(c) Slot 5 is disconnected
6-17
Chapter 6. CPU Module Functions
6-18
Chapter 6. CPU Module Functions
(1) IP setting
You set IP of FEnet module at standard setting window after registering FEnet module at XG-PD. If you check
ONE IP Solution of standard setting window, ONE IP Solution function will be activated. Unlike when ONE IP
Solution is not used, you can set only one IP address (For how to set IP address when ONE IP Solution is not
activated, refer to FEnet user manual). When using ONE IP Solution, IP address should be even number.
That IP address becomes IP address of master base FEnet module and master base FEnet module’s IP
address + 1 becomes IP address of standby base FEnet module
(2) IP change
If you use ONE IP Solution, in case of master switchover caused by error, communication disconnection,
master base and standby FEnet modules change each other’s IP address. For this, after master switchover,
individual module reset is conducted.
Caution
(1) Individual module reset should be complete after master switchover so let no master switchover occurs again
within 3 second (time for completing individual module reset) after master switchover.
6-19
Chapter 6. CPU Module Functions
(2) If an error occurs on a module on which fault mask is set, the module stops working but the entire system
keeps working.
(3) If a fault occurs in a module during operation, the CPU module sets the error flag and “PS LED” on the front is
“On.” The error is displayed when accessing to XG5000.
(2) Fault mask setting by a program is not available. You can monitor the fault mask flag with program.
(Refer to appendix1. flag list)
Note that the fault mask is not released even in the following cases.
(1) Power Off→On
(2) Operation mode change
(3) Program download
(4) Reset key(released only when it is pressed for 3 seconds and longer)
(5) Data clear
Caution
(1) If releasing fault mask with error flag in the CPU module not cleared although the causes of an error are
eliminated, the system stops. Please check the state of error flag before releasing fault mask flag.
(2) To remove an error flag, release it after setting I/O skip in the respective module. For details, see
[XG5000 online help desk >>I/O Skip.
(3) In case of XGR-CPU V1.8 or above, if you don’t set fault mask, warning message appears when
connecting CPU via XG5000. In case of XGR-CPU V1.8 or above, “Warning for fault mask removal”
option is added at Redundancy parameter.
6-20
Chapter 6. CPU Module Functions
(2) Input(I) image area suspends input refresh, so it maintains the value set before skip setting. However, even in
the case, the image manipulation by forcible On/Off is still effective.
(3) The actual output of output module is Off when setting the skip function but it changes depending on a user
program’s operation, irrespective of skip setting. After the skip setting, the output value of output module can not
be controlled by forcible On/Off.
(4) The skip function is identically executed even when using I/O function.
Note that the fault mask is not released even in the following cases.
(1) Power Off→On
(2) Operation mode change
(3) Program download
(4) Reset key(released only when it is pressed for 3 seconds and longer)
(5) Data clear
Caution
If any fault is found in a module when releasing the skip function, the system may stop. Before releasing the skip
function, make sure to release the skip with fault mask set and check the operation of a module.
6-21
Chapter 6. CPU Module Functions
Caution
(1) When expansion driver is detached, all modules in base are automatically initialized.
(2) When expansion driver is detached, digital output module operates as set in Output control settings of Basic
parameter.
(3) When expansion driver is detached, analog output module operates as set in Output type setting
(4) For more detail, refer to each module’s user manual.
6-22
Chapter 6. CPU Module Functions
A module can be replaced during operation in the redundant system. There are two methods. First, use “Hot
swapping option” function of [table 5.1.4] redundancy parameter described in Chapter 5. Check the “How swapping
option” and download only “Redundancy parameter” to PLC during RUN mode. Then replace base and module.
Second, use “OnlineModule changing wizard or Base changing wizard”
Warning
The special modules which can be normally replaced are A/D, D/A, TC, and RTD. HSC and APM
modules can be replaced but the previous data cannot be maintained.
Some communication modules (XGL-PMEA, XGL-DMEA) can be connected as long as network is
set(using Sycon software).
(1) When replacing a module, align the bottom of the base and the holding part of a module before inserting it.
A wrong insertion may cause ‘system down.’
To replace a module, users can use XG5000’s [Online >> Module Replacement Wizard] function.
For details, see XG5000 User Manual [Online >> Module Replacement Wizard].
Caution
Replacement of the main base (base 0) using the XG5000’s [Online >> Module Replacement Wizard]
function is available only during single CPU operation.
6-23
Chapter 6. CPU Module Functions
Bases can be replaced in redundant operation. For a line-configured system, the last base only can be replaced.
For a ring-configured system, all the bases of the 1-31 bases which are participating in the operation can be
replaced.
For safety purpose, this Manual provides XG5000’s [Online >> Base Replacement Wizard] function. For further
details, see XG5000 User Manual [Online >> Base Module Replacement Wizard].
(If you use “Hot swapping option”, you can change in RUN mode)
Caution
In this process, only one base can be replaced at a time for safety reason.
The main base cannot be replaced during operation.
Ring configuration: available to change all extension bases
Line configuration: available to change last extension base because of line configuration
6-24
Chapter 7. Expansion Drive Module
Specification
Items
100BASE-FX (multi) 100BASE-FX (single) 100BASE-TX
Cable Multi Mode Fiber Single Mode Fiber FTP / STP / SFTP
7-1
Chapter 7. Expansion Drive Module
7-2
Chapter 7. Expansion Drive Module
7-3
Chapter 7. Expansion Drive Module
7-4
Chapter 8. Power Module
We provide diverse types according to input voltage and output capacity. Select right module according to environment and system.
[Table 8.1.1] Power module specification
Item XGR-AC12 XGR-AC22 XGR-AC13 XGR- AC23 XGR-DC42
Rated input voltage 110 VAC 220 VAC 110 VAC 220 VAC 24 VDC
Input voltage range 85V~132VAC 176V~264VAC 85V~132VAC 176V~264VAC 19.2 ~ 28.8 VDC
Input Inrush current 20A peak and lower (within8 ㎳ ) 80A peak and lower
Note
(1) Allowable instantaneous interruption time
(a) The time that the normal output voltage is maintained(normal operation) when AC110/220V/DC24V input voltage is
less
than rating value (AC 85/176V/DC 19.2V)
(2) Over current protection
(a) If a current over the rated level is allowed on 5VDC circuit, an over current protective system cuts off the circuit, suspending
the system.
(b) If there is any overcurrent, the system should be restarted after eliminating the causes such as low current capacity, short-
circuit and etc.
8-1
Chapter 8. Power Module
8-2
Chapter 8. Power Module
8.3 Selection
The selection of power module is determined by the current that input power voltage and power module should supply to the system,
that is, the sum of current consumption of digital I/O module, special module and communication module that are installed on a same
base with the power module.
If it exceeds the rated output capacity of power module, the system does not properly work.
Select a power module by considering the power current of each module when structuring a system.
[Table 8.3.1] Current consumption by modules
Consumption Consumption
Item Name current Item Name current
(Unit: mA) (Unit: mA)
XGF-AV8A 420
XGR-CPUH/T 980
CPU module XGF-AC8A 420
XGR-CPUH/F 1,310 Analog input module XGF-AD4S 610
XGR-DBST 550 XGF-AD8A 420
Expansion drive
XGR-DBSF 550 XGF-AD16A 330
module
XGR-DBSH 550 XGF-DV4A 190 (250)
XGI-D21A 20 XGF-DC4A 190 (400)
XGI-D22A 30 Analog output XGF-DC4S 200 (220)
XGI-D22B 30 module XGF-DV8A 147 (180)
DC24V input module XGI-D24A 50 XGF-DC8A 243 (300)
XGI-D24B 50 XGF-DV4S 200 (150)
XGI-D28A 60 High speed counter XGF-HO2A 270
XGI-D28B 60 module XGF-HD2A 330
AC110V input module XGI-A12A 30 XGF-PO3A 400
AC220V input module XGI-A21A 20 XGF-PO2A 360
XGQ-RY1A 250 XGF-PO1A 340
Relay output module XGQ-RY2A 500 XGF-PD3A 860
XGQ-RY2B 500 XGF-PD2A 790
XGQ-TR2A 70 XGF-PD1A 510
XGQ-TR2B 70 XGF-PO4H 430
Positioning module
Transistor output XGQ-TR4A 130 XGF-PO3H 420
module XGQ-TR4B 130 XGF-PO2H 410
XGQ-TR8A 230 XGF-PO1H 400
XGQ-TR8B 230 XGF-PD4H 890
XGF-PD3H 850
Triac output module XGQ-SS2A 300
XGF-PD2H 600
XGF-PD1H 520
I/O module XGH-DT4A 110
XGF-RD4A 450
RTD input module
XGL-EFMF 640 XGF-RD4S 783
FEnet I/F module Thermocouple input
XGL-EFMT 410 XGF-TC4S 610
(Optical/Electricity) module
XGL-ESHF 1,200 Event input module XGF-SOEA 700
Motion control
XGL-EIMF 490 XGF-M16M 640
module
PAPIEnet I/F Module
XGL-EIMT 335
Analog I/O module XGF-AH6A 770
XGL-EIMH 400
8-3
Chapter 8. Power Module
Consumption Consumption
Item Name current Item Name current
(Unit: mA) (Unit: mA)
Ethernet/IP I/F
XGL-EIPT 400 Dnet I/F module XGL-DMEA 440
module
XGL-C22A 330 XGL-EDMF 410
FDEnet I/F module
Cnet I/F module XGL-C42A 300 XGL-EDMT 410
XGL-CH2A 340 Pnet I/F module XGL-PMEA 560
Rnet I/F module XGL-RMEA 410 - - -
AC Power
100V~240V
Power CPU
I5V
Comm.Comm.Output Input Special
Constant
voltage DC5V
transformer Iin
Iout
Load
DC Power AC Power
24V 100V~240V
8-4
Chapter 8. Power Module
Since total of consumption current (5V) is 6.17A, use one among XGR-AC13, XGP-AC23 according to input voltage.
If power module is less than a necessary capacity, reliability of system is not guaranteed.
Note
If efficiency of power module is applied to power (5V), the user can estimates the maximum input power of PLC system.
Ex) Total of consumption power (5V) / Power module efficiency (Min.) = 100 W / 0.65 % = 154 W
8-5
Chapter 8. Power Module
8-6
Chapter 9. I/O Module
It describes the cautions when selecting digital I/O modules used for the XGI series.
1) There are two digital input types; current sink input and current source input
Since the wiring method of external input power varies in a DC input module, it should be selected considering the
specifications of input connectors.
2) The max. simultaneous input point varies depending on a module type. That is, it may be different, depending on
input voltage and ambient temperature. Please review the specifications of input module to apply before use.
3) In case of an application for highly frequent switching or inductive load switching, the relay output module may have
a shorter life, so it needs a transistor module or triac output module, instead of it.
4) If an output module operates an inductive load(L), the max. On/Off frequency should be limited to On per 1 second
and Off per 1 second, each.
5) In case a counter timer using DC/DC converter is used as a load in an output module, setting the average current
may cause a trouble because it may have inrush current in case of On or a certain cycle during operation. Therefore,
if using the foresaid load, it is necessary to connect resistance or inductor parallel to load or alternatively use a
module of which max. load current is large.
Output Output
module module
6) A fuse in an output module can not be replaced. That’s why it is intended to prevent external wiring from being
damaged when the output of a module is short-circuited. Therefore, the output module may not be protected. If an
output module is destructed in any other fault mode save for short-circuit, a fuse may not work.
9-1
Chapter 9. I/O Module
7) The following figure shows the relay life of relay output module.
It also shows the max. life of relay used for relay output.
No. of switching(×10 thousands)
100
50
30
20
10
AC 125V resistance load
0.5 1 2 3 5 10 100
Current(A)
8) A clamped terminal with sleeve can not be used for the XGI terminal strip. The clamped terminals suitable for terminal strip
are as follows(JOR 1.25-3:Daedong Electricity).
9) The cable size connected to a terminal strip should be 0.3~0.75 ㎟ stranded cable and 2.8 ㎜ thick. The cable
may have different current allowance depending on the insulation thickness.
10) The coupling torque available for fixation screw and terminal strip screw should follow the table below.
9-2
Chapter 9. I/O Module
DC24V 06
07
* COM : TB9
COM
9-3
Chapter 9. I/O Module
9-4
Chapter 9. I/O Module
9-5
Chapter 9. I/O Module
0 10 20 30 40 50 55 B04 NC A04 NC
Ambient temp(℃) B03 NC A03 NC
Derating level B02 COM A02 COM
B01 COM A01 COM
9-6
Chapter 9. I/O Module
9-7
Chapter 9. I/O Module
9-8
Chapter 9. I/O Module
9-9
Chapter 9. I/O Module
TB11 10 0B
80 0C
0D
AC120V TB12 11
70 0E
On rate 12 0F
TB13
(%) 60 COM
50 AC132V TB14 13
40 TB15 14
TB16 15
0 10 20 30 40 50 55
TB17 COM
Ambient temp(℃)
Derating level TB18 NC
9-10
Chapter 9. I/O Module
TB8 7 04
37℃ 49℃
90 TB9 COM 05
AC240V
80 06
70 07
On rate
60 COM
(%)
50 AC264V
40
0 10 20 30 40 50 55
Ambient temp(℃)
Derating level
9-11
Chapter 9. I/O Module
9-12
Chapter 9. I/O Module
TB14 COM L 07
TB15 7
TB16 COM
TB17 NC
TB18 NC
9-13
Chapter 9. I/O Module
TB16
TB10 9 L
09
L
L TB11 10 10
L
11
COM
TB12 11 L
12
L
TB13 12 L
13
14
AC 220V TB14 13 L
15
L
TB15 14 COM
9-14
Chapter 9. I/O Module
9-15
Chapter 9. I/O Module
L 02.
TB1 TB6 5 03.
L L
TB7 6 L
04
Internal L 05
TB8 7 06
L
circuit ZC R TB9 8 07
L
08
TB16
TB10 9 L
09
L
L TB11 10 10
Triac L
11
TB12 11 L
12
COM L
TB13 12 L
13
14
AC110/220V TB14 13 L
15
L
TB15 14 COM
TB16 15
*COM : TB17
TB17 COM
TB18 NC
9-16
Chapter 9. I/O Module
TB14 13 COM
R *COM : TB18
TB15 14
TB16 15
TB17 DC24V
TB18 COM
9-17
Chapter 9. I/O Module
External power Voltage DC12/24V ± 10% (4 Vp-p and lower ripple voltage)
supply Current 10mA and lower (if connected to DC24V)
Operation display LED On with Input On
External connection method 40 Pin Connector
Suitable cable size 0.3 ㎟
Weight 0.1 kg
Circuit diagram No Contact No Contact
B20 0 A20 16
B19 1 A19 17
DC5V B20 A20
B18 2 A18 18 A19
B19
B17 3 A17 19 B18 A18
B20
LED L B16 4 A16 20 B17 A17
B15 5 A15 21 B16 A16
R B14 6 A14 22 B15 A15
Internal A14
B13 7 A13 23 B14
B13 A13
circuit B12 8 A12 24
B12 A12
A05 B11 9 A11 25 B11 A11
L
B10 10 A10 26 B10 A10
B09 11 A09 27 B09 A09
B01,B02 A08
B08 12 A08 28 B08
B07 A07
B07 13 A07 29 B06 A06
COM
B06 14 A06 30 B05 A05
DC12/24V B05 15 A05 31 B04 A04
B04 /NC A04 NC B03 A03
B02 A02
* COM : A02, A01 B03 NC A03 NC
B01 A01
B02 DC12/ A02 COM
B01 24V A01 COM
9-18
Chapter 9. I/O Module
External power Voltage DC12/24V ± 10% (4 Vp-p and lower ripple voltage)
supply Current 10mA and lower (if connected to DC24V)
Operation display LED On with Input On (32point LED on by switching)
External connection method 40 Pin Connector × 2
Suitable cable size 0.3 ㎟
Weight 0.15 kg
Circuit diagram No Contact No Contact No Contact No Contact
1B20 0 1A20 16 2B20 32 2A20 48
1B19 1 1A19 17 2B19 33 2A19 49
DC5V 1B18 2 1A18 18 2B18 34 2A18 50
1B20 B20 A20
LED L 1B17 3 1A17 19 2B17 35 2A17 51
B19 A19
1B16 4 1A16 20 2B16 36 2A16 52
B18 A18
R 1B15 5 1A15 21 2B15 37 2A15 53
Internal B17 A17
circuit 1B14 6 1A14 22 2B14 38 2A14 54 B16 A16
1B13 7 1A13 23 2B13 39 2A13 55 B15 A15
2A05 1B12 8 1A12 24 2B12 40 2A12 56
L B14 A14
R B13 A13
1B11 9 1A11 25 2B11 41 2A11 57
B12 A12
1B02,1B01 1B10 10 1A10 26 2B10 42 2A10 58
2B02, 2B01 B11 A11
1B09 11 1A09 27 2B09 43 2A09 59 B10 A10
A 1B08 12 1A08 28 2B08 44 2A08 60 B09 A09
Switching
1B07 13 1A07 29 2B07 45 2A07 61 B08 A08
circuit B COM B07 A07
1B06 14 1A06 30 2B06 46 2A06 62
B06 A06
DC12/24V 1B05 15 1A05 31 2B05 47 2A05 63
B05 A05
A: displaying 0~31 1B04 NC 1A04 NC 2B04 NC 2A04 NC B04 A04
B: displaying 32~63 1B03 NC 1A03 NC 2B03 NC 2A03 NC B03 A03
1B02 1A02 2B02 2A02 B02 A02
12/24 12/24 B01 A01
*COM : 1A02, 1A01 COM1 COM2
/ 2A02, 2A01 VDC VDC
*1B01 1A01 2B01 2A01
9-19
Chapter 9. I/O Module
9-20
Chapter 9. I/O Module
External power Voltage DC12/24V ± 10% (4 Vp-p and lower ripple voltage)
supply Current 10mA and lower (if connected to DC24V)
Operation display LED On with Input On
External connection method 40 Pin Connector
Suitable cable size 0.3 ㎟
Weight 0.1 kg
Circuit diagram No Contact No Contact
B20 0 A20 16
B19 1 A19 17 B20 A20
B18 2 A18 18 B19 A19
DC5V B18 A18
B20
B17 3 A17 19
L B17 A17
LED B16 4 A16 20
B16 A16
B15 5 A15 21 B15 A15
R
Internal B14 6 A14 22 B14 A14
B13 7 A13 23 B13 A13
circuit A12
B12 8 A12 24 B12
B11 A11
B11 9 A11 25
B10 A10
A05 B10 10 A10 26 B09 A09
L
B09 11 A09 27 B08 A08
COM
B08 12 A08 28 B07 A07
DC12/24V B07 13 A07 29 B06 A06
B05 A05
A02, A01 B06 14 A06 30
B04 A04
B05 15 A05 31 B03 A03
B04 NC A04 NC B02 A02
* COM : B02, B01 B03 NC A03 NC B01 A01
B02 A02
COM 0V
B01 A01
9-21
Chapter 9. I/O Module
External power Voltage DC12/24V ± 10% (4 Vp-p and lower ripple voltage)
supply Current 10mA and lower (if connected to DC24V)
Operation display LED On with Input On (32 point LED ON by switching)
External connection method 40 Pin Connector × 2
Suitable cable size 0.3 ㎟
Weight 0.15 kg
Circuit diagram No Contact No Contact No Contact No Contact
1B20 0 1A20 16 2B20 32 2A20 48
DC5V 1B19 1 1A19 17 2B19 33 2A19 49
1B18 2 1A18 18 2B18 34 2A18 50 B20 A20
1B20 1B17 3 1A17 19 2B17 35 2A17 51
LED L B19 A19
1B16 4 1A16 20 2B16 36 2A16 52 B18 A18
R 1B15 5 1A15 21 2B15 37 2A15 53 B17 A17
Internal B16 A16
1B14 6 1A14 22 2B14 38 2A14 54
B15 A15
circuit 1B13 7 1A13 23 2B13 39 2A13 55
B14 A14
1B12 8 1A12 24 2B12 40 2A12 56
B13 A13
R
2A05 1B11 9 1A11 25 2B11 41 2A11 57 B12 A12
L
1B10 10 1A10 26 2B10 42 2A10 58 B11 A11
1B09 11 1A09 27 2B09 43 2A09 59 B10 A10
COM
B09 A09
1B08 12 1A08 28 2B08 44 2A08 60
DC12/24V B08 A08
1B07 13 1A07 29 2B07 45 2A07 61
B07 A07
1A02, 1A01
2A02, 2A01
1B06 14 1A06 30 2B06 46 2A06 62 B06 A06
1B05 15 1A05 31 2B05 47 2A05 63 B05 A05
Switching A B04 A04
1B04 NC 1A04 NC 2B04 NC 2A04 NC
B 1B03 NC 1A03 NC 2B03 NC 2A03 NC B03 A03
circui *COM : 1B02, 1B01 B02 A02
/ 2B02, 2B01 1B02 1A02 2B02 2A02 B01 A01
A: displaying 0~31 COM 0V COM 0V
B: displaying 32~63 1B01 1A01 2B01 2A01
9-22
Chapter 9. I/O Module
9-23
Chapter 9. I/O Module
DC12/24V
9-24
Chapter 9. I/O Module
Specification XGF-SOEA
Response Off → On H/W delay (10㎲: Normal) + input filter time (user setting: 0~100ms) + CPU scan time delay (50㎲)
time On → Off H/W delay (84㎲: Normal) + input filter time (user setting: 0~100ms) + CPU scan time delay (50㎲)
Working voltage AC560V rms/3 Cycle (Altitude 2000m)
Insulation resistance Insulation resistance 10 ㏁ or above (DC500V)
COMM method 32 point / COM
Current consumption (A) 0.7(MAX)
Operation indicator LED is on when input is on
External connection
40 pin connector
method
Size 27x98x90
Weight 0.2 kg
Circuit configuration No Contact No Contact
B20 0 A20 16
DC5V
0 Photo coupler B19 1 A19 17 B20 A20
B20
R LED B18 2 A18 18 B19 A19
9-25
Chapter 9. I/O Module
From digital I/O modules used for XGT Series, the modules accessible to Smart Link are as follows.
32 point modules need a Connector(40 Pin x 1), 64 point modules need 2 connectors(40 Pin x 2)
Model Specification No. of Pins
XGI-D24A/B DC input 32 point module 40 Pin Connector × 1
XGI-D28A/B DC input 64 point module 40 Pin Connector × 2
XGQ-TR4A TR output 32 point module(sink type) 40 Pin Connector × 1
XGQ-TR8A TR output 64 point module(sink type) 40 Pin Connector × 2
XGQ-TR4B TR output 32 point module(source type) 40 Pin Connector × 1
XGQ-TR8B TR output 64 point module(source type) 40 Pin Connector × 2
XGF-SOEA Event input module 40 Pin Connector × 1
The company prepares smart link products for the convenience of using our Connector type I/O modules.
For further information, please refer to the data sheet contained in a smart link product.
(Refer to 7.6.6 1to confirm the differences between TG7-1H40CA 1and 1TG7-1H40S)
Model Cable Length of Cable
C40HF-05PB-1B 0.5m
C40HF-10PB-1B 1m
TG7-1H40S C40HF-15PB-1B 1.5m
C40HF-20PB-1B 2m
Terminal C40HF-30PB-1B 3m
board C40HF-05PB-1B 0.5m
C40HF-10PB-1B 1m
TG7-1H40CA
C40HF-15PB-1B 1.5m
(Common120Pin1Added )
C40HF-20PB-1B 2m
C40HF-30PB-1B 3m
C40HF-05PB-1 0.5m
C40HF-10PB-1 1m
R32C-NS5A-40P
C40HF-15PB-1 1.5m
(Sink type)
Relay C40HF-20PB-1 2m
board C40HF-30PB-1 3m
C40HF-05PB-XGP1 0.5m
R32C-PS5A-40P
C40HF-10PB-XGP1 1m
(Source type)
C40HF-20PB-XGP1 2m
9-26
Chapter 9. I/O Module
Cable
Smart Link
9-27
Chapter 9. I/O Module
(1) XGI-D24A/B
(a) TG7-1H40S
9-28
Chapter 9. I/O Module
(b) TG7-1H40CA
9-29
Chapter 9. I/O Module
(2) XGI-D28A/B
(a) TG7-1H40S
9-30
Chapter 9. I/O Module
(b) TG7-1H40CA
9-31
Chapter 9. I/O Module
(3) XGQ-TR4A/8A
(a) TG7-1H40S
9-32
Chapter 9. I/O Module
(b) TG7-1H40CA
(c) R32C-NS5A-40P
9-33
Chapter 9. I/O Module
(4) XGQ-TR4B/8B
(a) TG7-1H40S
9-34
Chapter 9. I/O Module
(b) TG7-1H40CA
(c) R32C-PS5A-40P
9-35
Chapter 9. I/O Module
(5) XGF-SOEA
(a) TG7-1H40S
9-36
Chapter 9. I/O Module
(b) TG7-1H40CA
9-37
Chapter 9. I/O Module
(1) TG7-1H40S
1) Specifications
2) Dimensions(mm)
9-38
Chapter 9. I/O Module
(2) TG7-1H40CA
1) Specifications
2) Dimensions(mm)
9-39
Chapter 9. I/O Module
(3) R32C-N(P)S5A-40P
1) Specifications
(a) Relay Board
Case Modified PPO
Protective Cover Polycarbonate
PCB Epoxy 1.6t / 2oz
Applicable Wire AWG22-16 (MAX / 1.5 ㎟)
T/B Screw M3 X 8L
Screw Torque 1.2N • m(12Kgf • cm)
Ambient Temperature -10℃ ~ +50℃ (Non-condensing)
(b) Relay
Specification PA1a-24V
Arrangement 1a
Nominal switching capacity 5A 250V AC / 5A 30V DC
Contact
Max. switching current 5A
Max. switching voltage 250V AC / 110V DC
Rated Voltage 24V DC
Pick-up voltage 16.8V
Coil Drop-out voltage 1.2V DC
Coil resistance 3,200Ω
Rated operation power 180mW
Surge voltage between contact and coil 4,000V
Initial breakdown voltage
Between contact and coil 2,000V rms
2) Dimensions(mm)
9-40
Chapter 10. Base and Expansion Cable
10.1 Specification
10-1
Chapter 10. Base and Expansion Cable
Caution
1) The length of the optical cables should not exceed 2Km.
2) The length of the electrical cables should not exceed 100m.
10-2
Chapter 10. Base and Expansion Cable
The electrical expansion cables should be shielded twisted pair cables, such as FTP, STP, and SFTP, in order to meet the EMC
specification and reduce external noise. To use such shield cables, the plugs and fix housing should be as follows.
10-3
Chapter 10. Base and Expansion Cable
10-4
Chapter 10. Base and Expansion Cable
10-5
Chapter 10. Base and Expansion Cable
10-6
Chapter 11. Installation and Wiring
11.1 Installation
(a) When boring a screw hole or executing wiring construction, any wiring impurities should not be inserted to the
PLC.
(b) The system should be installed in a place easily accessible.
(c) Do not install the system on a same panel of a high voltage device.
(d) It should be 50mm and more away from wiring duct or proximate modules.
(e) Grounding on a position where noise is lower than the specified level.
(a) If installing the PLC in an air-tight control panel, it needs heat-protective(control) design considering the heat
from the PLC as well as other devices. If ventilating by vent or fan, inflow of dust or gas may affect the
performance of the PLC system.
(b) Install a filter or use a closed heat exchanger.
11-1
Chapter 11. Installation and Wiring
The following shows the calculation of PLC system’s power consumption requiring heat protective design.
(d) Average power consumption by output voltage drop of the output module (power consumption of
simultaneous On point)
• Wout = Iout X Vdrop X output point X simultaneous On rate (W)
Iout : output current(actually used current) (A)
Vdrop : voltage drop of each output module (V)
(e) Input average power consumption of input module(power consumption of simultaneous On point)
• Win = lin X E X input point X simultaneous On rate (W)
Iin: input current (root mean square value in case of AC) (A)
E : input voltage (actually used voltage) (V)
The sum of power consumption calculated by each block is the power consumption of the entire PLC
11-2
Chapter 11. Installation and Wiring
system.
Calculate the heats according to the entire power consumption(W) and review the temperature increase
within the control panel.
The calculation of temperature rise within the control panel is displayed as follows.
T = W / UA [°C]
W : power consumption of the entire PLC system (the above calculated value)
A : surface area of control panel [m2]
U : if equalizing the temperature of the control panel by using a fan and others - - - 6
If the air inside the panel is not ventilated - - - - - - - - - - 4
Note
(1) If the control cabinet is not well ventilated, temperature gradient in the cabinet may be
large. Care must be taken that the parts right above heat generating devices may become
very hot.
(2) Coefficient U, which can be different according to quantity of material, is general example
Calculation example)
Redundant basic base: 4 communication modules equipped
Expansion base 1: optical expansion drive, 6 Input modules, 6 output modules
Expansion base 2:optical expansion drive, 6 analog input modules, 6 analog output modules.
(c) Environment
If I/O module wiring is close to heating sources or materials or the wiring is directly contacted with oils for a
long time during wiring, it may cause short-circuit, destruction or malfunction.
(d) Polarities
Please make sure to check the polarities of modules of which terminal block is polarized before allowing the
power.
(e) Wiring
11-3
Chapter 11. Installation and Wiring
• When I/O wiring is executed with high voltage or power cable, it may cause inductive fault, probably leading
to malfunction or trouble.
• No cable should not be arranged front of I/O operation display(LED)
(I/O display may be hidden, hindering the interpretation)
• If an output module is connected to inductive load, please make sure to connect a surge killer or diode to
load in parallel. Please connect the cathode side of a diode to (+) o f the power.
Output module
Surge killer
COM
(g) Besides the above, it is prohibited to apply excessive impact on I/O module or separating PCB board from the
case.
It describes the cautions when installing the PLC on the control panel and others.
(a) A proper distance between the top of a module and structure/parts should be secured to facilitate ventilation
and module replacement.
C
A B E
A, B : more than 5 cm
E: more than 10 cm
- In case of using optical cable, IO module of connector type, more than 8 cm distance necessary
- In case of Ethernet FTP cable, more than 10cm distance necessary
11-4
Chapter 11. Installation and Wiring
(b) Please do not install it vertically or horizontally for the ventilation purpose.
(c) Please use a different panel or secure a proper distance if there is vibration source from a large electronic
contact or
no-fuse breaker
(d) If necessary, please install a wiring duct. However, please keep the following cautions.
• If installing on the top of PLC, maintain the height of a wiring duct 50mm more than for better ventilation. In
addition, maintain the distance from the top of PLC so that the hook on the top of the base can be pressed.
• If installing on the bottom of it, let optical or coaxial cable be connected and consider the minimum radius of
the cable.
(e) Please install the PLC along the well-ventilated direction as presented below for the heat prevention purpose.
11-5
Chapter 11. Installation and Wiring
(g) To avoid any influence of radiating noise or heat, please install the PLC and other devices(relay, electronic
contact) with a spacing secured as presented below.
11-6
Chapter 11. Installation and Wiring
(h) In a layered-installation of PLCs, the temperature of the base at the top may become very high due to the heat
transferred from the lower layers. If the temperature in the control cabinet is high, install a ventilating fan, or
provide sufficient distances between the bases.
Tb +2Tr
Tb +Tr
Tb
Caution
(1) In case of closed installation, the temperature(Tb +Tr) around the modules right above the optical
communication module and power module which generate large heat may be higher than that at other
positions by 15℃.
(The temperature of the air near the modules should not exceed 55℃.)
- Optical communication module: XGR-CPU(optical) module, expansion drive (optical) module, inter-PLC
communication (optical) module
(2) In order to dissipate the heat radiated from PLCs, heat conductivity between the enclosure wall and bases
or base chassis should be considered in the design and installation.
11-7
Chapter 11. Installation and Wiring
(1) Attachment
• Please insert the fixation projection on the bottom of a module to the hole of module installation of the base.
• Please fix it on the base by pushing the top of a module and tight it by using the module fixation screw.
• Please try to pull the top of a module to check whether it is tightly fixed on it.
Caution
(1) A module should be installed by inserting the projection for module installation to the hole for module
installation. If applying an excessive force, a module may be broken.
11-8
Chapter 11. Installation and Wiring
(2) Detachment
Caution
(1) When detaching a module, please press the hook to detach it from the base and then, isolate the projection
for module installation from the hole for module installation. At the moment, if trying to detach it forcibly, the
hook or projection may be damaged.
11-9
Chapter 11. Installation and Wiring
11.2 Wiring
It describes the important information about wiring when using the system.
Power CPU
AC power
100V~240
V AC
Constant
Voltage
Transformer
(2) Connect the power source of which inter-cable or cable-ground noise is small.
(If a large one is connected, make sure to connect to an insulation transformer)
(3) Isolate the PLC power, I/O devices and power devices as follows.
Power CPU
Main PLC
power power
Constant
AC220V Voltage
Transformer
I/O power
Do not connect DC24V of several power modules in parallel. It may cause the destruction of a module.
If a power module can not meet the DC24V output capacity, supply DC24V externally as presented below.
Power Power
r I I
24V
24V
/ LG /
LG
PE
O PE
AC O
DC 24V
Power
I
24V
LG / Power
PE Supply
AC O
11-10
Chapter 11. Installation and Wiring
(5) AC110V/AC220V/DC24V cables should be compactly twisted and connected in the shortest distance.
AC110V/ DC24V cables should not be installed close to main circuit cable(high voltage/high current) and I/O signal
cable. They should be 100mm away from such cables.
(7) To prevent surge from lightning, use the lightning surge absorber as presented below.
PLC
I/O device
E1 E2
Caution
(1) Isolate the grounding(E1) of lightning surge absorber from the grounding(E2) of the PLC.
(2) Select a lightning surge absorber type so that the max. voltage may not the specified allowable voltage
of the absorber.
(8) When noise may be intruded inside it, use an insulated shielding transformer or noise filter.
(9) Wiring of each input power should be twisted as short as possible and the wiring of shielding transformer or noise
filter should not be arranged via a duct.
(2) Please isolate input signal line from output signal line.
(3) I/O signal lines should be wired 100mm and more away from high voltage/high current main circuit cable.
(4) Batch shield cable should be used and the PLC side should be grounded unless the main circuit cable and power
cable can not be isolated.
PLC
Shield cable
Input
RA
DC
Output
11-11
Chapter 11. Installation and Wiring
(5) When applying pipe-wiring, make sure to firmly ground the piping.
(6) The output line of DC24V should be isolated from AC110V cable or AC220V cable.
(7) For a long distance wiring over 200m, please refer to 12.4 Cases in Chapter 12 because it is expected that
accident may occur due to leakage current due to inter-cable capacity.
(2) For grounding, please make sure to use the exclusive grounding.
For grounding construction, apply type 3 grounding(grounding resistance lower than 100 Ω)
(3) If the exclusive grounding is not possible, use the common grounding as presented in B) of the figure below.
(4) Use the grounding cable more than 2 mm2. To shorten the length of the grounding cable, place the grounding
point as close to the PLC as possible.
(5) Separately ground the LG of the power module and the FG of the base board.
LG PE LG
PE LG PE
(6) If any malfunction from grounding is detected, separate the PE of the base from the grounding.
11-12
Chapter 11. Installation and Wiring
11-13
Chapter 11. Installation and Wiring
11-14
Chapter 12. Maintenance
Chapter 12 Maintenance
To maintain PLC in the best condition, please execute the following routine and periodic inspections.
Temperature 0 ~ + 55℃
Adjust the temperature and humidity conditions properly.
Environment Humidity 5 ~ 95%RH
Shakes of modules Should not have shake Every module should be protected from shaking.
RUN LED Check whether it is LED ON in RUN state LED On (off or blinking is error)
Display STOP LED Check whether it is LED Off in RUN state Blinking is error Please refer to
LED LED On with input ON and chapter 14.2
Input LED Check whether LED On or Off
LED Off with input off
LED On with output ON and
Output LED Check whether LED On or Off
LED Off with output off
12-1
Chapter 12. Maintenance
12-2
Chapter 13. EMC Compliance
13-1
Chapter 13. EMC Compliance
13.1.2 Panel
The PLC is a kind of open device(installed on another device) and it should be installed in a panel. It is
because the installation may prevent a person from suffering from an accident due to electric shock as the
person contacts with the product(XGT PLC) and the panel can attenuates the noise generating from the PLC.
In case of XGT PLC, to restrict EMI emitted from a product, it should be installed in a metallic panel. The
specifications of the metallic panel are as follows.
(1) Panel
Door
Visor
(e) The inside plate of panel should have proper conductivity with a wide surface as possible by eliminating
the plating of the bolt used to be mounted on the main frame in order to secure the electric contact with
the frame.
(a) The panel should be grounded with a thick wire() to secure a lower impedance even in high frequency.
(b) LG(Line Ground) terminal and PE(Protective Earth) terminal functionally let the noise inside the PLC flow
into the ground, so a wire of which impedance is low should be used.
(c) Since the grounding cable itself may generate noise, thick and short wiring may prevent it serving as an
antenna.
13-2
Chapter 13. EMC Compliance
13.1.3 Cable
(1) Expansion cables can be classified into optical and electrical cables according to the connector type.
(a) For the optical cables, use MMF(Multi Mode Fiber) 50/65um LC Type Cable.
Use indoor type, outdoor type, or conduit type according to the installation site.
(b) For the electrical cables, communication can be done with 100Mbit Twisted Pair cables, however, since the
data transmission in expansion cables is in tens of micro unit, external noise may affect system performance
and control seriously.
Therefore, electrical cables used in XGR systems should, basically, be shielded twisted pair cables
such as FTP, STP, or FSTP.
13-3
Chapter 13. EMC Compliance
13-4
Chapter 14. Built-in PID Function
14.1 Features
PID Control compares the value measured at detection (process value) to the pre-determined value, adjusts outputs (control
signal) to eliminate, if any, an error between two values, making the current value to the target value, in order to maintain the
state of an object to control be a pre-determined value (target value).
MV_manual
User
CPU Manual
module
DA
SV MV Dri Object
User Conversion
MV ver control
PID operation module
PV Auto
AD
Conversion Sense
module
As presented in the above figure, PLC functions as a control in a whole control system while sensor and driver are used to
detect an object to control and drive the system, respectively.
When a sensor detects the current state of an object to control and delivers it to a control, PLC executes an operation of output
and delivers it to a driver. Meanwhile, a driver drives the object according to the output. Finally, a sensor detects the changed
state and re-sends it to PLC, forming a closed loop.
A procedure circulating a control loop repeats at the unit of several seconds and hundreds of microseconds and the time is
called control cycle.
14-1
Chapter 14. Built-in PID Function
E = SV − PV (14.3.1)
MV p = K p E (14.3.2)
Kp
MVi =
Ti ∫ E dt (14.3.3)
dE
MVd = K pTd (14.3.4)
dt
14-2
Chapter 14. Built-in PID Function
14.3.3 P control
As seen in the equation (14.3.7), MV of P control consists of proportional operation, MV_p only. The term is applicable as a
type multiplying proportional coefficient by error. A user should adjust the coefficient according to the system and as larger it is
set, as more it is sensitive to error.
MV p = K p E (14.3.6)
MV = MV p (14.3.7)
When applying P control to a temporary virtual system, the control tendency features as below.
The following system is made to help you understand; it may be different with the actual temperature (control) system.
60.0
50.0
40.0
Temperature
온도
30.0
20.0
10.0
0.0
0 2 4 6 8 10 12 14 16
초
Second
In the above simulation, SV is 50.0 and the above tendency is gained by adjusting K_p value properly. The above system
shows a stable state in 4 seconds after being operated at 20℃ and it is maintained at 46.2℃, so the residual drift is
3.8℃(about 7.6%). As such, the reason why P control has a permanent residual drift is because as closer PV approaches to
SV, as smaller error (E) is, reducing MV, so it maintains state balance at equilibrium point (in the example, 46.2℃). PI control
is used to supplement the residual drift intrinsically existing in P control.
14-3
Chapter 14. Built-in PID Function
14.3.4 PI control
PI (proportional-integral) control is calculated by summing up proportional term and integral term as seen in the equation
(14.3.10). To reduce the residual drift, a disadvantage of proportional term, PI control uses integration of the error.
MV p = K p E (14.3.8)
Kp
MVi =
Ti ∫ E dt (14.3.9)
MV = MV p + MVi (14.3.10)
Even though error is uniform, the integral is accumulated as time goes on if applying integral calculus until the error is
eliminated. Therefore, PI control may be used to supplement the residual drift intrinsically existing in P control. Note that Ti,
the integral time constant is the denominator of integral term, so it represents that integral effect is larger as smaller the value
of Ti. The following graph shows the results of PI control to P control application system.
70.0
60.0
50.0
Temperature
40.0
온도
30.0
20.0
10.0
0.0
0 2 4 6 8 10 12 14 16
초
Second
As a result of adding integral effect, the residual drift disappears and the system is converged to 50℃ accurately. However,
the temperature temporarily increased more than a desirable temperature, for which it increased up to 61.2℃ and dropped,
deepening overshoot. Excessive overshoot may overburden the system or make it unstably, so it is necessary to relieve the
overshoot through proper coefficient tuning or improve it by means of PIC control applying differential effect.
14-4
Chapter 14. Built-in PID Function
60.0
50.0
40.0
Temperature
온도
30.0
20.0
10.0
0.0
0 2 4 6 8 10 12 14 16
초
Second
14-5
Chapter 14. Built-in PID Function
(1) PIDSTOP is the state in which output (MV) is MV_min, its internal state is initialized and user setting is maintained. In
the state, it is not possible to access to PIDPAUSE state.
(2) AUTOTUNE is the state that is immediately executed when a user turns on _PID[B]_[L]AT_EN bit either PIDRUN or
PIDCAS. If among PIDSTOP, _PID[B]_[L]AT_EN is on, it goes into AUTOTUNE state when it goes toward PIDRUN and
PIDCAS. Once AUTOTUNE is complete, PIDRUN or PIDCAS state is restored. AUTOTUNE checks a system’s
response for a series of inputs and finds PID coefficient (K_p, T_i, T_d) and operation cycle (T_s). These values are
updated as soon as Auto-tuning ends, so it loses the previous coefficients.
(3) PIDRUN is the state in which PID loop normally executes control operation. MV is outputted by PID operation and it
executes every scan operation independently, so it applies every setting that is changed during the procedure. In case
“contact front of PIDRUN instruction is ON”, it enters PIDRUN state, or if there is PIDRUN instruction in ladder program
and PIDxx_REM_RUN is ON, it may enter PIDRUN state.
(4) PIDCAS is the state in which two loops form a master loop and a slave loop respectively, executing control operation.
It is possible to enter PIDCAS state by using PIDCAS instruction after setting these two loops in a way like PIDRUN, and
data are exchanged between loops as the internal connection necessary for two loops are automatically created. Loops
that operate by cascade are indicated in a state flag, PIDxx_STATE and in the state, remote operation
PIDxx_REM_RUM bit does not work.
(5) PIDPAUSE is the state in which output, internal state and user setting are maintained and the control operation stops.
To enter PIDPAUSE state, it is necessary to turn on PIDxx_PAUSE bit or use PIDPAUSE instruction. However, it is
possible to enter PIDPAUSE as long as the previous state is PIDRUN.
AUTOTUNE PIDRUN
PIDSTOP
PIDCAS PIDPAUSE
14-6
Chapter 14. Built-in PID Function
(1) PIDRUN
PIDRUN, as a basic PID control instruction, is the instruction taking charge of single PID loop control.
PIDRUN
If inputting block number (0 ~ 7) into BLOCK and loop number (0 ~ 31) into LOOP, a loop of the block is selected.
PID_STAT displays the operation information for a PID loop, _PID[B]_[L]STATE.
(2) PIDCAS
PIDCAS
If inputting block number (0 ~ 7) into BLOCK, master loop number (0 ~ 31) into LOOP_MST and slave loop number (0 ~
31) into LOOP_SLV, the master and slave of the block are selected. At the moment, the block number of both loops
should be same. MST_STAT/SLV_STAT shows the operation information on master/slave loops, _PID[B]_[L]STATE.
Notes
Cascade Operation
Basically, master loop inputs its MV to SV of slave loop during operation while slave loop executes its
operation by using SV receiving from master loop.
Besides, both loops always mutually observe part of operation information on each loop (i.e. conversion
from/to windup, manual mode and/or auto mode conversion).
14-7
Chapter 14. Built-in PID Function
(3) PIDINIT
It initializes the setting and state of a PID loop. At the moment, the initialized area is the setting and state of the designated
block[B] and loop[L], and 0 is inputted to every setting of the loop(bit is off.
PIDINIT
If inputting block number (0 ~ 7) into BLOCK and loop number (0 ~ 31) into LOOP, a loop of the block is selected.
(4) PIDPRMT
PIDPRMT changes the major settings of PIDRUN including SV, T_s, K_p, T_i and T_d to user-defined values.
PIDPRMT
BOOL REQ DONE BOOL
UINT BLOCK
UINT LOOP
INT SV
UINT T_S
REAL K_p
REAL Ti
REAR T_d
If inputting block number (0 ~ 7) into BLOCK and loop number (0 ~ 31) into LOOP, a loop of the block is selected.
14-8
Chapter 14. Built-in PID Function
The table shows the flag configuration when using the built-in PID function for XGR.
Data
Symbol K device area Description
type
_PID[B]_[L]MAN %KX[0+1050B+L] BIT Select PID output (0: auto, 1: manual)
_PID[B]_[L]PAUSE %KX[32+1050B+L] BIT PID Pause (0: STOP/RUN 1:PAUSE)
_PID[B]_[L]REV %KX[64+1050B+L] BIT Select PID operation (0: forward, 1:reverse)
_PID[B]_[L]AW2D %KX[96+1050B+L] BIT Prohibit PID Anti Wind-up2 (0:allowed, 1:prohibited)
_PID[B]_[L]REM_RUN %KX[128+1050B+L] BIT PID remote (HMI) execution bit (0:STOP, 1:RUN)
_PID[B]_[L]P_on_PV %KX[160+1050B+L] BIT Select PID proportional calculation source (0:ERR, 1:PV)
_PID[B]_[L]D_on_ERR %KX[192+1050B+L] BIT Select PID differential calculation source (0:PV, 1:ERR)
_PID[B]_[L]AT_EN %KX[224+1050B+L] BIT Set PID auto-tuning (0:Disable, 1:Enable)
MV non-impact conversion when converting PID
_PID[B]_[L]MV_BMPL %KX[256+1050B+L] BIT
mode(A/M) (0:Disable, 1:Enable)
_PID[B]_[L]SV %KW[24+1050B+32L] INT PID target value (SV)
_PID[B]_[L]T_s %KW[25+1050B+32L] WORD PID operation cycle (T_s)[0.1ms]
_PID[B]_[L]K_p %KD[13+525B+16L] REAL PID P – constant (K_p)
_PID[B]_[L]T_i %KD[14+525B+16L] REAL PID I - constant (T_i)[sec]
_PID[B]_[L]T_d %KD[15+525B+16L] REAL PID D – constant (T_d)[sec]
_PID[B]_[L]d_PV_max %KW[32+1050B+32L] WORD PID PV variation limit
_PID[B]_[L]d_MV_max %KW[33+1050B+32L] WORD PID MV variation limit
_PID[B]_[L]MV_max %KW[34+1050B+32L] INT PID MV max. value limit
_PID[B]_[L]MV_min %KW[35+1050B+32L] INT PID MV min. value limit
_PID[B]_[L]MV_man %KW[36+1050B+32L] INT PID manual output (MV_man)
_PID[B]_[L]STATE %KW[37+1050B+32L] WORD PID State
_PID[B]_[L]ALARM0 %KX[592+16800B+512L] BIT PID Alarm 0 (1:T_s setting is small)
_PID[B]_[L]ALARM1 %KX[593+16800B+512L] BIT PID Alarm 1 (1:K_p is 0 )
_PID[B]_[L]ALARM2 %KX[594+16800B+512L] BIT PID Alarm 2 (1:PV variation limited)
_PID[B]_[L]ALARM3 %KX[595+16800B+512L] BIT PID Alarm 3 (1:MV variation limited)
_PID[B]_[L]ALARM4 %KX[596+16800B+512L] BIT PID Alarm 4 (1:MV max. value limited)
_PID[B]_[L]ALARM5 %KX[597+16800B+512L] BIT PID Alarm 5 (1:MV min. value limited)
_PID[B]_[L]ALARM6 %KX[598+16800B+512L] BIT PID Alarm 6 (1:AT abnormal cancellation state)
_PID[B]_[L]ALARM7 %KX[599+16800B+512L] BIT PID Alarm 7
_PID[B]_[L]STATE0 %KX[600+16800B+512L] BIT PID State 0 (0:PID_STOP, 1:PID_RUN)
_PID[B]_[L]STATE1 %KX[601+16800B+512L] BIT PID State 1 (0:AT_STOP, 1:AT_RUN)
_PID[B]_[L]STATE2 %KX[602+16800B+512L] BIT PID State 2 (0:AT_UNDONE, 1:DONE)
_PID[B]_[L]STATE3 %KX[603+16800B+512L] BIT PID State 3 (0:REM_STOP, 1:REM_RUN)
_PID[B]_[L]STATE4 %KX[604+16800B+512L] BIT PID State 4 (0:AUTO_OUT, 1:MAN_OUT)
_PID[B]_[L]STATE5 %KX[605+16800B+512L] BIT PID State 5 (0:CAS_STOP, CAS_RUN)
_PID[B]_[L]STATE6 %KX[606+16800B+512L] BIT PID State 6 (0:SLV/SINGLE, 1:CAS_MST)
_PID[B]_[L]STATE7 %KX[607+16800B+512L] BIT PID State 7 (0:AW_STOP, 1:AW_ACT)
_PID[B]_[L]PV %KW[38+1050B+32L] INT PID Present value (PV)
_PID[B]_[L]PV_old %KW[39+1050B+32L] INT PID previous present value (PV_old)
_PID[B]_[L]MV %KW[40+1050B+32L] INT PID Output value (MV)
_PID[B]_[L]MV_BMPL_val %KW[41+1050B+32L] WORD PID non-impact operating memory
_PID[B]_[L]ERR %KD[21+525B+16L] DINT PID control error
_PID[B]_[L]MV_p %KD[22+525B+16L] REAL PID output P component
_PID[B]_[L]MV_i %KD[23+525B+16L] REAL PID output I component
_PID[B]_[L]MV_d %KD[24+525B+16L] REAL PID output D component
_PID[B]_[L]DB_W %KW[50+1050B+32L] WORD PID deadband setting (operating after stabilizing)
_PID[B]_[L]Td_lag %KW[51+1050B+32L] WORD PID differential function Lag filter
14-9
Chapter 14. Built-in PID Function
Data
Symbol K device area Description
type
_PID[B]_[L]AT_HYS_val %KW[52+1050B+32L] WORD PID auto-tuning hysterisis setting
_PID[B]_[L]AT_SV %KW[53+1050B+32L] INT PID auto-tuning SV setting
_PID[B]_[L]AT_step %KW[54+1050B+32L] WORD PID auto-tuning state indication (setting by user prohibited)
_PID[B]_[L]INT_MEM %KW[55+1050B+32L] WORD PID internal memory (setting by user prohibited)
* : Area prohibited from user’s setting
* B : XGR CPUH PID block number [0~7]
* L : PID loop number [0~31]
14-10
Chapter 14. Built-in PID Function
%KX[0+1050B] ~ %KX[287+1050B] area is the common bit area of the block PID loop. The bit state and settings of each bit
are collected and arranged on the front of each PID block. Therefore, 32 bits, the max. no. of loops that PID function may use in
a block is collected, forming a double-word, and the state and setting of each bit are saved in good order of bits.
%KW0024 ~ %KW0055 area is the individual data area for PID block 0 and loop 0, where the setting and state of block 0 and
loop 0 are saved. The loop setting for the PID loop such as SV, dPV_max, MV_man, T_s, Kp, Ti, Td, MV_max, MV_min and
dMV_max are saved in the area, and during the execution of PID function, the state of PID loops such as PV, ETC, MV,
MV_rvs, ERR, MVp, MVi, MVd and PV are also saved. A user may change PID setting simply by writing data on the memory
and get the result reflected to the next cycle.
%KW0056 ~ %KW1047 area is the memory of loop 1 through 31 with the format of block 0 & loop 0. Each loop independently
works and may execute auxiliary operation like the application of cascade. Additionally, the K device memory configuration
mentioned in the end of user’s manual may help you understand the memory location of PID.
The location and order of the memory area as mentioned above may change without prior notice to improve the product
performance.
Notes
1) PID memory statement format
_PID[B]_[L]MAN B: block, L : loop
i.e.) _PID3_05MAN : means MAN bit of block 3 and loop 5.
14-11
Chapter 14. Built-in PID Function
Notes
_PID[B]_[L]PAUSE
If making PID loop in PAUSE state by using PID[B]_[L]PAUSE and PIDPAUSE instruction, every
operation stops and it outputs the last calculation before PAUSE state. In the case, if system state
is changed, the control system may show unexpected results due to improper control, so PAUSE
function should be carefully used.
In the first scan of PLC, since PIDRUN instruction executes initialization, in which PAUSE bit is off,
it escapes from PAUSE and turns STOP or RUN state if turning on PLC in PAUSE state.
14-12
Chapter 14. Built-in PID Function
Notes
_PID[B]_[L]REM_RUN
The bit is saved in K device even though PLC stops, so if PLC stops and operates with the bit ON
(i.e. power failure), the system is initialized from the first scan and then, PIDRUN instruction
operates.
14-13
Chapter 14. Built-in PID Function
Notes
_PID[B]_[L]AT_EN
The bit is initialized to off as soon as PLC is turned to RUN mode, so when PLC stops and
operates with the bit on(i.e. power failure), the system is initialized from the first scan and then, it
does not go to AT mode again. At the moment, PID setting does not have any change, so the
system operates with the state before PLC stops.
_PID[B]_[L]MV_BMPL
For instance, assuming that manual output value is 1000, it is turned to auto output and 2000
output is to be generated, a driver operates the system with 1000 and instantly receives 2000 at
the moment of mode conversion. Then, if the bit is ON, the PID loop outputs at the moment of
conversion, gradually increases and operates it so that 2000 is to be outputted.
14-14
Chapter 14. Built-in PID Function
Notes
_PID[B]_[L]SV
PID changes the output (MV) through several operations until SV=PV. Therefore, if SV is 0, PIDRUN
seems not to operate. For instance, if the current temperature is 20 degrees and the SV of simple
heater of which PV is 2000 (20 degrees) is set to 0, PID outputs 0 as its MV and will not output until
PV is cooled down to 0 (0 degrees).
14-15
Chapter 14. Built-in PID Function
14-16
Chapter 14. Built-in PID Function
14-17
Chapter 14. Built-in PID Function
Notes
In case PID control returns to auto output mode after being converted to manual output mode, it
increases the output from 0 like a control system that is newly started, by which the system is
subject to mode conversion impact. That is, a certain output is allowed in manual mode and as
soon as it is converted to auto mode, the output rises from 0 again. To prevent the mode
conversion impact, it uses MV_BMPL function, which detects the last state of manual mode of the
current system during the mode conversion and induces it to continue the control output from the
part smoothly. By expanding it, master loop detects the slave loop state with master loop
MV_BMPL allowed and creates the control output to be smoothly continued.
14-18
Chapter 14. Built-in PID Function
Notes
Deadband
It is used to eliminate small output flunctuation resulting from small change of state as PV approaches
to SV. If inputting a value into DB_W during PID control, a deadband is formed as much as up/down of
SV. If PV follows SV and enters the inside of deadband during control, ERR is forcibly calculated as 0
and the change of MV stops as long as PV remains in the section. That is, it's like the pause to control
in a stable section and through it, a driver receives input uniformly while it operate stably and helps it not
to be overburdened. It is recommended to use it after the system is properly stablized in a section set
as deadband. The reason is because a control may suffer from temporary transient phenomena while
entering into the deadband.
14-19
Chapter 14. Built-in PID Function
Caution
1) Setting prohibited : It is prohibited to set any item with the indication of –Setting prohibited among the
items described in the above common bit area and individual loop area. The area not only displays operation
information to a user but also saves the information necessary for operation, so the control system may
malfunction if setting it temporarily.
2) I/O area : _PID[B]_[L]PV and _PID[B]_[L]MV are – I/O area respectively, so it is necessary to connect to
external devices(A/D, D/A and others).
14-20
Chapter 14. Built-in PID Function
Notes
1) Transient state : the state that a control system starts controlling and searching for a desirable control
state. It may have sudden output fluctuation, and as a step in which integral value is stabilized, it may
have vibration and overshoot.
2) Normal state : the state that a control system reaches a desirable state via transient state. Vibration is
completely eliminated but it may have residual drift and output has little change.
If analog component of a sensor is converted to digital via AD device, almost signals may have even a
part of noise component. The PID control instruction executes auto-tuning by using the converted value,
during which it increases and decreases PV from SV 3 times. During the procedure, if noise is inputted at
a moment of SV=PV, there is high/low convergence once but it may recognize it as several conversions.
That is, it’s like a digital switch’s chattering. To overcome it, PID control uses unidirectional deadband
(hysteresis), with which the deadband value is applicable only for high section of SV when the system’s
PV increases toward SV, and vice versa.
Mode Mode
conversion conversion
PV
Time
14-21
Chapter 14. Built-in PID Function
The chapter describes additional functions that may be conveniently used with PID instructions.
Notes
Auto-tuning
At the moment when a series of works end, AT may automatically substitutes _PID[B]_[L]T_s,
_PID[B]_[L]K_p, _PID[B]_[L]T_i and _PID[B]_[L]T_d, which are calculated, to the corresponding
positions, so a user must note that _PID[B]_[L]T_s, _PID[B]_[L]K_p, _PID[B]_[L]T_i and
_PID[B]_[L]T_d that are used before are to be eliminated.
14-22
Chapter 14. Built-in PID Function
user
Cascade loop
SV_mst
SV_slv = MV_mst PV_mst
Master loop
Heating
fuel valve flowmeter
furnace
Notes
Cascade system’s AT auto-tunes slave loop first and then, it does master loop. However, to auto-tune
slave loop, it is necessary to anticipate how much SV the slave lop receives from master loop, and if
setting the value as AT_SV, the slave loop operates as an independent loop. AT performance depends
on the anticipated value. Once it starts working properly after the AT of slave loop, it executes AT of
master loop.
14-23
Chapter 14. Built-in PID Function
MV_manual
user
CPU manual
module Analog
SV MV output driv Object
user
MV module er control
PID operation
PV auto
Analog
input
sensor
module
14-24
Chapter 14. Built-in PID Function
Once a module is registered, it is necessary to register a parameter to use among the parameters assigned to the module,
as the global parameter.
14-25
Chapter 14. Built-in PID Function
Among them, select parameters necessary for executing the ladder program and register them as the local parameters.
14-26
Chapter 14. Built-in PID Function
addition, if a driver is voltage type of 0V ~ 5V, Analog output module should be also voltage type of 0V ~ 5V.
The output of Analog output module is used as a drive signal of a driver. If it is used directly as the motive power of driver,
PLC may be subject to malfunction.
Water
level
sensor
driver
pump
inflow
Water
level
Water
tank
outflow
L5 : If %MX0 bit is on, it executes the control operation of PIDRUN block 0 and loop 0 and if it is complete, it activates
D/A output. If D/A output is deactivated, the module outputs the value set when it is registered.
L10 : Delivers MV output of PIDRUN instruction to Analog output data by using constant ON contact.
14-27
Chapter 14. Built-in PID Function
Register PID parameters in the parameter monitor window and execute control setting.
If clicking the right button of mouse in the parameter monitor window and selecting, “Register in Parameter/Comment”, it
is possible to view “Select Parameter/Device” window. If selecting PID in “List”, canceling “View All” and inputting 0 to
“Block No.” and “Parameter No.”, a user can see the parameter to save the setting and state of block 0 and loop 0. If
selecting all parameters and checking “OK”, it is possible to monitor parameters and change the values even during the
program RUN.
14-28
Chapter 14. Built-in PID Function
(2) Getting SV
To set SV, it is necessary to know PV conversion value of a system that a user desires. Simply, if a user desires to
maintain the water level at 250mm, it searches for the PV value indicating 250mm. The value can be found by numerical
analysis but it is more accurate to check it by using the response of an object to control experimentally. In the system, it
was analyzed that PV outputs 8333 when the water level is 250mm, but as a result of operating it actually, the sensor
output value was 8250. The cause of the error must be attributable to inaccurate sensor, error of measurement reference
point and others. Therefore, 8250, the value actually measured should be used as the state value of water level 250mm.
The value is also used as SV when controlling 250mm.
Download the previously created program to PLC and start monitoring. Then, set the parameters registered to the
parameter monitor window. The following figure shows the view of example program’s parameter monitor window.
14-29
Chapter 14. Built-in PID Function
14-30
Chapter 14. Built-in PID Function
Set the monitoring cycle as 200ms, select the trend graph tab on the bottom and register the parameters to monitor such
as SV and PV of block 0 and loop 0.
14-31
Chapter 14. Built-in PID Function
(5) Program execution (here, an example is introduced to show how to find a parameter manually and for auto tuning,
refer to 14.7.4)
It can be found that it uniformly and permanently vibrates due to too large K_p.
14-32
Chapter 14. Built-in PID Function
Due to too large T_i , the normal state residual drift lasts and there is a slight overshoot.
14-33
Chapter 14. Built-in PID Function
The current system is the system slow enough to control only with PI, so it executes PI control only.
Therefore, tuning results are K_p = 10, T_i = 5, T_d = 0.
14-34
Chapter 14. Built-in PID Function
The above graph is the water level waveform gained by setting _PID[B]_[L]HYS_val value (50 in the example) properly
and MV should have 3 square waveforms as seen in the figure.
14-35
Chapter 14. Built-in PID Function
In the above graph, _PID[B]_[L]HYS_val is set too small (10 in the figure), so if no.3 square wave form on MV, which is
gained from the water level waveform, is not clear, accurate AT operation may not be secured. In addition, too large
_PID[B]_[L]HYS_val is inputted, the system may slow down disadvantageously.
14-36
Chapter 14. Built-in PID Function
The above ladder program is the view of cascade configuration, based on the following block diagram.
user
Cascade loop
SV_mst
MV_mst Master PV_mst
loop(0)
SV_slv
AD_mst
MV_slv Slave PV_slv thermon
loop(1) eter
DA AD_slv
heater
Heating
fuel valve flowmeter
furnance
The above block diagram is the system to measure the temperature of heating furnace, supply fuel to the heater and
maintain a desirable temperature.
Also, to control the signal delivered to fuel valve more actively, if installing a flowmeter and structuring a slave loop, it
supplies a uniform fuel on the operation of slave loop when master loop instructs a temporary value of fuel.
14-37
Chapter 14. Built-in PID Function
14-38
Chapter 15. Troubleshooting
Chapter 15 Troubleshooting
The chapter describes types of potential errors that occur while operating the system, causes of errors, how to detect them and
corrective measures.
To improve the reliability of a system, it is important to take a corrective measure promptly if a trouble occurs as well as to use highly
reliable devices. To operate a system immediately, it is the most important to quickly detect potential causes of a trouble and take
corrective measures. To troubleshoot the system correctly, make sure to take the following cautions and procedures.
15-1
Chapter 15. Troubleshooting
15.2 Troubleshooting
The above stated detection methods, description for error codes and measures are explained by phenomenon.
Trouble
If WAR. LED is On
Measures taken when WAR/ LED is On
If Err. LED is On
Measures taken when Error LED is On
15-2
Chapter 15. Troubleshooting
The paragraph describes the orders of taking a measure if POWER LED is Off when turning it on or during operation.
Yes No Yes
Is the POWER LED On?
Yes No Yes
Is the POWER LED On?
Yes
Has a fuse burnt out?
Replace a fuse with new one.
No
Yes
Is the POWER LED On?
No
No
Is the power module fixed? Fix the power module firmly.
Yes
No Yes
Is the POWER LED On?
Yes
Is the overcurrent protection 1) Check the current capacity and
working properly? reduce any overcurrent.
2) Turn off input power and turn it on
again.
No
No Yes
Is the POWER LED On?
15-3
Chapter 15. Troubleshooting
The paragraph describes the orders of taking a measure if WAR.. LED is On when turning it on, starting operation or operating.
Yes
Is it a warning Please refer to the flags in Appendix 1
(_CNF_WAR)? and remove the causes
No
Yes
WAR. LED still blink?
No
Caution
If warning error occurs, the PLC system does not stop but it is necessary to check the error message and take a
corrective measure. Or it may cause an error.
15-4
Chapter 15. Troubleshooting
It describes measure when WAR LED is on because redundant system runs in single or configured b Line mode.
Connecti XG5000 and execitue [Monitor]-[System Monitor] and select [PLC]-[System Configuration] to check.
Base: 31
Base: 31
15-5
Chapter 15. Troubleshooting
15-6
Chapter 15. Troubleshooting
Caution
Since optical cable consists of two couples unlike electrical cable, TX and RX can be changed in case of installation.
Make sure that direction of TX and RX does not change. (TX should be connected with RX, and RX with TX.)
15-7
Chapter 15. Troubleshooting
The paragraph describes the orders of taking a measure if RING LED is off or flickers when turning it on, starting operation or operating.
Yes No Yes
Does RING LED flickers?
No No Yes
Does RING LED flickers?
Is it connected by electrical Yes Wire properly or replace the cable into new
cable?
one
No Yes
No Is the POWER LED On?
No Yes
No Is the POWER LED On?
Yes
Does RING LED flicker?
no
15-8
Chapter 15. Troubleshooting
The paragraph describes the orders of taking a measure if ERR. LED flickers when turning PLC on or starting operation
Yes
CPU System error? Please refer to the flags in Appendix 1
(_CNF_ER)
and remove the causes
No
Yes
ERR. LED still blink?
No
Caution
If warning error occurs, the PLC system does not stop but it is necessary to check the error message and take a
corrective measure. Or it may cause an error.
15-9
Chapter 15. Troubleshooting
The paragraph describes the orders of taking a measure if RUN/STOP LED is Off when turning it on, starting operation or operating.
No
Is still RUN/STOP LED off?
Yes
15-10
Chapter 15. Troubleshooting
For the orders of taking measures when I/O module does not properly work during operation, the paragraph explains it with the
following illustration.
Yes
Measure the terminal voltage of Correct the wiring. Replace the terminal strip Monitor the status of SCL1 by
SOL1 by tester connector. XG5000.
No No
No No
Is the measurement normal? Is the output wiring correct? Is the contact of terminal strip connector Yes Is it normal?
fine?
Yes
Yes
Yes
Continued
Separate the external wiring
and check the electricity
connection of module output.
Yes
No
Is it normal?
Continued
15-11
Chapter 15. Troubleshooting
Ye
No No
Yes No Yes
No
Yes
Replace the input Check the status of input Check it from the first step Replace the input
module. devices(switch 1,2). module.
15-12
Chapter 15. Troubleshooting
It describes the orders of taking a measure when writing a program into the CPU Module is not possible.
Yes
No
End
15-13
Chapter 15. Troubleshooting
Yes
No Yes
Does RED LED FLICKER?
Yes
No Yes
Does RED LED FLICKER?
15-14
Chapter 15. Troubleshooting
No
No
No
No
No
Yes
Is master CPU detached? Normal switching by CPU detached
No
End
Prepare a troubleshooting questionnaire
and contact the dealer.
15-15
Chapter 15. Troubleshooting
15.2.9 When newly added CPU does not join redundant operation
In case of adding new CPU to the previous system, it should act as standby CPU if normal.Before starting, check the Sync. Cable and
expansion cable. To join reduntdunt operation, version of new CPU should be same with previous CPU. If not, error occurs because of
version. Contact near dealer and get update of new OS.
If you have a problem when adding new CPU, see the following steps.
No
Is power supplied to added base? Supply power to added base and restart
Yes
Yes
Is expansion cable of No
added CPU connected? Connect expansion cable and restart
Yes
No
End
15-16
Chapter 15. Troubleshooting
Switching failure
No
Is power supplied to standby base? Supply power and restart
Yes
Yes
Yes
Yes
End
15-17
Chapter 15. Troubleshooting
In case two expansion cables are disconnected, cable disconnection error occurs or system except disconnected
expansion base operates normally.
- Cable disconnection error(E036) : In case fault mask is not set→
Reset system
Is it normal? No
Check PLC status via XG5000 and take action
Yes
End
15-18
Chapter 15. Troubleshooting
(2) system except disconnected expansion base operates normally: in case fault mask is set
How to check
Check what extension base gets error 1. Through XG5000→ Monitor→System Monitor →
via XG5000 PLC→System Configuration
2. Through system flag“_BASE_DEER”
Connect XG5000
Yes
End
15-19
Chapter 15. Troubleshooting
In case expansion driver is detached (or get error), cable disconnection error occurs or system except disconnected
expansion base operates normally.
(1) Expansion base detach error (E036) : In case fault mask is not set
How to check
Check what expansion base gets error 1. Through XG5000→Monitor→System monitoring→
via XG5000 PLC→System configuration
2. Through system flag _BASE_DEER
Reset system
Is it normal? No
Check PLC status via XG5000 and take action
Yes
In case of expansion detach or No Will you make the system except No In case of cable disconnection,
error, PLC goes to error mode? disconnected expansion base operate PLC goes to error mode
normally?
Yes Yes
End
15-20
Chapter 15. Troubleshooting
(2) system except detached expansion base operates normally: in case of enabling fault mask
How to check
Check what extension base gets error 1. Through XG5000→ Monitor→System Monitor →
via XG5000 PLC→System Configuration
2. Through system flag“_BASE_DEER”
Connect XG5000
Yes
End
15-21
Chapter 15. Troubleshooting
If any trouble is found while using the XGI series, please fill out the form and call to fax it to us.
For an error relating to special/communication modules, fill out the questionnaires attached in the user’s manual of the product.
15-22
Chapter 15. Troubleshooting
15.4 Cases
Leakage current of an external device(operation by Connect a proper resistance so that the voltage
Input signal can a switch with LED mark) between input module terminal and common
not be off terminal is higher than off voltage as presented
DC input below.
DC Input
Leakage
R current R
E1
External device
Circulating current by using plural different power Change plural to singular power
Input signal can sources Connecting to a circulating current preventive
not be off DC Input diode(figure below)
DC Input
L
E E L
E
If E1 > E2, it circulates.
15-23
Chapter 15. Troubleshooting
Load Load
Leakage current from surge absorbing circuit Operate the C-R type timer by mediating a relay.
Abnormal connected to an output element in parallel. Use other one but a C−R type timer.
time when Note) A timer’s internal circuit may have half-wave
Output
load is a C-R Load
rectification T Timer
type timer C
~
R Leakage current Output X
~
15-24
Chapter 15. Troubleshooting
Circulating current resulting from two different power Adjusting plural to singular power source.
Load can not source Connecting to circulating current preventive diode(figure
be off(DC) Output below) Output
load
Load
E
E1 E
E2
Load
Load
E1
E1 R E
E
source type transistor output
15-25
Chapter 15. Troubleshooting
Abnormal Redundancy Start after loading redundancy parameter again Turning it on,
28 STOP E028
parameter (Doesn’t check in case of downloading during Run) Loading program
Abnormal special Start after loading special parameter again Turning it on,
29 STOP E029
parameter (Doesn’t check in case of downloading during Run) Loading program
The module set in Check the wrong slot position by XG5000, modify a module Turning it on,
parameter and the or parameter and then, restart. STOP, Loading program
30 E030
actually installed module Reference flag: module type inconsistence error flag RUN Converting to RUN
do not coincide (_IO_TYER, _IO_TYER_N, _IO_TYERR[n]) mode
Check any detached/added slot position by XG5000,
Module detachment or
modify the installment and restart (according to parameter) STOP,
31 module addition during E031 scan ends
Reference flag: module detachment error flag RUN
operation
(_IO_DEER,_IO_DEER_N,_IO_DEERR[n])
Check the position of a slot of which fuse is burnt out by
Fuse of a module XG5000, replace a fuse and restart (according to
STOP,
32 holding a fuse is burnt parameter) E032 scan ends
RUN
out during operation Reference flag: fuse disconnection error flag
(_FUSE_ER,_FUSE_ER_N,_FUSE_ERR[n])
15-26
Chapter 15. Troubleshooting
Operation
Code Error causes Measures(restart mode after the measure) LED status Diagnostic timing
status
turning it on,
Expansion base detach STOP,
36 Check the detachment of expansion base E036 Scan end,
error RUN Executing program
turning it on,
CPU abnormal end or
39 Contact A/S service if it still exists after turning it on again - E039 Scan end,
trouble
Executing program
Duplicated CPU ID Set the A/B side switches of Master CPU and Standby
102 STOP S102 turning it on,
error CPU differently
extension manager
Switching to
Redundancy system
During redundancy operating, synchronization error redundancy
300 synchronous operating STOP E300
occurs operation,
error
operating
15-27
Chapter 15. Troubleshooting
Operation
Code Error causes Measures(restart mode after the measure) LED status Diagnostic timing
status
Standby CPU failed to Cancel the error of master CPU and restart
operate as redundancy Change standby CPU into RUN Starting standby
301 STOP E301
because of error of Restart standby CPU as single operation operation
Master CPU
Disable master CPU (STOP mode or power cut)
restart standby CPU through reset switch or
changing operation mode from STOP to RUN
RTC data error If there is no error in battery, reset RTC data via turning it on,
501 RUN E501
XG5000 scan end
turning it on,
502 Low battery voltage Replace battery while power in on RUN E502
scan end
Note
(1) Error No. 2 through 13 from “Error Codes during CPU Operation” can be checked in our A/S Service Center.
(2) The other errors of which number is 22 and lower can be checked by using the error log of XG5000.
15-28
Appendix 1. Flag List
1. User flag
Address Flag name Type Writable Contents Description
Clock signal used in user program reverses On/Off per a half
%FX6144 _T20MS BOOL - 20ms cycle clock
cycle
Please use more enough long clock signal than
%FX6145 _T100MS BOOL - 100ms cycle clock
PLC scan time.
Clock signal starts from Off condition when initialization program
%FX6146 _T200MS BOOL - 200ms cycle clock starts or scan program starts.
%FX6153 _ON BOOL - Ordinary time On Always On state flag, used when writing user program.
%FX6154 _OFF BOOL - Ordinary time Off Always Off state flag, used when writing user program.
%FX6155 _1ON BOOL - 1’st scan On Only 1’st scan On after operation start
%FX6156 _1OFF BOOL - 1’st scan Off Only 1’st scan Off after operation start
Reversal every scan On/Off reversed flag per every scan when user program is
%FX6157 _STOG BOOL - (scan toggle) working. (On state for first scan)
%FX6163 _ALL_OFF BOOL - All output Off On in case all outputs are off
%FX30720 _RTC_WR BOOL Available Writing data to RTC Write data to RTC and Read
%FX30724 _MASTER_CHG BOOL Available Master/Standby switching Flag used when switching master/standby
A1-1
Appendix 1. Flag List
Heavy fault detection Representative flag displayed when heavy fault error detected
%FX2086 _ANNUM_ER BOOL BIT 6
error in external device by user program is recorded in “_ANC_ERR[n]”.
%FX2088 _BPRM_ER BOOL BIT 8 Basic parameter error Basic parameter doesn’t match CPU type.
%FX2089 _IOPRM_ER BOOL BIT 9 I/O parameter error It is abnormal to the I/O configuration parameter.
Special module
BOOL BIT 10 It is abnormal to the special module parameter.
%FX2090 _SPPRM_ER parameter error
Communication module
%FX2091 _CPPRM_ER BOOL BIT 11 It is abnormal to the communication module parameter.
parameter error
%FX2092 _PGM_ER BOOL BIT 12 Program error Indicates that there is problem with user-made program.
Indicates that while user program is running, the program code
BOOL BIT 13 Program code error
%FX2093 _CODE_ER can’t be interpreted.
Displayed when the saved program gets damages by an
%FX2094 _SWDT_ER BOOL BIT 14 CPU abnormal ends.
abnormal end of CPU or program cannot work.
_BASE_POWE
%FX2095 BOOL BIT 15 Abnormal base power Base power off or power module error
R_ER
Indicates that the program scan time exceeds the scan
%FX2096 _WDT_ER BOOL BIT 16 Scan watchdog error
watchdog time specified by a parameter.
_BASE_INFO_E
%FX2097 BOOL BIT 17 Base information error Base information is abnormal
R
Extension base
%FX2102 _BASE_DEER BOOL BIT 22 Extension base is detatched
detachment error
Module attachment The module which can’t be inserted into main base is inserted
%FX2104 _INSTALL_ER BOOL BIT 24 position error in to main base or The module which can’t be inserted into
A1-2
Appendix 1. Flag List
_AB_SIDEKEY_ A/B SIDE key overlap A,B side key of master, standby CPU are overlapped. They
%FX2107 BOOL BIT 27
error
ER should be different.
Ex)
System configuration - Master/Standby One ring or line configuration
%FX2111 _SYS_CON_ER BOOL BIT 31
error
- Duplicated station number of extension base or
A1-3
Appendix 1. Flag List
Heavy fault detection Representative flag displayed when heavy fault error detected
%FX4134 _SB_ANNUM_ER BOOL BIT 6
error in external device by user program is recorded in “_ANC_ERR[n]”.
%FX4136 _SB_BPRM_ER BOOL BIT 8 Basic parameter error Basic parameter doesn’t match CPU type.
%FX4137 _SB_IOPRM_ER BOOL BIT 9 I/O parameter error It is abnormal to the I/O configuration parameter
Special module
BOOL BIT 10 It is abnormal to the special module parameter.
%FX4138 _SB_SPPRM_ER parameter error
Communication
BOOL BIT 11 It is abnormal to the communication module parameter.
%FX4139 _SB_CPPRM_ER module parameter error
Indicates that while user program is running, the program code
BOOL BIT 13 Program code error
%FX4141 _SB_CODE_ER can’t be interpreted.
Displayed when the saved program gets damages by an
%FX4142 _SB_SWDT_ER BOOL BIT 14 CPU abnormal ends.
abnormal end of CPU or program cannot work.
_SB_BASE_POW
%FX4143 BOOL BIT 15 Abnormal base power Base power off or power module error
ER_ER
Indicates that the program scan time exceeds the scan
%FX4144 _SB_WDT_ER BOOL BIT 16 Scan watchdog error
watchdog time specified by a parameter.
_SB_BASE_INFO
%FX4145 BOOL BIT 17 Base information error Base information is abnormal
_ER
%FX4153 _SB_BASE_ID_E BOOL BIT 25 Overlapped extension extension base number is overlapped
A1-4
Appendix 1. Flag List
A1-5
Appendix 1. Flag List
Module type mismatch slot Indicates slot number where module type mismatch error
%FW416 _IO_TYER_N WORD - occurs. When two or more occurs, first slot is indicated
number
Module detachment slot Indicates slot number where module detachment error
%FW417 _IO_DEER_N WORD - occurs. When two or more occurs, first slot is indicated
number
Indicates slot number Fuse cutoff error occurs. When two
%FW418 _FUSE_ER_N WORD - Fuse cutoff slot number or more occurs, first slot is indicated
Classifies the type of user defined error and writes value
except 0. If detection of heavy fault is requested, it
Heavy fault information of
%FW1922 _ANC_ERR WORD Available develops an external heavy fault detection error. By
external device monitoring this flag, the user can know a reason of heavy
fault.
Status of Ignoring IO
%FX10849 _IO_ER_PMT BOOL - On when set to ignore IO module error
module error
Status of Ignoring
%FX10851 _CP_ER_PMT BOOL - communication module On when set to ignore communication module error
error
%FX10848 _FUSE_ER_PMT BOOL - Status of Ignoring fuse error On when set to ignore fuse module error
A1-6
Appendix 1. Flag List
A1-7
Appendix 1. Flag List
%FX2112 _RTC_ER BOOL BIT 0 RTC error Indicates that RTC data is abnormal
%FX2115 _AB_SD_ER BOOL BIT 3 Stop by operation error Stopped by abnormal operation
%FX2117 _BAT_ER BOOL BIT 5 Battery error It is to the error in the battery state
Indicates that the light fault in the external
%FX2118 _ANNUM_WAR BOOL BIT 6 External device fault
device is detected.
BOOL BIT 8 High speed link Abnormal HS parameter
%FX2120 _HS_WAR
Redundant It is not single CPU RUN mode and
%FX2121 _REDUN_WAR BOOL BIT 9
configuration warning redundant configuration is not configured
OS versions between CPUs, extension
%FX2122 _OS_VER_WAR BOOL BIT 10 O/S version mismatch managers, extension drive modules are
different
Ring topology Configure an extension cable as the Ring
%FX2123 _RING_WAR BOOL BIT 11
configuration warning topology
%FX2140 _CONSTANT_ER BOOL BIT 28 Fixed cycle error Fixed cycle error
A1-8
Appendix 1. Flag List
%FX4160 _SB_RTC_ER BOOL BIT 0 RTC error Indicates that RTC data is abnormal
_SB_BASE_EXIST_
%FX4162 BOOL BIT 2 Not joined base Warns there is base which doesn’t join operation
WAR
%FX4163 _SB_AB_SD_ER BOOL BIT 3 Stop by operation error Stopped by abnormal operation
%FX4165 _SB_BAT_ER BOOL BIT 5 Battery error It is to the error in the battery state
Indicates that the light fault in the external device is
%FX4166 _SB_ANNUM_WAR BOOL BIT 6 External device fault
detected.
BOOL BIT 8 High speed link Abnormal HS parameter
%FX4168 _SB_HS_WAR
OS versions between CPUs, extension managers,
%FX4170 _SB_OS_VER_WAR BOOL BIT 10 O/S version mismatch
extension drive modules are different
Ring topology
%FX4171 _SB_RING_WAR BOOL BIT 11 Configure an extension cable as the Ring topology
configuration warning
_SB_CONSTANT_E
BOOL BIT 28 Fixed cycle error Fixed cycle error
%FX4188 R
_SB_BASE_SKIP_W Base skip cancelation In case of canceling the base skip, base is different
%FX4190 BOOL BIT 30
warning with IO parameter
AR
_SB_BASE_NUM_O
%FX4191 BOOL BIT 31 Base number setting error Base number of extension drive module is not 1~31
VER_WAR
A1-9
Appendix 1. Flag List
%FW164 _HS_WAR_W WORD - Abnormal HS parameter Indicates abnormal HS link number by bit
%FW165 _P2P_WAR_W - Abnormal P2P parameter Indicates abnormal P2P link number by bit
WORD
Classifies the type of user defined error and
writes value except 0. If detection of heavy
Light fault information external
%FW1923 _ANC_WAR WORD - fault is requested, it develops an external light
device fault detection error. By monitoring this flag,
the user can know a reason of light fault.
Indicates abnormal redundancy power
module
Ex) error in left power module on expansion
base 1(12slot) – %FW601(_BASE_INFO[1])
%FW600~ _BASE_INFO[0]~ 16#010C: 01 left power module
WORD - Abnormal base power module 0C 12-slot expansion base
%FW631 _BASE_INFO[31]
Ex) error in right power module on expansion
base 2(6slot) – %FW602(_BASE_INFO[2])
16#0206: 02 right power module
06 6-slot expansion base
_SB_HS_WA
%FW292 WORD - Abnormal HS parameter Indicates abnormal HS link number by bit
R_W
_SB_P2P_WA
%FW293 WORD - Abnormal P2P parameter Indicates abnormal P2P link number by bit
R_W
A1-10
Appendix 1. Flag List
%FX2064 _FORCE_IN BOOL BIT 16 Forced Input Forced On/Off state about input contact
%FX2065 _FORCE_OUT BOOL BIT 17 Forced Output Forced On/Off state about output contact
ARRAY[0..31]
%FW600 _BASE_INFO - Base information Indicates how many base is installed
OF WORD
ARRAY[0..7]
%FB12 _RTC_TIME - Current clock Indicates current clock
OF BYTE
Initialization task on
%FX2072 _INIT_RUN BOOL - User defined Initialization program on execution.
execution
%FX2074 _AB_SIDE BOOL - CPU position CPU position (A-SIDE: ON, B-SIDE: OFF)
A1-11
Appendix 1. Flag List
%FW584 _RTC_DATE DATE - RTC’s current date Indicates RTC’s current date
%FD573 _OS_TYPE DWORD - For PLC classification Whether it is provided to other division
TIME_OF_DA
%FD293 _RTC_TOD - RTC’s current clock Indicates RTC’s current clock RTC. (ms unit)
Y
The no. of editing during
%FD582 _RUN_EDIT_CNT UDINT - Indicates the no. of editing during Run
Run
The no. of instantaneous
%FW140 _AC_F_CNT UINT - Indicates the no. of instantaneous power cutoff
power cutoff
_POWER_OFF_C
%FW158 UINT - The no. of power cutoff Indicates the no. of power cutoff
NT
%FW386 _SCAN_MAX UINT writable Max. scan time Indicates max. scan time after(unit: 0.1ms)
%FW387 _SCAN_MIN UINT writable Min. scan time Indicates min. scan time after Run
%FW388 _SCAN_CUR UINT writable Current scan time Indicates current scan time (unit 0.1ms)
%FW585 _RTC_WEEK UINT - RTC’s current day Indicates RTC’s current day
%FW633 _RBANK_NUM WORD - Currently used block no. Indicates currently used block no.
_BASE_SKIP_INF
%FD125 DWORD - Base skip information Indicates base skip information
O
_SLOT_EMASK_I ARRAY[0..31]
%FW1372 - Slot fault mask information Indicates slot fault mask information
NFO OF WORD
_SLOT_SKIP_INF ARRAY[0..31]
%FW1404 - Slot skip information Indicates slot skip information
O OF WORD
_CYCLE_TASK_SC ARRAY[0..31,
%FW1752 - Fixed cycle task scan time Indicates max./min./current scan time of fixed cycle task
AN_TIME 0..2] OF WORD
_HS_ENABLE_STAT ARRAY[0..11]
%FX19040 - - HS link enable/disable current state
E OF BOOL
A1-12
Appendix 1. Flag List
_SOE_LOG_ROTAT
%FW1437 WORD - - SOE event rotation information
E
_SOE_READ_LOG_
%FW1456 WORD - - No. of SOE event read by user
CNT
_SOE_READ_LOG_
%FW1457 WORD - - Rotation information of SOE event read by user
ROTATE
A1-13
Appendix 1. Flag List
_SB_REMOTE_CO
%FX4102 BOOL BIT 6 Remote mode On Remote control mode
N
%FX4112 _SB_FORCE_IN BOOL BIT 16 Forced Input Forced On/Off state about input contact
%FX4113 _SB_FORCE_OUT BOOL BIT 17 Forced Output Forced On/Off state about output contact
DWOR
%FD131 _SB_OS_VER - O/S version Indicates CPU O/S version
D
DWOR
%FD132 _SB_OS_DATE - O/S data Indicates CPU O/S data
D
%FW286 _SB_POWER_OFF UINT - The no. of power cutoff Indicates the no. of power cutoff
A1-14
Appendix 1. Flag List
_CNT
%FW632 _SB_BASE_INFO WORD - Base information Indicates how many base is installed.
A1-15
Appendix 1. Flag List
%FX0 _DUAL_RUN BOOL BIT 0 Redundant operation Now Redundant operation CPU A, CPU B are normal
_RING_TOPOLO
%FX1 BOOL BIT 1 Ring topology status Extension base is configure as ring
GY
_LINE_TOPOLO
%FX2 BOOL BIT 2 Line topology status Extension base is configure as line
GY
_SINGLE_RUN_
%FX4 BOOL BIT 4 A-SIDE single Run mode Indicates A-SIDE single Run mode
A
_SINGLE_RUN_
%FX5 BOOL BIT 5 B-SIDE single Run mode Indicates B-SIDE single Run mode
B
ARRAY[
%FW1458 _SL_OS_VER_B 0..31] OF - - Extension drive module OS version (B-side)
WORD
_SB_RING_TOPOL
%FX4080 BOOL - - Standby: ring topology state
OGY
_SB_LINE_TOPOL
%FX4081 BOOL - - Standby: line topology state
OGY
A1-16
Appendix 1. Flag List
A1-17
Appendix 1. Flag List
%FX294 _STOP_KEY BOOL - Stop key status information CPU key position status information- (Stop: off, not stop: On)
%FX295 _RUN_KEY BOOL - Run key status information CPU key position status information- (Run: off, not Run: On)
A1-18
Appendix 1. Flag List
[Table 1.10.1] Communication Flag List according to High speed link no. (High speed link no. 1 ~ 12)
Item Keyword Type Content Description
Indicates normal operation of all station according to parameter set in High
High speed link speed link, and On under the condition as below.
parameter “n” 1. In case that all station set in parameter is RUN mode and no error,
_HSn_RLINK Bit
normal operation 2. All data block set in parameter is communicated normally, and
of all station
3. The parameter set in each station itself is communicated normally.
Once RUN_LINK is On, it keeps On unless stopped by LINK_DISABLE.
In the state of _HSmRLINK flag On, if communication state of the station
set in the parameter and data block is as follows, this flag shall be On.
1. In case that the station set in the parameter is not RUN mode, or
Abnormal state
_HSn_LTRBL Bit after _HSn_RLINK 2. There is an error in the station set in the parameter, or
ON 3. The communication state of data block set in the parameter is not good.
High speed link Indicates operation mode of station set in k data block of parameter.
_HSn_MOD[k] Bit parameter “n”, k
(k=000~127) Array block station RUN
operation mode
Normal Indicates if communication state of k data of parameter is communicated
_HSn_TRX[k] Bit communication smoothly according to the setting.
with High speed
(k=000~127) Array link parameter
“n”, k block station
High speed link Indicates if the error occurs in the communication state of k data block of
_HSn_ERR[k] Bit parameter “n”, k parameter.
block station
(k=000~127) Array operation error
mode
Indicates whether or not to set k data block of parameter.
_HSn_SETBLOCK[k High speed link
bit
] parameter “n”, k
Array block setting
A1-19
Appendix 1. Flag List
Notes
High Speed
L area address Remarks
Link no.
Comparing with High speed link 1 from [Table 1], the flag address of different
1 L000000~L00049F
high speed link station no. is as follows by a simple calculation formula.
2 L000500~L00099F
3 L001000~L00149F ∗ Calculation formula : L area address =
L000000 + 500 x (High speed link no. – 1)
4 L001500~L00199F
5 L002000~L00249F
In case of using high speed line flag for Program and monitoring, you can use
6 L002500~L00299F
the flag map registered in XG5000 conveniently.
7 L003000~L00349F
8 L003500~L00399F
9 L004000~L00449F
10 L004500~L00499F
11 L005000~L00549F
k means block no. and appears 8 words by 16 per 1 word for 128 blocks from 000~127.
For example, mode information (_HS1MOD) appears from block 0 to block 15 for L00010, and block 16~31, 32~47, 48~63, 64~79,
80~95, 96~111, 112~127 information for L00011, L00012, L00013, L00014, L00015, L00016, L00017. Thus, mode information of block
no. 55 appears in L000137.
A1-20
Appendix 1. Flag List
A1-21
Appendix 1. Flag List
A1-22
Warranty and Environmental Policy
Warranty
1. Warranty Period
The product you purchased will be guaranteed for 18 months from the date of manufacturing.
2. Scope of Warranty
Any trouble or defect occurring for the above-mentioned period will be partially replaced or repaired. However, please note the
following cases will be excluded from the scope of warranty.
(1) Any trouble attributable to unreasonable condition, environment or handling otherwise specified in the manual,
(2) Any trouble attributable to others’ products,
(3) If the product is modified or repaired in any other place not designated by the company,
(4) Due to unintended purposes
(5) Owing to the reasons unexpected at the level of the contemporary science and technology when delivered.
(6) Not attributable to the company; for instance, natural disasters or fire
3. Since the above warranty is limited to PLC unit only, make sure to use the product considering the safety for system configuration
or applications.
Environmental Policy
LS ELECTRIC Co., Ltd supports and observes the environmental policy as below.
1
Warranty and Environment Policy
2
www.ls-electric.com
Disclaimer of Liability
LS ELECTRIC has reviewed the information in this publication to ensure consistency with the hardware and software described.
However, LS ELECTRIC cannot guarantee full consistency, nor be responsible for any damages or compensation, since variance
cannot be precluded entirely. Please check again the version of this publication before you use the product.
ⓒ LS ELECTRIC Co., Ltd 2015 All Right Reserved. 2023.06