XG5000 User Manual
XG5000 User Manual
For your safety and effective operation, please read the safety instructions
thoroughly before using the product.
► The marks displayed on the product and in the user’s manual have the
following meanings;
► The user’s manual even after read should be kept available and accessible
to any user of the product.
Safety Instructions
Warning
Please, install protection circuit on the exterior of PLC to protect
the whole control system from any error in external power or PLC
module.
Any abnormal output or operation may cause serious problem in safety
of the whole system.
- Install applicable protection unit on the exterior of PLC to protect the system from
physical damage such as emergent stop switch, protection circuit, the upper/lowest
limit switch, forward/reverse operation interlock circuit, etc.
- If any system error (watch-dog timer error, module installation error, etc.) is detected
during CPU operation in PLC, the whole output is designed to be turned off and
stopped for system safety. However, in case CPU error if caused on output device
itself such as relay or TR can not be detected, the output may be kept on, which
may cause serious problems. Thus, you are recommended to install an addition
circuit to monitor the output status.
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.
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.
Safety Instructions
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.
Safety Instructions
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 should be processed as industrial
waste. The waste may discharge toxic materials or explode itself.
Revision History
Revision History
Version Date Remark Revised Page
Modified
※The number of User’s manual is indicated right part of the back cover.
ⓒLS Industrial Systems Co., Ltd 2007 All Rights Reserved.
About User’s Manual
Before use, make sure to carefully read and understand the User’s Manual about the functions,
performances, installation and programming of the product you purchased in order for correct
use and importantly, let the end user and maintenance administrator to be provided with the
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://eng.lsis.biz/)
and download the information as a PDF file.
No. of User’s
Title Description
Manual
It is the user’s manual for programming to
XGK / XGB
explain how to use commands that are used
Instructions & 10310000510
PLC system with XGK CPU module and XGB
Programming
basic unit.
Chapter 11 Monitoring.........................................................................................11-1~11-109
Chapter 14 Print.........................................................................................................14-1~14-9
Chapter 15 XG-SIM................................................................................................15-1~15-29
Chapter 17 ST Edit...............................................................................................17-1~17-20
Chapter 20 LS Studio........................................................20-1~20-18
Chapter 1 Introduction
XG5000 is a software tool designed to program and debug XGT PLC series with the following features and
merits.
1) Multi-PLC, Multi-Program
Allows the user to edit, monitor or manage PLC system interlocked with several PLC included in a
project at the same time.
The program can be divided into Scan programs and various Task programs.
Makes editing easy and convenient with Drag and Drop function on most of editors such as
Project, Variable/ Comment, LD Edit, Variable Monitor, etc.
Shortcut Keys provided as default can be changed or added as specified as familiar to user.
4) Message Windows
1-1
XG5000 User’s Manual
- Various monitoring functions are available such as variable monitoring, device monitoring,
system monitoring, trend monitoring, special module monitoring, etc.
8) Custom Events
- If user defined conditions are met for specific device, logging and reading data is available.
- Module can be safely and easily changed during Run without stopping PLC.
1- 2
Chapter 1 Introduction
Item Requirement
Personal computer and memory Computer with PENTIUM /256MB memory or more
Communication port RS-232 serial port or USB port
Hard disk 500MB minimum
Mouse
Monitor 1024 X 768 minimum monitor resolution
Window Windows XP/VISTA/7/8/8.1/10
1-3
XG5000 User’s Manual
[Steps]
1. Run the installation file.
2. To run the XG5000 normally, Microsoft Visual C++ must be installed. If the installation screen
appears, press [Install] button.
3. Select [Yes] in the following window. Once installed, though you install XG5000 again, installing Visual
C++ will not be necessary.
1- 4
Chapter 1 Introduction
Note
Special package can’t be executed normally
Scenario 1) Though you press “Installation” button , installation is not executed and same window
appears
Scenario 2) When you press “Installation” button, the following window appears
Probable Cause:
First, In order to install the special package, administrator right is needed. So if you try with a non-
administrator account, it may not be installed.
Solution:
When installing a XG5000, try with an account that has administrator right. (Since special package is
installed once, if you have never installed XG5000, you need an administrator right.)
Check for proper syntax and file format for the installation path along with a foreign character set.
1-5
XG5000 User’s Manual
5. Enter your name and company name and then click [Next] button.
1- 6
Chapter 1 Introduction
6. Select a folder to install XG5000 into. If you want to change the folder, click Browse button and make or
select a new folder. XG5000 needs about 30M Bytes of installation space on hard disk, which will ask you
to select a disk with enough capacity. If the installation space is insufficient, a warning message will be
displayed. It is recommended to use the default installation path.
1-7
XG5000 User’s Manual
10. In case PC is being connected with PLC through USB, at the final stage of installation, USB device
driver installation window appears. Press “Continue” to install the USB device driver.
1- 8
Chapter 1 Introduction
11. The installation will complete and the following screen will be displayed.
1-9
XG5000 User’s Manual
If XG5000 has been installed on Windows XP for the first time, USB device driver shall be additionally
installed. Although USB connection is not available, USB device driver shall be also installed as described
below.
Notes
In case of installing the XG5000 while PC is being connected with PLC through USB, USB device
driver installation window appears automatically. (refer to CH1.3, 10)
[Steps]
1. Ensure that Drivers folder is created in the folder where XG5000 is installed, and there are 2 driver files of
GmUSBD.sys and GmUSBD.inf in the Drivers folder. If there is no folder or driver file, reinstall XG5000.
2. Turn PLC Power on and connect USB connector with PC. If connection is established, Found New
Hardware Wizard Dialog Box will be displayed to ask you to install the device driver.
1- 10
Chapter 1 Introduction
3. In the selection options in Found New Hardware Wizard Dialog Box, select “Installation from a list or
specific location (Advanced)” and click [Next] to continue.
4. When searching driver options, select “Search for the best driver in these locations” and check “Include
this location in the search”.
1-11
XG5000 User’s Manual
5. Click [Browse] button. On Browse Folder Dialog Box, select Drivers’ folder where XG5000 is installed.
6. Click [OK] button. Now computer will search for the driver files in the selected folder.
1- 12
Chapter 1 Introduction
7. If the computer found the most suitable device driver, you will be asked to decide to install the
selected device driver. Click the [Continue Anyway] button.
8. If the device driver has been installed completely, the Installation Complete Dialog Box will be displayed
as follows. Click [Finish] button to end the installation of the driver.
Notes
Generally, you can install the USB device driver through “Install the software automatically
(Recommended)”.
1-13
XG5000 User’s Manual
If USB connection is not available, check the installation status of the device driver as follows.
[Steps]
1. Click the right button of the mouse with the cursor on [My Computer] icon on the background screen, and
select [Manage] on the menu.
2. Computer Management Dialog Box will be displayed as shown in the figure below. On the left tree list of
Dialog Box, click [Computer Management (Local)]-[System Tools]-[Device Manager] in regular order. The
items displayed on the list may be different according to devices installed on the computer.
1- 14
Chapter 1 Introduction
1) Normal Case:
The USB device driver for XGT PLC has been installed successfully, if the list [LSIS XG Series] appears
with the figure under [Universal Serial Bus Controller].
1-15
XG5000 User’s Manual
If the USB driver for XGT PLC is not installed successfully, reinstall the USB driver for XGT PLC
in the following steps
[Steps]
1. On the device driver with the icon with an exclamation mark, click the right button of the mouse.
Select [Update Driver] on the menu.
1- 16
Chapter 1 Introduction
2. Found New Hardware Wizard Dialog Box will appear. Select the option “Installation from a list or specific
location (Advanced)” and click [Next]. The next sequence is manually the same as in Installation of Device
Driver.
If the USB driver for XGT PLC is not installed successfully, reinstall the USB driver for XGT PLC in
the following steps.
[Steps]
1. If the device driver has been installed incorrectly or in error, execute H/W Update Wizard. Select the option
“Installation from a list or specific location (Advanced)” and click [Next].
1-17
XG5000 User’s Manual
2. On search and installation options, select [Don’t Search. I will choose the driver to install.] and
click [Next].
1- 18
Chapter 1 Introduction
5. From the Browse File Dialog Box, move to the folder XG5000 is installed in. Select drivers folder
to display GmUSBD.inf file. With this file selected, click [Open] button.
1-19
XG5000 User’s Manual
6. On the location item of manufacturer’s file to copy, a directory with the file of the device driver will be
displayed. Click [OK] button.
7. On the compatible H/W display list of the device driver Select Dialog Box, select “LSIS XGSeries” driver
and then click [Next] button.
1- 20
Chapter 1 Introduction
8. Hardware Installation Dialog Box will appear. Click [Continue Anyway] to go on with the installation.
9. Found New Hardware Wizard Complete Dialog Box will appear. Click [Finish] button to end the installation
of the driver.
1-21
Chapter 2 Using XG5000 Software
[Screen of XG5000]
2-1
XG5000 User’s Manual
If the menu is selected, application instructions will be appeared and an instruction will be executed
when an instruction is selected by clicking mouse button or pressing shortcut key. If the shortcut
key for the menu (Ctrl + X, Ctrl + C) is available, press the shortcut key directly to select the
instruction.
1) Project
Instruction Description
New Project Creates a new project.
Open Project Opens the existing project.
Open from PLC Uploads the project and program stored in PLC.
Open KGLWIN File Opens the project file for KGLWIN.
Open GMWIN File Opens the project file for GMWIN.
Save Project Saves the project.
Save As Saves the project as a different name.
Close Project Closes the project.
Save as Binary Saved as the binary file that cannot show the details of the project.
Write Binary to PLC Writes the binary file with the PLC. You cannot see the details of
the project.
Open from Memory Opens the project from the memory module.
Write to Memory Writes the project in the memory module.
PLC Adds a new PLC to the project.
Task Adds a new task program to the project.
Program Adds a new scan program to the project.
Function Adds new user functions to the PLC.
Function block Adds new user function blocks to the PLC.
Data type Adds new user data types to the PLC.
Add Network Adds new networks to the project.
Item Communication Adds new communication modules to the network.
module
P2P Communication Adds new P2P items to the communication module.
High-speed link Adds new high-speed link items to the communication module.
communication
User frame Adds new user frames to the P2P items.
Add groups Adds new groups to the P2P items.
2-2
Chapter 2 Using XG5000 Software
Instruction Description
Import PLC Reads the PLC program from the file.
Item Variable/Comment Imports the variable/comment from the separated comment file.
from Program Imports the program from a separated program file.
File I/O parameter Imports the I/O parameter from a separated I/O parameter file.
Basic parameter Imports the basic parameter from a separated basic parameter file.
Export to File Saves the selected items included opened project as separated
file.
Save Variable Names to File Saves variable names to file for using other programs.
Save EtherNet/IP Tags to File Registers EtherNet/IP tag and saves the established EtherNet/IP
tag list to the file.
Compare Projects Compares two projects stored in PC and displays its result.
Print Prints the active window’s details.
Preview Previously displays the screen to be printed.
Print Project Selects the project item to print
Print Setup Sets the printer options.
Exit Ends XG5000.
2) Edit
Instruction Description
Undo Cancels the edit on Program Edit Window to recovers its previous
status.
Cut Copies the selects block to clipboard and deletes the block.
Select All Displays all the details of presently active window in block.
2-3
XG5000 User’s Manual
Instruction Description
Register Module Variable Adds the variables related to the modules set for I/O parameters to
Comments variables/comments automatically.
Set Block Mask Sets cursor-positioned rung or specified block area Block Mask in
rung unit.
Remove Block Mask Cancels cursor-positioned rung or specified block area set Block Mask.
3) Variable edit
Instruction Description
Add EXTERNAL variable Registers the variables declared as global variables to the local
variables.
Move item up Moves up the position of the selected item in a line.
Move item down Moves down the position of the selected item in a line.
Delete all unused Deletes all unused global variables, direct variable comments, local
variables/comments variables from the program.
Reallocate All Auto- Changes the addresses of all automatically-allocated global/local
allocation variables variables.
2-4
Chapter 2 Using XG5000 Software
4) Find/Replace
Instruction Description
Replace Device Finds the desired device to replace with a new device.
Replace String Finds the desired String to replace with a new String.
Previous Message Moves from the message window to the place the previous message
indicates.
Next Message Moves from the message window to the place the next message
indicates.
5) View
Instruction Description
High-speed Link Window Shows or hides the high-speed link view window.
2-5
XG5000 User’s Manual
Instruction Description
Catalog window Shows or hides the catalog window.
Check Program Inspects the program and displays its result on the message
window’s program inspect tap.
Devices/Variables View Displays the device and the variable in the program.
Devices/Comments View Displays the device and the comment in the program.
Resize Width Automatically adjusts the cell width applicably to the string width in
the Variable/Comment window.
Resize Height Automatically adjusts the cell height applicably to the string height
in the LD or Variable/Comment window.
2-6
Chapter 2 Using XG5000 Software
6) Online
Instruction Description
Stop
Debug
Compare with PLC Compares the project to the project saved in PLC
Set Flash Memory Shows the window for setting up the flash memory.
Communication EIP Tag Download Downloads the EIP tag list to the EIP module.
Module Setting EIP Tag Upload Uploads the EIP tag list to the EIP module.
Clear all PLC Deletes all programs, passwords, data from the PLC.
2-7
XG5000 User’s Manual
Instruction Description
PLC Information Shows up the PLC information window.
Diagnosis
PLC History Shows up the PLC history window.
PLC Errors/ Shows up the PLC error history/warning window.
Warnings
Write Modified Program Writes the program and information modified during
run on PLC
7) Monitor
Instruction Description
2-8
Chapter 2 Using XG5000 Software
Data Traces Specifies the device to monitor the change of the data.
8) Debug
Instruction Description
9) Tools
Instruction Description
Network Manager Shows the PLC network and specifies the parameter.
EDS Register EDS file Registers the EDS file used for the EtherNet/IP module.
Delete EDS file Deletes the EDS file used for the EtherNet/IP module.
View EDS file Displays the EDS file used for the EtherNet/IP module.
2-9
XG5000 User’s Manual
10) Window
Instruction Description
New Window Opens a new window on the active window.
Split Divides the active window.
New Horizontal Tab Group Arrays the several windows belonging to XG5000 with the
horizontal tab
New Vertical Tab Group Arrays the several windows belonging to XG5000 with the
vertical tab.
Move to next Tab Group Moves to the next tab group.
Move to previous Tab Group Moves to the previous tab group.
Close All Closes all windows belonging to XG5000.
Reset Window Layout Resets the default layout of the project.
11) The Help functionality uses Adobe Reader. Browser pdf functionality will not work properly.
Instruction Description
LSIS Web Site Connects to LSIS Home Page via the Internet.
Notes
- If you have a problem opening Help, change the value of resister like below.
Acrobat Reader xx.0 --> acroviewRxx ex) Acrobat Reader 10.0 --> acroviewR10
Acrobat xx.0 --> acroviewAxx ex) Acrobat 10.0 --> acroviewA10
Path : HKEY_CLASSES_ROOT\acrobat\shell\open\ddeexec\application
Use extreme caution when making changes to the Window Registry.
2-10
Chapter 2 Using XG5000 Software
[Tool Box]
[Dialog Box]
a
b
c
d
e
f
Items Descriptions
Toolbars (a) Can make the toolbar appear or disappear by clicking the
checkbox in front of each toolbar name.
2-11
XG5000 User’s Manual
[Steps]
1. Select the menu [Tool]-[User Definition]
2. Click [New] button.
3. If the dialog box for entering toolbar name shows up, enter the toolbar name.
4. Press ‘OK’ button. At this time, the empty toolbox is created and the new toolbar
‘TEST’ will be added to the toolbar list.
[Dialog Box]
c
a
2-12
Chapter 2 Using XG5000 Software
Items Descriptions
User Toolbar (c) If you the desired command on a user toolbar, the toll will be added.
The following procedure is to explain how to fill the toolbar created from 1) with commands
[Steps]
1. Select the command tab of [Tool]-[Customize].
2-13
XG5000 User’s Manual
[Dialog Box]
a
b
d
e
f
c
Items Descriptions
Category (a) Selects the menu to set up shortcut key in the category list.
Assign (d) Allocates newly shortcut keys entered for the selected menu
Reset All (f) Deletes all user shortcut keys and set all shortcut keys as
default.
[Steps]
1. Select the menu keyboard tab of [Tool]-[user definition].
2. Select the category to set up shortcut key from the menu selection list.
2-14
Chapter 2 Using XG5000 Software
a. Enter the shortcut keys to be set. For example, if you want to use Ctrl + H, hold down Ctrl on
your keyboard and press H. Then, the shortcut keys will be displayed in the editing window. If
the key combination is already applied, the message ‘Already Allocated’ will be displayed and
the ‘Shortcut Key Allocation’ button will not be activated
b. Press the shortcut key A or [Allocation] button.
c. Press the [Exit] button.
2-15
XG5000 User’s Manual
[Dialog Box]
a
b
c
Items Descriptions
Show ScreenTips on Displays tool-tips when the mouse pointer stays on the
toolbars(a) toolbar.
Show shortcut keys in Displays the shortcut key when the mouse pointer stays on
ScreenTips (b) the toolbar.
2-16
Chapter 2 Using XG5000 Software
If you put the mouse on the tool executing ‘Undo’, you can see the tool tip, ‘Undo (Ctrl+Z)’ will pop
up.
[Example of Large icon]
a b c d e f g
2-17
XG5000 User’s Manual
2-18
Chapter 2 Using XG5000 Software
3) Auto-Hide Mode:
Click the targeted docking window title with the right mouse button to select the menu [Auto-Hide]
or if you press the tack-shaped button in the docking window as below for ‘Hide’ mode, the window
will automatically disappear.
a d
b e
2-19
XG5000 User’s Manual
2-20
Chapter 2 Using XG5000 Software
Notes
- The integrated project file’s extension is“.xgwx”.
- The PLC programming project file’s extension is“.xgpx”.
- The network setup project file’s extension is“.xfgx”.
- If you select the project file in the opening dialog box, you can see the project comment in
the comment area.
Notes
- The mark “*” displayed to the right of the project name on the project window means that the
present project has been edited.
2-21
XG5000 User’s Manual
These functions are available in LD, IL, Variable/Comment, Variable Monitor and Project Window.
Variable/Comment and Excel can share the edited details with each other.
2.5.1 Cut-Paste
It is used to select blocks to move to other places.
[Steps]
1. [Cut]-[Paste] menu is used to move the data of the selected area to a new position to paste the
data on. The example of [Cut]-[Paste] on the Variable/Comment Window is as follows:
2-22
Chapter 2 Using XG5000 Software
2-23
XG5000 User’s Manual
2-24
Chapter 2 Using XG5000 Software
The figure above shows the [Drag and Drop] result of the line selected in an instance.
2-25
XG5000 User’s Manual
The figure above shows the [Drag and Drop] result of the area selected between two instances.
2-26
Chapter 2 Using XG5000 Software
Notes
- Cut, Copy and Paste are also available through the mouse context menu of the edit window.
- Copy and Paste in Variable/Comment or LD/IL Edit needs to be surely confirmed by the user
even if the program inspects its duplication.
- If Cut, Copy or Paste is executed where it is unavailable, the program will not reply thereto.
- Cut, Copy or Paste between different areas may cause a serious program error.
- No automatic conversion function is provided for Cut, Copy or Paste executed onto the place
with different data type. Accordingly the user needs to check the area pasted.
2-27
XG5000 User’s Manual
This function is used to magnify or reduce the Edit Window in a specific rate.
The applicable magnification rate changes by minimum 5% within the range of 50% ~ 200%.
[Steps]
1. Select [View]-[Zoom In] or [View]-[Zoom Out] on the menu as necessary. Or use the combo box
to select or input a desired magnification rate. Or together with Ctrl being pressed, use the mouse
wheel to adjust the rate. The two figures below show the examples of 50% and 200% magnified
screens.
2-28
Chapter 2 Using XG5000 Software
2-29
XG5000 User’s Manual
2.7 Options
[Dialog Box]
b
a
a. Category: XG5000 options applied to entire program and operations applied according to
language are classified as tree type
b. Setting contents: If you select category, applicable contents are displayed
c. Common button: Common button applied to all categories no matter which category is selected
Reset category button is used to reset all options
2-30
Chapter 2 Using XG5000 Software
[Steps]
1. Select [Tools]-[Options]
2. Select XG5000 in option dialog box
[Dialog box] a b
e
f
2-31
XG5000 User’s Manual
d
e
2-32
Chapter 2 Using XG5000 Software
[Steps]
[Dialog Box] a b
2-33
XG5000 User’s Manual
[Steps]
[Dialog Box]
b
c
2-34
Chapter 2 Using XG5000 Software
Unsigned Decimal
Signed Decimal
Hexadecimal
As instruction
b. View connection setting when connecting: used to display the specified details of the
connection with PLC automatically when connected. If the option [View connection settings
when connecting] is selected, the following Dialog Box will appear whenever PLC is
connected with.
c. Show Message when changing the PLC mode: When changing the PLC mode, displays
conversion message automatically.
2-35
XG5000 User’s Manual
When changing from Stop mode to Run mode, the following message shows.
When changing from Run mode to Stop mode, the following message shows
2.7.6 LD option
You can change text and column width of LD editor
[Steps]
2-36
Chapter 2 Using XG5000 Software
[Dialog box]
2-37
XG5000 User’s Manual
[Steps]
1. Select [Tools]-[Option]
2. After selecting [Font/Color] in LD category, specifies font/color
[Dialog box] a b
2-38
Chapter 2 Using XG5000 Software
[Steps]
1. Select [Tools]-[Option]
2. Select SFC category
[Dialog box]
a
b
c
d
e
f
h g
2-39
XG5000 User’s Manual
Note
- Range of step column width is 20~200.
- Range of action column width is 70~400.
[Steps]
1. Select [Tools]-[Option]
2. After changing [Font/Color] in SFC category, specified font/color
[Dialog box] a b
c
d
2-40
Chapter 2 Using XG5000 Software
2.7.10 ST option
Options used in editing ST program.
[Steps]
1. Select [Tools]-[Option].
2. Select ST category
[Dialog box]
a
b
c
e
f
g
2-41
XG5000 User’s Manual
2.7.11 ST Font/Color
You can change Font/Color used in ST Editor.
[Steps]
[Dialog box] a b
c
d
2-42
Chapter 3 Project
Chapter 3 Project
[Dialog Box]
a
b
c
d
e
f
g
h
i
j
k
l
m
n o
p q
3-1
XG5000 User’s Manual
Notes
- Several PLCs can be included in one project. In this way, with several PLC included in one project its
management will be convenient, and monitoring several PLCs will be also available through
simultaneous connection to several PLCs with one running XG5000.
3-2
Chapter 3 Project
It is used to create a new project. At this moment, a folder whose name is identical to the project name will
be also created, where the project file will be created.
[Steps]
1. Select [Project]-[New Project] on the menu.
[Dialog Box]
b c
e h
3-3
XG5000 User’s Manual
Notes
- If you select auto-allocation, when declaring variable, you can’t allocate device. XG5000 allocates
device automatically
- Auto-allocation can be applied to only XGK series.
Notes
- Project File: If a new project is created, a folder whose name is identical to the project file name will be
created, where the project file will be created inside. The extension of “.xgwx” will be automatically
attached to the project file if not specified.
3-4
Chapter 3 Project
3-5
XG5000 User’s Manual
3-6
Chapter 3 Project
[Steps]
1. Select [Project]-[Open Project] on the menu.
[Dialog Box]
2. If Project File is selected, user defined comment will appear on the comment which will help the user
to select the project. If project file selected Click [Open].
It is used to read the project stored in PLC to make a new project. If the project is already open in XG5000,
this project will be closed to create a new project.
[Steps]
1. Select [Project]-[Open from PLC] on the menu.
3-7
XG5000 User’s Manual
[Dialog Box]
2. Select the object to connect to on the [Online Settings] and click [OK]. Refer to Connect Options in
Online for details on connection settings.
3. A new project will be created.
Notes
- The project read from PLC will be saved in PC through the menu [Project]-[Save Project].
Notes
- Select [Online]-[Read] to read the items of PLC and import to the presently Open Project.
[Steps]
1. Select [Project] - [Save Project] on the menu.
3-8
Chapter 3 Project
Notes
- If items of project are changed and needed to be saved, “*” will be displayed at the side of the project
name of the project window.
3.2.5 Save As
[Steps]
1. Select [Project]-[Save As] on the menu.
2. Input a new project file name and select a folder where project file will be saved and click [OK] button.
[Dialog Box]
3-9
XG5000 User’s Manual
[Procedures]
1. Open the integrated project from the PLC.
2. Select the PLC items of offline state to be read.
3-10
Chapter 3 Project
Note
- To read the selected items from the PLC normally, the following conditions should be met.
1) The PLC items in the project should be all Write-Enable.
2) It must be matched with the connected PLC model.
- In the event the information of the selected PLC items is not matched, you can reconfigure the PLC in
the following manner.
1) Delete the unread PLC items.
2) Add the same type of projects.
3) Connect to the PLC and read by using the menu [Online]-[Connection Setting] function.
4) Press [Apply] button in IO parameter to configure the basic network.
3-11
XG5000 User’s Manual
It is used to read KGLWIN project file in XG5000 to convert to XG5000 project. The list of the project
convertible items are as follows.
- Program (LD, IL)
- Variable/Comment
- Rung/Output comment
- Basic Parameters
- Monitor Variable
The list excluded items from conversion of the KGLWIN project file into XG5000 project is as follows.
- I/O Parameter
- High-speed link parameter.
- Inside the program (NOP instruction)
I/O Parameter is excluded from conversion since it has different PLC unit and different I/O type.
HS link parameter is excluded from conversion since the process of the HS link in XGT is different from that
of Master-K series PLC. And HS link-related instruction is also excluded from conversion of project.
[Steps]
1. Select [Project] - [Open KGLWIN File] on the menu.
2. Select the folder where KGLWIN project to open is stored in and select KGLWIN project file to convert to
XG5000 project.
3-12
Chapter 3 Project
4. Input Project name, PLC type, etc. and then click [OK]. Then XG5000 will convert KGLWIN file into
XG5000 project. If any error occurs while the file is converted, it will be displayed on the result window.
Refer to the next chapter for details on errors.
3-13
XG5000 User’s Manual
1) Device/Memory Area
KGLWIN Project and XG5000 Project are different from each other in device type and memory area.
Since XG5000 can use all the devices KGLWIN uses, and its memory area larger than that of KGLWIN, it
brings the exact details of KGLWIN when converted. However, the user may need to modify the details
for effective application of the memory area, refer to XG5000 memory or using the device function used.
3) Rung/Line comment
Rung comment and Line comment will be converted 1 to 1. However, since the step number can be
changed while KGLWIN project is converted to XG5000 project, the location of Rung or Line comment in
KGLWIN may be different from the location in XG5000.
4) Basic Parameters
Basic Parameters of KGLWIN Project will be converted to XG5000 Project only in common area based
on the PLC unit.
Example: If K1000S is converted to XGK-CPUH, latch area, timer limit, watch-dog timer, PLC
operation mode, etc. will be converted.
5) Program Converted
If any error occurs on KGLWIN project file, a warning message will appear.
3-14
Chapter 3 Project
Notes
- If any error occurs on LD logic, LD logic may not be converted exactly. Let the error all cleared if
possible and then start to convert.
Application instructions used in Master-K series PLC are somewhat different from those used in XG5000.
Some exceptions generated when converting Application instructions of other programs are as follows.
Instruction MK series
CTUD
XGK series
The display format of CTUD has been changed among counter instructions. In front of
UP/DOWN counter instruction, CTUD, always ON flag, F99, must be located. Three output
coils must be created with M area’s remnant addresses which will be used Up/Down, trigger
and counter reset signals, respectively. Information on M area memory used will be
displayed on the result window of XG5000. The user should be careful not to use the area
used by XG5000.
Instructions MK series
CTU,
CTD,
CTR
XGK series
3-15
XG5000 User’s Manual
The display format of the instructions above has been changed. D/D NOT instructions are
displayed in –(P)- / -(N)- respectively, and SET/RESET instructions in -(S)- / -(R)-
respectively with the identical operation.
The changed details of the instructions above are displayed on the XG5000’s output window
as “Changed Information: Instruction Name Changed”.
Instructions MK series
(D)ROR(P)
(D)ROL(P)
(D)RCL(P) XGK series
(D)RCR(P)
The number of operands of the instructions above has been changed to 2 due to the
extended function in XG5000. Since these instructions are used to rotate by 1 bit in a word or
double word in KGLWIN, the instructions will fill the default with 1 of the second operand
when converted to XG5000 project. The operation is identical with operation in KGLWIN.
There will not any result message for conversion.
Move MK series
instruction
SR
3-16
Chapter 3 Project
The SR instructions will be displayed with 4 separate lines. At this moment also, Two output
coils must be created with M area’s remnant addresses which will be used for input and
direction signals. And BRST instruction must be added to reset the data.
Diverge MK series
instructions
JMP,JME
XGK series
While a figure is used for the label for JMP, JME instruction in KGLWIN, XG5000 uses the
String for label. To specify this, XG5000 converts KGLWIN factor of figure to String with
“LABEL_” attached in front for the figure.
The result window messages of the instructions converted are as follows.
JME – Displayed as “Label” in XG5000. Since the instruction name is LABEL internally,
“Changed Information: Instruction Name Changed” will be displayed
JMP – No Changed Information will be displayed on the result window of XG5000.
Diverge MK series
instructions
CALL,SBRT
3-17
XG5000 User’s Manual
CALL and SBRT also use the String factor like JMP and LABEL, and the conversion results
are also identical.
Instructions MK series
unavailable
in XGK
FILR
FILW
XGK series
The instructions are not available in XG5000. So, These instructions will be displayed in
ERR block as shown above with the Changed Information “Error” displayed on the result
window of SG5000. The Changed Information of the instructions above displays on the
result window “Error: Error Information is included in KGLWIN File.”
Bit MK series
Instructions
BSET, BLD,
BRST,
BLDN,
BAND, XGK series
BANDN,
BOR,
BORN,
BOUT
The instructions above are classified into application instruction with two operands in
KGLWIN, but bit instruction in XG5000. The display will be changed to bit instructions.
Changed Information of the instructions above displays on the result window “Changed
Information: Instruction Name Changed.”
3-18
Chapter 3 Project
The instructions listed in the table below will be changed to other instructions. Because the basic data type of
operands are changed from unsigned integer to signed integer. U which located the last of instructions
means unsigned integer and S means signed integer. The message “Changed Information: Instruction Name
Changed” will be displayed on the result window.
3-19
XG5000 User’s Manual
The instructions listed in the table below will be deleted when KGLWIN project is converted to XG5000
project. The message “Error: Instruction Deleted” will be displayed on the result window of XG5000.
3-20
Chapter 3 Project
Notes
- It is necessary to confirm the flag used in the program.
The message “Changed Information: Flag Purpose Changed” will be displayed on the result window
if there is more than one changed flag in the converted project.
3-21
XG5000 User’s Manual
The conversion result is displayed on the result window as shown below along with the step number in the
original project file and the step number in the converted XG5000 file for the user to double-click the mouse
on the list of the result window to go to the applicable location.
Information Flag address changed The flag name is changed even with the identical function.
Messages Description
Instruction Name Changed The instruction name is changed even with the identical function.
Flag address changed The flag name is changed even with the identical function.
Instruction Properties Changed: The operand of the diverge instructions JME, JMP, CALL, etc. changed
Instruction Properties Changed: The display of the instructions CTD, CTUD, SR, etc. by 2~4 lines block
Instruction Properties Changed: Due to extended function such as ROR and ROL, the number of operands
Instruction Properties Changed: Applicable to BLD, BSET, etc. among application instructions, basic
Error Information in KGLWIN File Error information is included in the KGLWIN project file.
Instruction Deleted Once used in KGLWIN but deleted from XG5000. Displayed as ERR
instruction in LD.
3-22
Chapter 3 Project
Step number for KGLWIN and XG5000 is displayed to make easy to find the location applicable to each
message. Select [Find/Replace]-[Go To]-[Step] on the menu to confirm the details.
Notes
After the Project conversion, surely confirm or change the following items.
- If application instruction is on ERR in XG5000.
- If any error occurs on KGLWIN LD program
- If the flag is used
- Converted details of the basic parameter
If any error occurs on KGLWIN project file or the file is incomplete, surely correct it so to download
onto PLC for its application.
3-23
XG5000 User’s Manual
PLC, task and program can be inserted into the project additionally.
1) Add PLC
[Steps]
1. On the project window, select the Project Item.
3-24
Chapter 3 Project
3. Input PLC name, PLC type and PLC Description, and then click [OK] to create a new PLC as shown below.
Notes
- PLC is kind of a project as in previous KGLWIN. XG5000 allows the user to specify the project as a
unit of PLC and include several projects (PLC) in one project to manage conveniently.
2) Add Task
Notes
- Refer to XGK CPU manual for more information on the operation and the details of the task.
3-25
XG5000 User’s Manual
[Steps]
1. On the project window, select the PLC Item.
3-26
Chapter 3 Project
[Dialog Box]
f g
3-27
XG5000 User’s Manual
Notes
- Execution condition may be different according to the PLC type.
- Initialization: It is the task to be executed when PLC mode is converted from Stop to Run. It will be
executed till the _INIT_DONE (F10250) Flag is ON. And while the initialization task is executed, the
programs (including the Scan Program) which belong to other task will not be executed.
- Fixed Cycle: The task will be executed at an interval of specified time. The time shall be input in ms unit.
- External contact point: The task will be executed if specified external contact point is ON. Applicable
external device shall be input.
Example) P00016
- Internal device: The task will be executed based on the status of internal device. The setup item will be
different according to the type of internal device.
e. Internal device execution condition: setting items are different according to the type of internal device.
f. Device: used to input the device name which will be used as the start condition of task program. Input
BIT or WORD device according to the condition to execute task program.
g. Word device start condition: The start condition shall be specified if WORD type of the internal device
start condition is selected.
h. Bit device start condition: The start condition shall be specified if BIT type of the internal device start
condition is selected.
3-28
Chapter 3 Project
3. Input Task name, Priority, Task Number and Execution Condition, and then click [OK] to create a new Task
as shown below.
3) Add Program
[Steps]
1. On the project window, select the Program Location to add.
The program can be added to Scan Program or Task Item.
3-29
XG5000 User’s Manual
3. Input Program name and Program Description, and then click [OK].
3-30
Chapter 3 Project
4) Add Function
Function can be added only if XGK series support auto-allocation.
[Steps]
1. Select the position of the function blocks to be added in the project window.
3-31
XG5000 User’s Manual
3. After inputting name, language, use of EN/ENO, return data type, the number of width columns, comment,
then, press OK button.
[Steps]
1. Select the position of the function blocks to be added in the project window.
3-32
Chapter 3 Project
3. After inputting name, language, use of EN/ENO, return data type, the number of width columns, comment,
then, press OK button.
3-33
XG5000 User’s Manual
The following items can be saved as separate item files and replaced by saved item file.
Item File Extension
PLC cfg
Variable/Comment cmt
I/O Parameter iop
Basic Parameter bsp
Program prg
Import function is inserting project items such as PLC, program and parameters from saved item files. When
import function for an item is executed, the item of currently opened project will be replaced by imported item
file.
Notes
- Since Variable/Comment, Basic Parameters and I/O Parameters are overwritten on the existing items,
the content of the existing item will be erased.
1) PLC
[Steps]
1. On the project window, select the Project Item.
3-34
Chapter 3 Project
2) Variable/Comment
[Steps]
1. On the project window, select the PLC Item.
3) I/O Parameter
[Steps]
1. On the project window, select the PLC Item.
3-35
XG5000 User’s Manual
4) Basic Parameter
[Steps]
1. On the project window, select the PLC Item.
3-36
Chapter 3 Project
5) Program
[Steps]
1. On the project window, select the Program Location to add.
The program can be added to Scan Program or Task Item.
3-37
XG5000 User’s Manual
1) PLC
[Steps]
1. On the project window, select the PLC Item.
2) Variable/Comment
[Steps]
1. On the project window, select the Variable/Comment Item.
2. Select [Project] - [Export to File]-[Variable/Comment] on the menu.
3. Input the file name, and then click [OK].
3) I/O Parameters
[Steps]
1. On the project window, select the I/O Parameter Item.
2. Select [Project] - [Export to File] - [I/O Parameter] on the menu.
3. Input the file name, and then click [OK].
3-38
Chapter 3 Project
4) Basic Parameters
[Steps]
1. On the project window, select the Basic Parameter Item.
2. Select [Project] - [Export to File] - [Basic Parameter] on the menu.
3. Input the file name, and then click [OK].
5) Program
[Steps]
1. On the project window, select the Program Item.
2. Select [Project] - [Export to File] - [Program] on the menu.
3. Input the file name, and then click [OK].
Notes
- Items can be easily copied or moved between the projects with Drag and Drop function.
- Drag/drop and copy/paste functions are available between projects, when two instances of XG5000
are running.
1) Project properties
[Steps]
1. On the project window, select the Project Item.
3-39
XG5000 User’s Manual
[Dialog Box]
2) PLC Properties
[Steps]
1. On the project window, select the PLC Item.
2. Select [View] - [Properties] on the menu.
3. After the change, click [OK].
3-40
Chapter 3 Project
3) Task Properties
[Steps]
1. On the project window, select the Task Item.
2. Select [View] - [Properties] on the menu.
3. After the change, click [OK].
Scan and Task program will be executed from the top to bottom.
Therefore, the program order can be changed to change the execution sequence of the program.
The data memory added to the project can be used for the following purposes. First, apply data values set
offline with project. Second, read the memory values stored in the PLC and monitor them offline to identify
problems with the program.
1) Readable area - All memory areas supported by the PLC (including the same flag area as the F area)
2) Writable area - M, W (IEC), P, M, L, K, D, ZR, Z (XGK). However, it will be cleared to 0 in the area where
the retain (XGK latch) is not set. (Except W and ZR)
3-41
XG5000 User’s Manual
Note
Depending on the PLC series, the type of memory supported may be different. Refer to the help of the
selected PLC for the type and characteristics of the PLC memory.
1) Adding memory
The ability to add items to memory while offline. There is no data area limitation for adding memory. However,
some areas can not be written.
[Steps]
1) Select the PLC item in the XG5000 project tree.
2) Press the right mouse button to select the menu [Add item] - [Data memory].
3-42
Chapter 3 Project
[Dialog Box]
b
c
a. Memory - Displays the memory area that can be added to the current PLC item. Memory areas already
added to the project are not displayed.
b. OK - Adds the selected memory area and closes the dialog box.
c. Cancel - closes the dialog box.
2) Deletion of memory
Deletes the memory area added to the project.
[Steps]
1. Select the memory item to delete.
2. Select menu [Delete] item.
3-43
XG5000 User’s Manual
3) Edit memory
4) Offline Monitoring
Offline monitoring is a function to monitor program or variable value using data memory without being
connected with PLC. Off-line monitoring uses the registered data memory to display the value. If the
data memory is not added to the project, 0 is monitored as the value. Also, the current value change
function does not work.
3-44
Chapter 3 Project
The changed value is monitored. However, unlike actual PLC, logic is not executed.
5) Reading memory
This function reads the PLC data memory. When reading, all data memory areas of the PLC can be read.
[Steps]
1. Select menu [Online] - [Read] item.
2. In the Read dialog box, select the [Data memory] item, and then click the [Settting] button.
3-45
XG5000 User’s Manual
b
a c
d
e
[Dialog Box]
a. Memory area - Displays the memory area selectable in the current PLC.
b. Select All - Selects all memory items.
c. Reset All - cancels the selection.
d. OK - Save your changes and close the dialog box.
e. Cancel - closes the dialog box.
3. Select the memory area to read and press the [OK] button.
4. Select the [Data memory] area and click the [OK] button.
Note
When the memory is read, the data is read across multiple scans. Therefore, in the case of data that
changes quickly, the data may be inconsistent.
Information about the selected data memory is not stored in the PLC. Therefore, when opening from the PLC,
the data memory area that was previously written is not read. When opening from PLC, select item to read
from XG5000 menu [Tools] - [Option] Read from PLC.
3-46
Chapter 3 Project
[Steps]
a. Select [Tools] - [Options] on the menu.
b. Select the [Online] item in the dialog box.
c. Select the [Show selection dialog when executing Open from PLC] item and click the [OK] button.
6) Memory write
The data memory set in the project is written to the PLC. The data memory is writable regardless of
the run or stop mode.
3-47
XG5000 User’s Manual
[Steps]
a. Select the menu [Online] - [Write].
b. In the Write dialog box, select [Data memory], and then click the [Setting] button.
b
a
c
d
e
[Dialog Box]
a. Memory area - The memory area that can be written in the current PLC is displayed.
b. Select All - Selects all memory items.
c. Reset All - cancels the selection.
d. OK - Save your changes and close the dialog box.
e. Cancel - closes the dialog box.
3-48
Chapter 3 Project
Note
Memory area write is applicable only memory that can set retain (XGK latch). If the selected memory
is not set to retain (XGK latch), it is reset to 0 when entering PLC RUN.
3-49
XG5000 User’s Manual
Two projects can be compared with each other based on respective item. Compare result will be displayed
on the Result window.
[Steps]
1. Select [Project]-[Compare Projects] on the menu.
2. On the [Compare Projects], Click [Open Project].
3. Select the project files to compare with.
3-50
Chapter 3 Project
4. Select the items to compare with. At this moment, the selected items of both projects must be identical.
3-51
XG5000 User’s Manual
5. Click [Compare].
6. Compare result will be displayed on the Result window.
3-52
Chapter 3 Project
Password for project file can be setup. This function prevents other users from opening the project file . This
project file password has nothing to do with the password of PLC.
Notes
Password is available in Korean and English, however with the capital/small letters sorted out in English.
Up to 8 characters of password is available.
- Be careful! If the password is forgotten, the Project File can not be opened.
3-53
XG5000 User’s Manual
3-54
Chapter 3 Project
3-55
XG5000 User’s Manual
3-56
Chapter 3 Project
[Steps]
1. In the project window, select [Network Configuration] and then, select [Add Item]-[Network].
2. In the screen to add networks, enter the [Name] and select [Network Type].
3-57
XG5000 User’s Manual
3-58
Chapter 3 Project
4. If you click [Apply] button, the set communication module will be added under [Network configuration]-
[Basic Network] of the project.
5. Select [Network Configuration]-[Network Name] in the project window and then, select [Add Item]-
[Communication Module].
3-59
XG5000 User’s Manual
[Dialog Box]
c d e f
3-60
Chapter 3 Project
6. If you select the communication module and press [OK] button, you can see the following project window.
7. Double-click the communication module in the project window and enter the basic setup items.
3-61
XG5000 User’s Manual
2. Click on the right mouse button and select the items to be deleted.
3. If you want to delete the subcategory of the selected network, press [Yes] button
Notes
- If you do not delete the sub-network when deleting the selected network, it will be changed into the
basic one.
3-62
Chapter 3 Project
[Steps]
1. Select the communication module to be deleted.
2. Click on the right mouse button and select the items to be deleted.
3-63
XG5000 User’s Manual
3. If you want to delete the module, press [Yes] button; if you want to move to the basic network, press [No]
button.
4. If you want to delete the communication module, you can choose whether including high-speed link, (if
there are P2P items), the relevant data.
Notes
- In the event you choose to maintain P2P and high-speed link data, you can see the details in high-
speed link, P2P view.
- In the event the communication module is deleted in the project tree, the module names will be
displayed as network names in high-speed link, P2P view.
In the event the communication module is added again in the network configuration and the relevant
module type is matched, the model name will be displayed instead of network name
3-64
Chapter 3 Project
1) Add P2P
1. Select the communication module item, [XGL-EFMT] in the project window and then, select [Add Items]-
[P2P Communication].
2. After numbering, click [OK] button and the P2P items will be added as below.
Notes
- In the event you doubly add other communication module P2Ps to the P2P number allocated to the
existing communication module, the existing communication module information will be deleted and
the P2P items of the newly declared communication module will be allocated.
3-65
XG5000 User’s Manual
2) Deletion of P2P
1. Select the P2P item in the project window and press [Delete] button.
3-66
Chapter 3 Project
3) Edition of P2P
1. Select the P2P items in the project window and then, select [Properties].
3-67
XG5000 User’s Manual
3-68
Chapter 3 Project
2. After numbering, click [OK] button and the high-speed link(HSLink 01) items will be added as below.
Notes
- In the event you doubly add other communication modules’ high-speed links to the high-speed link
number allocated to the existing communication module, the existing communication module
information will be deleted and the high-speed link items of the newly declared communication module
will be allocated.
3-69
XG5000 User’s Manual
2. Press [OK] button in the dialog box to confirm deletion of the high-speed link.
3-70
Chapter 3 Project
2. Select the index to be changed in the dialog box to set up the high-speed link communication module.
3-71
XG5000 User’s Manual
3. Press [OK] button in the dialog box to set up the high-speed link communication module.
3-72
Chapter 4 Variable/Comment
Chapter 4 Variable/Comment
The user normally uses the devices directly in the program. As a rule, the user needs to know what the
devices are used for in the program. A simple method is to input the Comment in the device. The better
method is to specify a variable in the device and use the variable in the place the device is used. In XG5000,
just one of the comment and the variable, or both of them can be specified in the device. In addition, the
declared variable/comment can be used in all the programs.
4.1 Variable/Comment
4-1
XG5000 User’s Manual
It is used to display the list of the Variables/Comments declared from the device input with its type changed.
[Dialog Box]
b
a
Note
A portion of F, L and K device is Read Only device. The color of the background will be displayed in
gray, and the cell can not be edited.
4-2
Chapter 4 Variable/Comment
[Dialog Box]
a b c d
4-3
XG5000 User’s Manual
d. Block index: This will be active only for High Speed link and P2P flag. Only the flag item of the input block
index will be displayed. (Example. If Block index 120 is input, it will be as shown below.)
Notes
- View Flag can not declared since the flags are Read Only variables.
4-4
Chapter 4 Variable/Comment
On the list of the presently declared variables/Comments, Variable, Type, Device and Comment item can be
edited. In addition, a new variable can be added to the list of the variables/comments to use in the program.
This is used to register the variable/comment to use in the program. In order to register on the list of variables/
comments, go through View Variable or View Device as well.
A variable can be added on, changed or deleted from the list of variables/comments.
[Dialog Box]
a b c d
4-5
XG5000 User’s Manual
Notes
- If any error occurs during the cell edit, it will be impossible to move to the next cell.
- Press ESC key to recover the previous value during the cell edit.
4-6
Chapter 4 Variable/Comment
A variable can be added on, changed or deleted from the list of variables/comments.
[Dialog Box] a b
4-7
XG5000 User’s Manual
1) Copy
It is used to save the data of the area selected to copy in the clipboard. The copied details can be added to
the present project or other projects. Paste on other applications is also available.
[Steps]
1. Select the area to copy.
2. Select [Edit] - [Copy] on the menu.
Notes
- How to select the area is as follows;
- Use the mouse to select the cell of (0,0) in order to select the whole table
- Select [Edit] - [Select All] in order to select the whole table.
- Use the mouse to select the column header of the cell in order to select the whole columns.
- Use the mouse to select the row header of the cell in order to select the whole rows.
- Use the mouse to drag the part of the cell in order to select the area.
- Use Shift + Arrow keys on the keyboard in order to select the area.
2) Delete
It is used to delete the data of the selected area from the list of variables/comments.
[Steps]
1. Select the area to delete.
2. Select [Edit] - [Delete] on the menu.
Notes
- View Flag can not be edited exclusively for Read.
3) Cut
It is used to save the selected data in the clipboard in order to add to the present project or other projects.
Besides, it will delete the selected data.
[Steps]
1. Select the area to cut.
2. Select [Edit]-[Cut] on the menu.
4-8
Chapter 4 Variable/Comment
4) Paste
It displays the data saved in the clipboard on the selected position. If the data is already displayed, the Dialog
Box will be called to select and change the data.
[Dialog Box]
a b
e
f
c g
h
d
4-9
XG5000 User’s Manual
e. OK: applies the lines of the selected check box. The existing list of variables/comments will be deleted to
add a new list of variables/comments.
f. Cancel: The existing list of variables/comments will not be deleted, and a new the list of variables/
comments will not be applied accordingly.
g. Select All: used to check all the check boxes in the [Replace] column.
h. Reset: used to cancel all the selected check boxes in the [Replace] column.
[Dialog Box]
a b
e
d
f
4-10
Chapter 4 Variable/Comment
Notes
- If all items are identical, the cell cannot be edited, while if partially identical, the cell can be edited.
- If the number of the columns saved in the clipboard is greater than the number of the columns to
paste, it is not possible to paste.
- If the data saved in the clipboard is greater than the number of the lines to paste, it is not possible to
paste.
- Paste in View Device will regard the data saved in the clipboard as the partial columns.
- Paste is not available in View Flag but in other Excel program.
It is used to insert new lines as many as the lines of the selected area, which will make the existing lines
move downward.
[Steps]
1. Select the area to insert the lines into.
2. Select [Edit] - [Insert Line] on the menu.
4-11
XG5000 User’s Manual
Notes
- If no cell is selected, one cell will be added to the last line.
- If Enter key or Tab key is selected at the last of the lines, a new line will be created.
- It is available only in View Variable.
4-12
Chapter 4 Variable/Comment
It is used to delete the lines as many as the lines of the selected area.
[Steps]
1. Select the area to delete the lines from.
2. Select [Edit] - [Delete Line] on the menu.
Notes
- If no cell is selected, [Delete Line] will not be executed.
- It is available only in View Variable.
4-13
XG5000 User’s Manual
[Details]
a. Variable: Since the variable can not be declared as duplicated, the Automatic Fill shall be always
executed. The case with figures will be found to increase the figures automatically. If there is no figures in
the variable, 1 is added at the end of firstly copied variable, and the number will be increased
automatically.
b. Type: The cell will be filled with the value in copied type. If the device and the type are not identical, the
device will change to conform to the type. If identical, the device will not change.
c. Device: Since the device can not be declared as duplicated, the Automatic Fill shall be always executed.
The case with figures will be found to increase the figures automatically. If the device and the type are not
identical, the type will change to conform to the device.
d. Comment: If Automatic Fill is executed with Ctrl key being pressed, the figures area will automatically
increase, and if with Ctrl key not pressed, it will be copied.
4-14
Chapter 4 Variable/Comment
Notes
- If Automatic Fill is executed with an empty cell, it will be deleted.
- Automatic Fill is available for many cells.
- It is available only in View Variable and View Device.
[Steps]
1. Select the area to drag and drop.
2. The mouse cursor will change to the state available for drag and drop.
3. With the left mouse button being pressed, drag and drop the selected items onto a position to paste on.
4-15
XG5000 User’s Manual
[Details]
a. Drag and drop is available onto Variable Monitoring Window.
b. Drag and drop is available onto LD Window.
c. Copy is available when drag and drop is executed onto Excel program.
d. Drag and drop is available onto Data Traces window.
e. Drag and drop is available onto View Variable of other XG5000 programs.
f. Drag and drop is available onto View Device of other XG5000 programs.
Notes
- Data is not moved but just copied always when dragged and dropped.
- Paste is not available in View Flag.
4.2.7 Undo/Redo
Undo is used to cancel the edited detail in order to return to its previous state. Redo cancels again the
operation of Edit Cancel.
[Details]
1. Undo/Redo is available for Cell Edit.
2. Undo/Redo is available for Change.
3. Undo/Redo is available for All Change.
4. Undo/Redo is available for Delete.
5. Undo/Redo is available for Cut.
6. Undo/Redo is available for Paste.
7. Undo/Redo is available for Automatic Fill.
8. Undo/Redo is available for Insert Line. (Only in View Variable)
9. Undo/Redo is available for Delete Line. (Only in View Variable)
10. Undo/Redo is available for drag and drop.
11. Undo/Redo is available for Align. (Only in View Variable)
4-16
Chapter 4 Variable/Comment
Notes
- In View Variable, if the data is moved to other windows or a variable is added in LD and IL, all the
information for Undo/Redo will disappear.
- In View Device, if the device item changes, all the information for Undo/Redo will disappear.
- It is not used in View Flag.
[Steps]
1. Select [Edit] - [Export to File] on the menu.
4-17
XG5000 User’s Manual
Notes
- It is available only in View Variable.
It is used to register variables of the respective module by referring to the special module information specified
in I/O parameter. The user can modify the variable and the comment.
[Steps]
1. Set the special module on the slot in I/O parameter.
4-18
Chapter 4 Variable/Comment
4-19
XG5000 User’s Manual
Notes
- Delete all the existing information of the U devices to add on the list of variables/comments referring to
the presently specified I/O parameter.
It is the function to add the variables allocated from the XG-CANOpen tool to XG5000.
4-20
Chapter 4 Variable/Comment
2. Then, the CANOpen module items will be created in the project window.
4-21
XG5000 User’s Manual
5. After setting up the device for diagnosis variable items in the PLC area, press ‘Apply’ button.
6. The allocated variable list will be displayed in the diagnosis variable table.
4-22
Chapter 4 Variable/Comment
4-23
XG5000 User’s Manual
4.2.11 Preview
This function is used to previously show the screen which will be printed.
[Steps]
1. The window to previously show shall be displayed on the screen.
2. Select [Project]-[Preview] on the menu.
4-24
Chapter 4 Variable/Comment
Notes
- By changing the size of the column, the window previously displayed on the screen can be adjusted.
- In View Device, all the areas of the specified type will be displayed on the Previous View screen.
- In View Variable, incomplete variables displayed on the present screen will be also displayed on the
Preview screen.
4-25
XG5000 User’s Manual
4.2.12 Print
It is used to print the window displayed on the screen in View Variable, View Device and View Flag.
[Steps]
1. The window to print shall be displayed on the screen.
2. Select [Project]-[Print] on the menu.
Notes
- By changing the size of the column, the details to be printed on paper can be adjusted.
- In View Device, all the areas of the specified type will be printed.
- In View Variable, incomplete variables displayed on the present screen will be also printed.
1) Align
- Double-click the column header to align in the descending sequence and in the ascending sequence.
- Presently aligned positions are displayed with the arrow direction.
Notes
- It is available only in View Variable and View Flag.
- If the View mode changes to View Variable, types and devices will be aligned to display.
2) View
- Screen Zoom-In: shows the screen magnified.
- Select [View]-[Zoom-In] on the menu.
- Screen Zoom-Out: shows the screen reduced.
- Select [View]-[Zoom-Out] on the menu.
- Use of Combo Box for screen Zoom-In/Zoom-Out.
4-26
Chapter 4 Variable/Comment
3) Shortcut Keys
Shortcut Keys Comment
Home Used to move to the first in the cell.
End Used to move to the end in the cell.
Ctrl + Home Used to move to the first cell position.
Ctrl + End Used to move to the last cell position.
Shift + Ctrl + Home From the present to the highest cells selected.
Shift + Ctrl + End From the present to the lowest cells selected.
Shift + Page Up From the cell to the page up position selected.
Shift + Page Down From the cell to the page down position selected.
Shift + Tab, Used to move to the next cell (right->left, bottom->top), and to move to the last cell
Shift + Enter in the first cell.
Tab, Enter Used to move to the next cell (left->right, top->bottom). A new line will be created in
the last call.
Ctrl + Enter Multi-line will be input in the comment column.
4-27
XG5000 User’s Manual
3. You can see the variable is added to the window to set up EtherNet/IP variable.
4-28
Chapter 4 Variable/Comment
XG5000 is programming tool for PLC. In PLC program, factor and step consist of variable and device.
Variable and device need to be observed by external device. To be observed by external program, saves
variable and device as CSV file.
Flag and Variable/Comments can be saved
[Steps]
1. Select item to be saved in project window.
4-29
XG5000 User’s Manual
[Dialog box]
a b
d
e
4-30
Chapter 4 Variable/Comment
- Default file name is PLC name and you can change it.
- If you press ‘Cancel’, CSV file is not created and the window is closed
e. Cancel: CSV file is not created and the window is closed.
4-31
XG5000 User’s Manual
Note
- In case ‘ ” ’ is used in comment, it changes into ‘ $Q ’ in CSV file
- In case ‘ $ ’ is used in comment, it changes into “ $$ ” in CSV file
4-32
Chapter 4 Variable/Comment
In order to refer to the variable and device of PLC program in XG-PD, specifies as shown below
[Steps]
1. Saves CSV file at XG5000 to be used in XG-PD. CPU type of XG5000 and XG-PD should be same.
2. Select area to use external variable in High-speed Link Block and click on right button of mouse. Select
[Import variable name] in the created context menu
4-33
XG5000 User’s Manual
3. Click “File Open” and select file created by step 1. Then click on ‘Open’.
4-34
Chapter 4 Variable/Comment
4. If you select item in data item, the variable list shows. Select variable in variable list and click ‘OK’
5. In High-Speed Link window, Read area, variable, variable comment is shown as below
4-35
XG5000 User’s Manual
4-36
Chapter 4 Variable/Comment
[Dialog box]
Note
- Device is different according to CPU type.
- Background of read-only device is gray and shell can’t be edited
4-37
XG5000 User’s Manual
Registers global variable to be used in program. You can register global variable in Global Variable tap.
You can add, modify and delete global variable in Global Variable tap.
[Dialog box]
4-38
Chapter 4 Variable/Comment
Note
- When editing shell, if error occurs, it is displayed as pink color
- When editing shell, if you press ESC, previous value will be restored
- When Device Auto-allocation Parameter is not set, device is not allocated for automatic variable.
- If the device auto-allocation parameter changes, the device for automatic variable may change.
- Index device, #device, #index device can’t be used as automatic variable
4-39
XG5000 User’s Manual
Note
- In case of inputting device in ladder program, memory allocation for automatic variable is done except
already used device area
Ex) In case device auto-allocation area is D0~D100, if D0 is already been using in program,
when allocating automatic variable AA, D0 is not allocated for variable AA and D1 is allocated
- After allocating memory for automatic variable, if that device is used in program, that device changes
into variable. In case deleting automatic variable, variable in programs keeps its name and is
displayed as error format
Ex) In case device auto-allocation area is D0~D100, automatic variable AA is allocated to D0, if
you use D0 in program, it changed variable AA automatically.
- In case of changing area in device auto-allocation area and latch area of basic parameter, part
duplicated with previous area is kept and not duplicated part is changed into new area. In case area
is not included, sets N/A[Auto]. Program and variable window execute update.
Ex) 1) When device auto-allocation area is changed from D0~D100 into M0~M100, memory
allocation of variable AA which already is allocated D0, changes into M0.
2) When device auto-allocation area is changed from D0~D100 into D10~M100, memory
allocation of variable AA which already is allocated D10, doesn’t change.
3) When device auto-allocation area D0~D100 is deleted, memory allocation of variable AA
which already is allocated D0, changes into N/A[Auto].
4-40
Chapter 4 Variable/Comment
Registers local variable to be used in program. You can register local variable in Local Variable tap.
[Dialog box]
4-41
XG5000 User’s Manual
You can brings list made in Global Variable by adding EXTERNAL variable
[Steps]
1. Select [Edit]-[Add EXTERNAL variable]
2. Dialog box for selecting global variable shows.
3. If you input variable you want to find in Find Variable, then searches automatically.
4. If you select Global Variable Item, you can sort the global variable according to All, general variable,
special module related value.
5. Check the Application column for adding and click OK
4-42
Chapter 4 Variable/Comment
[Dialog box]
4-43
XG5000 User’s Manual
4-44
Chapter 4 Variable/Comment
It is displayed only when selecting the tool integration project. It shows the list of high-speed link of
communication modules and variables or devices used for setting up P2P.
a b c d e f g h i j k
a. Variable: Displayed when the variables are declared in the memory allocation.
b. Address: Displays the devices used in high-speed link and P2P windows.
c. Type: Displays the device types used in high-speed link and P2P windows.
d. The Number of types: Displays the number of types declared in high-speed link and P2P windows.
e. PLC Name/PLC Type: Displays the configuration name and CPU to which the high-speed link and P2P
windows belong.
f. Range: Displays the range of the declared variable.
-GLOBAL Variables declared by the device or variables registered to ‘Variable View’ tab of
Variable/Comment.
-FLAG: Declared by the flag variable or device; sub-items will be displayed depending on the flag type.
g. High-speed link: Ticked here when the variables or devices are used in the high-speed link window.
h. P2P: Ticked here when the variables or devices are used in the P2P window.
i. EIP: In case of applying Ethernet/IP module, ticked here when the variables or devices are used in the
P2P window.
j. Annotation: Displays the position information of used variables.
k. Comment: Displays the comment on the variables.
4-45
Chapter 5 LD Edit
Chapter 5 LD Edit
LD program displays the PLC program through graphic signals of coils or contact points used in the relay
logic diagram.
5.1 Limits
The input of LD Edit items shall be started after the input symbols are selected from the LD tool box and the
mouse clicked on the specified position or with applicable Shortcut Key pressed.
5-1
XG5000 User’s Manual
The following Shortcut Keys are related with the movement of the cursor. Applicable Shortcut Keys can not
be specified by users XG5000.
Notes
- Among Shortcut Keys in Edit Toolbox, ‘s’ stands for Shift key, ‘c’ for Ctrl key.
Example) Positive-conversion detection contact point: Shift + F1 → s + F1 → sF1
- The Shortcut Keys described in Edit Tool are based on the Shortcut Keys basically provided in XG5000.
- For setting details on the user defined Shortcut Keys, Refer to 2.4 Shortcut Setting in Chapter 2 Basic
Application.
5-2
Chapter 5 LD Edit
This is used to input the contact points (normally open contact, normally closed contact, positive-conversion
detection contact and negative-conversion detection contact).
[Steps]
1. Move the cursor to the location to input the contact point on.
2. On the tool box, select the type of the contact to input and then click the edit area. Or click the Shortcut
Key applicable to the contact to input.
3. After the device name is input on the Variable Input Dialog Box, click [OK]. Refer to 5.2.3 Variable/Device
Input for details on the Variable Input Dialog Box.
5-3
XG5000 User’s Manual
Notes
- Select [Tool]-[Option]-[Option Dialog Box] on the menu. If the Input mode is promptly released from the
LD/IL Edit page, the Variable Input Dialog Box will not be displayed.
- The basic operation of Enter key is to input identical kind of instruction used previous edit.
Example) If a normally open contact is input and entered in the previous edit, the normally open contact
input dialog box will be displayed when enter key is pressed.
Inputs OR contact point (Normally opened OR contact point, Normally closed OR contact point, Positive-
conversion detection OR contact point, Negative-conversion detection OR contact point)
[Steps]
1. Move the cursor where you want connect OR
5-4
Chapter 5 LD Edit
2. Select contact point kind at Toolbar and click editing area. Or press shortcut key corresponding to OR
contact point
3. Input device name at dialog box for variable input. For detail on dialog box for variable input, refer to 5.2.4
Note
- In duplicated mode, in case contact point is in cursor, OR connection does not operate
- In there is application instruction etc, vertical line is not inserted
5-5
XG5000 User’s Manual
[Dialog Box]
d e f b j k
l m
5-6
Chapter 5 LD Edit
a
b
5-7
XG5000 User’s Manual
Notes
- If the variable name is input on the Variable/Device Input Dialog Box, it will be automatically completed
based on the presently displayed Variable/Comment list. For example, if flag is monitored and ‘FA’ is
input, the address will be changed to F000A automatically. And if Variable/comment is displayed, and
‘FA’ is input, the software finds the variables whose the first two characters are F and A and converts
the variable automatically.
- It is unable to cancel or redo for edited Variable/Comment.
[Steps]
1.Move the cursor onto the location to connect to.
2. Select the Shortcut Key of Horizontal Line Input. Or select Horizontal Line on the tool box to select the
Edit area to input the Horizontal Line in.
[Steps]
1. Move the cursor onto the location to connect to.
5-8
Chapter 5 LD Edit
2. Select the Shortcut Key of Vertical Line Input. Or select Vertical Line on the tool box to select the Edit
area to input the Vertical Line in.
Notes
- The vertical line will be input downward to the left from the location of the present cursor.
It is used to input the coils (coil, reverse coil, positive-conversion detection coil and negative-conversion
detection coil).
[Steps]
1. Move the cursor to the location to input the coil on.
2. On the tool box, select the type of the coil to input and then click the edit area. Or click the Shortcut Key
applicable to the coil to input.
5-9
XG5000 User’s Manual
3. After the device name is input on the Variable Input Dialog Box, click [OK].
Notes
- If a coil and output related application instruction is input, a horizontal line will be automatically input to
connect with the left factor.
- In case there is duplicate coil, output to output module according to status of last coil.
[Steps]
1. Move the cursor to the location to input the application instruction on.
2. On the tool box, select the application instruction to input and then click the edit area. Or click the
Shortcut Key applicable to the application instruction input.
5-10
Chapter 5 LD Edit
[Dialog Box]
d
b
f g h
5-11
XG5000 User’s Manual
3. On the Application Instruction Input Dialog Box, input the application instruction, and then click [OK].
Notes
- Refer to XGK CPU manual for details on the application instructions.
- The following steps lead you to edit application instructions easily.
① Input application instruction.
② Variable/Device input dialog box will be displayed when Enter key is pressed.
③ Input the device on the Variable/Device input dialog box.
④ The Variable/Device name will be displayed when input is finished.
⑤ If the input operand is not the last operand for the instruction, the cursor will move to
the position to input next operand.
[Steps]
1. Move your cursor to the position to input the command applying extended functions.
2. Select the command applying extended functions and click the edition area. Otherwise, press the short
key to input the command applying extended functions.
5-12
Chapter 5 LD Edit
a
b
c e
f
g
h i
a. Name: Searches the names for the functions.
b. List: Displays the list for the functions.
c. Category: Displays the classification of the extended functions.
d. Function information: Displays the designated function’s information.
e. Function list: Displays the list of the extended functions.
f. Max. No. of input: Fixes the maximum input of the functions.
g. No. of input: Determines the number of inputs for the functions.
h. OK: Applies the input details and close the dialog box.
i. Cancel: Closes the dialog box.
After inputting the applied command in the dialog box to input the applied command, press OK button.
5-13
XG5000 User’s Manual
It is used to input the Rung and Output Comment. The comment displayed on the start position of Rung is
called [Rung Comment], and the comment for the output factor is called [Output Comment].
1) Rung Comment
[Steps]
1. Move the cursor to the location to input the rung comment on.
[Dialog Box]
Input the Comment and Label.
a c
b d
5-14
Chapter 5 LD Edit
3. If the Rung Comment Dialog Box is displayed, input the comment and click [OK].
[Dialog Box]
Input or edit the Rung Comment or the Output Comment.
b c
5-15
XG5000 User’s Manual
2) Output Comment
[Steps]
1. Move the cursor to the location to input the output comment on.
Notes
- The output comment will be available to input only when the output factor exists.
This is used to input the label to refer to from the application instruction of JMP.
[Steps]
1. Move the cursor to the location to input the label on.
5-16
Chapter 5 LD Edit
4. On the Label Dialog Box, input the label to add, and then click [OK].
[Dialog Box]
5-17
XG5000 User’s Manual
Notes
- Up to 16 characters in English is available for the label.
- Capital/Small letters are sorted out for the label. The first letter of the label can not be a figure or a
special character.
- Label Input rules shall conform to the Variable/Comment Input rules. Refer to 4.2.1 in Chapter 4 Variable/
Comment for details on the Variable/Comment Input rules.
[Steps]
1. Move the cursor to the location to insert the cell in.
Notes
- Cell Insert operates in rung unit.
5-18
Chapter 5 LD Edit
[Steps]
1. Move the cursor to the location to insert the line in.
Notes
- If Line Insert is executed, a new line will be inserted in the present cursor position.
- If an area is selected for Line Insert, new lines as many as the lines in the selected area will be
inserted.
5-19
XG5000 User’s Manual
It is used to delete the input contact point, coil, application instruction, line, rung/output comment and label.
[Steps]
1. Move the cursor to the location to delete the factor from.
2. Select [Edit] - [Delete].
It is used to delete the factors such as the input contact point and horizontal line to draw in the next cell.
[Steps]
1. Move the cursor to the location to delete the cell from.
5-20
Chapter 5 LD Edit
Notes
- Delete Cell operates in rung unit.
- If among the factors connected with OR, any other factor than the horizontal line is included in the
present cursor position, Delete Cell is unavailable.
[Steps]
1. Move the cursor onto the line to delete.
5-21
XG5000 User’s Manual
5.2.16 Copy/Cut/Paste
It is used to copy the data in the selected area, or cut the data to copy on the specified position. Differently
from [Copy], [Cut] is used to delete the data in the presently selected area.
1) Copy
[Steps]
1. Select the area to copy.
5-22
Chapter 5 LD Edit
2) Cut
[Steps]
1. Select the area to cut.
5-23
XG5000 User’s Manual
Drag & Drop function allows for faster moving and copying of program items. Moving and copying the LD
data with Drag & Drop function is available in the LD program. And the dragging the information of
Variable/Comment in the Variable/Comment window and dropping to the operands of contacts, coils, and
application instruction is possible.
2) Move Data.
It is used to move data in the selected area. The original data will be deleted after moving. The steps to move
data with Drag & Drop function are as follows.
[Steps]
1. Select the items or area where the data to be moved is located.
5-24
Chapter 5 LD Edit
2. Move the mouse cursor to the selected area and press the left mouse button. The outline of the object(s)
will change and a rectangle symbol will appear under the cursor
3. Release the left mouse button after moving the cursor to the area where the data is moved to.
3) Copy Data.
It is used to copy data included in the selected area. Different from moving data, the original data will remain.
To copy data, Ctrl key must be pressed while Drag & Drop function is executed. The steps to copy data are
as follows.
[Steps]
1. Select the items or area where the data to be copied is located.
5-25
XG5000 User’s Manual
2. Move the mouse cursor to the selected area and press the left mouse button and Ctrl key of keyboard.
Wait until the shape of mouse cursor is changed.
3. Release the left mouse button and Ctrl key after moving the cursor to the area where the data is moved to.
4) Paste Variable/Comment.
It is used to paste device (including Variable/Comment) from Variable/Comment window to instructions. This
function is available for contacts, coils and application instructions, but it is not available if data types of
operand and copied data are mismatch. The steps to paste variable/comment with Drag & Drop function are
as follows.
[Steps]
1. Select an item to be copied in the Variable/Comment window and move the mouse cursor to the boundary
of the cell and start Drag & Drop.
2. Drag the mouse to the position where the selected device is copied to. At this moment, the shape of
cursor will be changed if drop is possible.
5-26
Chapter 5 LD Edit
Notes.
- It is possible to copy the device information from variable monitor window.
- It is possible to copy the device information from trend monitor window.
It is used to Undo the details edited by Program Edit back to its previous state, or execute again the details
cancelled.
5-27
XG5000 User’s Manual
Notes
- All the edited details can be cancelled or executed again.
- The number of times to cancel the execution is unlimited.
- The shortcut key for Undo is “Ctrl + Z”, Redo is “Ctrl + Y”.
1) Change Columns.
[Steps]
1. Select [View]-[Change Columns] on the menu.
2. Select the number of contacts can be inserted in a line. The choices are 9, 12, 16, 20, 24, 28, 32.
2) Increase columns.
[Steps]
1. Select Increase columns on the View tool bar.
5-28
Chapter 5 LD Edit
3) Decrease columns
[Steps]
1. Select columns on the View tool bar.
Notes
- The range of columns is 9 ~ 32.
- If the columns inserted in a line is greater than assigned number, ‘▶’ mark will be displayed as below.
The connection to the next line will be displayed with‘▶ connection number’ mark and connected line
will be displayed with ‘connection number ▶’mark.
- Line number may be converted or duplicated when Change Columns function is used.
[Steps]
1. Select [View]-[LD View Properties]
2. Change LD View Properties and press OK
[Dialog box]
5-29
XG5000 User’s Manual
It is used to convert the LD program to the IL program in IL format so to display or edit the IL program as
converted.
[Sequence]
1. Select the program.
Notes
- If any incomplete rung exists, the LD program can not be converted to IL program.
5-30
Chapter 5 LD Edit
This is used to change the magnification of the LD program displayed on the screen.
1) Zoom-In
[Sequence]
1. Select [View]-[Zoom-In] on the menu.
2) Zoom-Out
[Sequence]
1. Select [View]-[Zoom-Out] on the menu.
Notes
- Ctrl + Wheel Up, if available perform Zoom-Out step by step.
- Ctrl + Wheel Down, if available perform Zoom-In step by step.
- On the View Tool selection box, the user can select or directly input the magnification. Refer to 2.2 Tool
Box in Chapter 2 Basic Application for more details.
It is used to display only the name of the applicable device for the device used as the operand of the contact
point, coil and application instruction.
[Sequence]
1. Select [View]-[Devices].
5-31
XG5000 User’s Manual
View Variable is used to display the name of the variable for the device used as the operand of the contact
point, coil and application instruction
If no variable is declared for the applicable device, it will be displayed as the device name.
[Sequence]
1. Select [View]-[Variable].
View Device/Variable is used to display the name of the device/variable for the device used as the operand
of the contact point, coil and application instruction.
If no variable is declared for the applicable device, the device name only will be displayed.
[Sequence]
1. Select [View]-[Devices/Variables] Item.
View Device/Comment is used to display the device/comment for the device used as the operand of the
contact point, coil and application instruction.
If no comment is available for the applicable device, the device name only will be displayed
5-32
Chapter 5 LD Edit
[Steps]
1. Select [View]-[Devices/Comments] Item.
View Variable/Comment is used to display the variable/comment for the device used as the operand of the
contact point, coil and application instruction.
[Steps]
1. Select [View]-[Variable/Comment]
Notes
- If View Options are changed, it may take some time based on the number of the edited program steps.
- Print function of the Device/Variable/Comment is available.
5-33
XG5000 User’s Manual
Optimize Program is used to delete the horizontal and empty lines between the contact points to optimize the
drawn LD.
[Sequence]
1. Select [Edit] - [Optimize Program] on the menu.
Notes
-Optimize Program cannot be undone.
- It may take some time based on the size of the program.
- If the LD logic is not complete, optimization function doesn’t operate
5-34
Chapter 5 LD Edit
The Block Mask Instruction is used to specify or cancel the area Block Mask in PLC among the LD programs.
[Sequence]
1. Move the cursor to the rung to specify the Block Mask instruction.
5-35
XG5000 User’s Manual
Notes.
- The program capacity of block masked area is included not in the program capacity but comment capacity.
- The program in the block masked area can be written to PLC and read from PLC just like comment.
- Online edit is not available for the block masked program. To modify the block masked program when PLC
is running, write comment function is available.
5-36
Chapter 5 LD Edit
5.4.3 Bookmark
Bookmarks allow the user to mark rungs of the LD for referencing later by just navigating to the next
bookmark.
1) Set Bookmark
[Sequence]
5-37
XG5000 User’s Manual
2) Bookmark Reset
[Sequence]
1. Move the cursor to the line to cancel the bookmark from.
2. Select [Edit] - [Bookmark] - [Set/Reset] on the menu.
5-38
Chapter 5 LD Edit
4) Previous Bookmark
[Sequence]
1. Select [Edit] - [Bookmark] - [Previous Bookmark] on the menu.
5-39
XG5000 User’s Manual
5) Next Bookmark
[Sequence]
1. Select [Edit] - [Bookmark] - [Next Bookmark] on the menu.
Notes
- Bookmark will be specified in line unit.
- [Move to Previous Bookmark] and [Move to Next Bookmark] function is effective in the same program.
- Bookmark is not an item to edit, thus the Set/Reset options will not be included in Undo and Redo.
5-40
Chapter 5 LD Edit
5.4.4 Go To
Go To is used to move to the step position the program has specified, or go to the position of the edited label
and rung comment.
1) Go To Step
[Sequence]
1. Select [Find/Replace]-[Go To]-[Step/Line].
[Dialog Box]
c d
5-41
XG5000 User’s Manual
2) Go To Label
[Sequence]
1. Select [Find/Replace]-[Go To]-[Label].
[Dialog Box]
c d
5-42
Chapter 5 LD Edit
3) Go To Rung Comment
[Sequence]
1. Select [Find/Replace]-[Go To]-[Rung Comment].
[Dialog Box]
c d
5-43
XG5000 User’s Manual
4) Go To END Instruction
[Sequence]
1. Select [Find/Replace]-[Go To]-[END Instruction] on the menu.
[Dialog Box]
c d
5-44
Chapter 6 IL Edit
Chapter 6 IL Edit
6.1.1 IL Window
1) Description of IL Window
[Dialog Box]
a b c d
6-1
XG5000 User’s Manual
Notes
- Color of the selected line, background, Block Mask instruction or error rung can be changed through
[Tools]-[Options].
On the Instruction Input Window as shown below, the instruction and the operand can be input and changed.
6.1.3 Limits
The output comment will not be displayed. Also, the edit of the output comment is unavailable.
6-2
Chapter 6 IL Edit
The Overwrite Mode is used to change the existing details of the selected line. Insert Mode is used to add
newly input details to the selected line. In this case, the existing details move to the next line.
1) Overwrite Mode
[Sequence]
1. Select [Edit] - [Overwrite Mode] on the menu.
2. Select the line to change.
3. Press Enter key to create the Instruction Input Window on the selected line. Input the details to change in
the Instruction Input Window.
4. After the input, press Enter key to change the instruction and operand of the selected line and to create
the Instruction Input Window right on the next line.
6-3
XG5000 User’s Manual
2) Insert Mode
[Sequence]
1. Select [Edit] - [Insert Mode] on the menu.
2. Select the line to change.
3. Press Enter key to create the Instruction Input Window on the selected line. Input the details to insert on
the Instruction Input Window.
4. After the input, press Enter key to insert the instruction and operand in the selected line and move the
details of the existing line to the next line then to create the Instruction Input Window.
Notes
- On the left bottom of the XG5000 program, the present mode is displayed.
- When the last line of the program is edited, the operation is always in Insert Mode.
- Overwrite/Insert Mode is available only for Instruction Input (6.2.2) and Application Instruction Input
(6.2.3). Rung Comment Input (6.2.4) and Paste (6.2.8) operate always in Insert Mode only.
6-4
Chapter 6 IL Edit
[Sequence]
1. Select the line to input in.
2. Press Enter key to create the Instruction Input Window on the selected line.
4. Press Enter key to input the instruction and operand in the applicable line and to create the Instruction
Input Window right on the next line.
6-5
XG5000 User’s Manual
Notes
- The space between instruction and operand and between operand and operand should be designated
with a space.
- Inputting the instruction on the Instruction Input Window will automatically create the instructions list
starting with the character input. Select a desired instruction from the instructions list and then press
Enter key for the selected instruction automatically to enter the Instruction Input Window.
- Whenever the selected line is edited, the rung in which the selected line is included will be validated.
- Only a complete rung will be saved in IL. An invalid rung will not be saved when the program is saved
or XG5000 is ended.
- If any rung is invalid, program cannot be converted to LD.
This is used to input the application instruction and operand in the IL editor.
The application instruction can be input with one of two methods. One is as specified in 6.2.1, the other is
through [Edit]-[Application Instruction].
[Sequence]
1. Select the line to input in.
6-6
Chapter 6 IL Edit
4. Click [OK] to input the instruction and operand in the applicable line and to create the Instruction Input
Window right on the next line.
Notes
- In order to input the String constant like $MOV as an operand, attach single quote marks to the String as
shown below;
Ex.) $MOV ‘Kanada’ m1
[Sequence]
1. Select the line to input in.
6-7
XG5000 User’s Manual
Notes
- The rung comment will be positioned at the first of the rung. Even if the rung comment is input in the
middle of the lines of the rung, it will be automatically positioned at the first line of the rung.
6-8
Chapter 6 IL Edit
[Sequence]
1. Select the line to change.
2. Press Enter key to create the Instruction Input Window on the selected line. The existing instruction and
operand will be displayed on the Instruction Input Window.
6-9
XG5000 User’s Manual
4. Press Enter key to input the instruction and operand in the applicable line and to create the Instruction
Input Window right on the next line.
[Sequence]
1. Select the line to insert in.
6-10
Chapter 6 IL Edit
This function is used to delete the instruction and operand previously input.
[Sequence]
1. Select the line to delete.
2. Select [Edit]-[Delete Line] on the menu.
6-11
XG5000 User’s Manual
Notes
- Insert Line and Delete Line will insert and delete lines as specified, one at a time.
- The last line will not be available for Insert Line or Delete Line function.
- Delete Line will delete the selected line, regardless of instruction, rung comment or Block Mask
instruction.
- The remaining line of the Block Mask instruction after its partial line is deleted, will remain or not, based
on the start line (Block Mask or executable) of the rung it belong to.
6-12
Chapter 6 IL Edit
1) Cut
[Sequence]
1. Select the lines to cut.
2) Copy
[Sequence]
1. Select the lines to copy.
2. Select [Edit]-[Copy] on the menu.
3) Paste
[Sequence]
1. Select the line to paste on.
6-13
XG5000 User’s Manual
1) Undo
1. Select [Edit]-[Undo] on the menu.
2) Redo
1. Select [Edit]-[Redo] on the menu.
Notes
- Undo/Redo is available for Instruction Input, Comment Input, Delete, Change, Cut/Paste, Device
Change, String Change and Block Mask Instruction Set/Reset.
6-14
Chapter 6 IL Edit
Program View is used to change the magnification of IL program, or to see the user defined operand in
various ways.
1) Zoom-In
[Sequence]
1. Select [View]-[Zoom-in] on the menu.
2) Zoom-Out
[Sequence]
1. Select [View]-[Zoom-Out] on the menu.
Notes
- Ctrl + Down wheel scroll if available performs Zoom-In step by step, and Ctrl + Up wheel scroll
performs Zoom-Out step by step.
- On the View Tool selection box, the user can select or directly input the magnification. Refer to 2.2
Tool Box in Chapter 2 Basic Application for more details.
6-15
XG5000 User’s Manual
6-16
Chapter 6 IL Edit
6-17
XG5000 User’s Manual
Notes
- Block Mask Instruction Set/Reset operates in rung unit. Expressly, the whole rung including the selected
line will be active or inactive in the program.
6-18
Chapter 6 IL Edit
6.4.2 Bookmark
This function is identical to the Book Leaf function. If a bookmark is specified in a specific line, navigation to
that line is fast and efficient.
1) Bookmark Set/Reset
[Sequence]
1. Select the line to specify (Reset) the bookmark.
2. Select [Edit]-[Bookmark]-[Set/Reset] on the menu.
Notes
- Bookmark Set/Remove can be set and reset wherever selected.
6-19
XG5000 User’s Manual
6.5 Go To
This function is used to go to the applicable location of step, label or rung comment designated.
6.5.1 Go To Step
This function is used to go to the specific step designated.
[Sequence]
1. Select [Find/Replace]-[Go To]-[Step] on the menu.
2. Select the program where the step to find is included, and then input the step to go to in [Go to what].
6-20
Chapter 6 IL Edit
6.5.2 Go To Label
This function is used to go to the label prepared previously.
[Sequence]
1. Select [Find/Replace]-[Go To]-[Label].
6-21
XG5000 User’s Manual
2. Select the program, and then select the label to go to on the labels list.
6-22
Chapter 6 IL Edit
2. Select the program, and then select the rung comment to go to on the comments list.
6-23
XG5000 User’s Manual
6-24
Chapter 6 IL Edit
2. Select the program, and then select the END instruction to go to on the END instructions list.
6-25
Chapter 7 Programming Convenience
Cross Reference is used to display the application details of all the devices used in the program. The devices
include contact points (normally open contact point, normally closed contact point, positive-conversion
detection contact point and negative-conversion detection contact point), coils (coil, reverse coil, positive-
conversion detection coil and negative-conversion detection coil) and all the devices used as the operand of
application instructions.
[Steps]
1. Select [View] - [Cross Reference] on the menu.
7-1
XG5000 User’s Manual
Column Details
Device Displays names of all the devices used in the present PLC.
PLC Displays names of the PLC being cross-referenced.
Program Displays name of the program using the applicable device.
Position Displays the location inside the program.
Step Displays the steps inside the program.
The following signs are displayed for the type of instructions;
-( )-: Coil
-(/)-: Reverse coil
-(S)-: Set coil
-(R)-: Reset coil
-(P)-: Positive-transition detection coil
Type
-(N)-: Negative- transition detection coil
-| |-: Normally open contact point
-|/|-: Normally closed contact point
-|P|-: Positive- transition detection contact point
-|N|-: Negative- transition detection contact point
-[F]-: Application instruction
Displays the application instruction used and the sequence of the operand if used as
Instruction
the operand of an application instruction.
Variable Displays the variable name if a variable is declared for the device.
Comment Displays the description if the description is input for the device.
1) Data Alignment
Click the column header to align the applicable column. Whenever the column is clicked, it will be aligned in
the ascending and then descending sequence by toggling. A triangle will be displayed on the basic column
of the present alignment. The upward triangle means that the alignment is in the ascending sequence, and
the downward triangle means that the alignment is in the descending sequence.
7-2
Chapter 7 Programming Convenience
2) Find
It is used to go to the position of the program using the selected device. Double-click the applicable line, or
click the right mouse button to select [Find] on the menu.
3) Select Row
It is used to display the desired data only on the screen. Click the right mouse button to select each item on
the menu [Select Row].
4) Lock Data
Details of the Cross Reference Window are updated when the cursor moves in the program. If you don’t
want to update them, specify the Lock Data function. Click the right mouse button to select [Lock Data].
5) Delete Data
It deletes all the details of the Cross Reference Window.
Notes
- It may take some time based on the number of devices used.
7-3
XG5000 User’s Manual
[Steps]
1. Select the Cross Reference tap to display the Cross Reference Result on.
2. Move the cursor to the position of the device to display functionality of the location.
7-4
Chapter 7 Programming Convenience
Notes
- If ‘Output cross reference instantly’ is used, the edit speed may be slowed.
- Select [Tools]-[Options]-[Edit Ladder/Mnemonic], on the LD/IL Edit page to apply ‘Output cross reference
instantly’ function.
It is used to determine if a device is duplicated as a coil elsewhere in the program. The program name,
location and step will be displayed if a duplicate coil is found.
[Steps]
1. Add a coil.
2. Select and copy the line the applicable coil is included in to move to the next line to paste on.
7-5
XG5000 User’s Manual
Notes
- ‘If ‘Check duplicated coil instantly’ is used, the edit speed may be slowed.
- Select [Tools]-[Options]-[Edit Ladder/Mnemonic], on the LD/IL Edit page to apply ‘Check duplicated coil
instantly’ function.
- ‘Check duplicated coil instantly’ searches for a coil and reverse coil only.
7-6
Chapter 7 Programming Convenience
Cross Reference of Selected Devices displays the details of use of the devices selected from the program.
Devices include contacts (normally open contacts, normally closed contacts, positive transition-sensing
contacts, negative transition-sensing contacts) and coils(coils, reverse coils, positive transition-sensing coils,
negative transition-sensing coils) and devices that are used as operand of the applied command.
For the devices selected in the program, it displays the device information that is currently used in the PLC
application.
7-7
XG5000 User’s Manual
It shows all the devices used in the program (LD, IL). The devices used in each device area will be displayed
as inputs and/or outputs.
[Description of Window]
b c d e
a. Device Display: displays each device used in the program in Word unit. # device, index device, and #
index device are not displayed.
b. Word Column: used to display the number of the applicable words used in the program.
c. Bit Column: used to display the number of the applicable bit devices used in the program. The devices of
S area, T area and C area are displayed.
d. Bit Area: used to display the bit area of the devices displayed in Word unit as divided into hexadecimal bit
unit.
e. I/O classification: used to display the number of the applicable bit devices as classified into input(I) and
output(O).
7-8
Chapter 7 Programming Convenience
[Sequence]
1. Select [View]-[Used Device] on the menu.
[Dialog Box]
a. Select Area: you can select the device types to be displayed on the screen.
b. Display unused devices: Displays the whole address of the devices selected by [Select Device] or used
device list only.
Notes
- Select [Update Used Device] on the context menu to display the used devices.
- After Used Device is updated, the details of the program if edited will not be automatically updated.
7-9
XG5000 User’s Manual
a. PLC: used to display the PLC name with the applicable device used.
b. Device used: It is the device that the Device Uses View dialog box shows.
c. Type: displays the device type.
d. Program: displays the program name with the applicable device used.
e. Step: displays the step position where the applicable device is used.
f. Instruction Type: shows for which instruction type of operand the applicable device is used. (displayed as
identical as the instruction tool bar of LD editor)
g. Application Instruction: shows the sequence of the operand and its application instruction if the applicable
device is used as the operand of the application instruction.
h. Select the line
i. Go To: used to go to the program with the selected line (device) used.
7-10
Chapter 7 Programming Convenience
This function is used to check the prepared LD program for errors. Inspection items are as follows;
- Logic Error: checks for LD connection errors.
- Grammar Error: checks for errors related with grammar used in SBRT/CALL, FOR/NEXT, etc.
- Duplicated Coil Error: checks for duplicate output coils.
[Dialog Box]
a
b
c
d
g
h
7-11
XG5000 User’s Manual
Notes
- Ignore: do not check for errors.
- Warning: If any error occurs, [Warning] will be displayed on the Result Window and writing a program on
PLC is permitted.
- Error: If any error occurs, [Error] will be displayed on the Result Window and the program to the PLC is
prohibited.
d. Unreferenced subroutine: used to specify the processing range of the declared subroutine which was not
used. [Ignore], [Warning] or [Error] can be selected.
e. Duplicated coil error: used to check for the Duplicated Coil error.
f. Duplicated coil Processing: used to select [Error] or [Warning] for the Duplicated Coil.
g. Current program (New Program): used to inspect the present program only.
h. All programs: used to inspect all the programs listed on the present PLC item.
Notes
- Refer to 7.4.3 and 7.4.4 for details on Logic Errors and Syntax Errors.
- If the present program only is selected while one or more programs are listed on the present PLC
item, inspection of CALL/SBRT will not be executed.
- When writing a program on PLC, all the items other than the Duplicated Coil will be always inspected if
specified or not by the user.
Notes
- In XGT series PLC, many a program can be added to the PLC item and the SBRT call is available
between programs.
7-12
Chapter 7 Programming Convenience
[Dialog Box]
c
d
7-13
XG5000 User’s Manual
Notes
- Set coil (-(S)-) and Reset coil (-(R)-) are not checked for duplicated coils.
- The range of “Check the word type for application instructions” depends on the data type of the output
operand of application instructions. For example, since LMOV M0100 P0000 is an instruction to move
the 4 words of M0100~M0103 to P0000~P0003 as shown below, the words of P0000~P0003 will be the
range to check for duplicated coils.
4 words
If an error is present in the program, its details will be displayed on the Check Program tab of the message
window. Double-click the error details to move to the location where the error occurs.
7-14
Chapter 7 Programming Convenience
Logic Error is used to check for any logic error, and displays the details and program location if present.
1) L0000: Input or output is not connected. This error will occur if the contact point is not connected
with the power line.
Action: Correct the LD to connect the left side rail to the right side rail.
2) L0100: It is a short circuit. This error will occur if the area connected with OR is connected with
the horizontal line without the contact point.
Action: Delete OR if the OR connection is not necessary, or input the contact point in the OR location as
shown below.
3) L0200: Device or variable is not named. This error will occur if the device or variable is not
associated with a device or variable.
Action: Add a device or variable in the contact point or coil where the error occurs.
7-15
XG5000 User’s Manual
4) L0300: OR-LOAD incorrectly connected. This error will occur if OR-LOAD connected incorrectly.
Action: Search for OR-LOAD incorrectly connected and then correct the LD program.
5) L0400: Specified number of contact points exceeded. This error will occur if the number of
continuous LOAD instructions exceeds 32.
Action: Correct the LD program in order not to let the LOAD instructions exceed 32.
6) L0401: Incorrect input. This error will occur if the program element necessary is nonexistent.
7) L0402: Unnecessary element. This error will occur if an unnecessary is present in the program.
7-16
Chapter 7 Programming Convenience
8) L0404: The maximum number of MPUSHs exceeded. This error will occur if the number of continuous
MPUSH/MPOPs exceeds 16.
Action: Correct the LD program in order not to let the continuous MPUSH/MPOPs exceed 16.
9) L0406: The instruction is not supported in the PLC Series being programmed.
Action: Replace the instruction with one compatible with the selected PLC Series.
1) E0001: MCS instruction duplicated. This error will occur if MCS number is duplicated.
Action: Delete the duplicated MCS instruction, or add the correct MCSCLR instruction.
7-17
XG5000 User’s Manual
3) E0003: MCS instruction absent. MCSCLR instruction is used without an associated MCSCLR
instruction.
4) E1001: Label declared as duplicated. This error will occur if duplicated LABEL used.
Action: Delete the duplicated label, or change the name of the label.
5) E1002: Label ‘Label Name‘ as unreferenced. This error will occur if JMP is used to refer to
the nonexistent label.
Action: Add the label where the error occurs, or correct the JMP instruction which uses the label.
7-18
Chapter 7 Programming Convenience
6) E1003: Label ‘Label Name‘ not used. This error will occur if the JMP instruction is unreferenced
in the program.
7) E1004: Label ‘Label Name‘ not used in the subroutine. This error will occur if the JMP
instruction is unreferenced to use the label existent in the subroutine.
Action: Delete the label in the subroutine, or add the associated JMP instruction.
7-19
XG5000 User’s Manual
Notes
- The error number E1003/E1004 will occur only when [Warning] or [Error] is selected for the label not
referred to in the Error Inspect item. Refer to 7.4.1 Program Inspect Setting for details.
8) E1005: Label ‘Label Name‘ unreferenced in the subroutine. This error will occur if the JMP
instruction uses a label unreferenced in the subroutine.
Action: Add the label in the subroutine, or correct the JMP instruction.
9) E2015: The maximum number of labels exceeded. Based on the PLC type, the maximum
number of labels is exceeded.
Action: Check the number of the labels used.
Notes
- The maximum number of labels usable depends on the PLC type. Refer to XGK CPU manual for details.
7-20
Chapter 7 Programming Convenience
10) E2001: Return instruction unreferenced in the subroutine ‘Subroutine Name. The subroutine
will end with the RET instruction.
11) E2010: Subroutine call unreferenced. The call of unreferenced SBRT causes an error.
7-21
XG5000 User’s Manual
12) E2003: Subroutine 'Subroutine Name' is positioned before the END instruction. SBRT and
RET positioned prior to END instruction cause an error.
Action: Move the instructions SBRT and RET after the End instruction.
13) E2011: Subroutine not used. Although SBRT~RET blocks exist, no CALL instruction is used to
execute the subroutine.
Notes
- The error number E2011 will occur only when [Warning] or [Error] is selected for the subroutine not
referred to in the Grammar Error Inspect item. Refer to 7.4.1 Program Inspect Setting for details.
7-22
Chapter 7 Programming Convenience
14) E2012: Subroutine is duplicated. ‘Subroutine Name’- An identical name of the subroutine can
not be used.
15) E2014: The maximum allowable number of subroutines exceeded. Based on the PLC type, the
maximum number of subroutines has been exceeded.
Action: Check the number of the subroutines used and adjust accordingly.
Notes
- The maximum number of subroutines usable depends on the PLC type. Refer to XGK CPU manual
for details.
7-23
XG5000 User’s Manual
17) E3002: Identical FOR unavailable. If the application times of FOR/NEXT instructions are not
identical, it will cause an error.
Action: Let the number of FOR instructions and NEXT instructions identical.
7-24
Chapter 7 Programming Convenience
18) E3003: FOR-NEXT can not be duplicated more than 16 times. FOR/NEXT can be duplicated
up to 16 blocks. If the number of the duplicated FOR/NEXT blocks exceeds 16, it will cause an
error.
Action: Correct the number of the FOR / NEXT blocks not to exceed 16.
19) E3004: Between FOR-NEXT, RET or END is not allowed. If RET or END is included between
FOR and NEXT, it will cause an error.
Action: Change the location of END and RET instruction positioned between FOR/NEXT blocks.
7-25
XG5000 User’s Manual
20) E3005: BREAK instruction incorrectly placed. BREAK instruction can be used only between
FOR/NEXT loop blocks.
21) O0001: The maximum program capacity exceeded. The maximum size has been exceeded.
Action: Correct the program not to exceed the specified program capacity.
Notes
- The program capacity depends on the PLC type. Refer to XGK CPU manual for details.
22) O0002: One or more scan programs necessary. There is no scan program in the present PLC
item, which will cause an error.
7-26
Chapter 8 Find / Replace
This function is used to find the device previously made in LD Editor, SFC Editor, IL Editor, or Variable/
Comment Editor.
[Steps]
[Dialog Box]
e f
g
a
b h
i
c
8-1
XG5000 User’s Manual
c. Select type: Select the type of device you are looking for. There are [Bit], [Bit (Word + Bit)], [Word], [Word
(Bit + Word)] and [All] items for type selection.
1 When [Bit] is selected, only the bit device can be entered in the search contents, and only the bit
device is searched in the selected search area.
2 When [Bit (Word + Bit)] is selected, only bit devices can be entered in the search contents, and
word devices including bit devices and bits in the selected search area are searched. (For
example, if you enter bit device M0000A in the search result, the device to be searched also
searches for word device M0000 including bit device M0000A and bit device M0000A.)
8-2
Chapter 8 Find / Replace
3 When [Word] is selected, only the word device can be entered in the search contents, and only
the word device is searched in the selected search area.
4 When [Word (Bit + Word)] is selected, only the word device can be input to the search contents,
and the search is performed for all the bit devices belonging to the word device and word in the
selected search area. (For example, if a word device M0000 is input in the search result, the
device to be searched searches from the bit device M00000 belonging to the word device
M0000 and the word device M0000 to the device M0000F.)
5 If [All] is selected, device search is performed in the bit (type of word) type when the bit device is
input in the search contents, and word device is input in the search content. Perform device
discovery. In the case of word and bit device, the device is searched in the form of bit (word
including bit) and word (Bit + Word). (For example, if an M1 device is input in the form of a word
and a bit device in the search result, the device to be searched also searches for the word
device M0000 including the bit device M00001 and the bit device M00001 as in the bit (word
including bit) Performs search from bit device M00010 to M0001F device belonging to word
device M0001 and word device M0001 as word (Bit + Word).)
d. Output to Find 2: The XG5000 has two search result windows. By default, the Find 1 Results pane will
be displayed in the Results pane, but if you select this check box, the results will be displayed in the
Find 2 Results pane.
e. Direction: In each editor, specify whether to search above or below the currently selected line.
f. Range: After specifying each direction, select to search only by specifying specific lines. If you select
Specify range, you must enter the start line and the last line.
g. Find next: Look for the above setting just after the currently selected line (position). When the
corresponding device is found, the place where the device is located is selected.
h. Find all: It searches all of the above settings and displays the result in the search result window.
i. Advanced: Use this function when you want to search only for specific contacts, specific coils,
extended functions, and function / function blocks used in the ladder editor.
Note
- The results are displayed in the Find window only when you have searched all.
- Find All is found in the document, so choosing a direction is unnecessary.
8-3
XG5000 User’s Manual
Note
- ‘Advanced’ Button is pressed.
Note
- The 'Advanced' button is enabled only when the current window is a ladder editor, and the following
items are displayed when this button is pressed.
8-4
Chapter 8 Find / Replace
[Steps]
1. Select the cell that is the base of the direction.
2. Select [Find / Replace] - [Find Device] on the menu and enter the search contents and search conditions.
8-5
XG5000 User’s Manual
3. Click the Find Next button. If there is a device that matches what you set in the dialog box, the cell moves
to the matching device.
8-6
Chapter 8 Find / Replace
It is commonly used in LD, IL, global / direct variables, local variables and so on.
The following is based on LD.
[Steps]
1. Select [Find / Replace] - [Find Device] on the menu.
2. Set the device you want to find, directions, and selections.
3. Click the Find All button. Find All displays the results in the Find message window as shown below.
8-7
XG5000 User’s Manual
4. Select the line you want to find in the Find window and press the Enter key to move the cell to the line
of the LD program.
Note
- Find All finds the device in the selected area in the Find area.
8-8
Chapter 8 Find / Replace
Find Text is a function to search for Text such as rung comment, variable, variable comment, application
command, label except device.
[Dialog Box]
f g h
a i
b j
c
d
e
8-9
XG5000 User’s Manual
h. Range: After specifying each direction, select to search only by specifying specific lines. If you select
Specify range, you must enter the start line and the last line.
i. Find next: Look for the above setting just after the currently selected line (position). If a matching Text
is found, the selection moves to where the Text is located.
j. Find all: It searches all of the above settings and displays the result in the search result window.
k. Advanced: This button is used only in the ladder editor. It is used to search only the specific contact,
specific coil, extended function, function / function block used in ladder editor.
8-10
Chapter 8 Find / Replace
Note
- Only when you have searched all, the results are displayed in Find 1 and 2.
- Find All is found in the document, so choosing a direction is unnecessary.
- The item selection button is only visible in the LD editor.
The following dialog box appears when this button is selected.
It is commonly used in LD editor, SFC editor, ST editor, and variable / description editor.
The following is based on LD.
[Steps]
1. Select the cell that is the base of the direction.
8-11
XG5000 User’s Manual
4. Click the Find Next button. If there is a Text that matches what you set in the dialog box, the cell moves to
the matching Text.
8-12
Chapter 8 Find / Replace
[Steps]
1. Select [Find / Replace] - [Find Text] on the menu.
2. Set the Text you want to find, selection, direction, and so on.
3. Click the Find All button. Find All displays the results in the Find Messages window.
8-13
XG5000 User’s Manual
4. Select the line you want to find in the Find window and press the Enter key to move the cell to the line of
the LD program.
Note
- Find in the 'Current Window' in the search area will find the currently active program.
- In the "Find in Multiple Window" area, click Find Window to run Find in all selected windows.
8-14
Chapter 8 Find / Replace
LD editor, IL editor, SFC editor, ST editor, variable / description editor and so on.
[Dialog Box] g h
a i
b j
c
k
l
d
m
8-15
XG5000 User’s Manual
d. Select type: Select type: Select the type of device you are looking for. There are [Bit], [Bit (Word + Bit)],
[Word], [Word (Bit + Word)] and [All] items for type selection.
1 When [Bit] is selected, only the bit device can be entered in the search contents, and only the bit
device is searched in the selected search area.
8-16
Chapter 8 Find / Replace
2 When [Bit (Word + Bit)] is selected, only bit devices can be entered in the search contents, and
word devices including bit devices and bits in the selected search area are searched. (For example,
if you enter bit device M0000A in the search result, the device to be searched also searches for
word device M0000 including bit device M0000A and bit device M0000A.)
3 When [Word] is selected, only the word device can be entered in the search contents, and only the
word device is searched in the selected search area.
4 When [Word (Bit + Word)] is selected, only the word device can be input to the search contents, and
the search is performed for all the bit devices belonging to the word device and word in the selected
search area. (For example, if a word device M0000 is input in the search result, the device to be
searched searches from the bit device M00000 belonging to the word device M0000 and the word
device M0000 to the device M0000F.)
5 If [All] is selected, device search is performed in the bit (type of word) type when the bit device is
input in the search contents, and word device is input in the search content. Perform device
discovery. In the case of word and bit device, the device is searched in the form of bit (word
including bit) and word (Bit + Word). (For example, if an M1 device is input in the form of a word and
a bit device in the search result, the device to be searched also searches for the word device
M0000 including the bit device M00001 and the bit device M00001 as in the bit (word including bit)
Performs search from bit device M00010 to M0001F device belonging to word device M0001 and
word device M0001 as word (Bit + Word).)
e. Include variable (Replace all): Select whether to replace the variable / description of the device
entered in the search contents to the variable / description of the device entered in the replacement
contents. In other words, choose whether to replace the device variable / description as well.
f. Number of devices: Specify the Number of devices. Only active when batch replace is checked
g. Direction: In each editor, specify whether to search before or after the currently selected line.
h. Range: If you select Range, you can only perform device replacement within a specific line. If you
select Specify range, you must enter the start line and the last line.
i. Find next: Look for the above setting just after the currently selected line (position). When the
corresponding device is found, the place where the device is located is selected.
j. Find all: It searches all the devices corresponding to the set contents and displays the result in the
search result window.
k. Replace: Replaces the device with the previously set position based on the currently selected position
(line).
l. Replace all: Find the previous setting and replace it.
m. Advanced: This button is used only in the ladder editor. It is used to search only the specific contact,
specific coil, extended function, function / function block used in ladder editor.
8-17
XG5000 User’s Manual
Note
- For all replace, direction selection is unnecessary.
- If you check batch replace, you can replace all.
- The item selection button is only visible in the LD editor.
The appearance of the Advanced dialog box that is displayed when this button is selected is the same
as in Chapter 8.1 Find Device.
LD editor, variable / description editor, etc. It is a function to find the device that you have already created.
The following is based on LD.
[Steps]
1. Select the cell that is the base of the direction.
2. Select [Find / Replace] - [Replace Device] on the menu.
8-18
Chapter 8 Find / Replace
3. Set what to search, content to replace, type selection, direction, and so on.
4. Press the Replace button. If the device of the currently selected cell is the same as the one found, replace
the current cell with the one set in the dialog box and move to the next cell
8-19
XG5000 User’s Manual
Note
- Replace only if the Find and Replace dialog box matches the device and type of the currently selected cell.
- When you click the Replace button, you will be taken to the next cell that matches the find in the Replace
dialog box, regardless of whether the Replace is running.
- In the case of Replace, when the Replace Device dialog box is created, it finds and replaces all the current
programs based on the selected cell. That is, if the direction is set down, the device that matches the end
of the program from the selected cell is found, and then the device that matches from the beginning of the
program to the reference cell is found again.
LD editor, variable / description editor, etc. It is a function to find the device that you have already created.
The following is based on LD.
8-20
Chapter 8 Find / Replace
1) Replace All
[Steps]
Select [Find / Replace] - [Replace Device] on the menu.
1. Set what to search, content to replace, type selection, direction, and so on.
8-21
XG5000 User’s Manual
2. Click the Find All button. Find all the M0 bit devices in the Find 2 Results window.
8-22
Chapter 8 Find / Replace
[Steps]
1. Select [Find / Replace] - [Replace Device] on the menu.
2. Set what you want to find, what you want to replace, type selection, direction, etc., and check the Replace
with range check box. Set the number of devices to batch replace and the area to be included.
8-23
XG5000 User’s Manual
8-24
Chapter 8 Find / Replace
Note
- Batch replaces are available only for devices. Constants can not be replaced in bulk.
8-25
XG5000 User’s Manual
a j
b k
c
l
m
d n
e
f
g
8-26
Chapter 8 Find / Replace
Note
- The item selection buttons are only visible in the ladder editor.
The appearance of the dialog box displayed when this button is selected is the same as in Section 8.1,
Device Search.
LD editor, variable / description editor, etc. It is a function to find the device that you have already created.
The following is based on LD.
[Steps]
1. Select the cell that is the base of the direction.
8-27
XG5000 User’s Manual
4. Press the Replace button. If the Text of the currently selected cell matches the found one, it replaces
the current cell with the one you set in the dialog box and moves to the cell that matches the found one.
8-28
Chapter 8 Find / Replace
5. If you want to replace the AA variable with the DD variable in the ladder program, you must select the
variable inclusion option when changing and the DD variable must be declared in the variable/explanation
window.
8-29
XG5000 User’s Manual
6. Press the Replace button. If the Text of the currently selected cell matches the found one, it replaces
the current cell with the one you set in the dialog box and moves to the cell that matches the found one.
Note
- Replace is executed only when the Text of the currently selected cell matches the search contents of the
dialog box.
- When you click the Replace button, you will be taken to the next cell that matches the find in the
Replace dialog box, regardless of whether the Replace is running.
- In the case of Replace, when the Replace Device dialog box is created, it finds and replaces all the
current programs based on the selected cell.
8-30
Chapter 8 Find / Replace
LD editor, variable/description editor, etc. It is a function to find the device that you have already created.
The following is based on LD.
[Steps]
1. Select [Find / Replace] - [Replace Text] on the menu.
2. Set what to search, what to replace, and what to choose.
8-31
XG5000 User’s Manual
3. Click the Find All button. Find all found results 2 Display in the results window.
4. Press the Replace All button. . All variables used in the variable / description window and the LD program
are replaced and displayed in the Find 2 Results window.
8-32
Chapter 8 Find / Replace
Find Again is a feature that you can use to find a device or find a text search previously. If you have not done
this before, it is disabled.
[Steps]
Select [Find / Replace] - [Find Again] on the menu.
8-33
Chapter 9 Parameters
Chapter 9 Parameters
[Steps]
1. On the project tree, double-click [Parameter]-[Basic Parameters].
[Dialog Box]
a c
b g
h
d
i
j
k
l
f
m n
9-1
XG5000 User’s Manual
9-2
Chapter 9 Parameters
[Dialog Box]
a c
b. Select latch area: used to specify data area to preserve. It is the representative flag to control area 1 and
area 2 of the right latch area table. If the check box is not selected, value specified in the right latch area
table will be ignored.
c. It is used to specify desired latch area for each device, to decide to use the respective device and to
select the area. Area 1 and area 2 cannot be overlapped, and the maximum size of each latch area is the
maximum size of the device area.
9-3
XG5000 User’s Manual
d. Timer areas are divided into 100ms, 10ms, 1ms and 0.1ms. This area can be selected as the latch area
within the specified value of the left timer limit area. Like other devices the areas cannot be set as
overwritten. The number of timers to use can be adjusted, and the value specified here will have a great
influence on the timer of LD diagram or IL program. Default for setting value of each timer is as follows;
When the timer limit specified is the default, the timer will be automatically in 100ms unit with T100 if used
in LD diagram. It is because T100 is in the area of T100ms. In order to use the timer with a cycle of 10ms
in basic setting, optional address among T1000 ~ T1499 needs to be used. The user can specify the timer
area of each cycle to assign more memory areas to the cycle desired to apply more.
In timer limit setting, different cycles can be set as overlapped. In addition, since Start and End of the area
are always 0 and 2047 fixed, their modification is unavailable. Each cycle needs to be used with its size
divided in this area.
9-4
Chapter 9 Parameters
b
c
d
e
f
g
4. MODBUS Setup
The RS-232C port of CPU module can be operated as slave module of MODBUS communication.
This tab is only available with PLC’s having MODBUS communication capability.
9-5
XG5000 User’s Manual
[Dialog Box] a
b h
c
i
d
j
e
k
f
g
9-6
Chapter 9 Parameters
It is used to specify the I/O type to be applied to PLC slot and the applicable parameters for each slot.
[Steps]
1. On the project tree, select [Parameter]-[I/O Parameters].
[Dialog Box]
a b c d
9-7
XG5000 User’s Manual
Notes
- Fixed point assignment and variable point assignment are available for the module assignment
method. The fixed point assignment assigns 64 points to a slot while the variable point assignment
depends on the module type. 32 points are assigned to the special/communication module, and 16
points to the empty slot.
The table below shows the differences between variable assignment and fixed assignment, based
on the basic base.
- Refer to 9.1 Basic Parameter for details on the module assignment types.
Notes
- Refer to the specific expansion module manual for detailed information.
[Steps]
1. Select the base module to specify from the device list.
2. Click the right mouse button to select [Base Setting].
9-8
Chapter 9 Parameters
[Dialog Box]
b c
[Description of Dialog Box]
a. Number of Slots: used to input the maximum number of slots.
b. OK: applies the changed items and closes the dialog box.
c. Cancel: closes the dialog box.
Notes
- If the specified number of slots is less than the maximum number of slots, the rest area is unavailable
to edit.
9-9
XG5000 User’s Manual
Module type and detailed module information will be described based on slots
[Steps]
1. Select the slot to specify the module in the slot information.
2. Select the module column to display the module selection box. Or click the right mouse button to select
[Edit].
4. Select the comment column and then click the right mouse button to select [Edit]. And input the
description String for the applicable slot.
Notes
-Up to 128 characters in English (up to 64 characters in Korean) is available to input in the comment column..
9-10
Chapter 9 Parameters
It displays the total current consumption for the modules attached to the base module.
[Procedures]
1. Click on the right mouse button and select [Current Consumption].
9-11
XG5000 User’s Manual
Data editing details of Copy, Cut and Paste will be described below, based on slots.
1) Copy/Paste
[Steps]
1. Select the slot to copy.
9-12
Chapter 9 Parameters
2) Cut/Paste
1. Select the slot to cut.
9-13
XG5000 User’s Manual
3) Undo
[Steps]
1. Select the slot to delete.
9-14
Chapter 9 Parameters
4) Redo
[Steps]
1. Click the right mouse button to select [Redo].
9-15
XG5000 User’s Manual
Notes
- 20 steps are available for Undo and Redo functions.
- The shortcut keys used in I/O Parameters Edit can not be used as the user defined shortcut key
specified in XG5000.
- One click of the mouse will select a single slot. In order to select lots of slots, drag the slot columns
where the slot number is displayed as many as desired.
1) Input module
[Dialog Box]
b c
9-16
Chapter 9 Parameters
Notes
- Input filtering is unavailable for AC input modules. The input filter monitors an input condition for the
specified time. If the input state remains the same for the duration of the filter time, the input will be
processed as such. Input filtering provides for erroneous input status due to electrical noise or intermittent
sensors/switches..
- Standard value of the input filter shall be specified in basic parameters. Refer to 9.1 Basic Parameters for
details on the Basic Parameters.
- The input filter used to inspect the input signal will process the applicable signal as normal input if kept
identical for the filtering time. The figure below is with the input filter value of 3ms. As the input signal is kept
identical for 3ms from the moment detected by specific level, it will be processed as normal input in 3ms.
Check input
Input Signal
Input Signal
Detect input
Time
9-17
XG5000 User’s Manual
2) Output module
[Dialog Box]
b c
[Description of Dialog Box]
a. Channel: one channel is assigned for 8 points, and the emergent output mode can be specified per
channel.
b. OK: applies the specified items and closes the Dialog Box.
c. Cancel: closes the Dialog Box.
Notes
- Emergent output value will be specified in emergency like the stopped CPU during RUN
- Default for the emergent output is Hold.
9-18
Chapter 9 Parameters
3) I/O module
[Dialog Box]
c d
[Description of Dialog Box]
a. Filter Value: used to specify filter constant value for the input.
b. Output setting: used to specify detailed information for the output.
c. OK: applies the changed items and closes Dialog Box.
d. Cancel: closes Dialog Box.
Notes
- I/O module is of mixed type of input module and output module. The input part has the characteristics
identical to the input module, and the output part identical to the output module.
9-19
XG5000 User’s Manual
4) Interrupt Module
Interrupt or Pulse-Catch mode is available for each channel. Rising/Falling condition is also available to
specify for the bit of each channel.
[Dialog Box]
e f
9-20
Chapter 9 Parameters
Notes
- If you want more information about parameter setting, see the SOE module user manual.
5) Module Reservation
It assigns the points of module only without any specific module specified. 16, 32 and 64 points are available
for the assignment.
6) A/D Module
On the I/O Parameter Setting Dialog box select A/D module and then click [Details] to display the Parameter
Setting Dialog box as shown below.
[Dialog Box]
9-21
XG5000 User’s Manual
7) D/A Module
On the I/O Parameters Setting Dialog box, select D/A module and then click [Details] to display the Parameters
Setting dialog box as shown below.
[Dialog Box]
d b c
9-22
Chapter 9 Parameters
0~16000/-8000~8000/1000-5000/0~10000%
Input Type 0~16000
(changed based on output range)
[Dialog Box]
9-23
XG5000 User’s Manual
9-24
Chapter 9 Parameters
Notes
- “Number of Pulses per Rotation” item among High-speed counter parameter items will be active when
the Additional Function Mode is set to “Measure rotations per unit time”.
- Refer to APM manual for details on the positioning module.
- Refer to XGPD manual for details on the communication module.
This function is used to print the specified I/O parameter and detailed module information specified.
[Dialog Box]
c b
[Description of Dialog Box]
a. Print All: prints all I/O configuration table and detailed module information.
b. I/O Configuration Table: prints I/O parameter's module setting details based on slots, description and
I/O information assigned.
c. Detailed Information of Each Modules: prints the detailed module information for specified slot module.
9-25
XG5000 User’s Manual
2) Print Preview
[Sequence]
1. Select [Print Button]-[Print] on the I/O Parameter Dialog Box.
2. Click [Preview] on the [Print Dialog Box].
3) Copy to Clipboard
It is used to print the I/O parameter table to the clipboard, thus to add onto the String editor, word
processor or spread sheet.
[Sequence]
1. Select [Print Button]-[Copy to Clipboard] on the I/O parameter Dialog Box.
Notes
- While printing clipboard, the print options are not available but always I/O configuration table only
available to print.
9-26
Chapter 9 Parameters
Note
- If one line is not effective, it is shown as pink color
- D, M, T, C area are available for device auto-allocation area
- One device can be set with diverse parts
- Start device should be smaller than End device or equal
- In case of timer, sets 4 types (0.1, 1, 10, 100ms) of timer auto-allocation area (TIMER0_1, TIMER1,
TIMER10, TIMER100 timer type)
- For Latch 1 start, Latch 1 End, Latch 2 Start, Latch 2 End, refer to basic parameter information and
displays
9-27
Chapter 10 Online
Chapter 10 Online
Available functions only with PLC connected will be described below.
[Dialog Box]
a d
e
b
10-1
XG5000 User’s Manual
g. Retrial times: used to specify the times to retry to connect with PLC if the communication
connection fails.
h. Read/Write data size in PLC run mode: used to specify the frame size of data to transfer. This
option is available only when the PLC operation is in Run mode. In other operation modes, data
will be transferred in the maximum frame size.
Notes
- Default Timeout interval is 5 seconds.
- In the following cases, warning message may occur. If warning message occurs set timeout interval
more than 5 seconds.
1) Set timeout interval less than 5 seconds.
2) Timeout interval is less than 5 seconds when opening an existing project.
3) Timeout interval is less than 5 seconds when reading from PLC.
10-2
Chapter 10 Online
Notes
- Default is RS-232C COM1 with the communication speed of 115200bps.
- 38400bps and 115200bps available for communication speed.
- Communication speed is 115200bps for XGK Series, and 38400bps for remote connection via Rnet.
- Communication ports of COM1 ~ COM8 are available.
- If USB serial device is used, a virtual COM port will be assigned to the communication port. Check
the Device Manager in Windows to determine assigned COM # port.
- Connection in XG5000 and Connection in XG-PD, device monitor and system monitor are available
with one PLC at the same time. However, it will be the same communication port.
Notes
- USB device driver has to be installed for USB to connect to PLC. It should install when connecting the
first time.
- When XG5000 is installed, USB driver will be installed automatically. If USB driver is not normally
installed, download the applicable driver from LSIS Home Page to install.
10-3
XG5000 User’s Manual
[Dialog Box]
Notes
- Ethernet shall be connected with PC to connect to Ethernet.
- IP is as specified in Ethernet communication module.
- Use Ping in the CMD line in Windows start menu previously to ensure normal connection is allowed with
the specified IP. Type CMD in the Run or Search window to initiate the command line (CMD).
10-4
Chapter 10 Online
2) Modem Connect
1. Select the Connection Type of Modem.
2. Click the setting button to specify modem details.
[Dialog Box]
b
c
10-5
XG5000 User’s Manual
[Steps]
1. Select the Connection Type of RS-232C.
2. Select the Connection Step of Remote 1.
3. Click the setting button to specify Remote 1.
[Dialog Box]
b
c
e
f
Notes
- Only if the network type is Enet or FEnet, IP address will be active. If not, IP address will be inactive
with the Station number active.
- Base number of 0~7 and slot number of 0~15 is available.
10-6
Chapter 10 Online
[Dialog Box]
e
f
10-7
XG5000 User’s Manual
10.2 Connect/Disconnect
10.2.1 Connect
[Steps]
1. Select [Online]-[Connect] on the menu.
2. The Dialog Box will appear while connecting.
3. If connected to PLC, the Online menu and Online status will be displayed.
4. If password is setup in the PLC, Password input dialog will be displayed.
5.Connection will be established if the input password is match with the PLC password.
10-8
Chapter 10 Online
Notes
- If connected to PLC fast, the Dialog Box may appear and disappear quickly while connecting.
- After connected, PLC’s status will be displayed at the side of project name on the project window
and on the status display line.
- If any other application program is already connected while PLC connected, its main Online
functions are unavailable.
- After PLC connected, connecting its cable to other PLC with different type will make the former
PLC disconnected automatically.
- When Disconnect is selected, Monitor and Debug functions will be also ended.
10-9
XG5000 User’s Manual
-Notes
- Check Points when connection is failed.
1) RS-232C
Check if RS-232C cable connection between Computer and PLC is correct.
Check if the number of COM port of computer is match with the number of COM port where
the cable is connected. When using a USB to serial adapter, verify the assigned COM port
number.
Check if the link of RS-232C cable is correct.
Check if the status of PLC is normal.
2) USB
Check if USB cable connection between Computer and PLC is correct.
Check if the computer found the PLC as an USB device correctly.
a) Connect the computer and PLC with USB cable.
b) Click [Control Panel]-[System]-[Hardware Tab]-[Device Manager]. Navigation to the
Device Manager varies with Windows versions.
c) Check if the computer found the PLC as an USB device correctly in the [Device
Manager] dialog box.
d) If there is “yellow exclamation mark” or “Unknown Device”, it means that the computer
have not found the driver file for connected device.
Abnormal connection
10-10
Chapter 10 Online
Normal connection
3) Ethernet
Check if Ethernet cable (LAN cable) connection between Computer and PLC is correct.
Check if the IP and Gateway of Ethernet module is correct. The IP and Gateway of Ethernet
module can be read or written with XG-PD software, which can be executed when [Tools]-
[Network Manager] on the XG5000 menu bar is clicked.
Check if the Ethernet module responds correctly, if the IP and Gateway of Ethernet module is
correct.
a) Click “Execute” which can be seen when Start button of Windows is clicked.
b) Input “command” in the Execute dialog box.
c) Execute ping test for Ethernet module in the Command Prompt. Type “ping IP address” and
press ‘Enter’ key. If the Ethernet module responds normally, the screen will show the
communication status as below. And if the Ethernet module does not respond, the screen will
show “Time out” message.
10-11
XG5000 User’s Manual
10-12
Chapter 10 Online
10.3 Write
[Steps]
1. Select [Online]-[Connect] to connect to PLC via Online.
2. Select [Online]-[Write].
3. Select the data to transfer to PLC and then click [OK] to start to transfer the selected data to PLC.
[Dialog Box]
10-13
XG5000 User’s Manual
[Dialog Box]
a e
b
c
f
d
[Dialog Box]
a d
10-14
Chapter 10 Online
-Notes
- The special module parameter Write is available only when I/O parameter Write is selected.
- Modification Write time during Run will take much longer than during Stop.
- If PLC is in Run mode, Comment only is available to write.
10.4 Read
It is used to upload programs, parameters and comments saved in PLC for the present project.
[Steps]
1. Select [Online]-[Connect] to connect to PLC.
2. Select [Online]-[Read].
3. Click [OK] after items to upload from PLC are selected. The uploaded items will be applied to the
present project.
Notes
- Refer to 10.3 Write for comment of each Dialog.
10-15
XG5000 User’s Manual
[Steps]
1. Select [Online]-[Connect] to connect to PLC.
2. Select [Online]-[Change Mode]-[Run/Stop/Debug].
3. PLC operation mode will change as selected by the user.
Notes
- PLC’s remote dip switch shall be ON with the operation mode dip switch in Stop.
- The program in PLC shall be identical to that in the project to convert to Debug mode.
- If converted from Stop to Run mode, a Dialog Box will appear to inform that the program is being
converted to an executable code inside PLC. This Dialog Box may not be closed for up to 30
seconds according to the program size.
- If converted to Run mode, the following Dialog Box will appear while initialization task is executed.
After the initialization task is over or disconnected, the Dialog Box will disappear.
- If converted to Run or Debug mode, Run or Debug function will not be normal if any error occurs
on PLC. Delete the PLC error first and then convert the operation mode.
- If in the [Option]-[Online] is unchecked, the confirm
message will not display when Mode Change instruction is executed.
10-16
Chapter 10 Online
[Steps]
1. Select [Online]-[Connect] To connect to PLC.
2. Select [Online]-[Compare with PLC].
3. Select an object to compare and then click [Compare].
[Dialog Box]
Notes
- The result of Compare is identical to the menu [Project]-[Compare Project].
- Refer to ‘Compare Project’ for detailed result of Compare.
10-17
XG5000 User’s Manual
10-18
Chapter 10 Online
10-19
XG5000 User’s Manual
10.7.2 Download/Upload
It is used to download or upload files such as OS, BBM, etc. for the communication module.
[Procedures]
1. Select the menu [Online]-[Connect] for connecting to the PLC.
2. Select the menu [Online]-[Communication module setting]-[Download/Upload].
3. Select the communication modules to be downloaded/uploaded.
4. Select the File Type.
5. Select the BBMBoot, download, upload button depending on the file types.
10-20
Chapter 10 Online
[Procedures]
1. Select the menu [Online]-[Connect] for connecting to the PLC.
2. Select the menu [Online]-[Communication module setting]-[EIP tag download].
10-21
XG5000 User’s Manual
In case the communication module is Pnet or Dnet module, it is used to upload the configuration information
set for the module.
[Procedures]
1. Select the menu [Online]-[Connect] for connecting to the PLC.
2. Select the high-speed link window to be Config. Uploaded.
3. Select the menu [Online]-[Communication module setting]-[Config. upload].
4. The information to be Config. uploaded to the high-speed link window will be displayed.
[Procedures]
1. Select the menu [Online]-[Connect] for connecting to the PLC.
2. Select the menu [Online]-[Communication module setting]-[System Diagnosis].
Note
-For more details on system diagnosis, refer to the communication module manual.
10-22
Chapter 10 Online
It is used to reset PLC. Reset PLC is also available with ‘Reset PLC’ radio button.
[Steps]
1. Select [Online]-[Connect] to connect to PLC.
2. Select [Online]-[Reset PLC].
3. After reset type selected, click [OK] button to reset PLC.
[Dialog Box]
Notes
- Reset and Overall reset are available for its type.
- Reset: when PLC powered back, it will delete error/warning information to allow power on.
error/warning may occur continuously based on the situation.
- Overall reset: when PLC powered back, it will delete error/warning information, latch 1 area data, I/O
skip, error mask and forced I/O setting area to allow power on.
- Be careful! PLC after reset will be off and then on again.
10-23
XG5000 User’s Manual
[Procedures]
1. Select the menu [Online]-[connect] for connecting to the PLC.
2. Select the menu [Online]-[Reset/Clear]-[Reset individual module].
3. Tick the communication module to be reset and press OK button.
Note
- For more details on reset of individual communication module, refer to the communication module manual.
10-24
Chapter 10 Online
It deletes programs, respective parameter, comment, and memory and latch area in PLC.
[Steps]
4. Select [Online]-[Connect] to connect to PLC.
5. Select [Online]-[Clear PLC].
6. Select items to delete and then click Clear to start Clear PLC.
[Dialog Box]
b
a
10-25
XG5000 User’s Manual
[Dialog Box]
a b
10-26
Chapter 10 Online
[Dialog Box]
a
c
Notes
- Delete is available only when PLC’s remote dip switch is ON with operation mode dip switch in Stop
mode and PLC operation in Stop mode.
- If Start address is larger than End address, Clear Memory is not available.
- Be careful! The data once deleted will not be recovered.
Clear Latch is used to delete the device value specified as a latch area. Latch Set in PLC will not be
deleted. In order to delete the Latch Set in PLC, modify the basic parameters and then download the
basic parameters onto PLC.
10-27
XG5000 User’s Manual
[Procedures]
1. Select the menu [Online]-[Reset/Clear]-[Clear all PLC].
2. The message will be displayed; “All programs, parameters, passwords, data of the PLC are deleted”.
3. If you press [Yes] button, the connect setup window will be displayed.
4. If you press [OK] button in the connect setup window, the process [Delete all PLCs] will be executed.
Note
-The function [Clear all PLC] is available in some XGB models only.
10-28
Chapter 10 Online
10.12 SD Format
[Procedures]
1. Select the menu [Online]-[Connect] for connecting to the PLC.
2. Select the menu [Online]-[Reset/Clear]-[SD Format].
The message on matters that require attention is displayed.
3. If you click [Yes] button, the format window will be displayed and if you select ‘Start’ button, SD card will
be formatted.
Note
- The function [SD Format] is available in some XGB models only
10-29
XG5000 User’s Manual
It is the function to delete the high-speed link and P2P parameters set in the communication module.
[Procedures]
1. Select the menu [Online]-[Connect] for connecting to the PLC.
2. Select the menu [Online]-[Reset/Clear]-[Delete parameters].
3. Select the parameters to be deleted and press the OK button.
4. Execute the process ‘Delete selected parameters’.
Note
- For more details on deleting parameters, refer to the communication module manual.
10-30
Chapter 10 Online
It shows the information of PLC connected, where password and PLC timer can be set.
[Sequence]
7. Select [Online]-[Connect] to connect to PLC.
8. Select [Online]-[PLC Information].
9. Select the CPU tap.
[Dialog Box]
10-31
XG5000 User’s Manual
[Steps]
10. Select [Online]-[Connect] to connect to PLC.
11. Select [Online]-[PLC Information].
12. Select the Performance tap.
[Dialog Box]
d
e
10-32
Chapter 10 Online
[Dialog Box]
[Dialog Box]
10-33
XG5000 User’s Manual
10.14.3 Password
User password can be specified, changed or deleted to protect PLC information.
[Sequence]
13. Select [Online]-[Connect] to connect to PLC.
14. Select [Online]-[PLC Information].
15. Select the Password tap.
[Dialog Box]
a
d
b
c e
[Password Setting]
1. Input a new password in Edit Box ‘b’ for New Password Input
2. Input the new password again in Edit Box ‘c’ for New Password Confirm as identical as in 1 above.
3. Click Change button ‘e’ to set the new password in PLC.
10-34
Chapter 10 Online
[Password Changes]
1. Input the password saved in PLC in Edit Box for current Password Input.
2. Input a new password in Edit Box ‘b’ for New Password Input.
3. Input the new password again in Edit Box c for New Password Confirm as identical as in 2 above.
4. Click Change button ‘e’ to change the password of PLC.
[Password Delete]
1. Input the password saved in PLC in Edit Box for current Password Input.
2. Click Clear d to delete the password of PLC.
Notes
- Up to 8 letters is available for the password.
- Letters used as password will be classified into capital or small.
- Special letters can be used for password.
- If password is setup in the PLC, the PLC asks the password when connection is tried and the PLC permit
to connection when password is correct.
Notes
In order to protect the program in the PLC and user intellectual property, enhanced password function with
new password process is supported at XG5000 V3.4 or above
Enhanced password function is applied to the following CPU OS or above
In case of using the following CPU version or above, you should use the latest XG5000.
10-35
XG5000 User’s Manual
[Steps]
16. Select [Online]-[Connect] to connect to PLC.
17. Select [Online]-[PLC Information].
18. Select the PLC RTC tap.
[Dialog Box]
b
d
e
10-36
Chapter 10 Online
It displays the history data of error/warning, Change Mode and Shut down Log saved in PLC.
[Sequence]
19. Select [Online]-[Connect] to connect to PLC.
20. Select [Online]-[PLC History].
21. Select the Error Log tap on PLC History Dialog Box.
[Dialog Box]
c d e g
10-37
XG5000 User’s Manual
[Dialog Box]
10-38
Chapter 10 Online
[Dialog Box]
Notes
- Base number where the power is cut also will be displayed.
10-39
XG5000 User’s Manual
[Dialog Box]
Notes
- Each history is arranged in time sequence.
- Each history will be saved on “.csv” file. This file can be open through Excel or other String editing
programs.
- Double-click the first column of the list to change the arrangement method.
- On each Dialog Box displayed, 100 histories will be read respectively. Press Read All button to read
more PLC histories.
- If the histories of PLC are less than 100, Read All button will be inactive.
10-40
Chapter 10 Online
Error/Warning and previous Error Log presently saved in PLC can be checked.
[Steps]
22. Select [Online]-[Connect] to connect to PLC.
23. Select [Online]-[Error/Warning].
[Dialog Box]
Notes
- If any error or warning occurs during connection or Online, the Error/Warning dialog box will appear.
- If the error is “I/O parameter discordant, I/O installation error, fuse error, I/O Read/Write error, special
communication module error”, the applicable error’s slot information will be displayed as well.
- If a program error (produced when PLC is converted from Stop to Run) or execution program error
(produced when PLC is in Run), double-click the area of program name to move to the applicable
step if the program is identical to PLC program.
10-41
XG5000 User’s Manual
[Procedures]
1. Select the menu [Online]-[Connect] for connecting to the PLC.
2. Select the menu [Online]-[diagnosis]-[I/Q information].
10-42
Chapter 10 Online
[Procedures]
1. Select the menu [Online]-[Connect] for connecting to the PLC.
2. Select the menu [Online]-[diagnosis]-[Save PLC history].
3. If you click [diagnosis]- [Save PLC history], the window for saving will show up.
4. Save the PLC’s history so far.
10-43
XG5000 User’s Manual
Flash memory operation of PLC can be specified. Flash memory operation: When PLC operation mode
Changes to Run, it executes Run operation after copying the program in the flash memory to the program
memory. In other words, it runs PLC through the program in the flash memory. (PLC operation in Run mode: it
means that the operation mode changes from Stop to Run, and that the operation mode is Run when PLC is
powered back on)
[Steps]
24. Select [Online]-[Connect] to connect to PLC.
25. Select [Online]-[Set Flash Memory].
[Dialog Box]
a
b
10-44
Chapter 10 Online
Notes
- If a flash memory operation mode is specified, the program can be copied to the flash memory after
Program Write or Modification Write during Run.
- The flash memory operation mode setting is used to recover the program in the event of a PLC loss
of program in RAM memory.
10-45
XG5000 User’s Manual
Notes
- To obtain Forced I/O information, it will take about 5 sec. at a speed of 115200bps with RS-232C
connected, or about 1 sec. with USB.
[Dialog Box] c b
a
d
h i j k l
10-46
Chapter 10 Online
Button Description
<< Used to move to 8 words previous address.
b. Forced Input: used to decide to allow Forced Input or not. Forced input value per bit will be applicable
only when the Forced Input is allowed.
c. Forced Output: used to decide to allow Forced Output or not. Forced output value per bit will be
applicable only when the Forced Output is allowed.
d. Apply: saves the changed items in PLC without closing the dialog box.
e. Forced I/O: used to specify the flag and data for each bit.
Notes
- The flag displays the Forced I/O application status for each bit. If the flag is selected, it means
Enable, and if not, it means Disable.
- The data displays the forced value. If selected, 1 will be the forced value, and if not, 0 will be the
forced value. However, it is effective only when the flag is in Enable status.
Flag Data Forced Value
0 (not selected) 0 (not selected) X
f. Setting device list: displays the device with the Forced I/O flag or data specified.
g. Delete: deletes the flag and data specified in the selected device from the specified devices list.
h. Variables: displays the Variable list.
i. Delete All: used to cancel the specified flag and data for all areas.
j. Select All: used to specify the flag and data for all areas.
k. OK: applies the changed items and closes the dialog box.
l. Cancel: closes the dialog box.
Notes
- If Variables Dialog button is pressed, the only Variable declared on P device will be displayed.
10-47
XG5000 User’s Manual
Notes
- In case the assignment method of fixed points of 64-bit is used for each module, the flag and data can
be specified for the other bits than the output module points if not identical to the points of the output
module actually installed on PLC. Ex) If 16-poit output module is installed on the basic base, the flag
and data can be specified for the 48 points.
10-48
Chapter 10 Online
1. Move to P0004. Use the button or directly input the area desired to move to.
10-49
XG5000 User’s Manual
3. Select the flag of the bit 7. As the forced output value of the bit 7 is 0, no data needs to be selected.
4. Select the Forced Output Enable Flag and then click Apply button to apply the forced value.
10-50
Chapter 10 Online
2. Cancel the bit 3 and 7’s flag selected to cancel the forced output value
10-51
XG5000 User’s Manual
Skip I/O is used to decide to inspect I/O and update I/O for the specific module during PLC operation. This
function is available for the XGK and XGR Series PLCs.
[Sequence]
4. Select [Online] - [Skip I/O].
b
[Dialog Box]
c d e f
10-52
Chapter 10 Online
[Sequence]
10-53
XG5000 User’s Manual
3. Select the check box of the status column. At this moment ‘*’mark will be added to the base.
10-54
Chapter 10 Online
10-55
XG5000 User’s Manual
10-56
Chapter 10 Online
10-57
XG5000 User’s Manual
2. Cancel the check box selected. As the base Skip I/O is canceled, the Skip I/O for each slot can be
specified or canceled.
Notes
- Click [OK] button to apply the specified Skip I/O.
10-58
Chapter 10 Online
It is used to decide to the module operating in Fault or not during PLC operation.
[Sequence]
2. Select [Online]-[Fault Mask Setting].
[Dialog Box] b
c d e f
[Description of Dialog Box]
a. Base Fault Mask: used to apply base module’s fault mask. If the base module’s mask is specified, all
slots in the base will be of the fault mask.
b. Slot Fault Mask: used to apply the fault mask for each slot.
c. Show Existing Base Only: shows existing base only
d. Details: displays detailed information of the special module or the communication module only.
e. OK: applies the changed items and closes the dialog box.
f. Cancel: closes the dialog box.
Notes
- Canceling the ‘Fault Mask’ is identical to Skip I/O. Refer to Skip I/O Setting for details.
10-59
XG5000 User’s Manual
Notes
- The I/O Information dialog box which is similar to Fault Mask or I/O skip dialog box when [Online]-[I/O
Information] is selected. I/O Sync. Button will be activated when PLC is STOP Mode.
- The I/O Parameter of XG5000 project will be synchronized with the real module installation information
when I/O Sync. button is clicked. Please be careful since the previous I/O parameter will be erased.
10-60
Chapter 10 Online
Note
- Module Changing Wizard can be executed only in Run mode
- In case there is PLC error, you can’t start Module Changing Wizard.
- Module Changing Wizard will not run when PLC has an error.
[Steps]
3. Select [Online]-[Module Changing Wizard].
4. Select the module to change at the module selection stage and then click Next button.
10-61
XG5000 User’s Manual
[Dialog Box]
b c
d e f
10-62
Chapter 10 Online
c d e
[Description of Dialog Box]
a. Comment: displays the comment of the module confirming stage.
b. Module Information: displays detailed information on the selected module.
c. Back: used to move to the module selection stage.
d. Next: used to move to the Removing Module.
e. Cancel: closes the ‘Module Changing Wizard’.
10-63
XG5000 User’s Manual
4. Click Next button if the information displayed is identical to the module to change, or click Back button
to go back to the previous stage. In order to cancel the Module Changing Wizard, click Cancel button.
5. Remove the module at the Removing Module.
[Dialog Box]
b c d
[Description of Dialog Box]
a. Description: displays the comment of the Removing Module.
b. Back: used to move to the confirming stage of the module removal.
c. Next: used to move to the module installation stage.
d. Cancel: closes the Module Changing Wizard.
6. If the module removed, click Next button. Or click Back button to move back to the previous stage. Or click
Cancel to cancel the Module Changing Wizard.
Notes
- If the module is not removed normally, an error message will appear on the comment.
10-64
Chapter 10 Online
b c d
[Description of Dialog Box]
a. Description: displays the comment of the module installation stage.
b. Back: used to move to the Removing Module.
c. Next: used to move to the confirming stage of the module installation.
d. Cancel: closes the Module Changing Wizard.
8. If the module installed, click Next button. Or click Back button to move back to the previous stage. Or click
Cancel to cancel the Module Changing Wizard.
Notes
- If the module is not correctly installed, an error message will appear on the comment.
10-65
XG5000 User’s Manual
b c
[Description of Dialog Box]
f. Description: indicates module is correctly installed.
g. Back: It will be unavailable, as going back to previous stage is prohibited after the module changed.
h. Finish: finishes the Module Changing Wizard.
Notes
- If the Module Changing Wizard is cancelled, Fault Mask and Skip I/O may be set to protect the
applicable module.
10-66
Chapter 10 Online
Notes
- If you want to change the module without the Wizard, follow the sequence described below.
[Sequence]
1. Set the Skip I/O for the module to change.
2. Set the Fault Mask for the module to change.
3. Remove the module from PLC.
4. Install a new module.
5. Release the Skip I/O for the applicable module.
6. Select [Online]-[PLC Error/Warning] to check for any error on the applicable module.
7. If no error found on the applicable module, release the Fault Mask for the module.
- Refer to Skip I/O and Fault Mask for more details on Skip I/O and Fault Mask specified for the module.
10-67
XG5000 User’s Manual
Custom Events are a series of events specified by the user. 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.
10.24.1 Example
The event is defined as the data of M0000 whose data is increase by 1 every scan is greater than 100 and
less than 110, and if the event is true, the PLC stores the data of M0000.
[Steps]
6. Make a program as follow.
10-68
Chapter 10 Online
7. Write the program to the PLC and select [Monitor]-[Custom Event] on the Online menu.
8. Open Event Setup dialog box by clicking [Add event] and setup each item as shown below.
10-69
XG5000 User’s Manual
9. Open ‘Associated Device Setup’ dialog box and setup the bit device M00100 and word device M0000
as figure below to store the data when event is met.
10-70
Chapter 10 Online
10. Click ‘OK’ button. Click the Apply PLC button. A message box will be displayed as figured below since
the event setup has been changed. Click ‘Yes’ button on the message box.
10-71
XG5000 User’s Manual
12. Select [Monitor]-[Custom Event] on the Online menu to view the event history. Select event history
tab on the ‘Custom Event’ dialog box.
13. An ‘Event History’ dialog box will be displayed when an event item is selected.
10-72
Chapter 10 Online
[Steps]
14. Select [Monitor] - [Custom Events].
15. Click the event setting tap on the user event dialog box.
[Dialog Box]
c d e f
Notes
- Refer to 1) User Event Item Add for details on each item of the events list.
10-73
XG5000 User’s Manual
[Dialog Box]
b
Notes
- Refer to Chapter 4 Variable/Comment for details on device type and display format.
b. Variables: displays Variable/Comment Dialog Box. The device can be selected from Variable/
Comment declared in the Variable/Comment Dialog Box.
c. Event condition: used to specify the condition to make the user event occur. If rising condition
selected, the user event will occur when the event device value changes from 0 to 1. And if falling
condition selected, the user event will occur when the event device value changes from 1 to 0. If
transition condition selected, the user event will occur whenever the event device value changes.
d. Type: used to specify the user event type. An applicable type can be selected among Information,
Alarm and Warning.
e. Message: used to input an event message. The maximum length of the message is 80 characters in
English) (40 in Korean). The event message input is displayed with Event History menu.
f. OK: applies the changed items and closes the Dialog Box.
g. Cancel: closes the Dialog Box.
10-74
Chapter 10 Online
3. Used to input event device. Or click the Variable/Comment button to select the device from the declared
Variable/Comment.
4. Specifies event conditions.
5. Specifies event type.
6. Used to input an event message.
7. Select the Associated devices setting tap to specify the Associated devices.
[Dialog Box]
10-75
XG5000 User’s Manual
Notes
- If related devices are specified, the value of the related devices will be also recorded when
applicable events happen.
- Up to 8 related devices can be specified in up to 16 bytes based on the data type of the device input.
Supported data type and its respective byte size are as shown below.(XGB : Up to 4 related devices)
8. Click [OK] to save the input items, or click Cancel to cancel it.
Notes
- Up to 10 custom events may be registered. (XGB : Up to 5 custom events)
2) Edit Event
Edit Event is used to edit the user event items input.
[Steps]
1. Select the event to edit.
10-76
Chapter 10 Online
3) Delete Event
It deletes the user event input.
[Steps]
2. Select [delete].
10-77
XG5000 User’s Manual
4) Event Capture
It is used to decide to allow all custom events or not.
[Steps]
1. Click Enable to allow the event, or click Disable not to allow.
[Steps]
1. Select the event to make enabled.
2. Select the Event ID Row. If the event is enabled, will be displayed, and if disenabled,
will be displayed.
10-78
Chapter 10 Online
3. Select [Paste].
2. Select [Cut].
10-79
XG5000 User’s Manual
4. Select [Paste].
8) Delete All
[Steps]
1. Select [Delete All].
9) Save Event
Since the user defined event is saved in PLC, it shall be additionally saved to manage as files.
[Steps]
1. Select [Save Event].
2. Input a file name to save with on File Save Dialog Box and click [OK].
Notes
- The event, if opened, will be added to the list of the present events.
- Up to 10 events is available. More than 10 will not be added to the list.
10-80
Chapter 10 Online
[Steps]
3. Select [Monitor] [Custom Event].
4. Select the Event History tap on the user event dialog box.
[Dialog Box]
b c d e
[Description of Dialog Box]
a. Event History List: displays the event history found on PLC.
b. Menu: displays the event history-related menu.
c. Apply PLC: inactive on the event history page.
d. OK: applies the changed items and closes the Dialog Box.
e. Cancel: closes the Dialog Box.
Notes
- Refer to 1) Detailed Event History for the selected event history item.
10-81
XG5000 User’s Manual
[Steps]
1.Select the item to display its Event History.
10-82
Chapter 10 Online
2. Select [Information]. b
[Dialog Box]
a e
f
c
g
10-83
XG5000 User’s Manual
2) Refresh
It updates the event history as recent details in PLC.
1.Select [Refresh].
3) Event Filtering
The history can be displayed on the event type.
10-84
Chapter 11 Monitoring
Chapter 11 Monitoring
11.1 Monitoring
XG5000’s monitoring functions (Start/Stop Monitoring, Pause, Resume, Pausing Conditions, Change Current
Value) are described below.
[Start Monitoring]
1. Select [Online]-[Connect] on the menu for on-line connection to PLC.
2. Select [Monitor]-[Start/Stop Monitoring] on the menu to start monitoring.
3. If LD or IL program is active, it will be now in monitoring mode changed.
Notes
- When monitoring starts, correct value may not be monitored if PLC program and XG5000 program
are different.
[Stop Monitoring]
1. Select [Monitor]-[Start/Stop Monitoring] on the menu to stop monitoring.
Notes
- If already started, monitoring will end. If not started yet, monitoring will start.
[Sequence]
1. Select [Online]-[Connect] on the menu for on-line connection to PLC.
2. Select [Monitor]-[Start Monitoring] on the menu to start monitoring.
3. Select device or variable on the program or variable monitoring window.
11-1
XG5000 User’s Manual
[Dialog Box]
a
b
c
11-2
Chapter 11 Monitoring
Notes
- Default of the value is displayed based on the device’s display type.If it is displayed in hexadecimal
when monitored, current value changed must be in hexadecimal.
- When OK button is pressed, an error will occur if the input valve is of an incorrect data type or out of
range.
- Hexadecimal input shall be started with h” attached as shown in “h1234”.
- For string input, the string valve must be enclosed in single quotation marks, i.e. “This is the correct
format”.
- If device is a P Type or a bit device, only a binary (1 or 0) change is allowed..
- If compulsory I/O button is active, edit box of current value input and On/Off setting button will be inactive.
- Change Current Value and Compulsory I/O Setting will not be executed at a time.
1) Pause Monitoring
The user can directly stop monitoring momentarily.
[Sequence]
2) Restart Monitoring
The user can directly resume monitoring when it is paused.
[Sequence]
Notes
- PLC is in Run mode, even if monitoring is paused.
- Monitored value will be updated in the PLC when in pause mode. The edited value will be updated in the
PLC program when monitoring is resumed.
11-3
XG5000 User’s Manual
3) Pausing Conditions
If the selected device(s) meet the pause conditions, monitoring will be paused.
[Sequence]
[Dialog Box]
a b cd e f g h i
a. Select All: used to check all items with no error to allow on the list.
b. Use: used to check setting status of Pause Monitoring.
c. Type: used to select device type.
d. Reset All: used to cancel all the selected items allowed.
e. Device: used to input device name to stop monitoring momentarily.
f. Condition: used to select conditions to stop monitoring momentarily.
g. Set value: used to input condition value to stop monitoring momentarily.
h. Variable: used to display variables declared in device.
i. Comment: used to display description declared in device.
j. Find: used to find the device to pause monitoring on Variable/Comment list.
k. OK: used to save changed details and close dialog box.
l. Cancel: used to close dialog box without saving changed details.
11-4
Chapter 11 Monitoring
Notes
- Up to 10 Pause Monitoring conditions can be assigned.
- Items with errors will not be saved even if OK button pressed.
- An incorrect monitoring condition will be highlighted in pink.
- String data cannot be used in Pause Monitoring conditions.
- # Device (#D00001), Index Device (P0000[Z0100]) and Double Device (#P0000[Z0100]) do not support
Pause Monitoring.
- Among 5 conditions [==, >, <, >=, <=] available for Pause Monitoring, one can be selected.
11-5
XG5000 User’s Manual
With XG5000 in monitoring status, it displays contact points in LD diagram (ordinarily open contact point,
ordinarily closed contact point, positive transition detection contact point, negative transition detection contact
point), coils (coil, reverse-coil, set coil, reset coil, positive transition detection coil, negative transition
detection coil) and application instruction’s current value.
Notes
- Monitor-related color described in this manual is provided by XG5000. Applicable color may be
changed on the menu [Tools]-[Options]. Refer to the option item in Chapter 2, Basic Application for
more details.
2. Ordinarily closed contact point: If applicable contact point’s value is On status, device value will be displayed
in red, and the power flow inside the contact point will not be displayed.
3. Positive transition detection contact point: displayed as identically as ordinarily open contact point.
4. Negative transition detection contact point: displayed as identically as ordinarily closed contact point.
11-6
Chapter 11 Monitoring
1. 4.
2. 5
3. 6.
1. Coil: If applicable coil’s value is On status, device (or variable) value will be displayed in red, and the
power flow inside the coil in blue.
2. Reverse-coil: If applicable coil’s value is On status, device (or variable) value will be displayed in red, and
the power flow inside the coil will not be displayed.
3. Set coil: displayed as identically as coil.
4. Reset coil: displayed as identically as coil.
5. Positive transition detection coil: displayed as identically as coil.
6. Negative transition detection coil: displayed as identically as coil.
Applicable value is directly displayed on application instruction’s operand. Data of application instruction is
displayed based on monitoring display format.
11-7
XG5000 User’s Manual
Notes
- Displayed data of application instruction can be specified on Monitor/Debugger page on the menu
[Tools]-[Options]-[Online]. Refer to the option item in Chapter 2 Basic Application for more details.
[Monitor Stop]
1. Select [Monitor]-[Start/Stop Monitoring] on the menu.
Notes
- Program edits are prohibited except Modification during Run Mode when monitored.
- Refer to Section 1 of this chapter, Monitor in Common for details on Pause Monitoring and Change
Current Value.
- When monitoring starts and stops, LD diagram height will change to display application
instruction’s current value, which will take some time according to the program size.
11-8
Chapter 11 Monitoring
a b c d e f g
a. PLC: Shows the names of PLCs that can be registered. XG5000 can monitor multiple PLC’s so the PLC
should be individually named.
b. Device/variable: Inputs the device name. # device or double device also can be set up.
c. Type: Sets up the types of registered devices. BIT, WORD, DWORD, LWORD, INT, DINT, LINT, REAL,
LREAL, STRING can be selected.
d. Value: Displays the value of the selected device during monitoring. You can change the value through
‘Change Current Value of Monitoring’.
e. Variable/device: Displays the variable name when the device name is assigned to the variable/comment
list and variable name exists. If it is not registered to the variable/comment list, it will be displayed as a
blank. Press ‘Enter’ or double-click the mouse on the position of the variable column, you can select the
variables from the variable list.
f. Comment: Displays the device comment.
g. Error Display: Displayed as pink highlight color.
Error:
- If PLC name, device, type is not input
- If the device address is wrong.
- If the device is out of the area depending on the type.
- If the device type is not supported or the PLC name does not exist.
- Variable monitor tab: The variable monitor window is composed of 4 windows.
11-9
XG5000 User’s Manual
Notes
- The areas of value, variable and comment column can not be edited by user.
- 4 variable monitoring taps can not be monitored at the same time.
- The number of devices available to register in variable monitoring is unlimited.
- Only the part displayed on the screen will be monitored.
- The more devices monitored, the slower the monitoring may renewed.
- Even if not in monitoring mode, register is available on variable monitoring.
[Sequence]
1. On the monitoring window, click the right button of the mouse to select [Register in Variable/Comment].
2. [Select] dialog box will appear if PLCs are 2 or more included in the project. Select PLC to register.
11-10
Chapter 11 Monitoring
3. If [Select] dialog box appears, select variables to register on the variable monitoring windows.
[Dialog Box]
Notes
- Several items can be selected at a time on Select Variable/Device dialog box.
- The selected item is added at the last line of the variable monitoring windows.
- An item identical to previously registered item can be also registered.
11-11
XG5000 User’s Manual
2) Register All
Many devices with an identical variable type (BIT, WORD……) can be registered.
[Sequence]
1. On the variable monitoring window, click the right button of the mouse to select [Register All].
2. [Select] dialog box will appear if PLCs are 2 or more included in the project. Select PLC.
3. [Register All] dialog box will appear.
[Dialog Box]
a
b
c
11-12
Chapter 11 Monitoring
Notes
- Up to 100 can be registered all at a time.
- The item to register is added at the last line of the variable monitoring windows.
- An item identical to previously registered item can be also registered.
3) Register by user
The user can directly input items to register on the variable monitoring windows.
PLC, Type and Device Column can be edited directly by user.
Notes
- Copy, Paste and Delete functions supported.
1. Copy: available in String format on the variable monitoring windows. Paste is available onto Excel
or other String editor.
2. Paste: Paste is available onto variable monitoring after Copy from Excel or other String editor.
3. Delete: used to delete not the selected cell but the selected row.
4. Delete is available with several rows selected.
- Undo or Redo functions are not supported.
11-13
XG5000 User’s Manual
[Sequence]
1. Select the area from other windows (LD, IL, Variable/Comment windows) to register on the variable
monitoring.
Area to register onto the variable monitoring from LD window – Red Edge
11-14
Chapter 11 Monitoring
2. Drag onto the variable monitoring window along with the mouse’s left button being pressed on the
selected area.
- Cursor shape and input image will be created if the mouse is moved onto the variable monitoring
window as shown below.
3. Release the mouse’s left button after positioned on the row of the variable monitoring window to insert the
selected items into.
4. The selected items will be registered on the variable monitoring window.
Notes
- The larger the number of variables to register, the longer the registration time.
- The number of registers is unlimited.
- If the items are inserted in the middle of rows, they will be registered between rows.
- With the mouse’s left button still pressed, move onto variable monitoring number taps (Monitoring 1,
Monitoring 2, Monitoring 3 and Monitoring 4) to register on the applicable variable monitoring taps.
11-15
XG5000 User’s Manual
11.3.2 View
1) Detailed/Briefly
Detailed/Briefly is a helpful function to view as many a variable as possible on the screen of the variable
monitoring window.
[Sequence]
1. On the variable monitoring window, select [Briefly] on the menu displayed by the right button of the mouse.
2. It will be shown as below;
3. Select [Detailed] again to display the following figure containing many a row.
11-16
Chapter 11 Monitoring
Notes
- ‘Briefly’ will hide the columns for PLC, Type, Variable and Comment.
- Even if in Brief View mode, the hidden columns can be viewed through View function.
- The number of rows is decided by the size of the variable monitoring window.
- In Brief View mode, the number of rows will be changed if the size of the Variable Monitoring
Window changed.
- Even if in Brief View mode, Register, Delete and Edit functions are all available. (However, Undo &
Redo functions are not supported.)
- In Brief View mode, mouse tool tips are available.
- Mouse tool tips can display PLC, Type, Device and Variable only. However, the variable if declared
will be displayed.
2) Show function
The user can select the column as desired.
[Sequence]
1. On the variable monitoring window, click the right button of the mouse to select [View Option]-[Column
Name (PLC, Type, Device, Value, Variable, Comment)] on the menu displayed.
11-17
XG5000 User’s Manual
Notes
- Default is Show All.
- This function is also available in Detailed View mode.
- The value column does not support Hide function.
- If converted to Detailed or Brief View mode, hidden columns will be displayed as default.
- String in the hidden columns can not be copied. Thus, the String in the hidden columns can not be
pasted onto other editors.
3) Display
Display of the monitoring value of the device registered on the variable monitoring can be changed.
[Sequence]
1. On the variable monitoring window, click the right button of the mouse to select [Unsigned Decimal,
Signed Decimal, Hexadecimal and String] on the menu displayed.
Signed X X X O O O O O X
Decimal
Hexadecimal O 0 0 O O O O O O
String X X X X X X X X O
Notes
- Bit type if viewed in unsigned decimal will be displayed “On/Off”.
- Hexadecimal is displayed with small letter ‘h’ as shown in “h10AC”.
- String is displayed in “”as shown in “adcd”.
- Separately applicable from the monitoring option.
- Display menus will be active or inactive based on available display type.
11-18
Chapter 11 Monitoring
[Sequence]
1. Select [Monitor]-[Start/Stop Monitoring] on the menu.
2. The item with identical Start Monitoring PLC name and the item with no error will execute Monitoring.
Notes
- PLC’s device value will not be displayed if not monitored.
- Any item with error will not be monitored. These rows will be highlighted in pink.
- Edit, Add and Delete are available even during monitoring.
[Sequence]
1. Select [Monitor]-[Start/Stop Monitoring] on the menu.
2. Select [Device].
3. Select [Monitor]-[Change Current Value] on the menu. Or double-click the value cell of the device selected
on the variable monitoring window, or press Enter.
4. Dialog box of Change Current Value will appear, where user can directly input the current value.
5. Click OK button to transfer the setting value to PLC.
11-19
XG5000 User’s Manual
11.3.4 Find
1) Find
It helps find string based on the classification by capital/lower case letter, partial string and direction.
Notes
- On the variable monitoring, Find function is not available.
- On the variable monitoring, Change function is not available.
- Value is regarded as string not as figure when Find function is executed in the value column.
2) Find Again
It is used to find again the string found before. Execute Find on the program or Variable/Comment, and then
execute Find Again on the variable monitoring to start to find.
11.3.5 Print
It prints the variable monitoring tap presently active.
Notes
- The variable monitoring tap if not active will not be printed.
- Value even if being monitored can be printed.
- The screen will be printed as is. Hidden columns can not be printed.
- Print Preview function is not available.
Notes
- Some shortcut keys cannot be changed as specified by user.
11-20
Chapter 11 Monitoring
11.3.7 Sortation
Alignment can be changed to sort ascending or descending.
[Sequence]
1. Double-click the left mouse button positioned on the header of the column to sort.
3. After sortation, an arrow figure will be displayed according to ascending or descending sequence.
Notes
- If sorted in descending sequence, a downward arrow image will be displayed. And if sorted in
ascending, an upward arrow image will be displayed.
- It is not sorted yet when the project is opened.
- If sorted once more in descending sequence, it will be aligned in ascending sequence.
- Align function in row unit (horizontally) is not available.
11-21
XG5000 User’s Manual
System Monitoring is used to display PLC’s slot information, I/O information assigned, module status and
data value.
Module Information Window displays the information of the slot installed on PLC. After reading the module
information saved in PLC, it displays it on the data display screen of the module information window.
Select one of those specified below to view Base.
- Select items on the module information window. (Ex. Base 0, Base 1, …)
- Select [Base] items on the menu. (Select First, Previous, Next, Last base)
- Use the direction key on the keyboard to position the module’s cursor on the base to select.
Notes
- If System Monitoring is executed on the XG5000 menu, it will be in Connect and Monitoring status.
11-22
Chapter 11 Monitoring
11.4.2 Connect/Disconnect
System Monitoring can be created by a call from XG5000, or can be also executed solely.
Thus, the connection is available to PLC with Connect options. If connected with PLC, base information is
read from PLC to display on the module information window.
[Sequence]
1. Specify Connect options.
2. Confirm that cable is installed applicably to connection method.
3. Select [PLC]-[Connect] on the menu to connect.
4. Select [PLC]-[Disconnect] on the menu to disconnect.
Notes
- System Monitoring when executed will start to connect with the saved Connect options.
- If executed in XG5000, it will start to connect with XG5000’s Connect options.
- Default of Base 0 will be displayed on the screen.
[Sequence]
1. Confirm the connection status with PLC.
2. Select [PLC]-[System Synchronization] on the menu.
Notes
- If System Synchronization is executed, the module information only will be updated.
- Refer to Basic Parameter Information for details on I/0 assignment method.
11-23
XG5000 User’s Manual
[Sequence]
1. Confirm the connection status with PLC.
2. Select [PLC]-[All I/O modules ON] on the menu.
[Sequence]
1. Confirm the connection status with PLC.
2. Select [PLC]-[All I/O modules OFF] on the menu.
[Sequence]
1. Confirm the connection status with PLC.
2. Select [PLC]-[Selected I/O modules ON] on the menu.
[Sequence]
1. Confirm the connection status with PLC.
2. Select [PLC]-[Selected I/O modules OFF] on the menu.
11-24
Chapter 11 Monitoring
[Sequence]
1. Confirm the connection status with PLC and the monitoring mode.
2. Position the mouse cursor on the I/O module’s contact point to change the cursor to hand shape.
3. Click the I/O module’s contact point.
Notes
- Move the mouse onto I/O contact point to display the assigned device on the status bar.
- If I/O skip is specified, it will be displayed always OFF.(Only applies to certain PLC Series.)
- If I/O is forced, the forced value will always be displayed.
[Sequence]
1. Confirm the connection status with PLC.
2. Select one method among those below to display the module information.
- With Power Module selected, select [PLC]-[Module Info.] on the menu.
- With Power Module selected, click the right button of the mouse to select [Module Information] on
the menu.
- With Power Module selected on the Module Information window, click the right button of the mouse
to select [Module Info.] on the menu.
- If Power Module is selected on the screen, press Enter.
- Double-click the mouse positioned on Power Module displayed on the screen.
Notes
- If the number of power-cuts exceeds 100, only up to 100 can be displayed on the screen.
- No module information is available for empty slot and I/O module.
11-25
XG5000 User’s Manual
[Sequence]
1. Confirm the connection status with PLC.
2. Select one method among those below to display the module information.
- With CPU Module selected, select [PLC]-[Module Info.] on the menu.
- With CPU Module selected, click the right button of the mouse to select [Module Info.] on the menu.
- With CPU Module selected on the Module Information window, click the right button of the mouse to
select [Module Info.] on the menu.
- If CPU Module is selected on the screen, press Enter.
- Double-click the mouse positioned on CPU Module displayed on the screen.
11-26
Chapter 11 Monitoring
[Sequence]
11-27
XG5000 User’s Manual
[Sequence]
1. Confirm the connection status with PLC.
2. Select one method among those below to display the module information.
- With Special Module selected, select [PLC]-[Module Info.] on the menu.
- With Special Module selected, click the right button of the mouse to select [Module Info.] on the menu.
- With Special Module selected on the Module Information window, click the right button of the mouse
to select [Module Info.] on the menu.
- If Special Module is selected on the screen, press Enter.
- Double-click the mouse positioned on Special Module displayed on the screen.
[Detailed Description]
Classification Description
Module type Provides special module’s type and its detailed information.
O/S version Provides special module’s installed O/S version information, which will be helpfully
used for upgrading module O/S later.
O/S updated date Provides special module’s latest O/S updated date information.
Module status Provides special module’s present status (error code) information.
11-28
Chapter 11 Monitoring
1) Start Monitoring
[Sequence]
1. Confirm the connection status with PLC.
2. Select [PLC]-[Start Monitoring] on the menu.
2) Stop Monitoring
[Sequence]
1. Confirm the connection status with PLC.
2. Select [PLC]-[Stop Monitoring] on the menu.
11-29
XG5000 User’s Manual
Notes
- Please refer to the special module manual or chapter 11.6 Special Module monitoring for the
details of special module monitoring.
- Module Info may be used with the Positioning Module. Special Module monitoring is not
available for the Positioning Module.
- Monitoring of the Positioning Module may be done with XG-PM software included in te
XG5000 installation.
11.4.13 Save
It is used to save the system information and data presently displayed on the screen.
[Sequence]
1. Select [File]-[Save] on the menu.
2. Select [File]-[Save As] on the menu to save the data as a different name.
Notes
- File extension will be set as (.smi).
11.4.14 Open
It is used to read the system information file previously saved.
[Sequence]
1. Select [File]-[Open] on the menu.
- Double-click an applicable file name.
- Drag & drop the file onto the System Monitoring to open it.
[Sequence]
1. Move to the first base.
- Select [Base]-[First Base] on the menu.
2. Move to the previous base.
- Select [Base]-[Previous Base] on the menu.
3. Move to the next base.
- Select [Base]-[Next Base] on the menu.
4. Move to the last base.
- Select [Base]-[Last Base] on the menu.
11-30
Chapter 11 Monitoring
11.4.16 Preview
This function is used to preview the image to be printed.
On the Preview window, the user can modify the area to be printed.
[Sequence]
1. Click [Preview].
- Select [File]-[Preview] on the menu.
2. Modify the area of the image displayed.
3. Move the mouse to the edge.
4. Mouse cursor will be changed.
5. Move the mouse while being clicked to modify the size.
Notes
- The selected area of Preview will be saved.
- In monitoring mode, Preview is not available.
11-31
XG5000 User’s Manual
Device Monitoring can monitor all the device areas’ data in PLC.
It can write or read data value on the PLC’s specific device. In addition, Device Monitoring can display the
data value selectively when displayed or input on the screen according to bit format and display method.
The device information window displays all the device areas in PLC, based on CPU type.
11-32
Chapter 11 Monitoring
How to open the device is as follows. Double-click the device icon (Ex. P, T, …) or click the right button of the
mouse to select [Open Device] on the menu.
Notes
- Device monitoring is available when XG5000 is connected to the PLC and Start Monitoring
is selected. (Monitoring is enabled.)
- If not in Monitor Mode, the data in the device monitor will display its previously updated
value.
11-33
XG5000 User’s Manual
1) 16 bits
Data size of the device is displayed in 16 bits.
[Sequence]
1. Select [View]-[View Option]-[16 bit] on the menu.
Notes
- Assigned device of the selected cell is displayed in the status bar.
- The data in each cell represents the Device Area address. The starting address for each
row of cells is designated in the left side column.
11-34
Chapter 11 Monitoring
2) 32 bits
Data size of the device is displayed in 32 bits.
[Sequence]
1. Select [View]-[View Option]-[32 bit] on the menu.
[Detailed Description]
- 32-bit P0000 device is of memory format united with 16-bit device P0000 and P0001.
16 bits
P0000 P0001 P0002 P0003
1234 5678 0000 FFFF
32 bits
P0000 P0001
5678 1234 0000 5678
11-35
XG5000 User’s Manual
3) 64 bits
Data size of the device is displayed in 64 bits.
[Sequence]
1. Select [View]-[View Option]-[64 bit] on the menu.
[Detailed Description]
- 64-bit P0000 device is of memory format united with 16-bit P0000, P0001, P0002 and P0003.
16 bits
64 bits
P0000 P0001
FFFF 0000 5678 1234 1234 FFFF 0000 5678
11-36
Chapter 11 Monitoring
4) Binary
Data is displayed in binary.
[Sequence]
1. Select [View]-[View Option]-[Binary] on the menu.
[Detailed Description]
- Data value is displayed by 1, 0, ‘ ‘ (blank).
Application Example
Hexadecimal 1234
Binary 0001 0010 0011 0100
11-37
XG5000 User’s Manual
5) BCD
Data is displayed in BCD.
[Sequence]
1. Select [View]-[View Option]-[BCD] on the menu.
[Detailed Description]
- Data value is displayed by the figures of 0 ~ 9.
Application Example
Hexadecimal 1234
BCD 1234
11-38
Chapter 11 Monitoring
6) Unsigned decimal
Data is displayed in unsigned decimal.
[Sequence]
1. Select [View]-[View Option]-[Unsigned Decimal] on the menu.
[Detailed Description]
- Data value is displayed by the figures of 0 ~ 9.
Application Example
Hexadecimal 1234
Unsigned decimal 4660
11-39
XG5000 User’s Manual
7) Signed Decimal
Data is displayed in signed decimal.
[Sequence]
1. Select [View]-[View Option]-[Signed Decimal] on the menu.
[Detailed Description]
- Data value is displayed by the figures of 0 ~ 9.
Application Example
Hexadecimal 1234
Signed decimal 4660
11-40
Chapter 11 Monitoring
8) Hexadecimal
Data is displayed in hexadecimal.
[Sequence]
1. Select [View]-[View Option]-[Hexadecimal] on the menu.
11-41
XG5000 User’s Manual
9) Real
Data is displayed in real.
[Sequence]
1. Select [View]-[View Option]-[Real] on the menu.
[Detailed Description]
- Data value is displayed in real.
- Real format is available in 32 bits and 64 bits.
Application Example
Hexadecimal 5678 1234
Real 6.818927e+013
11-42
Chapter 11 Monitoring
10) Text
Data is displayed in ASCII string.
[Sequence]
1. Select [View]-[View Option]-[Text] on the menu.
[Detailed Description]
- Data value is displayed in ASCII string.
Application Example
Hexadecimal 1234
Text 4
11-43
XG5000 User’s Manual
[Sequence]
1. Select [View]-[View Option]-[Current Value] on the menu.
11-44
Chapter 11 Monitoring
[Sequence]
1. Select [View]-[View Option]-[Setting Value] on the menu.
11-45
XG5000 User’s Manual
[Sequence]
- [Sequence]-[Bit Value] on the menu.
11-46
Chapter 11 Monitoring
[Sequence]
1. Select [View]-[View Option]-[Textbit] on the menu.
11-47
XG5000 User’s Manual
15) Numberbit
This function is used to display the bit value data by the figures of 1/0 in T and C devices.
[Sequence]
1. Select [View]-[View Option]-[Numberbit] on the menu.
1) Edit Cell
It is used to edit data on the cell.
[Sequence]
1. Use the mouse or keyboard to select an optional cell.
2. Input data into the selected cell.
2) Cut
It is used to delete the data of the selected area to save it in the clipboard.
[Sequence]
1. Select the area to cut.
2. Select [Edit]-[Cut] on the menu.
11-48
Chapter 11 Monitoring
3) Copy
Copy is used to copy the data of the selected area to save it in the clipboard.
[Sequence]
1. Select the area to copy.
2. Select [Edit]-[Copy] on the menu.
4) Delete
Delete is used to delete the data of the selected area.
[Sequence]
1. Select the area to delete.
2. Select [Edit]-[Delete] on the menu.
5) Paste
Paste is used to paste the data saved in the clipboard on a selected location.
[Sequence]
1. Select the area to paste.
2. Select [Edit]-[Paste] on the menu.
6) Fill
Fill is used to fill the selected data.
[Sequence]
1. Use the mouse to select the cell area to fill automatically.
2. Position the mouse at the end of the cell to make the mouse cursor shaped “+” .
3. Move the mouse with its left button pressed upward and downward.
4. Release the left button of the mouse.
11-49
XG5000 User’s Manual
[Sequence]
1. Select [File]-[Save] on the menu.
2. Select [File]-[Save As] on the menu to save the data as a different name.
- File extension will be set as (.mem).
[Sequence]
1. Select [File]-[Export Device to File] on the menu.
- File extension will be set as (device+m). (Ex. pm, mm, lm,…)
11-50
Chapter 11 Monitoring
[Sequence]
1. Select [File]-[Export Device to File] on the menu.
2. Select the device to save from the combo box.
- File extension will be set as (device+m). (Ex. pm, mm, lm,…)
[Sequence]
1. Select [File]-[Open] on the menu.
11-51
XG5000 User’s Manual
[Sequence]
1. Select [File]-[Import Device from File] on the menu.
[Sequence]
1. Select [File]-[Import Device from File] on the menu.
2. Select the device to open from the combo box.
Notes
- If in monitoring mode, Export and Import Device from File are inactive.
11-52
Chapter 11 Monitoring
[Sequence]
1. Select [Edit]-[Fill Data Area] on the menu.
11-53
XG5000 User’s Manual
a
b
d f
Notes
- Device name is displayed on the title to call dialog box of Setting Data Value.
11-54
Chapter 11 Monitoring
[Sequence]
1. Select [Edit]-[Clear Data] on the menu.
2. A message will be called to ask if you want to delete the whole device areas.
11-55
XG5000 User’s Manual
[Sequence]
1. Confirm PLC is connected and the monitoring mode is inactive.
2. Select [PLC]-[Write to PLC] on the menu.
3. Select the device to write on Write dialog box of PLC.
4. Click OK to write the selected device on PLC.
11-56
Chapter 11 Monitoring
[Dialog Box]
Notes
- Since the setting value of T & C devices is available only for Read, it can not be written on PLC.
- F device’s exclusive Read areas can not be written to PLC. Exclusive Read areas are based on
the type of CPU.
[Sequence]
1. Ensure PLC is connected and the monitoring mode is inactive.
2. Select [PLC]-[Read from PLC] on the menu.
3. Select the device to read from Read dialog box of PLC.
4. Click OK to read the selected device from PLC.
11-57
XG5000 User’s Manual
[Dialog Box]
b
c
[Sequence]
1. Select the area to write on PLC.
2. Select [PLC]-[Write Selected Area to PLC] on the menu.
3. A message will be called to ask if you want to write the selected area on PLC.
11-58
Chapter 11 Monitoring
1) Start Monitoring
It reads the device data from PLC to display in the on-line status.
[Sequence]
1. Confirm the connection status with PLC.
2. Select [PLC]-[Start Monitoring] on the menu.
2) Stop Monitoring
Stop Monitoring stops reading the device data from PLC in the on-line status.
[Sequence]
1. Confirm the connection status with PLC.
2. Select [PLC]-[Stop Monitoring] on the menu.
Notes
- When in monitoring mode, the data can not be edited.
- When in monitoring mode, [Write to PLC], [Read from PLC], [Write Selected Area to
PLC] are not available.
11-59
XG5000 User’s Manual
[Sequence]
1. Confirm PLC is connected and the monitoring mode is active.
2. Select [PLC]-[Change Current Value] on the menu.
3. Dialog box of Change Current Value will be called.
[Dialog Box]
a
b
c
Notes
- If the current value is changed in string display format, the data value of 32-byte area is
changed always from the start device.
11-60
Chapter 11 Monitoring
[Sequence]
1. Select [File]-[ PLC Type Settings] on the menu.
[Dialog Box]
Notes
- While connected with PLC, the present PLC type can be displayed only. It cannot be
changed..
1) Screen Zoom-In
It zooms in the screen.
[Sequence]
1. Select [View]-[Zoom-In] on the menu.
2) Screen Zoom-Out
It zooms out the screen.
[Sequence]
1. Select [View]-[Zoom-Out] on the menu.
11-61
XG5000 User’s Manual
1) Width AutoFit
It adjusts the size to the string length of the cell.
[Sequence]
1. Select [View]-[Width AutoFit] on the menu.
[Sequence]
1. Select [View]-[Height AutoFit] on the menu.
11.5.17 Properties
Properties is used to change the font and font size of the data value displayed on the screen. In addition, the
color of the data value can be changed if in monitoring mode.
[Sequence]
1. Select [View]-[View Properties] on the menu.
2. Select [Font…] to change font
3. Select [Color…] to change color.
4. Click OK to apply the newly specified value.
[Dialog Box]
c d
11-62
Chapter 11 Monitoring
[Sequence]
1. Select [File]-[Page Setup] on the menu.
2. Specify margins.
3. Show or hide title and grid lines as necessary.
4. Specify the sequence of pages to print with priority of row or column.
5. Specify the print type of the center of page, horizontal or vertical.
11-63
XG5000 User’s Manual
Select [Monitor]-[Special Module Monitoring] on the menu of XG5000 program to display “Special Module”
list dialog box (as shown in Fig. 1). “Special Module List” dialog box displays the information list of the
special module presently installed on the PLC system for the user to select a module on the list and then to
click [Monitor] in order to show “Special Module Monitoring” dialog box (as shown in Fig. 2). Through the
“Monitoring/Test” screen, the user can directly change the parameter value saved in the special module while
checking its status (as shown in Fig. 3).
[Dialog Box]
11-64
Chapter 11 Monitoring
Monitoring
Screen
a
b
Parameter
Setting
Screen
11-65
XG5000 User’s Manual
Screen for
Contact
e
Point Input
Signal
Status
Instruction
f
Screen
11-66
Chapter 11 Monitoring
Notes
- HS counter Flag monitoring and instruction functions are available with HS counter module
selected by the user on the special module screen.
11-67
XG5000 User’s Manual
Trend monitoring is used to read the data periodically from the connected PLC and display the data in a
graphical format. The trend monitoring window is composed of bit graph and trend graph. In the bit graph,
bit device’s On/Off status is displayed in stair-shaped graph. And in the trend graph, the variation trend of
the data is displayed with the device value converted from word to data format specified.
11.7.1 Example.
The current value of a counter, C0000, incrementing every second and limited to 10, will be displayed with
trend graph.
[Steps]
1. Make a program as follows.
2. Write the program to the PLC ans change the mode RUN.
3. Select [Monitor]-[Trend Monitoring] on the menu to display the trend monitor window.
11-68
Chapter 11 Monitoring
6. Click ‘OK’ button and close the dialog box. The device C0000 is registered in the trend graph.
11-69
XG5000 User’s Manual
7. Uncheck ‘View Bit Graph’ on the [View]-[Bit Graph] menu. Since the trend graph only will be displayed.
8. Click [Monitor]-[Start/Stop Monitoring] and the monitoring will be started. The current value of counter,
C0000, will be displayed with trend graph.
Notes
- The data to display on the trend monitoring may be different from the actual data. In order to
monitor correct timing, use the data trace function.
- Refer to 11.8 for details on the data trace function.
11-70
Chapter 11 Monitoring
[Sequence]
1. Select [Graph]-[Graph Settings] on the menu.
[Dialog Box]
a b
c d
e
g h
[Description of Dialog Box]
a. Max. sample to display: displays the maximum number of samples available to scroll in the graph.
b. Maximum time of sampling to display.
c. Max. sample to keep: displays the maximum number of samples available to save on the file.
d. Maximum time of sampling to keep (save).
11-71
XG5000 User’s Manual
Notes
- The ‘Max. samples to display’ can not be greater than the ‘Max. sample to keep’.
- The ‘Max. time to display’ can not be greater than the ‘Max. time to keep’.
- The relationship between the Max. samples to keep and the Max. sample to displayed is as shown
below. In the figure below, ‘Graph’ is of a graph area presently displayed on the screen, which is
available to scroll horizontally as many as the max. samples displayed.
Value
Scroll available section
Graph
Time
Max. sample to display
- The Max. samples to keep means the max. number of samples available to save on the file.
Refer to the section of 11.7.5 ‘8) Text’.
e. Frequency: used to specify the cycle to read data from PLC. The shorter the cycle is, the more
accurate the data is, which may affect the PLC scan and PC performance.
f. Device Setting: used to designate the device to monitor. The device can be displayed in bit or in real
as specified.
g. OK: applies the changed items and closes the dialog box.
h. Cancel: closes the dialog box.
[Sequence]
1. Select the bit graph tap on the Setting Monitoring dialog box.
2. Input the device of bit type. Or double-click the variable column to select the declared device on the
Variable/Comment dialog box.
Notes
- Up to 8 bit devices are available to register.
11-72
Chapter 11 Monitoring
[Sequence]
1. Select the trend graph tap on the Setting Monitoring dialog box.
2. Input the device of word type. Or double-click the variable column to select the declared device on the
Variable/Comment dialog box.
3. Click the type column to select the data type.
Notes
- Up to 12 trend devices are available to register.
- Supported data types are as follows;
11-73
XG5000 User’s Manual
[Sequence]
1. Select [Graph]-[Graph Settings] on the menu.
[Dialog Box]
a
b
c
e
f
g
h i
11-74
Chapter 11 Monitoring
Notes
- The max./min. value is applied only to Y-axis of the trend graph. If not selected, the Y-axis data is auto-
scaled.
- The min. value input can not be greater than the max. value.
- The actual data’s max./min. value range and specified graph’s max./min. value range are as shown
below. Only the range in gray will be displayed in the graph.
Value
Time
e. Bit graph legend: used to specify the position of bit graph index. No Index, Left Upper, Right Upper,
Left Bottom and Right Bottom are available for the Bit Index Position.
f. Trend graph legend: used to specify the position of trend graph index. No Index, Left Upper, Right
Upper, Left Bottom and Right Bottom are available for the Trend Index Position.
g. Color: used to specify device color of each graph.
h. OK: applies the changed items and closes the dialog box.
i. Cancel: closes the dialog box.
Notes
- If View Check Box is cancelled in Setting Color, its applicable device will not be displayed in the
graph.
11-75
XG5000 User’s Manual
[Sequence]
1. Select the device to change its graph color.
2. Click the color column to display applicable dialog box. On the dialog box, select desired color and then
click [OK] button.
[Sequence]
1. Select the device to change its Graph Option.
11-76
Chapter 11 Monitoring
[Sequence]
1. Select [Graph]-[Graph Settings] on the menu.
[Dialog Box]
c
d
11-77
XG5000 User’s Manual
1) View Cursor
View Cursor is used to display the data value the mouse is positioned on.
[Sequence]
1. Select [Graph]-[View Cursor] on the menu.
2. Click the left mouse button to select the graph. Whenever the mouse moves, the data value the cursor is
positioned on will be displayed.
Notes
- View cursor function is only active when in Stop Monitoring/Pause Monitoring.
2) Scroll Synchronization
Scroll Synchronization is used to decide to synchronize the bit graph with the trend graph in time axis. It is
useful in monitoring the bit graph and the trend graph data with the identical time.
[Sequence]
Select [Graph]-[Scroll Sync.] on the menu.
11-78
Chapter 11 Monitoring
1. Move the horizontal scroll bar to scroll the bit graph and the trend graph at the same time based on Scroll
Synchronization specified.
[Sequence]
1. Select [Graph]-[Zoom In X axis], [Zoom Out X axis], [Reset X-axis] on the menu. Based on the selected
item, X-axis’s time interval will be increased, decreased or back to basic value.
11-79
XG5000 User’s Manual
[Sequence]
1. Select [Graph]-[Zoom In Y axis], [Zoom Out Y axis], [Reset Y axis] on the menu. Based on the selected
item, Y-axis’s height will be increased, decreased or back to basic value.
[Sequence]
1. Select [Graph]-[X axis Autofit] on the menu.
11-80
Chapter 11 Monitoring
[Sequence]
1. Select [Graph]-[Adjust Y-axis Automatically] on the menu.
Notes
- If the Y axis Autofit is not selected, the display will be based on the max./min. value specified in
Graph Settings.
7) Save as Bitmap
It is used to save the graph presently displayed on the screen on the file in window bit map.
[Sequence]
1. Select [Graph]-[Save as Bitmap] on the menu.
2. Input a file name to save with and then click [OK].
8) Save as Text
It is used to save the graph data on the file in text. Samples as many as the max. samples kept specified in
setting the max. graph will be saved.
[Sequence]
1. Select [Graph]-[Save as Text] on the menu.
2. Input a file name to save with and then click [OK].
Notes
- The String file will be saved in CSV format of Excel.
11-81
XG5000 User’s Manual
9) Copy to Clipboard
Copy to Clipboard is used to copy the graph presently displayed on the screen onto the window clipboard.
[Sequence]
1. Select [Graph]-[Copy to Clipboard] on the menu.
Notes
- The data will not be displayed if ‘Y axis auto scale’ is setup and the variant of data is less than
2.2e-016. The graph will be displayed as figure below.
11-82
Chapter 11 Monitoring
Trace Data is used to specify trace condition and device to trace in PLC so to collect the data complying
with the specified condition from PLC. In XG5000, applicable data read from PLC will be displayed in a
graph. While being similar to the trend monitoring described in 11.7, it can collect more correct data as
read from PLC.
Sequence Details
Ready Confirm the connection with PLC and the Run status of PLC.
Decide to allow trace or not, And specify trigger condition, sample properties
Setting Trace
and trace device. Refer to 11.8.3 for more details.
Write trace setting items on PLC. Refer to 1) Write Trace Setting Items in
Write to PLC
11.8. 5 for more details.
Start trace with specified trigger conditions automatically or with manual trace
Start Trace
selected. Refer to 11.8.3 Setting Trace for detailed trigger setting, and 4) Start
Manual Trace in 11.8.5 for detailed manual trace.
Read Data
Read trace data from PLC. Refer to 3) Read Trace in 11.8.5 for more details
11-83
XG5000 User’s Manual
[Sequence]
1. Select [Monitor]-[Data Traces] on the menu.
a
b
e
f
h i j
[Description of Window]
a. Menu: displays the data trace menu.
b. Tool Box: displays the tool box of the data trace.
c. Bit graph Index: displays bit device and graph color.
d. Bit graph: displays the data of bit device.
e. Word graph Index: displays word device and graph color.
f. Word graph: displays the data of word device.
g. Status bar: displays the status of data trace.
h. Progress bar: displays the progress status if data is read from PLC.
i. PLC status: displays off-line status and the operation status of PLC.
j. Trace status: displays the trace status of PLC.
11-84
Chapter 11 Monitoring
11.8.1 Connect
[Sequence]
1. Select [Online]-[Connect] on the menu.
Notes
- Refer to 10.1 Connect Options in XG5000 manual for details on Connect Options.
[Sequence]
1. Select on the menu [Trace]-[Setting Trace].
[Dialog Box]
a
b
c
d
e
f
g
h
i
j k
11-85
XG5000 User’s Manual
Notes
- Use the number of samples in total and the number of samples after triggered to apply various
collection methods.
a. Number of Samples in Total = Number of Samples after triggered: a method to collect data after
triggered, which will be used when the data before triggered is not necessary.
b. Number of Samples in Total > Number of Samples after triggered (≠0): a method to collect data
even before triggered, which will be used when the data before and after triggered is necessary.
c. Number of Samples after triggered = 0: a method not to collect data after triggered, which will
be used when the data after triggered is not necessary.
[Sequence]
1. Select the check box of bit condition.
2. Input the device to use as a bit condition. Bit device format only is available.
3. Specify trigger condition, where rising or falling is available. Rising means that the device value changes
from 0 to 1, and falling means that the device value changes from 1 to 0.
11-86
Chapter 11 Monitoring
[Sequence]
1. Select the check box of word condition.
2. Input the device to use as a word condition. Word device format only is available.
3. Input constant value to compare with word device value.
4. Select a condition to use to compare with the constant value input. Available conditions are as follows.
< (less than), <= (less than or equal to), == (equal to), >= (greater than or equal to), > (greater than),
[Sequence]
1. Select the Bit device settings tap on dialog box of Data Trace Settings.
[Dialog Box]
a b
11-87
XG5000 User’s Manual
2. Input the device of bit type. Click the right mouse button and select [Add Line] to add a line. Click the right
mouse button and select [Delete Line] to delete the device input.
Notes
- Devices of bit type can be input up to 16.
[Sequence]
1. Select the word device setting tap on dialog box of Data Trace Settings.
[Dialog Box]
a b
c
11-88
Chapter 11 Monitoring
Notes
- Devices of word type can be input up to 8(XBMS: Max. 4)
- Supported data types are as follows.
[Sequence]
Select [Graph]-[Graph Settings] on the menu.
[Dialog Box]
a
b
c
d
f g
11-89
XG5000 User’s Manual
[Sequence]
1. Select the device to change its graph color.
2. Click the color column to display applicable dialog box. On the dialog box, select desired color and then
click [OK] button.
11-90
Chapter 11 Monitoring
11.8.4 Trace
Trace is used to read the data traced from PLC or the data specified.
[Sequence]
1. Select [Trace]-[Write Trace Settings] on the menu.
[Sequence]
1. Select [Trace]-[Read Trace Settings] on the menu.
[Sequence]
1. Select [Trace]-[Read Trace] on the menu.
[Sequence]
1. Select [Trace]-[Start Manual Trace] on the menu. If data is presently traced, the applicable menu will be
inactive.
11.8.5 Simulation
Using the trace data read from PLC, it displays the data in the sequence of time.
1) Simulation Settings
[Sequence]
1. Select [Simulation]-[Simulation Setting] on the menu.
11-91
XG5000 User’s Manual
[Dialog Box]
b c
[Description of Dialog Box]
a. Frequency: used to specify the cycle to update the data sample on the screen. Available data update
cycles are 20, 50, 100, 200, 500, 1000 and 2000ms value.
b. OK: applies the changed items and closes the dialog box.
c. Cancel: closes the dialog box.
2) Simulation
It is used to start Simulation. Simulation will be active only with trace data available.
[Sequence]
1. Select [Simulation]-[Start Simulation] on the menu.
3) Simulation Pause
It is used to stop Simulation in progress momentarily.
[Sequence]
1. Select [Simulation]-[Simulation Pause/Resume] on the menu.
4) Simulation Resume
It is used to continue Simulation which was momentarily stopped.
[Sequence]
1. Select [Simulation]-[Simulation Pause/Resume] on the menu.
5) Stop
It is used to stop Simulation.
[Sequence]
1. Select [Simulation]-[Stop Simulation] on the menu.
11-92
Chapter 11 Monitoring
1) Move Trigger
It moves the trigger to its generated point of time.
[Sequence]
1. Select [Graph]-[Go to Trigger Position] on the menu.
1) Open
[Sequence]
1. Select [File]-[Open] on the menu.
2. Select a file name to open on File dialog box and then click [OK].
2) Save
[Sequence]
1. Select [File]-[Save] on the menu.
2. Input a file name to save with on File Save Box and then click [OK].
3) Save as
[Sequence]
1. Select [File]-[Save As] on the menu.
2. Input a different file name to save with on File Save Box and then click [OK].
[Sequence]
1. Select [File]-[Send]-[Save as Bitmap] on the menu.
2. Input a file name to save with and then click [OK].
11-93
XG5000 User’s Manual
5) Save Text
Save Text is used to save the graph data on the file in text. Samples as many as the max. samples kept
specified in setting the max. graph will be saved.
[Sequence]
1. Select [File]-[Send]-[Save Text] on the menu.
2. Input a file name to save with and then click [OK].
6) Copy Clipboard
It is used to copy the graph presently displayed on the screen onto the window clipboard.
[Sequence]
1. Select [File]-[Send Out]-[Copy Clipboard] on the menu.
[Sequence]
1. Select/Cancel [View]-[‘Tool Name’] on the menu.
[Sequence]
1. Select/Cancel [View]-[Status bar] on the menu.
3) Data
It displays trace data in value. View Data will be active only with trace data available.
[Sequence]
1. Select [View]-[Data] on the menu.
11-94
Chapter 11 Monitoring
[Dialog Box]
b
e
[Description of Dialog Box]
a. Trace info: displays the trace sampling cycle.
b. View Settings: displays the trace details.
c. Data Grid: displays the current value specified in the sequence of the samples. The sample data will
be displayed in negative before triggered, and in positive after triggered.
d. Minimum, Maximum, Average: displays the Min., Max., and Average value per device.
e. Close: closes the dialog box.
11-95
XG5000 User’s Manual
With PID monitor, you can set data value by loop unit and monitor it for PID control. XGI/XGR supports 8
blocks (256 loops). Representative function of PID monitor is as follows.
XBC PLC’s support 16 PID loops.
XBC PLC PID monitoring can be done with Trend Graphing a device monitor.
11-96
Chapter 11 Monitoring
[Detail description]
a. Graph: indicates PV (Present Value), MV (Manipulated Value), SV (Setting value) among PID monitor
value as trend graph
b. Monitor window: monitors real data value of PID variable, you can’t edit value in the monitor window
c. Detail setting window: indicates value of setting item adjusting monitor value. The user can edit at
online/off line.
11-97
XG5000 User’s Manual
[Sequence]
Select menu [File]-[Save All Loops]
After inputting file name, press ‘Save’ button
2) Save Block
How to save at menu
[Sequence]
Select [File]-[Save Block]
[Sequence]
Select block to save at block information window
Push the right button of mouse and select [Save Block]
11-98
Chapter 11 Monitoring
3) Save Loop
How to save at block information window
[Sequence]
Select loop to save at block information window
Push the right button of mouse and select [Save Loop]
After inputting file name, press ‘Save’ button
[Sequence]
Push ‘Loop Save’ button at loop monitor window
After inputting file name, press ‘Save’ button
Note
Extension per file type is as follows
- Save All Loops: ppc
- Save Block: ppb
- Save Loop: ppl
11-99
XG5000 User’s Manual
[Sequence]
Select [File]-[Open All Loops]
After inputting file name, push ‘Open’ button
2) Open Block
How to open at menu
[Sequence]
Select [File]-[Open Block] at menu
[Sequence]
Select block to open at block information window
Press the right button of mouse and select [Open Block]
11-100
Chapter 11 Monitoring
3) Open Loop
How to open at block information window
[Sequence]
Select loop to open at block information window
Press the right button of mouse and select [Open Loop]
After inputting file name, push ‘Open’ button
[Sequence]
Press Open Loop button at loop monitor window
After inputting file name, push ‘Open’ button
[Sequence]
Press the right button at block information window and select [Establish Loop Name]
Input name you want and press OK
Note
You can set/adjust loop name at Selected Loop tap of block information window
11-101
XG5000 User’s Manual
[Sequence]
Press the right button at block information window and select [Add/Del Selected Loop]
Check if check box in front of loop number is set or not at block information window
Check if selected loop is added or not at Select Loop tap of block information window
Note
You can add/delete loop or block by clicking check box of block information window.
11-102
Chapter 11 Monitoring
Print Preview
[Sequence]
Select [File]-[Print Preview]
Print function
[Sequence]
Select [File]-[Print] or [Print] at preview window
Note
Print/Print Preview supports only one loop at one time
[Sequence]
Sets connection method through [PLC]-[Connection Settings]
Select [PLC]-[Connection]
[Sequence]
Select loop at block information window
Open loop monitor window by double-clicking
Input the value at detail setting window of loop monitor window
Press the PLC Write button or select [PLC]-[Write Loop]
11-103
XG5000 User’s Manual
[Sequence]
Select [PLC]-[Write All]
2) End Monitoring
Ed Monitoring stops monitoring PID data value of PLC
[Sequence]
Select [PLC]-[End Monitoring]
Note
- In the monitor mode, you can’t edit detail setting. You can change setting value only by [Edit]-
[Change Current Value]
- In the monitor mode, you can’t execute [PLC Write], [PLC Read], [Loop Open] and [Loop Save] is
only available.
11-104
Chapter 11 Monitoring
[Sequence]
If it is not monitor mode, select [PLC]-[Start Monitoring]
Select block and loop you want at block information window
Open relevant loop by double-clicking relevant loop or using ENTER key
Move the mouse to cell you want to set at loop monitor window
Push the right button and select [Change Current Value] or push the ENTER key
Change value and press OK
[Dialog box]
a
b
c
d
Note
[Current Value Change] function is activated in case of monitor status
Data relevant to detail setting at loop monitor is available to write, and monitor window part can’t
be changed.
11-105
XG5000 User’s Manual
11.9.14 Graph
Graph displays PV (Present Value), MV (Manipulated Value), (Setting Value) among PID monitoring value
as graph.
When changing PID flag value of XG5000 or changing setting values at PID monitor during monitoring, it is
reflected in real time. When stopping monitoring, graph also stops. When restarting monitoring, it draws
again from last run time. The horizontal axis is renewed every 1 second
If you press both end arrow of scroll, time line increases/decreases by 1. And if you press both blank. Time
line increases/decreases by 10.
[Sequence]
Push [Graph]-[Zoom In Y-axis] or [Graph]-[Zoom Out Y-axis]
Note
- Enlargement of Y axis is supported up to 4 steps
- To restore previous status, select [Graph]-[Return Zoom]
11-106
Chapter 11 Monitoring
[Sequence]
Select [Graph]-[Graph Color Setting]
Select graph color part you want to change
11-107
XG5000 User’s Manual
4) Graph initialization
Delete accumulated graph and draw again
[Sequence]
Select [Graph]-[Graph Initialization]
Check graph is renewed from time line 0
1) Cell copy
Cell Copy is used to execute copy of cell unit among detail setting value of PID monitor
[Sequence]
Select cell to copy and after pressing the right button of mouse, select [Cell Copy]
Note
Since copy of bit data is not available, [Cell Copy] menu is not activated.
2) Cell Paste
Cell Paste is used to paste value with cell unit among detail setting value of PID monitor
[Sequence]
Select cell to copy and after pressing the right button of mouse, select [Cell Copy]
Select [Cell Paste] after pressing the right button of mouse at cell you want to paste
Note
When Cell Copy is not executed, [Cell Paste] is not activated
Cell Paste function is supported at same data type as copied
When pasting different data type, a warning window will be displayed
When selecting more than one cell, Cell Copy/Paste is not available
3) Setting Copy
Setting Copy is used to copy entire detail setting of PID monitor
[Sequence]
Select detail setting window grid to copy and select [Setting Copy] by right button of mouse.
If you execute Setting Copy, all setting area is selected.
11-108
Chapter 11 Monitoring
4) Setting Paste
Setting Paste is used to paste all detail setting of PID monitor
[Sequence]
Select detail setting window grid to copy and select [Setting Copy] by pushing right button of mouse.
Select detail setting window grid to copy and select [Setting Paste] by pushing right button of mouse.
Note
When you select more than one cell, you can’t execute Setting Copy/Paste
5) Initialize setting
Initialize setting is used to initialize entire detail setting value of activated PID monitor. You can’t use this
during monitoring
[Sequence]
Press [Initialize] at activated loop or select [Initialize setting] on detail setting grid by pressing right button of
mouse
Note
You can’t execute [Cell Paste], [Setting Paste], [Initialize Setting] while monitoring.
11-109
Chapter 12 Debugging
Chapter 12 Debugging
Notes
- This function is available only with PLC connected in online
- Debug is unavailable if PLC is in Run mode.
- Debug function is available if the XG5000 program and PLC program are identical to each other. If
they are not identical, download the appropriate XG5000 PLC project to the PLC.
- Monitoring function is available in Debug mode.
- If any error occurs in the PLC, Debug instruction will not work normally. Correct the error to execute
the Debug instruction.
Notes
- Even if Debug stops, Monitor function continues to operate..
12-1
XG5000 User’s Manual
1) Set Breakpoint
[Sequence]
1. Move the Breakpoint to the desired step.
Notes
- The break can not be set in an area specified by a Block Mask instruction.
- Application instruction will set the breakpoint on the instruction String area.
12-2
Chapter 12 Debugging
2) Remove Breakpoint
[Sequence]
1. Move the Breakpoint to the step to remove.
12.2.2 Go
Go starts program debugging using the specified Breakpoint. With the Go function, the program can be run
up to the Breakpoint specified.
[Sequence]
1. Select [Debug]-[Go] on the menu. The program will be run until the next selected breakpoint is reached.
12-3
XG5000 User’s Manual
12.2.3 Go to Cursor
Go to Cursor is used to make the program run up to the cursor position.
[Sequence]
1. Move the cursor to the position desired to run.
12-4
Chapter 12 Debugging
1) Step Into
Step Into runs the program to the next step. If the present step is a application instruction CALL with the
running condition satisfied, it will enter the subroutine block.
[Sequence]
1. Select [Debug]-[Step Into] on the menu.
12-5
XG5000 User’s Manual
Notes
- If not with CALL instruction or if the CALL running condition unsatisfied, the program will be run to
the next step.
2) Step Out
Step Out is used to step out of the subroutine block once entered with Step Into function executed.
[Sequence]
1. Select [Debug]-[Step Out] on the menu.
12-6
Chapter 12 Debugging
Notes
- If the presently debugged step is not inside the subroutine block, the program will be run to the next
step.
3) Step Over
Step Over is used to run the program to the next step. Differently from Step Into, even if the present step is
an application instruction CALL, it will not enter the subroutine block but run the program to the next step.
[Sequence]
1. Select [Debug]-[Step Over] on the menu.
12-7
XG5000 User’s Manual
1) Set Breakpoint
[Sequence]
1.Move the Breakpoint to the step to specify.
Notes
- The break cannot be set in an area specified by a Block Mask instruction.
- It will set the Breakpoint in line unit..
12-8
Chapter 12 Debugging
2) Remove Breakpoint
[Sequence]
1. Move the Breakpoint to the step to cancel.
12.3.2 Go
Go starts program debugging using the specified Breakpoint. With the Run function, the program can be run
up to the Breakpoint specified.
[Sequence]
1. Select [Debug]-[Go] on the menu. The program will be run until the next selected breakpoint is reached.
12-9
XG5000 User’s Manual
12.3.3 Go to Cursor
Go to Cursor is used to make the program run up to the cursor position.
[Sequence]
1. Move the cursor to the position desired to run.
12-10
Chapter 12 Debugging
[Sequence]
1. Select [Debug]-[Step Into] on the menu.
Notes
- If not with CALL instruction or if the CALL running condition is not met, the program will be run to the
next step.
12-11
XG5000 User’s Manual
2) Step Out
Step Out is used to step out of the subroutine block once entered with Step Into Instruction executed.
[Sequence]
1. Select [Debug]-[Step Out] on the menu.
Notes
- If the presently debugged step is not inside the subroutine block, the program will be skipped over
to the next step.
12-12
Chapter 12 Debugging
3) Step Over
Step Over is used to run the program to the next step. Differently from Step Into, even if the present step is a
CALL instruction, it will not enter the subroutine block but run the program to the next step.
[Sequence]
1. Select [Debug] - [Step Over] on the menu.
12-13
XG5000 User’s Manual
[Sequence]
1. Select [Debug] - [Breakpoints List] on the menu.
a b c d
[Dialog Box]
i
j
Notes
- Up to 62 Breakpoints are available to be registered in PLC.
12-14
Chapter 12 Debugging
[Sequence]
1. Select [Debug] - [Breakpoint Conditions] - [Device Break] on the menu.
[Dialog Box]
b j
c k
d
e
f
g
h i
[Description of Dialog Box]
a. Use the device as a device break: If the box is unchecked, though saved, the break will not be used..
b. Device: shows the device name used for device break.
c. Type: shows the type of the device used for device break.
d. Variable: displays the variable name if device variable name is declared in Variable/Comment.
e. Comment: displays the comment if the device comment is registered in Variable/Comment.
f. Use Value Break: If the box is unchecked, the device, though saved, will not activate a break
g. Value: if the specified device value is met, the break will be activated. The maximum/minimum value
is based on the device type.
h. OK: saves the changed details and closes the dialog box.
i. Cancel: just closes the dialog box without saving the changed details.
j. Find: finds a desired device on the Variable/Comment list.
k. Condition: activates a break when writing the value to or reading the value from a device.
12-15
XG5000 User’s Manual
[Sequence]
1. Specify the device break.
2. Select [Debug]-[Go] on the menu. PLC runs debugging.
3. If specified device break conditions are met, a message will be displayed to inform that the device
break is activated, when PLC stops running.
Notes
- Among device types, BYTE, NIBBLE and STRING do not support the device break instruction.
- While PLC runs debugging, just one condition if only satisfied among breakpoint, device break, scan
break, etc., will apply the break.
- Click the left mouse button on the program name to move to the program position where the device
break is applied.
- If the value is changed in other application programs (such as device monitor) than the specified
device program, movement to the program position where the device break is applied may not be
possible.
12-16
Chapter 12 Debugging
Scan Break is used to run PLC as many as the scan times specified, and apply the bake.
[Sequence]
1. Select [Debug] - [Break Conditions] on the menu.
2. Select [Scan Break] tap.
[Dialog Box]
12-17
Chapter 13 Online Editing
a. Open Project
b. Connect
c. Start Monitoring
e. Edit
[Description of Sequence]
a. Open Project
- Select [Project]-[Open Project] on the menu. Open the same project that is loaded in the PLC to perform
Online Editing. Select [Project]-[Open from PLC] on the menu.
b. Connect
- Select [Online]-[Connect] on the menu to connect with PLC.
c. Start Monitoring
- Select [Monitor]-[Start Monitoring] on the menu.
- Online Editing is available while monitoring.
- Start/Stop Monitoring is available during Online Editing.
13-1
XG5000 User’s Manual
If ‘Yes’ button is clicked, Online editing will be continue after comparing the projects.
If ‘NO’ button is clicked, Online editing will be stopped. Online editing will be available after reading
project from PLC.
- Online Editing will be available after its program window is active and the program is selected.
- After Online Editing starts, the program window will be changed to edit mode during Run.
Notes
- 2 or more programs cannot be modified at the same time during run
13-2
Chapter 13 Online Editing
- If Online Editing starts, the background color of the program can be changed through its
applicable option.
e. Edit
- Edit Online Editing is the same as specified in the off-line Edit.
f. Write Modified Program
- Select [Online]-[Write Online Editing] on the menu.
- The edited portion of the program only will be transferred to PLC.
g. End Online Editing
- Select [Online]-[End Online Editing] on the menu.
Notes
- During Write Online Editing, the Comment (Rung Comment, Output Comment, Non-Comment …)
will not be written on PLC. Write the Comment Directly through [Online]-[Write] on the menu.
- During Edit Online Editing, the monitored value(s) may not be correct. In order to monitor the
correct value, Write Online Editing should be executed.
- Simultaneous online editing more than 1 program block is prohibited.
- Adding or deleting of program block on online editing is prohibited.
- The ‘*’ mark will be displayed in the head of online-edited rung, and the mark will go away when
online writing is executed or online editing is finished.
13-3
Chapter 14 Print
Chapter 14 Print
This instruction is used to print all the contents in the project in regular sequence.
It is also used to select items to be printed, specify necessary setting options for printing per item, and
execute Preview and Print instruction.
[Steps]
1. Select [Project]-[Print Project] on the menu.
2. Print Project dialog box will appear.
3. Specify each item.
[Dialog Box]
b
a
14-1
Chapter 14 Print
Notes
- Details button in the Project Level Diagram will be active only with the right mouse button positioned
on [Cover], [Program], [I/O parameter] as selected presently.
- Refer to each print option for setting each detailed item. (Program Print Setting Refer to Program
Print)
- Device and Memory Reference used in the Project Level Diagram are identical to those on the window
displayed when [View]-[Used Device] and [View]-[Cros Reference] are executed on the menu.
[Steps]
Click ‘f. Setting’ on the main Print Dialog Box or click the right mouse button in the ‘a. Project Level Diagram’.
[Dialog Box]
a
b
c
14-2
Chapter 14 Print
[Steps]
1. Click ‘f. Setting’ on the main Print Dialog Box or press the right mouse button in the ‘a. Project Level
Diagram’.
2. Select [Page Setup] on the menu.
[Dialog Box]
c
f
e g
14-3
Chapter 14 Print
Notes
- Be careful not to let the print contents be overwritten with header or footer when printed. Adjust
margins as necessary.
- If there are no content in header/footer, no header/footer will be printed.
[Dialog Box]
14-4
Chapter 14 Print
Notes
- If the content of the header/footer is too long, overwriting may occur
- The user can specify the content of the header/footer using Input and Field at the same time.
Example) If the content of “The date today is &d” is input on the header/footer
“The date today is 2004-06-01”will be printed.
- Field Content
- Date: &d yyyy-mm-dd
- Time: &t hh:mm:ss
- Project name: &p
- PLC name: &c
- PLC type: &T
- Page number/Total Page number: &n Page number/Total Page number of the selected items
- Page number/Item page number: &N Page number/Item page number of one item
- Program name: &P displayed only in program print mode.
- File Name: &f file name of the present project
- Path and file name: &F file name displayed with its directory route.
- Project comment: &C Project comment will be printed if any. The comment if too long may not be
correctly printed.
[Steps]
1. Select [Cover] in the Project Level Diagram on Print Dialog Box.
2. Click Details button, or press Enter key.
14-5
Chapter 14 Print
[Dialog Box]
d
a e
b f
c g
h
i
14-6
Chapter 14 Print
6. Pressing ESC will change the mouse cursor to the arrow shape again.
Notes
- Alignment is available.
It is available through the menu displayed by the right mouse button pressed on the paper.
- [Edit Box]-[Center]: aligns the selected Edit Box on the center of paper.
- [String]-[Left Align]: aligns the content of the selected Edit Box on the left in the Edit Box.
- The edge of the Edit Box will not be printed.
- Edit Box can be moved by Drag and Drop instruction of the mouse or with the arrow keys.
- Undo and Redo are not available.
- If string including field is previously viewed, the field will be displayed as viewed. If edited, the text
alignment will be updated.
14-7
Chapter 14 Print
[Dialog Box]
a h
i
j
b k
e
f
Notes
- Click Details button to select a print program for Print Project.
14-8
Chapter 14 Print
c. Contact: used to specify the number of contacts in a line. The number of contact is fixed to the number
currently displayed if printing is executed in the LD program.
d. Print Range: specify print range
e. Print Color: used to decide to apply Color print or not. If the check box is selected, the print will be in
color, and if not, it will be in black-and-white.
f. Print Grid: used to decide to apply Grid Print or not.
h. Print: starts to print with the presently specified options applied.
i. OK: applies the presently specified options and closes the Dialog Box.
j. Cancel: closes the Dialog Box.
k. Printer Setting : used to specify the printer setup options.
l. Page Setting: used to call ‘Page setup’ dialog box. The size of paper and space of print page can be
setup in the ‘Page Setup’ dialog box.
14.2.2 Preview
It is used to previously view the content of the print specified.
[Steps]
1. Select [Project]-[Preview] on the menu.
14-9
Chapter 15 XG-SIM
Chapter 15 XG-SIM
1) Program simulation
An operator can simulate a program created by LD/SFC/ST languages. In addition, it supports
modification function during run, with which an operator may apply modification during run of a program
that is operated in XG-SIM, and it supports debugging function that trace a user-created program per step.
3) Module simulation
It also supports simple simulation function for modules mounted in the XGK rack type PLC, such as digital
I/O module, A/D conversion module, D/A conversion module, high speed counter, temperature control
module and positioning module. If using the module simulation function, a program may be simulated by
using input values from the module.
15-1
XG5000 User’s Manual
XG-SIM requires higher system specifications than XG5000. If the minimum requirements are adopted, scan
cycle may be extended longer than the set fixed cycle and constant scan may not work properly, probably
resulting interruption of access. In addition, even the recommended requirements may suffer from the same
symptoms. Then, irrespective of system requirements, access may be interrupted according to user’s setting
such as SLEEP mode.
Notes
- If using fixed cycle, fixed cycle error/warning dialog box is not displayed.
2. Select [Tools] – [Start Simulator] in XG5000 Menu. If XG-SIM is started, a created program is automatically
downloaded onto XG-SIM. After XG-SIM is executed, it goes to Online, Access and Stop.
3. By selecting [Online] – [Change Mode] – [Run] in XG5000 Menu, execute the downloaded program. For
available online menus of XG5000 when XG-SIM is executed, refer to the following table.
15-2
Chapter 15 XG-SIM
15-3
XG5000 User’s Manual
15.2 XG-SIM
1) Channel list
Channel list displays channels by modules and user’s favorable channels. In case of module, it displays the
only modules set in I/O parameter. Module is displayed in a format of ‘B0 (base number) S00 (slot number):
module name.’
2) I/O condition
I/O condition displays single/continuous I/O status.
15-4
Chapter 15 XG-SIM
3) Status display
Status display displays the status of simulator.
15-5
XG5000 User’s Manual
2) Channel monitor
2. Start monitor
[Steps]
a. Select [Tools] – [Start channel monitoring] in Menu.
Notes
- If I/O is an output, the current value of a channel may not be changed.
4. End monitor
[Steps]
Select [Tools] – [End channel monitor] in Menu.
15-6
Chapter 15 XG-SIM
The XG-SIM I/O condition function provides convenience in changing device data values when simulating a
PLC program. This includes simulating data received from or data sent to a module configured in the PLC
and referenced in the PLC program.
1) Conditional statement
A conditional statement may be used singly or as multiple conditions combined to generate a data value
change in the PLC program.
15-7
XG5000 User’s Manual
Where, device or channel is to be compared. For instance, if expressing ‘M0000 is larger than 100 and
device M000010 is On’ as a conditional statement, it may be expressed as follows.
As an example, if M0000 is greater than 100 AND bit device M000010 is ON, it would be written as follows
below. The chart below designates the data types.
2) Basic functions
Both single I/O condition and continuous I/O condition maintain the following format.
15-8
Chapter 15 XG-SIM
15-9
XG5000 User’s Manual
6. Insert line
[Steps]
a. Select a position to insert a line
b. Select [Edit] – [Insert Line] in Menu.
15-10
Chapter 15 XG-SIM
7. Delete line
[Steps]
a. Select a position to delete a line.
b. Select [Edit] – [Delete Line] in Menu.
15-11
XG5000 User’s Manual
15-12
Chapter 15 XG-SIM
a
b
c
d
e
f
a
b
15-13
XG5000 User’s Manual
Notes
Considering performance of XG-SIM, Single I/O and continuous I/O have the following restriction
Notes
In the continuous I/O setup, XG-SIM writes every value inserted in continuous value setup into
the related device/channel every time scan is executed. At the moment, it does not designate
‘Always execute’ or it continues to write the only first value set in the continuous value of a scan
unless selecting ‘Ignore conditions while execution’ or using a true conditional statement. In
addition, if setting Repeat Operation, it repetitively operates from the first scan after completing
all scans.
Continuous 1 2 3 4 5 6 7
value no.
Value to 7 6 5 4 3 2 1
designate
15-14
Chapter 15 XG-SIM
15-15
XG5000 User’s Manual
2. Select Device/Channel
Select a device/channel to enter its continuous value.
[Steps]
15-16
Chapter 15 XG-SIM
3. Input value
[Steps]
a. Move a cursor to enter a value
b. Enter a value.
4. Auto Filling
[Steps]
a. Select an area.
Notes
- If using Ctrl key for Auto Filling, it is possible to enter continuous value of incremental increase/
incremental decrease, depending on the dragging direction.
15-17
XG5000 User’s Manual
2. End Monitor
[Steps]
a. Deselect [Tools] – [Use Single I/O Condition] or [Tools] – [Use Continuous I/O Condition] in Menu.
Notes
- Program scan is the procedure that operations are repeatedly executed from the first to the last step
of a program created by the basic program execution scheme of PLC. XG-SIM also executes
operations through scan and keeps the following procedure, as shown in the flow chart.
15-18
Chapter 15 XG-SIM
1) Module setting
The module simulation function provided by XG-SIM uses the information set in the I/O parameter of
XG5000. Therefore, it is necessary to set a module in the I/O parameter in order to simulate the module in
the program.
i.e. to simulate the PLC system with the following configuration, it is necessary to set I/O parameter as
presented in the figure.
After XG-SIM is started, system monitor shows the module set in I/O parameter as presented in the figure.
Notes
- For details of I/O parameter editing and the parameter setting by modules, refer to XG5000 Manual.
- To apply the details of I/O parameter set in XG5000, it is necessary to download I/O parameter to
XG-SIM again. If the type of a selected module is changed, XG-SIM should be restarted.
15-19
XG5000 User’s Manual
XG-SIM supports 4 types of input voltage ranges and digital data formats and 2 kinds of input current
ranges as follows.
Analog input may be directly set in XG-SIM window and the input range is valid only within the input voltage
(current) range set in the parameter.
Notes
- For the details on the parameters of analog input module and the programming, refer to the
manual for the specific module.
15-20
Chapter 15 XG-SIM
XG-SIM supports the following voltage (current) range and input data type.
Parameter Support
Operation channel ○
Output voltage(current) range ○
Input data type ○
Channel output status Ⅹ
Digital input may be entered through special module parameter in a program and it is valid only within the
range set in the parameter.
Notes
- For the details on the parameters of analog output module and the programming, refer to the
manual for the specific module.
15-21
XG5000 User’s Manual
An operator may monitor the analog output that is converted in ‘Channel’ item of XG-SIM.
Notes
- For the details on the parameters of high speed counter module and the programming, refer to
the manual for the specific module.
The current count value may be changed in ‘Channel’ of XG-SIM window. High speed counter simulator
compares the input count value to a value set in parameter and uses it as the comparison output signal.
15-22
Chapter 15 XG-SIM
Notes
- For the details on the parameters of temperature input module and the programming, refer to the
manual for the specific module.
15-23
XG5000 User’s Manual
Notes
XG-SIM supports limited functions among the APM functions that PLC supports. APM module in
XG-SIM is the module created to help users understand the operation of APM-related functions.
Therefore, errors may occur and program operations may be different with XG-SIM when actually
operating the PLC. In addition, it supports a part of APM related errors, so actual PLC operation
may generate different errors, which do not appear in XG-SIM. For the APM function block list
supported by XG-SIM, refer to the following.
For the positioning module supported by XG-SIM, refer to the following table.
15-24
Chapter 15 XG-SIM
15-25
XG5000 User’s Manual
15-26
Chapter 15 XG-SIM
Notes
- Detail parameters of positioning module is set in a separate APM package, not in XG5000. To set
the parameters used in the positioning module, it is necessary to set APM package operation
data and save the project file as follows. In addition, APM project file should be located in a same
folder in which XG5000 project file is saved.
- For detail settings of APM module parameter, refer to APM software user’s manual.
It is possible to check the status of APM module such as the current position in ‘Channel’ of XG-SIM window.
15-27
XG5000 User’s Manual
Notes
- The channels of positioning module have the following meaning. (i.e.: based on X-axis)
15-28
Chapter 15 XG-SIM
15.3 Restrictions
Comparing to the actual PLC, XG-SIM have the following restrictions.
Reading area designation (WORD) P2PWRD Designate the word data reading area
Writing area designation (WORD) P2PWWR Designate the word data writing area
Reading area designation(BIT) P2PBRD Designate the bit data reading area
Writing area designation (BIT) P2PBWR Designate the bit data writing area
2) Module simulation
XG-SIM operates based on the XGK rack type PLC. For the small PLC’s, such as XGB-XBMS, dedicated
instruction such as PITAT and some items such as basic parameter/built-in parameter don’t operate normally.
15-29
Chapter 16 SFC Edit
The SFC program can control the execution sequence of other program languages (LD, ST), using graphic
symbols (step, transition, branch, etc.).
16.1 Limitation
16-1
XG5000 User’s Manual
Following shortcut keys are used to move mouse cursor, These keys cannot be redefined in the XG5000.
Note
- In the shortcut key definition, ‘s’ stands for the Shift key, ‘c’ stands for the Ctrl key, and ‘a’ stands for the
Alt key.
- The shortcut keys used in the Edit Tool are in accordance with the default keys provided in the XG5000.
- For user defined shortcut key, refer Chapter 2, Basic Operation, 2.4 Shortcut Key Setting.
For each SFC program added to the project program list, at least 64 words of automatic variables must
have been declared.
[Procedure]
1. Move cursor to the desired position.
2. Select Step from the Toolbar and click edit area, or press the shortcut key corresponding to the contact
point to enter the Step.
16-2
Chapter 16 SFC Edit
Note
- Step name is automatically determined, or user can name it as necessary.
- According to the entry position, it is entered as Step + Transition or Transition + Step.
[Procedure]
1. Move cursor to the desired position.
Or,
16-3
XG5000 User’s Manual
2. Select the shortcut key for entering. Or, select Action from the toolbar and select the edit area to enter it.
or
Note
- The position where Action is entered differs by the selected item.
Position Item at the selected position
Right Right side of Step if a Step is selected
Below Beneath the Action if an Action is selected
[Procedure]
1. Move cursor to the desired position.
2. Select Block from the toolbar and click edit area, or press corresponding shortcut key.
16-4
Chapter 16 SFC Edit
Note
- The same rule applied to the entry position of Block as those of Step entry.
[Procedure]
1. Move cursor to the desired position.
2. Select Label from the toolbar and click edit area, or press corresponding shortcut key.
3. A new Label is entered.
Note
- A label can be entered after selecting a Step or Block.
- Label will be entered before the selected Step or Block
16-5
XG5000 User’s Manual
[Procedure]
1. Move cursor to the desired position.
2. Select Jump from the toolbar and click edit area, or press corresponding shortcut key.
3. A new Jump is entered.
Note
- A Jump can be entered only when the last Transition in the selected branch or the last Transition in the
last line of the program has been selected.
- The Jump will be entered after the selected Transition.
- Jumping is allowed within the same program only.
16-6
Chapter 16 SFC Edit
1) Creating a Branch
[Procedure]
1. Move cursor to the desired position.
2. Select Left Branch from the toolbar and click edit area, or press corresponding shortcut key.
3. Mark the starting point and linkable point of the Branch.
Start Point
Linkable Point
16-7
XG5000 User’s Manual
Note
- Selective Branch or Parallel Branch will be created according to the position of the selected starting
point.
Item at the branch starting point Line Shape
Selective Branch Step, Block Single horizontal line
Parallel Branch Transition Two horizontal lines
2) Adding a Branch
[Procedure]
1. Move cursor to the desired position.
16-8
Chapter 16 SFC Edit
2. Select Left Branch from the toolbar and click edit area, or press corresponding shortcut key.
3. A new Branch is added.
Note
- Although number of Branches is not limited, it may be limited by the number of horizontal rows.
- Selective and Parallel Branches cannot be added to the other type.
1) Creating a Branch
[Procedure]
1. Move cursor to the desired position.
16-9
XG5000 User’s Manual
2. Select Right Branch from the toolbar and click edit area, or press corresponding shortcut key.
3. Mark the starting and linkable positions of Branch.
Start Point
Linkable Point
16-10
Chapter 16 SFC Edit
Note
- The positioning rule of the Selective and Parallel Branches are the same as that of the Left Branch.
See Chapter 16.2.7. “Entering Left Branch.”
2) Adding a Branch
[Procedure]
1. Move cursor to the desired position.
2. Select Right Branch from the toolbar and click edit area, or press corresponding shortcut key.
3. A new Branch is entered.
16-11
XG5000 User’s Manual
[Procedure]
1. Move cursor to the desired position.
Note
- The initial step is the starting step of the program, thus only one can be designated in a program. Errors
are inspected when inspecting the program.
- When using a step variable, the variable of the step name can be referred to by other programs.
16-12
Chapter 16 SFC Edit
[Procedure]
1. Move cursor to the desired position.
[Dialog]
16-13
XG5000 User’s Manual
Note
- Transition programming is available with LD or ST only.
[Procedure]
1. Move cursor to the desired position.
16-14
Chapter 16 SFC Edit
[Dialog]
16-15
XG5000 User’s Manual
Note
- The behavior of Action varies by limiter.
Limiter Function Behavior
Step active
D (Time Delayed) The Action will be executed after the set up time
from the time when the Step was activated.
P (Pulse) The Action will be executed only for the moment
1 Scan executed
the Step was activated.
SD (Stored & The Action will be executed from the set up time R
Time Delay) after the Step activation until R Limiter is
executed. If the R Limiter is executed before the R
set up time, the Action will not be executed.
DS (Time Delayed The Action will be executed from the set up time
& Stored) after the Step activation until R Limiter is
executed. If the Step is disabled or R Limiter is
R
executed before the set up time, the Action will not
be executed.
SL (Stored & The Action will be executed for the set up time
Time Limited) from the Step activation, and terminated at the
expiration of the set up time or R Limiter R
execution.
16-16
Chapter 16 SFC Edit
[Procedure]
1. Move cursor to the desired position.
Note
- Block contents can be composed using SFC program only.
- A Block is not linked with an Action.
16-17
XG5000 User’s Manual
[Procedure]
1. Move cursor to the desired position.
16-18
Chapter 16 SFC Edit
[Procedure]
1. Move cursor to the desired position.
16-19
XG5000 User’s Manual
Note
- Jump name must be the same as the label name.
- Cannot jump to another SFC program.
[Procedure]
1. Move cursor to the beginning point of the Selective Branch.
16-20
Chapter 16 SFC Edit
4. Click any position other than the beginning point of Branch to finish setting.
Note
- Number of priorities can be set up as much as the number of the branches.
- If priority order has not been defined, the program compiling proceeds from left to right. That is, the
program is executed from left to right.
- Double clicking a selective branch initializes the branch to the top priority branch.
[Procedure]
1. Select the beginning point of the Selective Branch whose priority order has been set up.
16-21
XG5000 User’s Manual
[Procedure]
1. Move cursor to the element to be deleted.
2. Select menu [Edit]-[Delete].
Note
- According to the selected position, Step, Transition, or Block is deleted together with the element
beneath it.
- Deletion may be inapplicable. In such case, alarm message appears, and edit is cancelled.
- Deleting after selecting the beginning point of a Branch will delete all the contents beneath the Branch.
16.2.18 Copy/Cut/Paste
The data in a selected area can be copied or cut and pasted to another position. Different from copying,
cutting will delete the existing data.
1) Copy/Paste
[Procedure]
1. Select the area to be copied.
16-22
Chapter 16 SFC Edit
Note
- According to the selected position, Step, Transition, or Block is copied together with the element
beneath it.
- Copy may be inapplicable according to the position. In such case, the edit is cancelled.
- Copying after selecting the beginning point of a Branch will copy all the contents beneath the Branch.
- To paste a branch, select the beginning point of the branch.
- Pasting is applicable only for the same type of branches.
- Action can be pasted to a Step by selecting the Step.
- The principle of paste is to make the same operation as element input.
- Copying will copy the programs of the Action, Transition and Block. Afterwards, pasting to another
program will also paste the copied programs too.
16-23
XG5000 User’s Manual
2) Cut/Paste
[Procedure]
1. Select the area to cut off.
16-24
Chapter 16 SFC Edit
16-25
XG5000 User’s Manual
Note
- For all the changes made in edit, cancel or redo is applicable.
- Number of cancels is not limited.
Insertion Mode:
16-26
Chapter 16 SFC Edit
This section described view option, zoom in and zoom out of the SFC program.
1) Zoom In
[Procedure]
1. Select menu [View]-[Zoom In].
2) Zoom Out
[Procedure]
1. Select menu [View]-[Zoom Out].
Note
- With a wheeled mouse, Ctrl+Upward roll reduces magnification by one step.
- With a wheeled mouse, Ctrl+Downward roll enlarges magnification by one step.
- Magnification can be selected from the Magni View tool bar, or entered directly.
For details, see Chapter 2, Basic Operation, 2.2 Toolbar.
[Procedure]
1. Select menu [Tool]-[Option]-[SFC].
16-27
XG5000 User’s Manual
[Dialog]
Note
- Step column width range is 20~200.
- Action column width range is 70~400.
16-28
Chapter 16 SFC Edit
1) View Comments
16-29
XG5000 User’s Manual
<Step column 68 pixel (default) screen> <Step column 100 pixel screen>
<Action column 100 pixel (default) screen> <Action column 150 pixel screen>
6) Partitioned Window
16-30
Chapter 16 SFC Edit
Selected
Position
<View partitioned window with fixed contents: view the contents previously fixed,
different from selected position>
16-31
XG5000 User’s Manual
[Procedure]
1. Select menu [View]-[Block/Action/Transition List].
2. List window will appear.
16-32
Chapter 16 SFC Edit
[Procedure]
1. Select the position to open the program.
16-33
XG5000 User’s Manual
16.4.1 Bookmark
Bookmarks can be set up to go to desired position promptly.
1) Bookmark Setting
[Procedure]
1. Move cursor to the position to set a Bookmark.
16-34
Chapter 16 SFC Edit
2) Reset Bookmark
[Procedure]
1. Move cursor to the position to reset a Bookmark.
16-35
XG5000 User’s Manual
16-36
Chapter 16 SFC Edit
Note
- Bookmarks are set up by cell unit.
- Since a Bookmark is not an edit item, cancel or redo is not applied to Bookmark set/reset.
16.4.2 Go To
1) Go To Line
[Procedure]
1. Select menu [Search/Replace]-[Go To]-[Step/Line].
16-37
XG5000 User’s Manual
[Dialog]
c d
[Dialog] box description
a. Go To Line: enter the line to go to.
b. Program List: show the program list of the present PLC.
c. Go To: exit the dialog and go to the destination Step of the selected program.
d. Cancel: exit the dialog.
Note
- Go To Line is available in LD or ST program only.
- The LD used as the Action/Transition of SFC is not available for Go To function.
2) Go To Label
[Procedure]
1. Select menu [Search/Replace]-[Go To]-[Label].
16-38
Chapter 16 SFC Edit
[Dialog]
c d
[Dialog] box description
a. Program: show the program list of the present PLC. If ‘Whole Program’ is selected, the list for all the
labels appears.
b. Label list in the program: show the list of the label being used in the selected program.
c. Go To: exit the dialog, go to the selected label.
d. Cancel: exit the dialog.
Note
- Go To Label function is available in the LD program only.
- The LD used as the Action/Transition of SFC is not available for Go To function.
16-39
XG5000 User’s Manual
3) Go To Rung Comment
[Procedure]
1. Select menu [Search/Replace]-[Go To]-[Rung Comment].
[Dialog]
c d
[Dialog] box description
a. Program: show the program list of the present PLC. If ‘Whole Program’ is selected, the list for all the
Rung Comments appears.
b. Rung Comment list in the program: shows the list of the Rung Comments in the selected program.
c. Go To: exit the dialog, go to the selected Rung Comment.
d. Cancel: exit the dialog.
Note
- Go To Rung Comment function is available in the LD program only.
- The LD used as the Action/Transition of SFC is not available for Go To function.
16-40
Chapter 16 SFC Edit
4) Go To END Command
[Procedure]
1. Select menu [Search/Replace]-[Go To]-[END Command].
[Dialog]
c d
[Dialog] box description
a. Program: show the program list of the present PLC. If ‘Whole Program’ is selected, all the END
commands will appear.
b. END list in the program: show the list of the END commands in the selected program.
c. Go To: exit the dialog, go to the selected END command.
d. Cancel: exit the dialog.
Note
- Go To END command function is available in the LD program only.
- The LD used as the Action/Transition of SFC is not available for Go To function.
16-41
Chapter 17 ST Edit
Chapter 17 ST Edit
The ST is a character based programming language in accordance with the IEC 61131-3.
17.1 ST Programming
17-1
XG5000 User’s Manual
3. Enter the name and description of the program, select ST as the language, and press Confirm.
17-2
Chapter 17 ST Edit
[Adding Action]
1. In the Action Register dialog, enter the name and description of the Action, select Program (P) in the
classification (K), and press Confirm.
17-3
XG5000 User’s Manual
17.2 Limitation
Max. number of characters Max. number of characters in a line is 2,048 English alphabets
2,048
in a line or 1,024 Korean alphabets.
Note
1. Only one kind of language can be used in a scan program.
2. Scan program language and transition and action of SFC language may differ from each other.
3. A program made with a language cannot be converted to another language.
The following shortcut keys can be changed with the menu [Tools]-[Shortcut Key Setting].
17-4
Chapter 17 ST Edit
Following shortcut keys are used for cursor movement, and cannot change in the XG5000.
Shift + Move Select the section from the present cursor position to the position to go to.
Note
1. In the shortcut key definition, ‘s’ stands for the Shift key, ‘c’ stands for the Ctrl key, and ‘a’ stands for
the Alt key.
2. The shortcut keys used in the Edit Tool are in accordance with the default keys provided in the XG5000.
3. For user defined shortcut key, refer to Chapter 2, Basic Operation, 2.4 Shortcut Key Setting.
17-5
XG5000 User’s Manual
17.3.2 Copy/Paste
You can copy selected character string to the clipboard and paste it with Paste function.
[Procedure]
1. Select the character string to be copied.
Note
1. Clipboard: a memory area of computer system provided for temporary storage space.
2. When performing the Paste function, if a section has been selected, the section will be overwritten
with the character string stored in the clipboard, otherwise, the character string in the clipboard will be
inserted.
3. Paste function is available for text only.
17-6
Chapter 17 ST Edit
17.3.3 Undo/Redo
Cancel function restores to the state before edit. Redo function returns to the state before cancel after a
Cancel command has been executed.
[Procedure]
1. After executing Paste function, select menu [Edit]-[Undo].
=> The ‘pasted’ character string is deleted.
[Procedure]
1. Move the cursor to desired position, and select menu [Edit]-[Select/Add Variable].
17-7
XG5000 User’s Manual
[Dialog]
17-8
Chapter 17 ST Edit
[Dialog]
Note
1. Placing the cursor in a character string which is not in the variable list and execute [Add/Select Variable]
command to add a new variable.
2. Selecting a character string as a group and execute [Add/Select Variable] command to replace the
selected character string with the variable
17-9
XG5000 User’s Manual
[Procedure]
1. Move the cursor to the desired position.
17-10
Chapter 17 ST Edit
Note
- The input/output parameters for application commands are not entered automatically, but need to be
edited according to the user’s intention.
- Automatic variable and application command may have the same names.
17-11
XG5000 User’s Manual
17.4.1 ST Option
Description of the option dialog box of the ST software.
[Procedure]
1. Select menu [Tool]-[Option].
2. Select ST.
[Dialog]
17-12
Chapter 17 ST Edit
17.4.2 Font/Color
Coloring or font scheme can be applied by word unit.
1) Font
[Procedure]
1. Select menu [Tool]-[Option].
2. Select ST Font/Color.
3. Change font.
Note
1. Character size cannot be changed.
2. Default font is “Fixedsys.”
3. For details of option setting, see 2.6 [Option].
2) Color
[Procedure]
1. Select menu [Tool]-[Option].
2. Select ST Font/Color.
3. Change color.
17-13
XG5000 User’s Manual
Note
1. The items whose color can be changes are “Variable,” “Comment,” “reserved Word.” “Function/Function
Block,” “Flag,” “Constant,” and “Background Color for Edit during Running.”
2. For details of option setting, see 2.6 [Option].
17.4.3 Zoom
ST programming does not support Zoom In/Out function.
17.4.4 Tap
Set up the tap spacing for indent.
[Procedure]
1. Select menu [Tool]-[Option].
2. Select ST Edit Setting.
3. Change tab spacing.
Note
1. The default tap spacing is 4.
2. Tap size ranges from 1 to 100.
17-14
Chapter 17 ST Edit
17.5.1 Bookmark
Insert Bookmarks to go to interested pages promptly.
1) Bookmark Setting
[Procedure]
1. Move the cursor to the desired position.
2) Reset Bookmark
[Procedure]
1. Move the cursor to the desired position.
17-15
XG5000 User’s Manual
Note
1. Bookmarks are set up by line.
2. Since a Bookmark is not an edit function, its set or reset are not influenced by the cancel or redo
function of the edit.
17-16
Chapter 17 ST Edit
[Procedure]
1. Enter character with keyboard.
17-17
XG5000 User’s Manual
Note
Character string list bit map description
1. : ST language key words such as IF, CASE, WHILE, etc.
2. : variable name
3. : flag variable name
4. : function name
17-18
Chapter 17 ST Edit
17-19
XG5000 User’s Manual
17.5.5 Indent/Outdent
Indent or outdent the selected area.
1) Indent
1. Select the area to be indented.
2) Outdent
1. Select the area to be outdented.
17-20
Chapter 18 Exclusive Functions for Event Input Module
18.1 Overview
The XGF-SOEA Module (hereinafter, the “event input module”) is for the recording of the events entered
from outside. The event input module is a data recording device which can record event information (time
and state) in 1ms resolution. The event input module does not have program device or external device used
in the CPU. The event input is available only for monitoring and file saving using the SOE monitor.
18-1
XG5000 User’s Manual
This section describes the basic screen elements, windows and pop-up menus when “Monitor,” “SOE
Monitor” is selected in the XG5000 monitor state. The figure below is the beginning shot of the SOE monitor.
[Dialog]
1) Select [Monitor]-[SOE Monitor] in the menu.
a
b
[Dialog] description;
a. Menu: basic menu is provided for using the software program.
b. Tools: menu can be easily selected and executed with toolbar.
c. SOE event history window: shows the elements of the current project.
d. Event monitor window: shows the event information of the module selected in the project.
e. Status bar: shows the information of the event and connected PLC.
18-2
e
Chapter 18 Exclusive Functions for Event Input Module
1) Project
Command Description
New logging session Create the project.
Open logging Open an existing logging file.
Save logging as Save the logging file with a different file name.
Export to file Save the current logging data in an Excel file.
Exit End the SOE monitor
2) View
Command Description
All events Show all hidden events in an activated window.
Filtering Show only the events meeting the filtering criteria.
Newest first Show the data in the order of recent to old in the monitor window.
Oldest first Show the data in the order of old to recent in the monitor window.
Find event Search desired event.
Module Property Show parameter setting (in online operation)
18-3
XG5000 User’s Manual
3) Online
Command Description
Connect/Disconnect Connect with or disconnect from the PLC.
Connection setting Set up access method.
Clear PLC event history Delete the event data saved in the PLC CPU memory.
Clear SOE module event history Delete the event data saved in the SOE module memory.
Clear all SOE event history Delete all the event data saved in the memory of the SOE module in
the PLC system.
Refresh event Load the event data of the SOE module.
4) Tool
Command Description
Option User can configure SOE monitor environment for user convenience.
Customize User defines tools and commands.
5) Window
Command Description
New window Open a new window in the activated window.
Cascade Arrange the windows in the XG5000 in cascade layout.
Tile Horizontally Arrange the windows in the XG5000 in horizontal layout.
Tile Vertically Arrange the windows in the XG5000 in vertical layout.
Close all Close all the windows of the XG5000.
6) Help
Command Description
About SOE monitoring Provides the information on the SOE monitor.
18.2.2 Tools
Frequently used menu items are provided with respective shortcut keys (icons).
You can execute the menu by mouse-clicking on the icon.
[Toolbar]
18-4
Chapter 18 Exclusive Functions for Event Input Module
[Sequence]
1. Select [Tool]-[Customize] in the menu.
2. Click on the New Tool icon.
3. Enter tool name in the new toolbar dialog.
4. Click on Confirm button. A toolbar without tool will be created.
[Dialog]
a
b
c
[Dialog] description;
a. Toolbar: check/remove-check in the check box in front of the items to make the toolbar appear/disappear.
b. New tool: create a new toolbar.
c. Reset: initialize the toolbar.
[Sequence]
1. Select the Command tab in the user definition dialog.
2. Create a toolbar and click on the Confirm button.
18-5
XG5000 User’s Manual
a c
[Dialog]
[Dialog] description;
a. Command: the Command tab in the user definition dialog.
b. Type: select the existing toolbar.
c. Button: select the desired tool.
d. User toolbar: drag-drop the desired tool with the button onto the user toolbar to add it.
18-6
Chapter 18 Exclusive Functions for Event Input Module
[Dialog]
a
b
[Dialog] description;
a. CPU event history: select the event saved in the CPU module.
b. Module event history: select the event saved in the SOE module.
c. Double-click on the CPU event history or module event history to activate the event monitor window.
a b c
[Dialog] description;
a. Event No.: show the number of the events in the event monitor window.
b. PLC name: show the name of the PLC connected with the SOE monitor.
c. Online: show the PLC connection status of the SOE monitor.
18-7
XG5000 User’s Manual
Basic parameters of the XGF-SOEA can be set up using the menu or toolbar of the XG5000.
[Sequence]
1) Click on the [Parameter]-[Basic Parameter] in the project tree.
2) Basic operation setting
[Dialog]
a
b
[Dialog] description;
a. Overwrite with recent history: used to save the most recent event. If there are more than 3,000 events,
the oldest event is deleted and the new event is saved
b. Maintain the initial history: used to maintain the first event. If there are more than 3,000 events, no new
events will be saved.
18-8
Chapter 18 Exclusive Functions for Event Input Module
I/O parameters of the XGF-SOEA can be set up using the menu or toolbar of the XG5000.
[Sequence]
1) Click on the [Parameter]-[I/O Parameter] in the project tree.
2) In the ‘I/O Parameter Setting’ window, click on the slot of the base where the module is mounted.
In the example below, the XGF-SOEA module is at #4 slot, #0 base.
18-9
XG5000 User’s Manual
3) In the above window, click on the arrow button. A window where respective module can be selected will
appear. Select the desired module.
18-10
Chapter 18 Exclusive Functions for Event Input Module
[Dialog] b
[Dialog] description
a. Input filter setting: set up the time which enables an event to be identified as an effective input data.
(Setting range: 1ms ~ 100ms)
b. Event history setting
- Overwrite with recent history: use this to save the most recent event.
If the events exceed 300, the oldest event is deleted and the last one is saved.
- Maintain the initial history: use this to retain the first event.
If the events exceed 300, the last one will not be saved.
c. External Time(IRIG-B) use setup : set up the standard time with external time.
When you select internal time, IRIG-B format setting / Disturbed time / Missing time are disabled.
- IRIG-B time format setup : It is activated only when the external time is selected. Set external time
format.
- Disturbed time : It is activated only when the external time is selected. Set the time value that
changed from Disturbed state to Missing state due to unstable external time signal.
- Missing time : It is activated only when the external time is selected. Set the time value that changed
from Missing state to Invalid state.
d. Detail event setting: set up the input condition of the event.
- Type: ‘Rise,’ ‘Fall’ or simultaneously, ‘Rise/Fall’ of event can be set up.
Event conditions can be set up for each input contact point.
- Chatter: abnormal signals not related with event can be processed as chattering.
Notes
- If you want get more information about parameter setting, see the SOE module user manual.
18-11
XG5000 User’s Manual
[Sequence]
1) [Online] -> [Connect]; select [I/O Information].
2) Clicking on the [Detail Info] will show XGF-SOEA information as shown below;
18-12
Chapter 18 Exclusive Functions for Event Input Module
The events entered into the CPU and event input modules can be monitored with the SOE monitor.
[Sequence]
1) [Online] -> [Connect]; select [Monitor] -> [SOE Monitoring].
Unless in [Online] state, the [SOE Monitor] menu is not activated.
18-13
XG5000 User’s Manual
a. CPU event history: the event history stored in the CPU module.
b. Module event history: the event history stored in the SOEA module.
c. Double clicking on the CPU event history or module event history will activate the event monitor window.
18-14
Chapter 18 Exclusive Functions for Event Input Module
Time
Variable name,input state
Base No.
Event occurrence contact
Slot No.
Input conditions
The occurrence time is displayed as Year-Month-Day hour: minute: second. millisecond. microsecond.
Occurance time: 2009 – 04 – 26 17 : 43 : 32 . 105 . 300
Description: Year – Month – Day hour : minute : second . ㎳ . ㎲
18-15
XG5000 User’s Manual
2) View
This function provides user convenience including searching and comparing of events.
1. Module event display: select [View] -> [Filtering] to look up all the events regardless of the filter setting.
[Sequence]
a. Select [View] -> [All Event].
18-16
Chapter 18 Exclusive Functions for Event Input Module
2. Event filter: use this function to search the behavior of a specific event.
[Sequence]
a. Select [View] -> [Filtering].
[Dialog]
c
d
[Dialog] description;
a. Designate event occurrence point: designate the bit at which the event has occurred.
b. Designate event type: designate the input condition at which the event has occurred.
c. Show SOE installed position only: used only for CPU event history filtering.
Only the base and slot of event input module will appear.
d. Base/Slot: used only for CPU event history filtering. Designates base and slot.
e. Begin/End: designate the event filter with the time and the first event, and the last event.
18-17
XG5000 User’s Manual
#0 bit
Rise event
b
Base/slot
Event time
(2009.9.22 12:23)
a. Base/Slot: designate all the bases and slots
b. Begin/End setting: 2009.4.26.3.42.12~:2009.4.26.5.44.12
18-18
Chapter 18 Exclusive Functions for Event Input Module
[Sequence]
a. Select [View] -> [Newest first].
[Dialog]
[Sequence]
b. Select [View] -> [Oldest first].
18-19
XG5000 User’s Manual
5. Event Comparison
Compare the events stored in the CPU and event input modules and show the result.
[Sequence]
a. Select [View] -> [Compare Event].
[Sequence]
a. Select [Online] -> [Clear PLC Event History].
Clear SOE module event history: delete the history stored in the module.
18-20
Chapter 18 Exclusive Functions for Event Input Module
[Sequence]
b. Select [Online] -> [Clear SOE Module Event History].
Clear All SOE module History: delete the history stored in all the SOEA modules.
[Sequence]
c. Select [Online] -> [Clear All SOE module History].
18-21
XG5000 User’s Manual
[Sequence]
1. Select the event history to be converted into an Excel file in the event monitor window.
2. Select [File]-[Export to file] from the menu.
3. Enter a new file name in the Save As dialog.
4. Click on the Save button to create a new Excel file.
[Dialog]
[Dialog] description;
a. SOEA event history window: show the elements of the current project.
b. Event monitor window: show the event data of the selected module of the project.
c. This conversion to an Excel file is effective only for the currently active main screen (one window).
18-22
Chapter 18 Exclusive Functions for Event Input Module
2) [File]-[Export to file]
5) Open file in the Excel application (to read the saved event file in Excel)
18-23
XG5000 User’s Manual
Refers to the SOE module information set in I/O parameter and registers the variable on each module.
User can modify the variable and comment.
[Sequence]
18-24
Chapter 18 Exclusive Functions for Event Input Module
3) Click ‘Yes’.
18-25
XG5000 User’s Manual
– Indicates On/Off status of input contact point of SOE module. (32 contact points)
– You can edit Variable/Device name and those can be expressed in connection with U device at
SOE monitor.
18-26
Chapter 19 User Function / Function Block
Notes
- Available in XG5000 V3.3 or above, XGK CPU OS V3.4 or above
19-1
XG5000 User’s Manual
19-2
Chapter 19 User Function / Function Block
[Dialog box]
c
d
g h
[Description of Dialog box]
a. Program Name: used to input a User Function/Function Block. When the user-defined function/function is
registered, the input name is registered.
b. Language: used to select a programming language for the User Function/Function Block. A user-defined
function is created only by the LD language while a user-defined function block can be created by either
the LD or SFC language.
c. Use EN/ENO: used to select whether to use or not EN/ENO, which is used under the operation condition
of function/function block. If not selecting EN/ENO, a user should declare BOOL type variable in the first
input and first output parameters of the function/function block.
d. Return Data Type: designates a type of the results after a user-defined function is executed. It is activated
only when a user-defined function is created.
e. Width (Columns): adjusts the width columns number of user function/function block
f. Program description: used to input the comment of a User Function/Function Block. If unnecessary, the
comment does not have to be input.
g. OK: saves the input in the dialog box and closes the dialog box.
h. Cancel: cancels the input in the dialog box and closes the dialog box.
19-3
XG5000 User’s Manual
Note
- For Width (Columns) item, you can specify the width of function/function block and it can be useful to
make long I/O variable name not overlapped.
Width =1 Width =2
- If clicking OK button, a new item is created under the item of User Function/Function Block.
19-4
Chapter 19 User Function / Function Block
2. Add input variable, I/O variable and output value in the local variable screen. Depending on the added I/O
variables, the function/function block shape is automatically changed on the bottom of the local variable
screen.
19-5
XG5000 User’s Manual
Notes
- Input variable and output variable should be, at least, one or more, respectively but the number is
limited to 64.
[Steps]
1. If double-clicking a program among the items under the User Function/Function Block, a program screen
with the previously designated language appears. The following screen shows the screen created when
selecting the LD.
2. Create a program, based on the variable inputted in the local variable window.
19-6
Chapter 19 User Function / Function Block
Notes
- You can’t user another user function/function block in the user function/function block programming
- The variable whose name is same as that of user function should be used
- Direct variable (device) can be used only in the user function block programming
- In the user function block, you can set trigger on bit type input parameter (variable)
2) F_EDGE(Falling Edge): When variable changes from 1 to 0, derivers 1 into function block.
- If local variable edit and program edit are finished, select extension function in the toolbar to check
whether the edited User Function/Function Block is registered.
19-7
XG5000 User’s Manual
19-8
Chapter 19 User Function / Function Block
[Steps]
1. Open the program to use a User Function/Function Block and move the cursor to the position to input.
19-9
XG5000 User’s Manual
Notes
- Only one input line is available ahead of user function/function block and connects with EN.
In case there is no EN, it can connect with first BIT type input variable.
- Output line can come out from BIT type output variable and only one is available.
- Online editing for user function/function block is not available.
But, deleting user function/ function block in the scan program is available.
19-10
Chapter 19 User Function / Function Block
19.3.1 Password
1) Setting individual password for user function/function block
[Steps]
1. After user function/function block on the project window, select [Properties].
19-11
XG5000 User’s Manual
3. Input password.
4. Input password again at [Confirm password].
5. Press OK
6. Once confirmed, the password will be needed whenever you open the user function/function block.
19-12
Chapter 19 User Function / Function Block
[Steps]
1. After selecting [User Function/Function Block] on the project window, select [Properties].
19-13
XG5000 User’s Manual
Notes
- If you lost a password, you can’t open a user function/function block. But though you don’t know the
password, you can use it in the program.
19-14
Chapter 19 User Function / Function Block
19-15
XG5000 User’s Manual
19-16
Chapter 20 LS Studio
Chapter 20 LS Studio
20.1 Start
20.1.1 Features
XG5000 provides an integrated development environment with software such as XP-Builder, DriveView7.
In the integrated development environment, all project files are integrated and managed by the XG5000.
By using the XP-Builder integration project, the list of variables used in the PLC can be used
immediately without the inconvenience of exporting or importing as a CSV file. In addition, Driveview7
makes it easier to configure communication settings by using the inverter list in the project.
Variables and comments export function is used in XG5000 to save variable / comment as CSV file. In
XP-Builder, the file saved in XG5000 is used by 'importing into tag group'. If the variable / comment
created in the XG5000 changes frequently, this process is repeated.
20-1
XG5000 User’s Manual
In the tool integration environment, it is not necessary to save the variable / comment items used in the
xg5000 as a separate file, and even if the variable / comment changes, exporting to the file is not
necessary. This can reduce overall engineering time.
Note
1) The following software versions are integrated with the XG5000.
a) XG5000: Version 4.11 or later
b) XP-Builder: Version 2.00[B27] or later
c) DriveView7: Version 1.4.2 or later
20-2
Chapter 20 LS Studio
20.1.3 Install
(1) Run the installation file.
(2) The installation wizard prepares for installation. Press next button.
20-3
XG5000 User’s Manual
In a custom configuration, you can select and install the programs you want.
(4) If you select the type of installation, start the installation as shown below.
(5) The installation files of the selected program will be executed sequentially. For detailed installation
procedure of each program, refer to the instruction manual of each program.
20-4
Chapter 20 LS Studio
20.1.4 Delete
You can uninstall it all at once using the LS Studio installation package or you can uninstall them
individually using the respective installation files.
(1) In Control Panel - [Programs and Features], right-click LS Studio and click "Uninstall" or double-click.
20-5
XG5000 User’s Manual
Note
1) The method of deleting individual software installation through LS Studio is the same as the deletion
method of each software. For details, refer to the instruction manual of each software.
20-6
Chapter 20 LS Studio
[Steps]
1. Select [Project] - [Add Item] - [PLC / Add-on] on the menu.
20-7
XG5000 User’s Manual
2. In the "Add Configuration" dialog box, select the item you want to add.
[Dialog box]
c d
20-8
Chapter 20 LS Studio
d e
[Dialog Box Description]
a. Name: Enter the name to be added in the XG5000 project. You cannot duplicate items in the current
project.
b. From Model: Select the detail model. Different items are displayed depending on the items added.
c. From File: Adds an item from the selected file. The model information and name in the file are
displayed.
If the name you add is duplicated in the project, a number is appended to avoid duplication.
e. OK: Close the dialog box and add the entry as input..
f. Cancel: Cancels the input and closes the dialog box.
20-9
XG5000 User’s Manual
Note
1) Items and sub-items added to the project tree are displayed differently depending on the selected item.
2) When you add an item from a file, the selected file is copied and saved with the XG5000. The selected
file remains without being deleted.
3) Items that are added can be activated or deactivated on an item-by-item basis. The available additional
functions can be set in the common functions related to the XG5000 in the menu [Tools] –[Options]
dialog box.
20-10
Chapter 20 LS Studio
Note
1) Duplicated execution may not be possible depending on the characteristics of the application such as
Driveview7.
20-11
XG5000 User’s Manual
(2) In the dialog box below, enter a file name and click Save.
(3) Open the saved file in an individually installed version of XG5000 V4.10 or earlier.
20-12
Chapter 20 LS Studio
[Steps]
1. On the XG5000, select the variable / comment you want to share with the HMI.
The XG5000 allows you to select global variables, flags, and local variable entries.
Notes
1) In the XG5000 project, variables sent and received by HMI or communication can be checked in the
system variable list.
2. Select the HMI item in the project tree and double-click it.
3. Double-click the tag item in the project tree of XP-Builder to display the tag window.
20-13
XG5000 User’s Manual
4. Select the [NewPLC] item in the tag group to see the list of variables selected on the XG5000.
20-14
Chapter 20 LS Studio
[Steps]
1. Add communication module supporting LS bus to current project (Cnet only)
20-15
XG5000 User’s Manual
3. Add P2P parameter for communication module and select LS BUS item in P2P channel.
20-16
Chapter 20 LS Studio
4. Enter the default settings for P2P and click the [Set] button.
5. In the Variable Setting dialog box, right-click "Read Area" and select "Inverter Setting".
6. Select inverter, group and variable in the inverter variable selection dialog box and select the OK button.
20-17
XG5000 User’s Manual
20-18
Warranty
Warranty
1. Terms of warranty:
LSIS provides an 18-month warranty starting from the date of production.
2. Range of warranty:
For problems within the terms of the warranty, LSIS will replace the entire PLC or repair the defective parts
free of charge, except for the following cases.
(1) Problems caused by improper conditions, environment or treatment.
(2) Problems caused by external devices.
(3) Problems caused by the user remodeling or repairing the PLC.
(4) Problems caused by improper use of the product.
(5) Problems caused by circumstances where the expectations exceed that of the science and technology
level when LSIS produced the product.
(6) Problems caused by natural disaster.
3. This warranty is limited only to the PLC itself. It is not valid for the whole system to which the PLC is attached.
LS values every single customer.
Quality and Service come first at LSIS.
Always at your service, standing for our customers.
http://www.lsis.com
10310000512