xgt basic cov - htmmuh.comhtmmuh.com/uploads/dosyalar/1e9234c7-0419-4121-85... · ④ copying...

47
Training Text Programmable Logic Controller XGT series

Upload: others

Post on 18-Jul-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: XGT Basic cov - htmmuh.comhtmmuh.com/Uploads/Dosyalar/1e9234c7-0419-4121-85... · ④ Copying Variable/Comment to document software.(Excel, Word, etc.) ⓐ Select the items to be

Training Text Programmable Logic Controller

XGT series

Page 2: XGT Basic cov - htmmuh.comhtmmuh.com/Uploads/Dosyalar/1e9234c7-0419-4121-85... · ④ Copying Variable/Comment to document software.(Excel, Word, etc.) ⓐ Select the items to be

XGT Series

1

1. Features

XGT are innovation-driven PLC series representing the most recent technology.

ü Speed Innovation … Fast

XGT is equipped with the fastest CPU speed (0.028 ㎲/step) and guarantees super-speedy

processing time through improved Backplane Interface. Also it maximizes maintenance

convenience by speedy up/down loading using USB.

ü Size Innovation … Compact

XGT has the highest quality but the smallest size (dimension 27 * 98 * 90) of modules fulfilling

cost- efficiency and various applications.

ü Network Innovation … Flexible

XGT system, based on Fast Ethernet & Open Fieldbus guarantees reliability and high speed

transmission. Its Field device interface can overcome system configuration’s limitations.

ü Software Innovation … Comfortable

XG5000 Package supports Multi PLC Multi Programming through its enhanced user interface. It

also provides powerful monitoring and diagnosis functions.

ü Engineering & Programming Innovation … Easy

XGT provides user-friendly engineering environment through Programless Setup driven by

command structures and parameters inherited from MASTER-K Series.

Page 3: XGT Basic cov - htmmuh.comhtmmuh.com/Uploads/Dosyalar/1e9234c7-0419-4121-85... · ④ Copying Variable/Comment to document software.(Excel, Word, etc.) ⓐ Select the items to be

XGT Series

2

2. Specifications

1. General Specifications.

Items Specifications References

Operating ambient

temperature 0 ~ 55 °C

Storage temperature -25 ~ +70 °C

Operating ambient

Humidity 5 ~ 95%RH, Non-condensing.

Storage ambient

Humidity 5 ~ 95%RH, Non-condensing

Occasional Vibration -

Frequency Acceleration Amplitude Sweep Count

10 £ f < 57Hz - 0.075mm

57 £ f £ 150Hz 9.8m/s2{1G} -

Continuous Vibration

Frequency Acceleration Amplitude

10 £ f < 57Hz - 0.035mm

Vibrations

57 £ f £ 150Hz 4.9m/s2{0.5G} -

10 times for each X,Y, Z

axis

IEC 61131-2

Shocks

· Maximum shock acceleration:147 m/s2{15G} · Duration time: 11ms · Pulse wave: half sine pulse ( 3 shocks per axis on X, Y, Z)

IEC 61131-2

Square wave Impulse noise ± 1,500 V

LGIS’ Internal Standard.

Electronic Discharge Voltage : 8kV (Discharge by contact)

IEC 61131-2, IEC 801-2

Radiated electromagnetic field noise

27 ~ 500 MHz, 10 V/m IEC 61131-2, IEC 801-3

Item Power supply

Digital I/O (>24V)

Digital I/O (<24V) Analog I/O Interface

Noise Immunity

Fast transient & burst noise

Voltage 2kV 1kV 0.25kV

IEC 61131-2 IEC 801-4

Atmosphere Free of corrosive gases and excessive dust

Altitude Up to 2,000m

Pollution degree 2

Cooling method Air-cooling

1) IEC (International Electrotechnical Commission): An international civilian institute who establishes international standards in area of electric and electronics.

2) Pollution degree: An indicator, which indicates pollution degree, which determine insulation performance of equipment.

Pollution degree 2 : Normally, only non-conductive pollution occurs. Occasionally, however, a temporary conductivity caused by condensation shall be expected.

REMARK

Page 4: XGT Basic cov - htmmuh.comhtmmuh.com/Uploads/Dosyalar/1e9234c7-0419-4121-85... · ④ Copying Variable/Comment to document software.(Excel, Word, etc.) ⓐ Select the items to be

XGT Series

3

2. CPU Specifications.

Specifications Items

XGT-CPUE XGT-CPUS XGT-CPUA XGT-CPUH Remarks

Operation method Cyclic, Fixed Time driven, Interrupt, Fixed Scan

I/O Updating Method Program refresh per 1 scan, Direct update by instruction

Program Languages Ladder Diagram Instruction List

Basic Instructions

42 Instructions

Application Instructions

717

LD 0.084 ㎲/Step 0.028 ㎲/Step

MOV 0.252㎲/Step 0.084㎲/Step Processing speed

Floating

±: 1.442 ㎲(S) 2.87 ㎲(D)

X: 1.948 ㎲(S), 4.168 ㎲(D)

¸: 1.974 ㎲(S), 4.2 ㎲(D)

±: 0.602 ㎲, 1.078 ㎲(D)

X: 1.106 ㎲(S), 2.394 ㎲(D)

¸: 1.134 ㎲(S), 2.66 ㎲(D)

S: Short D: Double

Program Capacity(Step) 16Steps 32K Steps 32Steps 64K Steps

I/O Capacity(Points) 1536 3072 3072 6144

P P00000 ~ P2047F (32,768 Points)

M M00000 ~ M2047F (32,768 Points)

K K00000 ~ K2047F (32,768 Points)

L L00000 ~ L8191F (131,072 Points) 16K Byte

F F00000 ~ F2047F (32,768 Points)

T

100ms: T0000 ~ T0999

10ms: T1000 ~ T1499

1ms: T1500 ~ T1999

0.1ms: T2000 ~ T2047

Changeable boundary by basic parameter

C C0000 ~ C2047

S S00.00 ~ S99.99

D D0000 ~ D19999 D0000 ~ D32767

U U00.0 ~ U01.31 U00.0 ~ U03.31 U00.0 ~ U03.31 U0.0 ~ U7F.31 Special module Refresh area.

Z 128 Words Index

Data Memory

N N00000 ~ N28,672 (28,672 Words) Word Only

R 1 Block 2 Blocks 32Kwords/BLK (R0 ~ R32767) File

Register ZR FLASH area: 32 Blocks (1Mbyte/BLK)

Controlled by R registers

Page 5: XGT Basic cov - htmmuh.comhtmmuh.com/Uploads/Dosyalar/1e9234c7-0419-4121-85... · ④ Copying Variable/Comment to document software.(Excel, Word, etc.) ⓐ Select the items to be

XGT Series

4

Specifications Items

XGT-CPUE XGT-CPUS XGT-CPUA XGT-CPUH Remarks

Total 256 Scan + Task

Initializing 1(_INT)

Cyclic 32 No. of Programs

Internal Point

32

Task

MODE RUN, STOP, DEBUG

Self Diagnosis Watch-Dog, Memory, I/O, Battery, Power failure. Download Port RS-232C(1CH), USB(1CH) Modbus slave

Data Back-up Setup Latch area in the Basic Parameter

Max. Base 2(1+1) 4(1+3) 4(1+3) 8(1+7)

Total(Basic+Ext.)

Max. Length: 15m

Page 6: XGT Basic cov - htmmuh.comhtmmuh.com/Uploads/Dosyalar/1e9234c7-0419-4121-85... · ④ Copying Variable/Comment to document software.(Excel, Word, etc.) ⓐ Select the items to be

XGT Series

5

3. Basic Usage of XG5000.

XG5000 is a software for programming and engineering XGT series PLC which provides you user-

friendly engineering environment through Programless Setup driven by command structures and

parameters inherited from MASTER-K Series.

1. Project Construction.

1-1) Constructing new project.

1) Run XG5000

2) Click New Project in the Project menu.

Page 7: XGT Basic cov - htmmuh.comhtmmuh.com/Uploads/Dosyalar/1e9234c7-0419-4121-85... · ④ Copying Variable/Comment to document software.(Excel, Word, etc.) ⓐ Select the items to be

XGT Series

6

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

4) A new project is constructed.

Type the project name

select file fold in which the project will be stored.

Select CPU type.

Project Window Program Window

Message Window

Shortcut Icons

Menu Window

Rectangular Cursor

Page 8: XGT Basic cov - htmmuh.comhtmmuh.com/Uploads/Dosyalar/1e9234c7-0419-4121-85... · ④ Copying Variable/Comment to document software.(Excel, Word, etc.) ⓐ Select the items to be

XGT Series

7

1-2) Open from PLC.

1) Connect PC and PLC with available method (RS-232C, USB, Ethernet).

2) Run XG5000 and click ‘Open from PLC’ in the project menu.

3) Setup the connection parameter.

PLC Side. 9pin, Male.

PC Side. 9pin, Female.

Select communi- cation Depth.

Select communi- cation type.

Page 9: XGT Basic cov - htmmuh.comhtmmuh.com/Uploads/Dosyalar/1e9234c7-0419-4121-85... · ④ Copying Variable/Comment to document software.(Excel, Word, etc.) ⓐ Select the items to be

XGT Series

8

① Connection communication settings.

② Preview of connecting communication.

4) Reading progress.

Local communication setting Remote communication setting

Page 10: XGT Basic cov - htmmuh.comhtmmuh.com/Uploads/Dosyalar/1e9234c7-0419-4121-85... · ④ Copying Variable/Comment to document software.(Excel, Word, etc.) ⓐ Select the items to be

XGT Series

9

1-3) Open from KGLWIN file.

1) Run XG5000 and click Open KGLWIN File in the project menu.

2) Select KGLWIN file(*.kpr, *.prj) to open.

3) Define the project information of XGT PLC.

Page 11: XGT Basic cov - htmmuh.comhtmmuh.com/Uploads/Dosyalar/1e9234c7-0419-4121-85... · ④ Copying Variable/Comment to document software.(Excel, Word, etc.) ⓐ Select the items to be

XGT Series

10

4) KGLWIN program and XG5000 program

KGLWIN program

XG5000 program

Page 12: XGT Basic cov - htmmuh.comhtmmuh.com/Uploads/Dosyalar/1e9234c7-0419-4121-85... · ④ Copying Variable/Comment to document software.(Excel, Word, etc.) ⓐ Select the items to be

XGT Series

11

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.②

③ Rename the Project if necessary.

④ Input the description of Project such as the usage, configuration of the Project, etc…

⑤ The folder where the Project file is stored in the computer.

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.

③ ④

Page 13: XGT Basic cov - htmmuh.comhtmmuh.com/Uploads/Dosyalar/1e9234c7-0419-4121-85... · ④ Copying Variable/Comment to document software.(Excel, Word, etc.) ⓐ Select the items to be

XGT Series

12

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.

③ Input PLC name.

④ Select PLC type if necessary.

⑤ Input the description of PLC such as the usage, configuration of the PLC, etc…

The PLC name is changed to Main_PLC which is designated in the PLC property dialog.

④ ⑤

Page 14: XGT Basic cov - htmmuh.comhtmmuh.com/Uploads/Dosyalar/1e9234c7-0419-4121-85... · ④ Copying Variable/Comment to document software.(Excel, Word, etc.) ⓐ Select the items to be

XGT Series

13

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.

③ Input PLC name.

④ Input the description of Program such as the usage, control area, revision history of the PLC,

etc…

The Program name is changed to Main_CP1 which is designated in the Program property dialog.

③ ④

Page 15: XGT Basic cov - htmmuh.comhtmmuh.com/Uploads/Dosyalar/1e9234c7-0419-4121-85... · ④ Copying Variable/Comment to document software.(Excel, Word, etc.) ⓐ Select the items to be

XGT Series

14

3. PLC Items.

3-1) Variable/Comment

Variable or comment can be defined in block prior to programming.

1) Add Variable/Comment in the View Variable tab of Variable/Comment dialog.

① Variable registration.

A Variable is a string that can access the designated data memory address instead of device.

A Variable can be composed of characters, numbers and special character ‘_’ (under bar) and

the maximum length of a variable is limitless. A number can not be used as the first character of

a variable.

② Comment registration.

A Comment is a brief explanation for device. Characters, numbers, all kinds of special

characters can be used and the maximum length of a comment is limitless.

③ Automatic number increment.

If a variable or comment of which the last digit is number is registered, the number will be

increased automatically when the variable or comment is dragged. Device address also

increased by dragging. Prior to dragging, lines must be inserted to the variable/comment table.

- Line Insertion.

Double Click

Select line number and click the right side button of mouse

Select Insert line Line is added in the table

Page 16: XGT Basic cov - htmmuh.comhtmmuh.com/Uploads/Dosyalar/1e9234c7-0419-4121-85... · ④ Copying Variable/Comment to document software.(Excel, Word, etc.) ⓐ Select the items to be

XGT Series

15

ⓑ ⓒ

- 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.

- 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.

- 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.

④ Copying Variable/Comment to document software.(Excel, Word, etc.)

ⓐ 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.

Before dragging After dragging

Before dragging After dragging

Before dragging After dragging

Page 17: XGT Basic cov - htmmuh.comhtmmuh.com/Uploads/Dosyalar/1e9234c7-0419-4121-85... · ④ Copying Variable/Comment to document software.(Excel, Word, etc.) ⓐ Select the items to be

XGT Series

16

ⓑ ⓐ

2) Add Variable/Comment in the View Device tab of Variable/Comment dialog.

ⓐ Select the device area to register variable or comments.

ⓑ Select data type

3-2) Basic Parameters.

1) Basic Operation Setup

- Fixed period operation: Defines whether fixed scan time function is used or not.

When this option is checked(use), the scan time must be larger than max. scan time which can

be seen ‘PLC Information’ in the Online menu.

- Assign fixed points to I/O slot (64): Defines I/O address mapping method.

If this option is checked, 1 slot charges 4 words(64 points) in P area. And this option is

unchecked, 1 slot charges memory capacity of module installed in the slot.

- Standard Input Filter: Defines response time of digital input.

More shorter input filter time, more faster its response time. But If this parameter is setup with

too small value, the system can be affected by electrical noise.

Double Click

Page 18: XGT Basic cov - htmmuh.comhtmmuh.com/Uploads/Dosyalar/1e9234c7-0419-4121-85... · ④ Copying Variable/Comment to document software.(Excel, Word, etc.) ⓐ Select the items to be

XGT Series

17

2) Device Area Setup

- Latch area: There are 2 kinds of Latch area.

Latch area 1 is non-volatile memory area when PLC goes to stop mode or PLC power turn off.

The data in the Latch 1 area can be deleted by Overall reset in the Online menu, or resetting

with reset switch located in the CPU module.

Latch area 2 is non-volatile memory area when PLC goes to stop mode or PLC power is

turned off. And the data in the Latch area 2 does not deleted when Overall reset is performed

with XG5000 or Reset switch in the CPU is turned on.

The only way to delete the data in the Latch area 2 is moving the data “0” to Latch area 2 or

Latch2 clear function of Online menu.

- Timer Boundary: There are 4 kinds of timer of which setting units are 100ms, 10ms, 1ms and

0.1ms, respectively.

The boundary of each kinds of timer can be adjusted with this parameter.

3) Error Operation Setup

CPU operation can be setup when some kinds of error occurred.

Page 19: XGT Basic cov - htmmuh.comhtmmuh.com/Uploads/Dosyalar/1e9234c7-0419-4121-85... · ④ Copying Variable/Comment to document software.(Excel, Word, etc.) ⓐ Select the items to be

XGT Series

18

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.

3-3) I/O Parameters

The usage of I/O Parameters is let the CPU recognize the kinds of installed modules on the slots.

And let the users recognize the I/O address of the installed modules.

If special modules such as A/D, D/A, etc. are used, the operations of special modules can be setup

with I/O parameters.

There are 2 methods of configuration of I/O parameters. The one is manual configuration and the

other is automatic configuration.

The method of manual configuration is configuring the I/O parameters by selecting installed I/O

modules in the ‘I/O parameters’ dialog. And method of automatic configuration is configuring the

I/O parameters by reading I/O information and synchronizing the read I/O information with I/O

Parameters on the Online state. The automatic configuration of I/O Parameters is available when

the CPU is STOP mode.

MODBUS Parameter Setup

PC (XG5000)

PLC MODBUS MASTER

2 3 5

2 3 5

Tx Rx SG

Cable connection for XG5000 and MODBUS Communication

7 8 5

Page 20: XGT Basic cov - htmmuh.comhtmmuh.com/Uploads/Dosyalar/1e9234c7-0419-4121-85... · ④ Copying Variable/Comment to document software.(Excel, Word, etc.) ⓐ Select the items to be

XGT Series

19

3-4) Add program.

1) Scan Program

A total program for a PLC can be divided into maximum 256 smaller programs. Making a program

smaller gives variety profit for debugging, program and management of systems.

Click right side button of mouse after selecting ‘Scan Program’

Click

Click

Program file name

Description for program.

Program Main_CP2 is added in the PLC

Page 21: XGT Basic cov - htmmuh.comhtmmuh.com/Uploads/Dosyalar/1e9234c7-0419-4121-85... · ④ Copying Variable/Comment to document software.(Excel, Word, etc.) ⓐ Select the items to be

XGT Series

20

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.

Task is added in the PLC.

Click right side button of mouse after selecting PLC name.

Page 22: XGT Basic cov - htmmuh.comhtmmuh.com/Uploads/Dosyalar/1e9234c7-0419-4121-85... · ④ Copying Variable/Comment to document software.(Excel, Word, etc.) ⓐ Select the items to be

XGT Series

21

3-5) Add PLC.

Since the definition of Project is expanded to more than 1 PLC, registering more than 1 PLC and

managing the programs downloaded to PLCs with 1 project file is possible. in addition,

simultaneous connecting to more than 1 PLCs, downloading and online editing project to

designated PLC, simultaneous monitoring of more than 1 PLCs are possible.

① Click project name and click the right side button of mouse.

② Select Add Item and PLC.

③ Select PLC.

④ Input PLC name which is to be added in the project.

⑤ Select the PLC type which is to be added in the project.

⑥ Input the description of the PLC which is to be added in the project.

New PLC is registered to projects

① ② ③

Page 23: XGT Basic cov - htmmuh.comhtmmuh.com/Uploads/Dosyalar/1e9234c7-0419-4121-85... · ④ Copying Variable/Comment to document software.(Excel, Word, etc.) ⓐ Select the items to be

XGT Series

22

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.

4-1) Data Memory Map of XGK PLC.

Prior to programming, checking data memory structure is essential for harmonious programming.

The data memory map of XGK PLC is table below.

Specifications Items

XGT-CPUE XGT-CPUS XGT-CPUA XGT-CPUH Remarks

P P00000 ~ P2047F (32,768 Points)

M M00000 ~ M2047F (32,768 Points)

K K00000 ~ K2047F (32,768 Points)

L L00000 ~ L8191F (131,072 Points) 16K Byte

F F00000 ~ F2047F (32,768 Points)

T

100ms: T0000 ~ T0999

10ms: T1000 ~ T1499

1ms: T1500 ~ T1999

0.1ms: T2000 ~ T2047

Total 2048 P. Changeable boundary by basic parameter

C C0000 ~ C2047 (2048 Points)

S S00.00 ~ S127.99 (128 Groups X 100 Steps)

D D0000 ~ D19999 D0000 ~ D32767

U U00.0 ~ U01.31 U00.0 ~ U03.31 U00.0 ~ U03.31 U0.0 ~ U7F.31 Special module Refresh area.

Z 128 Words Index

Data Memory

N N00000 ~ N28,672

R 1 Block 2 Blocks 32Kwords/BLK (R0 ~ R32767) File

Register ZR FLASH area: 32 Blocks (1Mbyte/BLK)

Controlled by R registers

Page 24: XGT Basic cov - htmmuh.comhtmmuh.com/Uploads/Dosyalar/1e9234c7-0419-4121-85... · ④ Copying Variable/Comment to document software.(Excel, Word, etc.) ⓐ Select the items to be

XGT Series

23

4-2) Contact and Coil Programming.

1) Symbols for programming.

Symbol Usage Symbol Usage

Normally Open Contact Coil

Normally Closed Contact Negated Coil

Positive Transition Contact Set Coil

Negative Transition Contact Reset Coil

Horizontal Line Positive Transition Coil

Vertical Line Negative Transition Coil

NOT Instruction Coil 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.

Page 25: XGT Basic cov - htmmuh.comhtmmuh.com/Uploads/Dosyalar/1e9234c7-0419-4121-85... · ④ Copying Variable/Comment to document software.(Excel, Word, etc.) ⓐ Select the items to be

XGT Series

24

3) Steps for Programming with contact and Coil.

① Double Click Program name in the Project window so that program window is activated.

② Click a symbol of program element to select in the Tool Bar and click again in the program

window to call variable input dialog.

③ 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.

Click Symbol in the Tool Bar

Click in the program window

Tool Bar

Program Window

Confirm that ‘Add to Symbol’ Option is checked if Variable or Comment is necessary.

Input device address whose Variable or Comment is not registered.

Page 26: XGT Basic cov - htmmuh.comhtmmuh.com/Uploads/Dosyalar/1e9234c7-0419-4121-85... · ④ Copying Variable/Comment to document software.(Excel, Word, etc.) ⓐ Select the items to be

XGT Series

25

‘Add Variable/Comment’ dialog will be displayed automatically when a device address is input

under the state that ‘Add to Symbol’ option is checked.

④ 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

- Device and Variable View

NOC is registered in the program

Page 27: XGT Basic cov - htmmuh.comhtmmuh.com/Uploads/Dosyalar/1e9234c7-0419-4121-85... · ④ Copying Variable/Comment to document software.(Excel, Word, etc.) ⓐ Select the items to be

XGT Series

26

- Device and Comment View

4-2) Instruction Programming.

1) Steps for Instruction Programming. ① Click Function in the Tool Bar.

② Click in the program window

③ Type instruction and device or data with dedicated format of instructions.

Instruction List

Function and Format

‘MOV’ function is registered

‘END’ instruction must be registered without any condition at the end of program

Page 28: XGT Basic cov - htmmuh.comhtmmuh.com/Uploads/Dosyalar/1e9234c7-0419-4121-85... · ④ Copying Variable/Comment to document software.(Excel, Word, etc.) ⓐ Select the items to be

XGT Series

27

2) Structures of XGK Instructions.

The basic structure of XGK Instructions is ‘Prefix + Basic Instruction + Suffix’ structure.

① Basic Instruction: Basic Instruction operates 1 word (16 bits) data and its data type is signed

decimal. In some cases, such as MUL (multiplication), although the data size of operand is 1

word data, the result may be 2 words data. And with 1 instruction, more than 2 results may be

created. For example, DIV instruction creates 2 results, the quotient and the remainder, and the

result is stored in 1 word data memory area, respectively.

② Prefix: Prefix mainly designates the size or data type of operands. Available characters for

prefix are D (Double word), R (32-bit Floating), L (64-bit Floating), $ (String), B (bit) and G

(Group). Available number of prefix for a basic instruction is 1.

③ Suffix: Suffix designates the size, data type of operands and condition of execution. Available

characters for suffix are 4(Nibble: 4 bits data size), 8(Byte: 8 bits data size), B(BCD data type),

P(Edge trigger) and U(Unsigned decimal type). And more than 1 suffices are avail for a basic

instruction.

DADDUP D00000 D00002 D00010 => D ADD U P D00000 D00002 D00010

Add Double words of which data are Unsigned integer value at the rising edge of execution

condition.

D: Prefix designating the data size as double word.

ADD: Basic Instruction for addition.

U: Suffix designating the data type as Unsigned decimal.

P: Suffix designating execution condition of rising edge trigger. (Execute 1 time at the rising

edge of execution condition.)

Using suffix P is equal to using the condition with Positive Transition Contact. And it is

recommended that avoiding simultaneous use of Positive Transition Contact and suffix P.

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.

Page 29: XGT Basic cov - htmmuh.comhtmmuh.com/Uploads/Dosyalar/1e9234c7-0419-4121-85... · ④ Copying Variable/Comment to document software.(Excel, Word, etc.) ⓐ Select the items to be

XGT Series

28

5. Connection and Download.

5-1) Connection.

XGT series PLC supports various methods of connection between XG5000 and PLC. The 3

representative connection methods will be explained here. Please refer to the XG5000 manual for

details of connection.

1) Local Connection.

Local connection means that connection is established between PC(XG5000) and PLC directly.

Available methods for local connection are RS-232C and USB communication. Connection method

can be designated in the ‘Connection Settings…’ of online menu.

① RS-232C connection: The RS-232C connection is the most widely used connection method. The

cable connection diagram is depicted and connection steps are explained below.

ⓐ Select RS-232C in the Type and Local in the Depth in Connection settings and click Settings

button to setup details of RS-232C communication.

ⓑ 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.

PC (XG5000)

PLC

2 3 5

2 3 5

Page 30: XGT Basic cov - htmmuh.comhtmmuh.com/Uploads/Dosyalar/1e9234c7-0419-4121-85... · ④ Copying Variable/Comment to document software.(Excel, Word, etc.) ⓐ Select the items to be

XGT Series

29

② 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.

2) Remote1 Connection via Fast Ethernet module.

Remote 1 connection means that computer (XG5000) and PLC is connected via communication

module of PLC. Communication module, such as Cnet, FEnet and so on, is installed and computer

is connected to network, various methods for connection will be available with easy.

① FEnet: It is available when LAN card is installed in the PC and FEnet module is installed in the

PLC. The connection steps are explained below.

ⓐ Select Ethernet in the Type and Remote 1 in the Depth in Connection settings and click

Settings button to setup details of FEnet communication.

ⓑ 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.

Page 31: XGT Basic cov - htmmuh.comhtmmuh.com/Uploads/Dosyalar/1e9234c7-0419-4121-85... · ④ Copying Variable/Comment to document software.(Excel, Word, etc.) ⓐ Select the items to be

XGT Series

30

ⓒ Preview of Connection.

3) Multi-PLC project. (Multi-PLC Multi-Program, MPMP)

Because the definition of project in the XGT system is extended to PLC systems connected with

various kinds of networks, each PLC included in the project file must be connected to designated

PLC system.

If connection method of PLC included in the project file is designated, the connection method will

be remembered by the PLC file and connection is possible when connection is necessary without

changing of ‘Online Settings’.

It is assumed in this example that Project is composed of 2 PLCs, named Main_PLC and Remote 1

respectively, connected via Fast Ethernet communication each other and Local PLC named

Main_PLC is connected to PC via USB communication.

① Local Connection Setting.

ⓐ Select Main_PLC in the Project window and select USB in Type and Local in Depth.

② Remote Connection Setting.

ⓐ Select Remote 1 PLC in the Project window, select USB in Type and Remote 1 in Depth and

click ‘Settings…’ button to setup ‘Remote 1 connection settings’.

Page 32: XGT Basic cov - htmmuh.comhtmmuh.com/Uploads/Dosyalar/1e9234c7-0419-4121-85... · ④ Copying Variable/Comment to document software.(Excel, Word, etc.) ⓐ Select the items to be

XGT Series

31

ⓑ 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.

ⓒ Preview of Local Connection.

ⓓ Preview of Remote1 Connection.

ⓔ Simultaneous connection of Local and Remote 1 PLC.

If a project is composed of more than 2 PLCs, all online functions of XG5000 is possible

simultaneously for all PLCs included in the project.

Base and slot number where the network module is installed in Local PLC

Input the IP address of Fast Ethernet module installed ‘Remote 1’ PLC.

2 PLCs are connected simultaneously to XG5000 and the status of CPU is displayed.

Page 33: XGT Basic cov - htmmuh.comhtmmuh.com/Uploads/Dosyalar/1e9234c7-0419-4121-85... · ④ Copying Variable/Comment to document software.(Excel, Word, etc.) ⓐ Select the items to be

XGT Series

32

5-2) Program Check.

Prior to downloading to PLC, Checking program is recommended to check if there are some errors

in the program..

1) Program Check Option.

Program Check option can be designated in the ‘Check Program…’ of View menu.

① Program Check: Setup the program check items and range.

② 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.

Check result field.

Page 34: XGT Basic cov - htmmuh.comhtmmuh.com/Uploads/Dosyalar/1e9234c7-0419-4121-85... · ④ Copying Variable/Comment to document software.(Excel, Word, etc.) ⓐ Select the items to be

XGT Series

33

5-3) Downloading project.

1) Select PLC in the Project window which will be downloaded to and Click connection settings in

the Online menu.

2) Stop PLC by clicking Stop in the Change Mode from Online menu.

3) Click Write in the Online menu.

4) When writing is finished run the PLC by clicking RUN the Change Mode from Online menu.

Select connection method and setup communication parameter by clicking Setting button.

Select PLC

Page 35: XGT Basic cov - htmmuh.comhtmmuh.com/Uploads/Dosyalar/1e9234c7-0419-4121-85... · ④ Copying Variable/Comment to document software.(Excel, Word, etc.) ⓐ Select the items to be

XGT Series

34

5) Click Start/Stop Monitoring in the Monitor menu to monitor the data of PLC.

Ladder monitoring is executed automatically when Monitoring is started.

Page 36: XGT Basic cov - htmmuh.comhtmmuh.com/Uploads/Dosyalar/1e9234c7-0419-4121-85... · ④ Copying Variable/Comment to document software.(Excel, Word, etc.) ⓐ Select the items to be

XGT Series

35

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 ( ) in the Online Toolbar after

connection is established. When monitoring is started, ladder monitoring will be executed

automatically.

① Click ‘Start/Stop Monitoring’ in the Monitor menu after connection is established.

② Ladder monitoring will be executed automatically.

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.

Page 37: XGT Basic cov - htmmuh.comhtmmuh.com/Uploads/Dosyalar/1e9234c7-0419-4121-85... · ④ Copying Variable/Comment to document software.(Excel, Word, etc.) ⓐ Select the items to be

XGT Series

36

② Variable registering from Variable List.

Variable to be monitored can be registered from Variable List when Variable name is defined for

the devices used in the program.

ⓐ Double click a cell in the Variable column.

ⓑ 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.

Page 38: XGT Basic cov - htmmuh.comhtmmuh.com/Uploads/Dosyalar/1e9234c7-0419-4121-85... · ④ Copying Variable/Comment to document software.(Excel, Word, etc.) ⓐ Select the items to be

XGT Series

37

③ Variable registering by Device address.

If variable name is not defined for the devices used in the program, variables to be monitored

can be registered with device address.

ⓐ Select PLC to be monitored if the project is composed of multi PLC.

ⓑ Select data type in the Type column.

ⓒ Input the device address to be monitored on Device column.

ⓓ The desired M00020 bit device is registered and monitored.

Page 39: XGT Basic cov - htmmuh.comhtmmuh.com/Uploads/Dosyalar/1e9234c7-0419-4121-85... · ④ Copying Variable/Comment to document software.(Excel, Word, etc.) ⓐ Select the items to be

XGT Series

38

④ Multiple Variable registering by Device address.

Multiple device addresses to be monitored can be registered at a time just like registering

variables from variable list.

ⓐ Select a cell in the Device column and click the right side button of mouse and select

‘Register All…’ in the pop-up menu.

ⓑ 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’.

Page 40: XGT Basic cov - htmmuh.comhtmmuh.com/Uploads/Dosyalar/1e9234c7-0419-4121-85... · ④ Copying Variable/Comment to document software.(Excel, Word, etc.) ⓐ Select the items to be

XGT Series

39

6-2) Custom Events

User defined events are registered in PLC, which will monitor the registered events and record the

event history if generated. The event history can be used to operate and debug the system.

1) Steps to setup custom events.

① Set the event condition and its associated device setup.

ⓐ Double click the first row in the ‘Custom Event’ dialog.

ⓑ 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.

Page 41: XGT Basic cov - htmmuh.comhtmmuh.com/Uploads/Dosyalar/1e9234c7-0419-4121-85... · ④ Copying Variable/Comment to document software.(Excel, Word, etc.) ⓐ Select the items to be

XGT Series

40

Page 42: XGT Basic cov - htmmuh.comhtmmuh.com/Uploads/Dosyalar/1e9234c7-0419-4121-85... · ④ Copying Variable/Comment to document software.(Excel, Word, etc.) ⓐ Select the items to be

XGT Series

41

② Whenever P0 bit turns on, this records the event with associated device information with right-

mouse click as follows.

Page 43: XGT Basic cov - htmmuh.comhtmmuh.com/Uploads/Dosyalar/1e9234c7-0419-4121-85... · ④ Copying Variable/Comment to document software.(Excel, Word, etc.) ⓐ Select the items to be

XGT Series

42

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.

Page 44: XGT Basic cov - htmmuh.comhtmmuh.com/Uploads/Dosyalar/1e9234c7-0419-4121-85... · ④ Copying Variable/Comment to document software.(Excel, Word, etc.) ⓐ Select the items to be

XGT Series

43

④ PLC program for Data Traces.

⑤ In Data Trances windows, select Read Trace Data to read trend data stored in the

PLC.

Page 45: XGT Basic cov - htmmuh.comhtmmuh.com/Uploads/Dosyalar/1e9234c7-0419-4121-85... · ④ Copying Variable/Comment to document software.(Excel, Word, etc.) ⓐ Select the items to be

XGT Series

44

⑥ Select Data in the View menu of Data Trace window to see data in table format.

Page 46: XGT Basic cov - htmmuh.comhtmmuh.com/Uploads/Dosyalar/1e9234c7-0419-4121-85... · ④ Copying Variable/Comment to document software.(Excel, Word, etc.) ⓐ Select the items to be

XGT Series

45

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.

② 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.

PLC name PLC mode Connection and communication status

Page 47: XGT Basic cov - htmmuh.comhtmmuh.com/Uploads/Dosyalar/1e9234c7-0419-4121-85... · ④ Copying Variable/Comment to document software.(Excel, Word, etc.) ⓐ Select the items to be

XGT Series

46

2) Restrictions of Online Editing.

Although XG5000 offers powerful online editing functions, restrictions also exist in online editing

function. The restrictions of online editing are enumerated below.

① The items included in the program such as device, variable and instructions and so on, can be

edited while online editing.

In other words, parameters cannot be edited while online editing. To be exact, parameters can

be edited while online editing, but cannot be downloaded to PLC while PLC is running. If

parameters are modified while online editing, the mode of PLC must be changed to STOP

mode to download the modified parameters after finishing online editing.

② One program can be edited in one PLC at a time when multiple programs are included in one

PLC. In other words, simultaneous online editing of more than 2 programs in one PLC is

prohibited.