XBM XBC Basic Tutorial
XBM XBC Basic Tutorial
- XBMS
- XBC-U/H/S/SU/E Type
- Contents -
1. Specification
2. Main Unit
3. System Configuration
4. XG5000
1. Specifications
1/14
1. Specifications
* Pollution degree: An index indicating pollution degree of the operating environment which decides insulation performance of the devices.
For instance, Pollution degree 2 indicates the state generally that only non-conductive pollution occurs. However, this state contains temporary
conduction due to dew produced.
2/14
1. Specifications
Number of Basic 28
instructions Application 677
Processing speed 0.16 ㎲/Step Basic Instruction
Program capacity 10 Ksteps
Max. I/O points 240 Points 256 Points 7 Expansion
Initial task 1
Cyclic task Max. 8 Total 128
3/14
1. Specifications
Specification
Item Remarks
XBC-DN32H XBC-DR32H XBC-DN64H XBC-DR64H
Program control method Reiterative operation, fixed cycle operation, constant scan
Scan synchronous batch processing method (Refresh method),
I/O control method
Directed by program instruction
Program language Ladder Diagram, Instruction List
Number of Basic 28
instructions Application 687
Processing speed 0.083 ㎲/Step Basic Instruction
Program capacity 15 Ksteps
Max. I/O points 352 Points 384 Points 10 Expansion
Initial task 1
Cyclic task Max. 8 Total 128
4/14
1. Specifications
Specification Remarks
Item XBC-DN20S/SU XBC-DN30S/SU XBC-DN40SU XBC-DN60SU S: RS-232C Loader
SU: RS-232C and
XBC-DR20SU XBC-DR30SU XBC-DR40SU XBC-DR60SU USB Loader
Program control method Reiterative operation, fixed cycle operation, constant scan
Scan synchronous batch processing method (Refresh method),
I/O control method
Directed by program instruction
Program language Ladder Diagram, Instruction List
Number of Basic 28
instructions Application 687
Processing speed 0.094 ㎲/Step Basic Instruction
Program capacity 15 Ksteps
Max. I/O points 244 Points 254 Points 264 Points 284 Points 7 Expansion
Initial task 1
Cyclic task Max. 8 Total 128
5/14
1. Specifications
Number of Basic 28
instructions Application 677
Processing speed 0.24 ㎲/Step Basic Instruction
Program capacity 4 Ksteps
14 Points 18 Points 28 Points 38 Points
Max. I/O points
(Main + 1 Option) (Main + 1 Option) (Main + 2 Option) (Main + 2 Option)
Initial task 1
Cyclic task Max. 8 Total 128
6/14
1. Specifications
Specification
Item XBC-DR28U XBC-DR28UP XBC-DR28UA Remarks
XBC-DN32U XBC-DN32UP XBC-DN32UA
Program control method Reiterative operation, fixed cycle operation, constant scan
Scan synchronous batch processing method (Refresh method),
I/O control method
Directed by program instruction
Program language Ladder Diagram, Instruction List
Number of Basic 28
instructions Application 677
Processing speed 0.060 ㎲/Step Basic Instruction
Program capacity 32 Ksteps
Max. I/O points XBC-DR28U/UP/UA: 348 Points, XBC-DN32U/UP/UA: 352 Points 10 Expansion
Initial task 1
Cyclic task Max. 16
Total 256
I/O task Max. 8
Internal device task Max. 16
High Speed Task Max. 8
Operation mode RUN, STOP, DEBUG
Diagnosis functions Watch-dog, Memory, I/O error, Power failure
Data back up K area, R area, Latch area set up(Battery Back-up: 3 Years) 25℃
7/14
1. Specifications
Specification
Item XBC-DR28U XBC-DR28UP XBC-DR28UA Remarks
XBC-DN32U XBC-DN32UP XBC-DN32UA
Fast Ethernet, RS-232C/485, High speed counter, PID, Pulse catch,
Common
Input filter, Data Logging, Web-Server
Built in functions
XBC-DNxxUP Common + Position Control
XBC-DNxxUA Common + Analog Input/Output
8/14
1. Specifications
D0000 ~ D5,119 D0000 ~ D10,239 D0000 ~ D1,0239 D0000 ~ D5,119 D0000 ~ D19,999
D Data Register
(5120 Word) (10,240 Word) (10,240 Word) (5,120 Word) (20,000 Word)
Z000~Z127 Z000~Z127 Z000~Z127 Z000~Z127 Z000~Z127 Index
Z
(128 Word) (128 Word) (128 Word) (128 Word) (128 Word) Register
Word
U00.00 ~ U07.31 U0.0 ~ U0A.31 U0.0 ~ U0A.31 U00.00 ~ U0A.31 U00.00 ~ U0B.31 Special
U
(256 Word) (352 Word) (352 Word) (352 Word) (384 Word) Module I/F
99 Steps X
Step S S00.00 ~ S127.99 S00.00 ~ S127.99 S00.00 ~ S127.99 S00.00 ~ S127.99 S00.00 ~ S127.99
128 Pairs
T000 ~ T255 T0000 ~ T1023 T0000 ~ T1023 T000 ~ T255 T0000 ~ T2047 1, 10, 100 ms
Timer T
(256 Points) (1,024 Points) (1,024 Points) (256 Points) (2,048 Points) base time
C000 ~ C255 C0000 ~ C1023 C0000 ~ C1023 C000 ~ C255 C0000 ~ C2047
Counter C
(256 Points) (1,024 Points) (1,024 Points) (256 Points) (2,048 Points)
9/14
1. Specifications
Specification
Item Remarks
XBM XBC-H XBC-S/SU XBC-E XBC-U
RS-232C: 1 Ch.
Channels*
RS-485: 1 Ch.
Baud Rate 1,200/2,400/4,800/9,600/19,200/38,400/57,600/76,800/115,200
Data Bit 7/8
Stop Bit 1/2
Parity Bit None/Even/Odd
RS-232C 1:1
Topology
RS-485 1:1, 1:n
Protocol XGT Protocol, Modbus-RTU/ASCII, User-Defined Protocol Client/Server
Diagnostic function Frame monitor, Service Monitoring, P2P Flag(NDR, ERR, SVC_CNT, ERR_CNT)
* Simultaneous use of RS-232C and RS-485 is possible except XBC-E Type. XBC-E type can use only 1 channel between RS-232C and RS-485
channel.
10/14
1. Specifications
Specification
Item Remarks
XBM XBC-H XBC-S/SU XBC-E XBC-U
100 KHz 4 Ch. 100 KHz 2 Ch.
1 Phase 20 KHz 4 Ch. 4 KHz 4 Ch. 100 KHz 8 Ch.
Performance 20 KHz 4 Ch. 20 KHz 6 Ch.
& Channels 50 KHz 2 Ch. 50 KHz 1 Ch.
2 Phase 10 KHz 2 Ch. 2 KHz 2 Ch. 50 KHz 4 Ch.
10 KHz 2 Ch. 8 KHz 3 Ch.
• 1 Phase Pulse (Direction is assigned by program)
• 1 Phase Pulse + Direction
Input Pulse Type
• 2 Phase Pulse
• CW/CCW Pulse
Pulse Signal Level DC 24 V
Counter Range -2,147,483,648 ~ 2,147,483,647
• Internal/External preset function
• Latch counter function
Additional Function
• Comparison output function
• Revolution number per unit time function
11/14
1. Specifications
Specification
Item Remarks
XBM XBC-H XBC-S/SU XBC-UP
Performance & Channels 100 kpps 2 Ch. 2 Mpps 4 Ch.
• Pulse & Direction
• Pulse & Direction
Output Pulse Type • Pulse & Direction • Pulse & Direction • CW/CCW
• CW/CCW
• Phase
Pulse Signal Level DC 24 V Open Collector Line Drive
Control Unit Pulse Pulse, mm, Inch, Degree
• Pulse:
-2,147,483,648 ~
Position Range -2,147,483,648 ~ 2,147,483,647 Pulse 2,147,483,647
• mm: Pulse X 10-4
• Inch, Degree: Pulse X 10-5
Speed Range 0 ~ 100,000 pps • Pulse: 0 ~ 2,000,000 pps*2)
• Position Control
• Position Control
Control Method • Speed Control
• Speed Control
• Feed Control
• Linear: 2/3/4 Axis
• CAM: 2/3/4 Axis
Interpolation Operation -
• Circular, Elliptical: 2 Axis
• Helical: 3 Axis
Pulse, Drive Ready
Servo Drive Interface Pulse
Servo ON, Servo error Reset
External Interface High Limit, Low Limit, Dog, Home
*1) Position Control function is not available in XBC-E, XBC-U, XBC-UA type.
*2) When one of mm, Inch, Degree is selected in control unit, the speed range is dependent on mechanical constant assigned by parameters such
as pulses per rotation, Travel per rotation and Unit multiplier, and its unit can be selected one of the two choices, unit/m and rpm.
12/14
1. Specifications
1.4.4 PID*
Specification
Item Remarks
XBM XBC-H XBC-S/SU XBC-U
Loop 16 Loops
• P Control (Proportional Control)
Control Method • PI Control (Proportional-Integral Control)
• PID Control (Proportional-Integral-Derivative Control)
• Controlled by PID Instruction
• Auto-tuning
• PWM Output
• Forward/Reverse
• Manual Value Output
Functions hybrid operation
• Adjustable Cycle time
• Cascade PID
• Anti-Windup
• Delta-MV
• SV-RAMP
13/14
1. Specifications
1.4.5 Others
Specification
Item Remarks
XBM XBC-H XBC-S/SU XBC-E XBC-U
• 10 ㎲ 4 Points • 10㎲ 2 Points
• 50㎲ 8 Points (P00~P03) (P00~P01) • 50㎲ 4 Points • 50㎲ 8 Points
Pulse Catch
(P00 ~ P07) • 50 ㎲ 4 Points • 50㎲ 6 Points (P00 ~ P03) (P08 ~ P0F)
(P04 ~ P07) (P02 ~ P07)
• 10 ㎲ 4 Points • 10㎲ 2 Points
• 50㎲ 8 Points (P00~P03) (P00~P01) • 50㎲ 4 Points • 50㎲ 8 Points
External Interrupt
(P00 ~ P07) • 50 ㎲ 4 점 • 50㎲ 6 Points (P00 ~ P03) (P08 ~ P0F)
(P04 ~ P07) (P02 ~ P007)
Input Filter 1,3,5,10,20,70,100 ms
14/14
2. Main Unit
Bottom View
1/7
2. Main Unit
2/7
2. Main Unit
O/S Download
*1) USB loader port is available in XBC-SU type. ⑫ Switch*3)
O/S download mode select switch
*2) SG is signal ground of RS-232C and RS-485 together.
*2) XBC-E case, only one of the two communication port, RS-232C and RS-485, can be used.
*3) O/S download switch is inside of main unit.
3/7
2. Main Unit
①
⑦ ②
③
⑪
④
⑩ ⑤ ⑥
Front View
Bottom View
4/7
2. Main Unit
①
⑦ ② ⑭
③
⑪
④
⑩ ⑤ ⑥ ⑬
Front View
Bottom View
5/7
2. Main Unit
①
⑦ ② ⑭
③
⑪
④
⑩ ⑤ ⑥ ⑬
Front View
Bottom View
6/7
2. Main Unit
7/7
3. System Configuration
+ …
Main Unit Expansion Module*1) (Max. 7EA including Max. 2 expansion communication module)
2) I/O Address*2)
Slot I/O Address Slot I/O Address
Input P00000 ~ P0001F Slot 4 P00160 ~ P0019F
Main Body
Output P00020 ~ P0003F Slot 5 P00200 ~ P0023F
Slot 1 P00040 ~ P0007F Slot 6 P00240 ~ P0027F
Slot 2 P00080 ~ P0011F Slot 7 P00280 ~ P0031F
Slot 3 P00120 ~ P0015F - -
*1) High speed bus expansion modules(XBF-PN04/08B) cannot be connected to XBM type main unit.
*1) The total current consumption of expansion modules must not exceed the current supplied by the main unit. For main unit current supply and
current consumption of each expansion module, please refer to the XGB catalog or the manual of each module.
*2) Each slot charges 4 words in P device regardless of module type.
1/12
3. System Configuration
+ …
Main Unit Expansion Module*1) (Max. 10EA including Max. 2 expansion communication module)
2) I/O Address*2)
Slot I/O Address Slot I/O Address
Input P00000 ~ P0001F Slot 5 P00200 ~ P0023F
Main Body
Output P00020 ~ P0003F Slot 6 P00240 ~ P0027F
Slot 1 P00040 ~ P0007F Slot 7 P00280 ~ P0031F
Slot 2 P00080 ~ P0011F Slot 8 P00320 ~ P0035F
Slot 3 P00120 ~ P0015F Slot 9 P00360 ~ P0039F
Slot 4 P00160 ~ P0019F Slot 10 P00400 ~ P0043F
*1) High speed bus expansion modules(XBF-PN04/08B) cannot be connected to XBC-H type main unit.
*1) The total current consumption of expansion modules must not exceed the current supplied by the main unit. For main unit current supply and
current consumption of each expansion module, please refer to the XGB catalog or the manual of each module.
*2) Each slot charges 4 words in P device regardless of module type.
2/12
3. System Configuration
+ …
Main Unit Expansion Module*1) (Max. 7EA including
Max. 2 expansion communication module)
Total Max. 7EA
*1) High speed bus expansion modules(XBF-PN04/08B) cannot be connected to XBC-S/SU type main unit.
*2) Number of option module slot is 1 or 2 depending on the size of main unit. (20 points: 1, 30, 40, 60 points: 2)
*1, 2) The total current consumption of expansion modules must not exceed the current supplied by the main unit. For main unit current supply and
current consumption of each expansion module, please refer to the XGB catalog or the manual of each module.
3/12
3. System Configuration
2) I/O address*
*2) Each slot including option slot charges 4 words in P device regardless of module type.
4/12
3. System Configuration
Main Unit
+ Option Module* (Max. 2EA)
2) I/O Address*2)
*1) All kinds of expansion modules cannot be connected to XBC-E type main unit.
*1) Number of option module slot is 1 or 2 depending on the size of main unit. (10, 14, 20 points: 1, 30 points: 2)
*1) The total current consumption of expansion modules must not exceed the current supplied by the main unit. For main unit current supply and
current consumption of each expansion module, please refer to the XGB catalog or the manual of each module.
*2) Slot numbers 1 ~ 8 of which I/O addresses are P00080 ~ P00039F are not used. The appropriate devices can be used as internal device.
*2) Each slot including option slot charges 4 words in P device regardless of module type.
5/12
3. System Configuration
* High speed bus expansion modules(XBF-PN04/08B) can be connected to all kinds of XBC-U type main unit.
* The total current consumption of expansion modules must not exceed the current supplied by the main unit. For main unit current supply and
current consumption of each expansion module, please refer to the XGB catalog or the manual of each module.
6/12
3. System Configuration
2) I/O Address*1)
7/12
3. System Configuration
3.3 Wiring
3.3.1 XBMS Transistor Output type Main Unit Wiring
XBM-DN16S
XBM-DN32S
R40H/20HH-xxS-XBM3
Xx: Length(05: 0.5 m, 10: 1 m)
TG7-1H40S
Input Output
* Wiring connector is not included in XBM-DN16S and XBM-DN32S unit.
8/12
3. System Configuration
XBE-DC32A
C40HH-xxSB-XBI
xx: Length
(05: 0.5 m, 10: 1 m
15: 1.5 m, 20: 2 m TG7-1H40S
30: 3 m)
9/12
3. System Configuration
XBE-TN32A
C40HH-xxSB-XBI
xx: Length
(05: 0.5 m, 10: 1 m
15: 1.5 m, 20: 2 m TG7-1H40S
30: 3 m)
10/12
3. System Configuration
XBE-TP32A
C40HH-xxSB-XBI
xx: Length
(05: 0.5 m, 10: 1 m
15: 1.5 m, 20: 2 m TG7-1H40S
30: 3 m)
11/12
3. System Configuration
XBE-TN32A
C40HH-xxSB-XBE
xx: Length
(05: 0.5 m, 10: 1 m
15: 1.5 m, 20: 2 m R32C-NS5A-40P
30: 3 m)
12/12
4. XG5000
Variable
monitoring
window
Program
Project window System catalog &
window EDS(for EtherNet/IP)
information
Function, F/B
window
Message Status Bar
window
* The placement of each window can be changed by dragging window, selecting or deselecting window in view menu.
1/79
4. XG5000
① Project name.
① ② Project file storage folder.
When project name is given in ①, XG5000 will make a folder whose
② name is same as project under the base folder.
③ The base folder can be assigned in ‘Options’ in Tools menu.
③ CPU series and type
④ - XGK: XGK-CPUE, XGK-CPUS, XGK-CPUA, XGK-CPUH, XGK-CPUU.
- XGB: XGB-XBMS, XGB-XBCH, XGB-XBCS, XGB-XBCE, XGB-XBCU.
⑤ - XGB(IEC): XGB-XECH, XGB-XECS, XGB-XECE, XGB-XECU.
- XGI: XGI-CPUE, XGI-CPUS, XGI-CPUH, XGI-CPUU/D.
- XGR: XGR-CPUH, XGR-INC.
⑥
2/79
4. XG5000
④ Program name
PLC needs scan program and XGT series PLC can have maximum 128/256 programs in one PLC.
Program name assigned here is the name of the 1st scan program for the PLC.
⑤ Program Language: XGB series PLC can use only LD(Ladder Diagram) language.
⑥ Project Description: Description for the project can be given.
When setting is completed and ‘OK’ button is clicked, XG5000 will compose a new project.
3/79
4. XG5000
4/79
4. XG5000
2) Connection Depth
① Local Connection
XBM: RS-232C
XBC-H, XBC-SU: USB, RS-232C
XBC-S, XBC-E: RS-232C
XBC-U: USB, Ethernet
2 2 5 6
3 6 3 4
5 3 1 2
5/79
4. XG5000
② Remote 1 Connection
Remote 1 Connection
* Host name and User custom port are available when connection is executed with Ethernet module via DDNS host.
6/79
4. XG5000
Local Connection
Remote 1 Connection
- Cnet, FEnet, RAPIEnet, EtherNet/IP
· Connection setting and Parameter setting
- Local communication module: Base and Slot number where communication module which is used for remote
connection is installed in locally connected PLC.(PLC #1)
- Remote 1 communication module: Communication parameters for communication module installed in the remote
connection PLC.(PLC #2)
7/79
4. XG5000
#2
#1
#3
* #1, #2, #3 in this page are communication module number, regardless of module type and parameters such as station number.
8/79
4. XG5000
#1 #3
#2 #4
* #1, #2, #3, #4 in this page are communication module number, regardless of module type and parameters such as station number.
9/79
4. XG5000
CPU series and type can be selected in ‘New Project’ window which is displayed when KGLWIN/GMWIN file is open.
10/79
4. XG5000
Not all components of KGLWIN/GMWIN file is converted to XGT series PLC project because some concept is changed.
KGLWIN Program
XG5000 Program
11/79
4. XG5000
② Error occurs while program conversion, red line will be displayed in step number printing cell and if instruction can-
not be converted, the original instruction will be converted to ‘ERR’.
If ‘ERR’ is in converted program, the instruction must be modified.
KGLWIN Program
XG5000 Program
③ Parameters such as latch area setting and timer boundary and so on cannot be converted and all parameters of XGT
project will be initial value.
Especially, KGLWIN file is converted to XGK, XBM, XBC series PLC project, timer boundary must be checked because
number of timer and initial boundary is different from MASTER-K PLC.
* Some reasons of incomplete conversion
- Special function and communication modules are controlled by instruction in MASTER-K and GLOFA-GM PLC, but those modules of XGT PLC are
controlled by parameters. Instruction for special function and communication module cannot be converted.
- Some instructions available in MASTER-K and GLOFA-GM PLC is not available in XGT PLC.
12/79
4. XG5000
Project Name
Network Configuration
Common items
System Variable
PLC Name
PLC Name
PLC Name
* Project composed with more than two PLCs is multi-PLC project. PLCs in a multi-PLC project can be connected to one XG5000 simultaneously.
13/79
4. XG5000
1) Common
① Network Configuration: More than one network configuration can be registered in one project and each Network
Configuration must have more than one network modules installed in the PLCs in the project. Network parameters
for network modules can be setup in Network Configuration. Actual communication function and data will be assign-
ed in High speed Link and P2P tab of project window.
② System Variable: Variables used in the High Speed Link and P2P will be listed up.
2) Individual items
① Variable/Comment: Variable and/or comment for device can be edited or listed up.
② Parameter: Parameters are composed with 3 items, Basic, I/O and Internal parameters. Internal parameters are differ-
ent depending on main module type.
- XBM, XBC-H/S/SU: High Speed Counter, PID, Positioning.
- XBC-E: High Speed Counter.
- XBC-U: High Speed Counter, PID, Data Log.
③ Scan Program: Maximum (128/256 – number of Task program) programs can be edited for one PLC.
④ Task: All types of XGB series PLC has Initializing, Cycle, Input and Internal Device Task, commonly. Especially XBC-U
type has one more task, High Speed Counter task.
14/79
4. XG5000
3) Item Modification
① Add Item
1) Select 1 step higher item. For example, to add a PLC, project must be selected.
2) Click right button of mouse and 1st pop-up menu will be displayed.
3) Select ‘Add Item’ in the 1st pop-up menu and 2nd pop-up menu will be displayed and items which can be added
will be enable in 2nd pop-up menu.
4) Select item to be added and ‘Properties’ window of selected item will be displayed.
5) Editing ‘Properties’ window is completed and ‘OK’ button is clicked, the selected item will be added in the project.
15/79
4. XG5000
16/79
4. XG5000
① Project name, description and project file storage can be modified in ‘Project’ tab.
② Password can be assigned or modified in ‘Password’ tab. The password assigned here is file open password. When
XG5000 opens a project file in which file open password is assigned, XG5000 will ask the password.
Password assigned here will not be downloaded to PLC.
Online password which is asked when connection is tried can be set up in ‘Online’ menu of XG5000.
17/79
4. XG5000
2) PLC Properties
① PLC name, type, description can be modified. For PLC type modification, XGK, XBM, XBC type PLCs can be modified
mutually and XGR, XGI, XEC type PLCs can be modified mutually, but XGK, XBM, XBC type PLCs cannot be modified
to XGR, XGI, XEC type PLCs and vice versa.
18/79
4. XG5000
3) Variable/Comment Edition
When Variable/Comment is double clicked Variable/Comment window will be displayed. There are three methods for
editing variable/comment.
2)
1)
4)
5)
6)
3)
* Input Variable/Device window will be displayed when ladder symbol is registered in ‘Program’ window or a device in the program is double clicked.
19/79
4. XG5000
It is convenient to select ‘View Device’ tab when variable and/or comment are edited in Variable/Comment window.
- Copying Data: A variable or comment is edited and it is dragged, it will be copied to dragged cell.
Drag
* Short cut key for line insertion is CTRL+ L. in View Variable window.
20/79
4. XG5000
- Number Automatic Increasing: A variable or comment with number is edited and it is dragged while ‘CTRL’ key is
pressed, the number in variable or comment will be increased automatically.
++
21/79
4. XG5000
22/79
4. XG5000
4) Task
① Task name, Priority, number, type and items dependent on task type can be assigned. Adding ‘Task’ means register-
ing task event in the project, and task program must be registered independent of adding task event for data proce-
ssing when task event occurs.
Task program can be registered by project item adding sequence after registering task event.
* Any Task will not be registered when new project is composed. To use task in a new project, task must be added manually.
23/79
4. XG5000
4.3.3 Parameter
1) Basic Parameter
- Fixed period operation time must be longer than maximum scan time which can be monitored ‘Online’ menu.
- Watchdog Timer: If scan time is longer than watchdog timer time, PLC will be error state.
24/79
4. XG5000
- Standard Input Filter: this parameter decides input response time. The state of input signal must hold state(ON/OFF)
longer than standard input filter time to be recognized as normal input. If state of input signal is changed within
input filter time, the change of state will be ignored. Standard input filter time will be applied to all input points
except individual input filter time is set in I/O parameter.
If short input filter time is set, the input points can be sensitive to noise.
- Output during debugging: This option decides if digital output data is transmitted to output module while
debugging operation. If this option is not checked, output points will not be turned on although output data is
turned on in the program while debugging operation.
- Keep output when an error occurs: This option decides if all digital output data will be cleared or not when error
occurs. Generally, all digital output data will be cleared when error occurs, . And although this option checked
digital output data will be cleared when error occurs. One more parameter, I/O parameter must be set up to
keep digital output status when error occurs.
- Delete all areas except latch when an error occurs: Although error occurs, the data stored in data memory outside
of latch area will not be cleared until PLC is reset. When this option is checked, the data stored in data memory
outside of latch area will be cleared when error occurs.
25/79
4. XG5000
- Enable area 1 and 2: Because K and R areas of data memory are latch area, the data in these area will not be
cleared when PLC is reset. If more latch memory is required or data in other area must not be cleared when PLC is
reset, the other area can be used as latch area by checking Enable area 1 and/or 2. Latch area 1 and 2 are not
simple area division but each area has different property depending on resetting method.
26/79
4. XG5000
- Latch Area: Latch 1 and/or 2 area can be selected in D, M, S, C, T data memory area.
- Timer Boundary: XGB series PLC has 256(XBM, XBC-E), 1024(XBC-H/S/SU) or 2048(XBC-U) timers and its base time
can be 1, 10, 100ms. Tome number of each base time can be set up in timer boundary. For each base time, more
than one timer must be allocate.
27/79
4. XG5000
Holding RUN mode or changing to error mode can be selected when some error occurs.
28/79
4. XG5000
2) I/O Parameter
Module configuration and operation can be assigned in I/O parameter. Setting items will be different depending on type
of module.
- Digital input module: Input filter time.
- Digital output module: Clear/hold output data when error occurs.(Combination with basic parameter)
- Special function module: Channel enable/disable, input/output data type and options for module operation etc.
* The operations for network module can be set up in Network Configuration, High Speed Link and/or P2P.
29/79
4. XG5000
3) Internal Parameter
30/79
4. XG5000
② PID: PID parameter is composed with two items, operation and Auto Tuning.
* Because XBC-E PLC type doesn’t support PID function, a project with XBC-E type PLC project doesn’t have PID parameter.
31/79
4. XG5000
③ Positioning parameter is composed with two items, operation parameters and operation data.
* Because XBC-E PLC type doesn’t support positioning function, a project with XBC-E type PLC project doesn’t have positioning parameter.
* Because positioning parameters and data for XBC-UP type PLC are set up by XG-PM software which is executed when ‘Position Control’ is selected
in ‘Tool’ menu of XG5000, a project with XBC-U type PLC project doesn’t have positioning parameter.
32/79
4. XG5000
④ Data log
* Because Data Log function is supported by XBC-U type only, Data Log parameter can be seen in a project with XBC-U type PLC project.
33/79
4. XG5000
4.4 Programming
4.4.1 Device notation
1) Bit Device Notation
Bit devices are used with contacts, coils and 4/8 bit data processing instructions.
① P, M, K, F, L Device
P00000 P 0000 0
Bit number, Hexa-decimal number.(0 ~ F)
Word number, Decimal number.(0 ~ 9 for each digit)
Device.
* T and C devices used with contact or coil stands for output state and T and C used with word data processing instructions stands for the current
value of timer and counter, respectively.
* U, T and C devices cannot be used with 4/8 bit data processing instructions.
34/79
4. XG5000
Word devices are used with word, double word, floating number data processing instructions.
① P, M, K, F, L Device
P0000 P 0000
Word number, Decimal number.(0 ~ 9 for each digit)
Device.
③ D, R, Z, C, T Device
D00000 D 00000
Word number, Decimal number.(0 ~ 9 for each digit)
Device.
* Z, C, T devices cannot be expressed with word.bit notation.
35/79
4. XG5000
① Contacts
- Four kinds of contacts are available in XGT series PLC and the function of contacts is reading a bit device.
Symbol Name
Normally Open Contact
Normally Closed Contact
Positive Transition Sensing Contact 1 Scan Time
Negative Transition Sensing Contact 1 Scan Time
② Coils
- Six kinds of coils are available in XGT series PLC and the function of coils is writing the result of logic operations
to a bit device.
Symbol Name
Coil
Negated Coil
Positive Transition Sensing Coil 1 Scan Time
Negative Transition Sensing Coil 1 Scan Time
Set Coil Set Condition ON
Reset Coil Reset Condition ON
* Set/Reset coils are controlled by condition, not result.
36/79
4. XG5000
3) Edit the comment in ‘Rung Comment’ window. ‘OK’ button is clicked after editing comment, the edited comment
will be displayed in ‘Program’ window.
Comment is registered.
37/79
4. XG5000
② Editing Contact
1) Select coil in tool bar.
2) Selected item will be located at the bottom of cursor when cursor is located in program window. Click mouse after
locating cursor in a cell where contact will be edited in program window.
3) Input variable or device in ‘Variable/Device’ item. If variable or comment is to be edited, check ‘Add to Symbol’
and click ‘OK’ button. And if ‘English typing mode’ is checked and ‘Variable/Device’ item is clicked, keyboard will
be changed to English typing mode automatically.
38/79
4. XG5000
5) ‘OK’ button is clicked after editing variable and/or comment, edited variable, comment and/or device will be displ-
ayed in program window.
39/79
4. XG5000
* If ‘Input Variable/Device’ window is not displayed when contact is registered, check XG5000 options in ‘Tools’ menu. If ‘Instant input mode is not
checked, variable or device can be edited by double clicking symbol after registering symbol.
40/79
4. XG5000
③ Editing Coil
1) Select coil in tool bar
2) Selected item will be located at the bottom of cursor when cursor is located in program window. Click mouse after
locating cursor in a cell next to last contact in program window.
3) Input variable or device in ‘Variable/Device’ item. If ‘Add to Symbol’ and/or ‘English typing mode’ is checked previ-
ousl, the status will be maintained.
41/79
4. XG5000
5) ‘OK’ button is clicked after editing variable and/or comment, edited variable, comment and/or device will be displ-
ayed in program window.
42/79
4. XG5000
43/79
4. XG5000
44/79
4. XG5000
3) Instruction programming
① Structure of instructions
Instructions for XGK, XBM, XBC series PLCs are composed of prefix, basic instruction and suffix.
1) Basic instructions deals with one word(16 bits) size data. For numeric data processing instruction, data types of
operands are signed integer. For example, ‘ADD D00000 D00001 D00010’ is edited, data in D00000 and D00001
are converted to signed integer and stores the result of addition operation in D00010. If the result is out of signed
integer range(-32,768 ~ 32,767), arithmetic error will occur.
45/79
4. XG5000
* Shortcut key for line insertion is CTRL + L and line deletion is CTRL + D, respectively.
46/79
4. XG5000
47/79
4. XG5000
1) An instruction is selected and ‘Instruction Help’ button is clicked, instruction help will be displayed.
* To open instruction manual, a software which can read pdf file must be installed in computer.
48/79
4. XG5000
2) ‘Variables(Ins.)’ button is clicked, variables and/or comments previously edited can be referred while instruction is
edited. A variable or device is selected in ‘Input Variable/Comment’ window, selected variable or device will be
registered as operand where cursor is located.
49/79
4. XG5000
3) Variable and/or comment for devices used with instructions can be edited by double clicking device after editing
instruction.
50/79
4. XG5000
4) Timers
Five types of timer are available in XGK, XBM and XBC series PLC.
Condition t1 t2 t3
Setting Time
TON Elapsed Time
Output
Setting Time
TOFF Elapsed Time
Output
Setting Time
TMON Elapsed Time
Output
Setting Time
TRTG Elapsed Time
Output
Setting Time t1 ≥ Setting Time
TMR Elapsed Time t2, t3 < Setting Time
Output T2 + t3 ≥ Setting Time
Reset TMR
51/79
4. XG5000
52/79
4. XG5000
53/79
4. XG5000
4) To reset timer, edit reset coil of which device is timer number to be reset. Especially, integration timer, TMR, is
used, resetting timer logic must be edited.
54/79
4. XG5000
5) Counters
Four types of counter are available in XGK, XBM and XBC series PLC.
Count Condition
Reset Condition
Setting Value
Compulsory value
CTU Current Value
change
Output
Setting Value
CTD Compulsory value
Current Value
change
Output
Setting Value
Compulsory value
Current Value
CTR change
Output
CD Condition
Setting Value
CTUD Compulsory value
Current Value
change
Output
55/79
4. XG5000
② Counter Latch
When PLC is reset including turning off main power, current value of counter will be cleared. If current value is to be
preserved when PLC is reset, latch area must be set up. Latch area can be set up in ‘Basic Parameter’, ‘Device Area
Setup’ tab.
56/79
4. XG5000
57/79
4. XG5000
3) When CTUD counter is edited, condition must be ‘Always ON’ flag(F00099) and operands are counter number,
count up and down conditions and setting value.
Setting Value
Count down condition
Count up condition
Counter number
58/79
4. XG5000
5) To reset counter, edit reset coil of which device is counter number to be reset.
59/79
4. XG5000
6) To use current value of counter, use counter number for operand of instruction of which data size is one word.
60/79
4. XG5000
61/79
4. XG5000
4.5 Downloading
Writing programs, parameters to PLC is downloading. Comments can be included or excluded depending on user’s
decision.
① Connection setting
Connection between computer and PLC must be established to download project items. For successful connection,
connection setting appropriate to actual connection must be assigned. Connection setting can be assigned in
‘Connection Settings’ item in Online menu. For connection, refer to 4.4.2 verse.
62/79
4. XG5000
② Connection
Connection will be established when ‘Connect’ is selected. When connection is established PLC status will be
displayed in project window and status bar.
63/79
4. XG5000
③ Download
‘Write’ in ‘Online’ menu is selected, selection items to be downloaded window will be displayed.
1) Sets Program Upload Prohibition: This option is checked when program is downloaded, the program in the PLC
cannot be read with anyway.
2) Sets link enable with parameters*: High speed link or P2P communication is set and downloaded, link must be
enabled to start communication. When this option is checked and High speed link and/or P2P parameter is
downloaded, the communication will start automatically.
3) Clear PLC: This button is enabled when PLC is stop mode. Generally, ‘Clear PLC’ is needless because all items in
PLC except the data in latch area will be cleared when downloading is executed. To clear the data in latch area,
‘Clear PLC’ can be used.
* Link can be enabled in ‘Communication module setting’ in Online menu if ‘Sets link enable with parameters’ is not checked when parameter is
downloaded.
64/79
4. XG5000
4) Because downloading while PLC is running is not possible, a message window which ask to permit to change PLC
to stop mode will be displayed when downloading is executed while PLC is running.
5) When downloading is completed, a message window which ask to permit to change PLC to Run mode will be
displayed when downloading is executed while PLC is running.
65/79
4. XG5000
4.6 Monitoring
XG5000 supports many kinds of monitoring functions. Monitoring starts when ‘Start Monitoring’ in Monitor menu is
selected.
Turned ON or OFF state for bit devices and numeric data for word devices used in program are displayed in program
window when monitoring starts.
66/79
4. XG5000
Right side
button click
67/79
4. XG5000
Double click
Double click
68/79
4. XG5000
Drag
69/79
4. XG5000
Device not displayed in program can be monitored with variable monitoring window. Variable monitoring window will
be displayed when ‘Variable Monitoring Window’ in ‘View’ menu is selected. Changing displaying data type and value is
possible in variable monitor window.
If devices to be monitored are continuous address devices, maximum 100 continuous address devices can be registered
by one operation called ‘Register All’.
Right side
button click
70/79
4. XG5000
3) System Monitoring
71/79
4. XG5000
4) Device Monitoring
Device Monitoring displays all data in selected device. The monitored data can be saved as mem file and exported to
csv file. The stored file can be open and written to PLC.
72/79
4. XG5000
The operation of special function module can be set up and monitored with ‘Special Module monitoring.
Double click
73/79
4. XG5000
6) Trend Monitoring
The change of data according to time change can be displayed with trend monitoring.
Right button
click
74/79
4. XG5000
7) Data Trace
The data when an event occurs can be monitored with Data Trace. After event occurs, data will be captured every
assigned interval. Because, different from trend monitoring, captured data is stored in CPU, the minimum data capturing
interval is scan time. The captured data is read by XG5000 and displayed. The size of storage for data trend is 128 KB.
Setting device to
Right button be monitored
click
75/79
4. XG5000
When ‘Start Online Editing’ in ‘Online’ menu is selected, the background color of program window will be changed.
At this moment, online editing is possible.
76/79
4. XG5000
2) Program modification
All kinds of program edition is possible for one program. While program is edited, although a program for a line is
completed, PLC will not execute modified program. In the second line program below, although the conditions are
satisfied, output coil, P41, is not turned on because PLC doesn’t executed modified program.
77/79
4. XG5000
Program modification is completed, the modified program must be written to PLC to be executed by PLC.
XG5000 will check program prior to downloading. If error is in program, XG5000 will report error and writing stop
writing.
When writing is completed successfully, PLC will execute the modified program.
78/79
4. XG5000
When online editing is completed, it’s better to When ‘End Online Editing’ is selected, the background of program
window will return to original color.
79/79