Tai Lieu XG5000
Tai Lieu XG5000
Tai Lieu XG5000
VN
Programmable Logic Controller
XGT series
XGT Series
1. Features
XGT are innovation-driven PLC series representing the most recent technology.
XGT Series
2. Specifications
1. General Specifications.
Items
Operating ambient
temperature
Storage temperature
Operating ambient
Humidity
Storage ambient
Humidity
Specifications
0 ~ 55 C
25 ~ +70 C
5 ~ 95%RH, Non-condensing.
5 ~ 95%RH, Non-condensing
Occasional Vibration
Frequency
Vibrations
References
Acceleration
Amplitude
10 f < 57Hz
2
57 f 150Hz 9.8m/s {1G}
Continuous Vibration
0.075mm
Frequency
10 f < 57Hz
Sweep
Count
10 times for
X
Acceleration
Atmosphere
Altitude
Up to 2,000m
Pollution degree
Cooling method
Air-cooling
Shocks
Noise Immunity
IEC 61131-2
IEC 61131-2
LGIS' Internal
Standard.
IEC 61131-2,
IEC 801-2
IEC 61131-2,
IEC 801-3
IEC 61131-2
IEC 801-4
REMARK
XGT Series
2. CPU Specifications.
Specifications
Items
XGT-CPUE
Operation method
I/O Updating Method
Program Languages
Instructions
Basic
Instructions
Application
Instructions
LD
MOV
Processing
speed
Floating
Program Capacity(Step)
I/O Capacity(Points)
XGT-CPUS
XGT-CPUH
0.028 /Step
0.252 /Step
: 1.442 (S) 2.87 (D)
X: 1.948 (S), 4.168 (D)
: 1.974 (S), 4.2 (D)
0.084 /Step
: 0.602 , 1.078 (D)
X: 1.106 (S), 2.394 (D)
: 1.134 (S), 2.66 (D)
16Steps
32K Steps
32Steps
64K Steps
1536
3072
3072
6144
1ms:
T1500 ~ T1999
0.1ms: T2000 ~ T2047
C
C0000 ~ C2047
S00.00 ~ S99.99
D0000 ~ D19999
Changeable
boundary by
basic parameter
D0000 ~ D32767
128 Words
1 Block
ZR
S: Short
D: Double
16K Byte
Data
Memory
Remarks
File
Register
XGT-CPUA
2 Blocks
FLASH area: 32 Blocks (1Mbyte/BLK)
Special module
Refresh area.
Index
Word Only
32Kwords/BLK
(R0 ~ R32767)
Controlled by
R registers
XGT Series
Specifications
Items
XGT-CPUE
No. of
Programs
Total
256
Initializing
1(_INT)
Cyclic
32
Internal
Point
32
MODE
Self Diagnosis
Download Port
Data Back-up
XGT-CPUS
XGT-CPUA
Remarks
XGT-CPUH
Scan + Task
Task
Modbus slave
Total(Basic+Ext.
)
Max. Base
2(1+1)
4(1+3)
4(1+3)
8(1+7)
Max. Length:
15m
XGT Series
1. Project Construction.
1-1) Constructing new project.
1) Run XG5000
XGT Series
3) Type the name of new project and select file fold in which the project will be stored.
The default fold can be adjusted in the 'Options' in the Tools menu
Menu Window
Shortcut Icons
Rectangular Cursor
Project Window
Program Window
Message Window
XGT Series
1-2) Open from PLC.
1) Connect PC and PLC with available method (RS-232C, USB, Ethernet).
PLC Side.
9pin, Male.
PC Side.
9pin, Female.
2) Run XG5000 and click 'Open from PLC' in the project menu.
XGT Series
Connection communication settings.
4) Reading progress.
XGT Series
1-3) Open from KGLWIN file.
1) Run XG5000 and click Open KGLWIN File in the project menu.
XGT Series
4) KGLWIN program and XG5000 program
KGLWIN program
XG5000 program
10
XGT Series
2. Property modification.
2-1) Project Property Modification and description.
Click the left side button of mouse after selecting the Project name by clicking.
Click 'Properties', than a dialog depicted below will be displayed.
There are 2 types of passwords in the XGT series PLC. One is password for project open which is
designated in the Project Property dialog. And the other is password for online connection which is
designated in the PLC information dialog of Online menu. Since the password for Project open does
not be transferred to PLC, the password for Project open does not be asked when the uploaded
project is opened.
11
XGT Series
2-2) PLC Name modification and description.
Click the left side button of mouse after selecting the PLC name by clicking.
Click 'Properties', than a dialog depicted below will be displayed.
The PLC name is changed to Main_PLC which is designated in the PLC property dialog.
12
XGT Series
2-3) Program Name modification and description.
Click the left side button of mouse after selecting the PLC name by clicking.
Click 'Properties', than a dialog depicted below will be displayed.
The Program name is changed to Main_CP1 which is designated in the Program property dialog.
13
XGT Series
3. PLC Items.
3-1) Variable/Comment
Variable or comment can be defined in block prior to programming.
Double
Click
14
XGT Series
- Variable dragging: Locate the cursor at right bottom of a Variable cell and drag the mouse.
The last digit of variable, number, will be increased automatically by 1.
Before dragging
After dragging
- Device dragging: Locate the cursor at right bottom of a Device cell and drag the mouse. The
last digit of Device, number, will be increased automatically by 1.
Before dragging
After dragging
- Device dragging: Locate the cursor at right bottom of a Comment cell, push the 'Ctrl' key on
keyboard and drag the mouse. The last digit of Comment, number, will be increased
automatically by 1.
Before dragging
After dragging
Select the items to be copied. If the left top cell is clicked, all items will be selected. After
selecting, click the right side button of mouse.
Select Copy.
Run document software and execute paste operation.
15
XGT Series
2) Add Variable/Comment in the View Device tab of Variable/Comment dialog.
Double
Click
16
XGT Series
17
XGT Series
4) MODBUS Setup
RS-232C communication port in the CPU can be used as slave module of MODBUS
communication. The MODBUS communication parameter can be setup in the MODBUS setup in the
Basic Parameter Setup.
The pin assignment of MODBUS communication is 7 for Tx, 8 for Rx and 5 for SG.
When the built-in MODBUS communication port of CPU is used, there are some restrictions on the
communication memory map. To communicate all data memory map of a CPU, Cnet module is
necessary.
2
3
5
MODBUS
MA S T E R
7
8
5
Tx
Rx
SG
18
XGT Series
Click
Click
Description for
program.
Program Main_CP2 is
added in the PLC
19
XGT Series
2) Task program.
Task program is a kind of program executed when the condition to execute the program is satisfied
under the mode of CPU is RUN. Task program can be grouped with 4 categories by its execution
condition: Initializing, Cyclic, I/O and Internal device.
Add Task.
- Initialization: executed when the mode of CPU changes to RUN. Cycle time: executed every setup time.
- I/O: executed when input signal of Interrupt module turns on.(Rising Edge).
- Internal device: executed when data of designated memory satisfy the designated condition.
After finishing adding task, program must be added to give actions when task is turned on.
20
XGT Series
Click project name and click the right side button of mouse.
Select Add Item and PLC.
Select PLC.
21
XGT Series
4. Programming
There are 2 types of program, Scan and Task program, in the XGT series PLC. Scan program is
executed as long as the mode of CPU is RUN. And Task program is executed when the condition to
execute the program is satisfied under the mode of CPU is RUN.
Items
Data
Memory
XGT-CPUE
P
XGT-CPUS
XGT-CPUA
P00000 ~ P2047F (32,768 Points)
XGT-CPUH
C
S
16K Byte
Total 2048 P.
Changeable
boundary by
basic parameter
1ms:
T1500 ~ T1999
0.1ms: T2000 ~ T2047
C0000 ~ C2047 (2048 Points)
Remarks
D0000 ~ D32767
Sp c
U00.0 ~ U01.31
128 Words
N
File
Register
R
ZR
Index
N00000 ~ N28,672
1 Block
2 Blocks
32Kwords/BLK
(R0 ~ R32767)
Controlled by
R registers
22
XGT Series
Usage
Symbol
Usage
Coil
Negated Coil
Set Coil
Reset Coil
Horizontal Line
Vertical Line
Function(Application Instruction)
* The shortcut key of symbols can be changed shortcut settings in Tool menu.
2) Bit Notations for data memory area.
Bit notation for P, M, K, L, F area.
P 1234 5
Bit Number in hexadecimal notation, 1 digit (0~ F)
Word Number in decimal notation: 0~9 for each digit within total capacity of each
area, 4 digits.
Memory area indicator.
Bit notation for D, R area.
D 12345 . 6
Bit Number in hexadecimal notation, 1 digit (0~ F)
Word sorter
Word Number in decimal notation: 0~9 for each digit within total capacity of each
area, 5 digits.
Memory area indicator.
Bit notation for S area. (Step Controller)
S 123 . 45
Step Number in decimal notation, 2 digits
Group sorter.
Group number in decimal notation, 3 digits. (0~127)
Memory area indicator. (Step Controller).
Timer/Counter: If a timer or counter number is used with contact or coil, the ON/OFF state of
the designated timer/counter is used as the data of contact or coil, while timer or counter
number is used with word operand instruction, the current value of timer/counter is used as the
data of instruction.
Z (Index register) and N(Network register) cannot be used as a bit operand.
23
XGT Series
Tool Bar
Program
Window
Click a symbol of program element to select in the Tool Bar and click again in the program
window to call variable input dialog.
Click in the program
window
Click Symbol in
the Tool Bar
Type the device address or variable if variable is registered in the Variable/Device field of
project window prior to programming.
If a device whose variable or comment is not registered is input in the Variable/Device field of
Input Variable/Device dialog, 'Add Variable/Comment' dialog will be displayed when 'Add to
Symbol' option is checked.
And if Variable and Comment is not necessary, release the 'Add to Symbol' option.
24
XGT Series
'Add Variable/Comment' dialog will be displayed automatically when a device address is input
under the state that 'Add to Symbol' option is checked.
NOC is registered in
the program
Display Option.
There are 4 display options, Variable, Device, Device and Variable, Device and Comment.
The View option can be changed in the 'View' menu of XG5000.
- Variable View
- Device View
25
XGT Series
Instruction List
Function
and Format
'END'
instruction
must
be
registered without any condition at
the end of program
26
XGT Series
3) Numeric data.
The basic type of Numeric data is Signed Decimal. And the data type of Unsigned Decimal is
designated by the suffix of instruction (U). If hexadecimal type is necessary, 'h' should be added at
the head of numeric data.
Add the data of D00100 and signed decimal 1000 and store the result in D00200.
Add the data of D00100 and hexadecimal 1000 and store the result in D00200.
Add the data of D00100 and unsigned decimal 60000 and store the result in D00200.
27
XGT Series
Select the Port number available in the computer and Baud rate. 115200 is recommended
for fast communication between XG5000 and PLC. And if connection is broken frequently,
the Baud rate may be reduced to 38400.
Preview of Connection.
28
XGT Series
USB Connection: USB connection is increasing due to fast communication speed and non-serial
port laptop computer. The USB cable is sold by LSIS ( Part name: USB-301A) and connection
steps are explained below.
USB Driver setup: USB driver file for XGT PLC is included in XG5000. If XGT PLC is
connected to computer for the first time, windows will find the driver file for XGT PLC.
Please designate the 'Driver' folder of XG5000.
Select USB in the Type and Local in the Depth in Connection settings. If USB is selected in
the Type, Settings button will be disabled.
Preview of Connection.
Set the IP address of PLC Ethernet module. It should be noted for successful
communication that the IP address group of computer must be same as the PLC IP address.
In other words, the front 3 digit of IP address must be matched each other.
29
XGT Series
Preview of Connection.
30
XGT Series
Select XGL-FEnet in the Network type, base and slot number where the applicable network
module is installed in the 'Local PLC' in the 'Local communication module' and input the IP
address of Fast Ethernet module installed 'Remote 1' PLC.
31
XGT Series
Duplicated Coil Check: Setup the device area to check if there are duplicated coil and condition
of duplicated coil.
If 'Word type instruction' option is checked and 'Error' is designated in the 'Result' field, the
check result of following sequence is error and downloading is impossible.
So, Warning is recommended for 'Check result field of 'Word type instruction duplicated coil
check' if above sequence is necessary in the program.
32
XGT Series
Select PLC
2) Stop PLC by clicking Stop in the Change Mode from Online menu.
4) When writing is finished run the PLC by clicking RUN the Change Mode from Online menu.
33
XGT Series
5) Click Start/Stop Monitoring in the Monitor menu to monitor the data of PLC.
34
XGT Series
6. Online Wroks.
Because XG5000 is the essential tool for programming, configuring and managing XGT system, it has
various and powerful functions for programming, configuring and managing XGT system.
6-1) Monitoring.
XG5000 has various monitoring functions such as System, Device, Special module, Trend
monitoring and Data trace and so on. Some monitoring functions the most widely used will be
explained here.
1) Start/Stop Monitoring and Ladder Monitoring.
Monitoring function must be executed to monitor data of PLC. Click 'Start/Stop Monitoring' in the
Monitor menu or short cut icon of Start/Stop Monitoring (
2) Variable Monitoring.
It is possible to monitor the data of desired memory address with Variable Monitoring function of
XG5000. The steps for Variable Monitoring are enumerated below.
Activate Variable Monitoring window by clicking 'Variable Monitoring window' in the View menu.
35
XGT Series
Select PLC where the variable to be monitored is included in if the project is composed of
multiple PLC.
Select Variable to be monitored. Multiple selection with 'Ctrl' key and 'Shift' key also
available.
The selected variables are registered in the Variable Monitoring Window. Variables included
in different PLCs in a project can be registered and monitored in a Variable Monitoring
Window together.
36
XGT Series
37
XGT Series
Select PLC where the variable to be monitored is included in if the project is composed of
multiple PLC.
Input the start device address and select data type and the number of address to be
monitored. The maximum number of address can be registered at a time is 100.
The device addresses D00000 ~ D00002 is registered and monitored in the 'Variable
Monitoring Window'.
38
XGT Series
Setup the condition, type and message in the 'Event Settings' dialog for custom events.
Register the memory address of which data will be stored when custom events occurred.
39
XGT Series
40
XGT Series
Whenever P0 bit turns on, this records the event with associated device information with rightmouse click as follows.
41
XGT Series
6-3) Data Traces
'Data Traces' function is very useful to see how meaning data change from when a
specific conditions is met.
1) Steps to setup Data Trace.
Select [Monitor]-[Data Traces] in XG5000.
In Data Traces window, select [Trace]-[Trace Settings] where set Trace setup
condition and Bit and Word device to trace with sample settings.
Input bit device address to be trended in the 'Bit device settings' window if necessary.
Input word device address to be trended in the 'Word device settings' window, if
necessary.
42
XGT Series
PLC program for Data Traces.
In Data Trances windows, select Read Trace Data to read trend data stored in the
PLC.
43
XGT Series
Select Data in the View menu of Data Trace window to see data in table format.
44
XGT Series
6-4) Online Editing.
Programs can be edited and modified while a PLC is running. Doing so, the real system can be
modified without stopping the system. Online editing is possible when online editing is started by
selecting 'Start Online Editing' in the Online menu.
1) Steps for Online Editing.
Confirm that connection status is online state and PLC is running by checking the status bar
located at the bottom of XG5000.
PLC name
PLC mode
Select 'Start Online Editing' in the Online menu of shortcut icon for 'Start Online Editing'.
(
)
The '*' mark will be displayed at the front of online editing program in the project window and
the background color will be changed to cyan color. All functions for editing program are
possible while this state is kept.
Write modified program when program is modified to apply to operation of system by clicking
'Write Modified Program' and click 'End Online Editing' when online editing is finished.
45
XGT Series
46