XGB
XGB
XGB
Warning
Caution
The marks displayed on the product and in the users manual have the
following meanings.
Be careful! Danger may be expected.
Be careful! Electric shock may occur.
The users manual even after read shall be kept available and accessible to
any user of the product.
Safety Instruction
Safety Instructions when designing
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.
Never let the external power of the output circuit be designed to
be On earlier than PLC power, which may cause abnormal output or
operation.
In case of data exchange between computer or other external
equipment and PLC through communication or any operation of
PLC (e.g. operation mode change), please install interlock in the
sequence program to protect the system from any error. If not, it
may cause abnormal output or operation.
Safety Instruction
Safety Instructions when designing
Caution
I/O signal or communication line shall be wired at least 100mm
Safety Instruction
Safety Instructions when wiring
Warning
Prior to wiring, be sure that power of PLC and external power is
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.
Secure the screws of terminals tightly with specified torque when
wiring. If the screws of terminals get loose, short circuit, fire or abnormal
operation may be caused.
*
Surely use the ground wire of Class 3 for FG terminals, which is
exclusively used for PLC. If the terminals not grounded correctly,
abnormal operation may be caused.
Dont 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 Instruction
Safety Instructions for test-operation or repair
Warning
Dont touch the terminal when powered. Electric shock or abnormal
operation may occur.
Prior to cleaning or tightening the terminal screws, let all the
external power off including PLC power. If not, electric shock or
abnormal operation may occur.
Dont let the battery recharged, disassembled, heated, short or
soldered. Heat, explosion or ignition may cause injuries or fire.
Caution
Dont remove PCB from the module case nor remodel the module.
Fire, electric shock or abnormal operation may occur.
Prior to installing or disassembling the module, let all the external
power off including PLC power. If not, electric shock or abnormal
operation may occur.
Keep any wireless installations or cell phone at least 30cm away
from PLC. If not, abnormal operation may be caused.
Caution
Product or battery waste shall be processed as industrial waste.
Revision History
Version
Date
Remark
Page
V 1.0
06.5
First Edition
V 1.1
06.12
The number of Users manual is indicated right part of the back cover.
2006
12-34
The Uses Manual describes the product. If necessary, you may refer to the following description and order
accordingly. In addition, you may connect our website(http://www.lsis.biz/) and download the information as a
PDF file.
Description
It
XGK-CPUA/CPUE/CPUH/CPUS
describes
specifications,
system structure
and
EMC
spec.
XGK Series
Chapter 1 Introduction
Contents
...................................................................... 1-1~1-5
9.4 Status Monitoring Flag for Positioning and I/O Signals ........................................ 9-52
9.4.1 Status monitoring flag for positioning
...................................................................9-52
...........................................................................................9-107
......................................................................................10-1
10.1.4 XGT dedicated communication error codes and the countermeasures .............10-39
Chapter 1 Introduction
Chapter 1 Introduction
1.1 Guide to Use This Manual
This manual includes specifications, functions and handling instructions for the XGB series PLC.
This manual is divided up into chapters as follows:
No.
Title
Contents
Describes configuration of this manual, units features and
terminology.
Describes available units and system configuration in the XGB
series.
Describes general specifications of units used in the XGB
series.
Chapter 1
Introduction
Chapter 2
System Configurations
Chapter 3
General Specifications
Chapter 4
CPU Specifications
Chapter 5
Chapter 6
Chapter 7
Input/Output Specifications
Chapter 8
Chapter 9
Chapter 10
Built-in Communication
Function
Chapter 11
Chapter 12
Chapter 13
Chapter 14
Maintenance
Chapter 15
Troubleshooting
Appendix 1
Flag List
Appendix 2
Dimension
Appendix 3
Appendix 4
Instruction List
1-1
Chapter 1 Introduction
1.2 Features
The features of XGB system are as follows.
1) The system secures the following high performances.
CPU Processing Speed(bit) : 160ns / Step
Max. 480 I/O control supporting small & mid-sized system implementation(64 I/O shortly released)
Max. 10kSteps of large program capacity secured.
Expanded applications with the support of floating point.
2) Compact : the smallest size comparing to the same class model of competitors.
Compact panel realized through the smallest size (only 170mm width if extended to 7 racks )
- Main unit : W30 * H90 * D60mm
- Expansion module : W20 * H90 * D60mm
3) Easy attachable/extensible system for improved user convenience.
Easy attachable European terminal board and convenient-to-use MIL connector method improving
convenient wiring.
By adopting connector coupling method, modules may be easily connected and separated.
4) Improved maintenance ability with kinds of register, batter removed, comment backup and etc
Convenient programming environment by providing analogue register and index register.
Improved maintenance ability by operating plural programs and task program through module program.
Built-in Flash ROM enabling permanent backup of program without any separate battery.
Improved maintenance ability by types of comment backup.
5) Optimized communication environment.
With max. 3 channels of internal COM (incl. loader), up to 3 channel communication is available without
any increase of module.
Supporting various protocols to improve the convenience (dedicated, mode-bus, user-defined
communication)
Communication module may be additionally increased by adding modules (up to 2 stages such as Cnet,
Enet and etc).
Convenient network-diagnostic function through network & communication frame monitoring.
Convenient networking to upper systems through Enet or Cnet.
6) Applications expanded with a variety of I/O modules
8, 16, 32, 64 modules provided (if relay output, 8/16 module).
Single input, single output and mixed I/O modules supported.
1-2
Chapter 1 Introduction
7) Applications expanded through analog-dedicated register design and full slottable mechanism.
Prior to increase, slot analogue modules attachable (up to 7 stages available)
With analog dedicated register(U) and monitoring dedicated function, convenient use of I/O is
maximized(can designate operations using easy program of U area and monitoring function)
8) Integrated programming environment
XG 5000 : intensified program convenience, diverse monitoring, diagnosis and editing function
XG - PD : COM/network parameters setting, frame monitoring, protocol analysis function
9) Built-in high speed counter function
Providing High-speed counter 1phase 4CH (max. : 20kpps), 2phase 2CH (max : 10kpps) and more
additional functions.
Providing parameter setting, diverse monitoring and diagnosis function using XG5000.
Commissioning by monitoring of XG5000, without program, inspecting external wiring, data setting and
others.
10) Built-in position control function
Supporting max 100kpps 2 axes.
Providing parameter setting, operation data collection, diverse monitoring and diagnosis by using XG5000.
Commissioning by monitoring of XG5000, without program, inspecting external wiring and operation data
setting.
11) Built-in PID
Supporting max. 16 loops.
Setting parameters by using XG5000 and supporting loop status monitoring conveniently with trend
monitor.
Control constant setting through the improved Auto-tuning function.
With many other additional functions including PWM output, MV, PV and SV Ramp, improving the
control preciseness.
Supporting types of control modes such as forward/backward mixed operation, 2-stage SV PID control,
cascade control and etc.
A variety of warning functions such as PV MAX and PV variation warning securing the safety.
1-3
Chapter 1 Introduction
1.3 Terminology
The following table gives definition of terms used in this manual.
Terms
Module
Unit
Definition
Remark
Example)
A standard element that has a specified function which configures Expansion module,
the system. Devices such as I/O board, which inserted onto the Special
module,
mother board or bas unit.
Communication
module
Example)
A single module or group of modules that perform an Main unit,
independent operation as a part of PLC systems.
Expansion unit
PLC System
XG5000
Internal memory area of the CPU module which used to hold I/O
status.
Cnet
Computer Network
FEnet
Pnet
Profibus-DP Network
Dnet
DeviceNet Network
RTC
Watchdog Timer
1-4
Chapter 1 Introduction
Terms
Definition
Remark
Current flows from the switch to the PLC input terminal if a input
signal turns on.
+
Z: Input
impedance
Sink Input
Current flows from the PLC input terminal to the switch after a
input signal turns on.
Source Input
Current flows from the load to the output terminal and the PLC
output turn on.
Sink Output
Output
Contact
Current flows from the output terminal to the load and the PLC
output turn on.
Source Output
1-5
Main Unit
Expansion I/O
Module
Expanded
Expanded
Special Module Communication Module
Item
Total I/O points
Maximum number
of expansion
modules
Description
16 ~ 480 points
Maximum 7
A/DD/A module
Maximum 7
Communication I/F
module
Maximum 2
XBM-DR16S
Main unit
XBM-DN16/32S
XBE-DC32A
Digital I/O module
Items
XBE-RY16A
Expansion
module
XBE-TN32A
A/DD/A module
XBF-AD04A
XBF-DV04A
Communication I/F
XBL-C41A
module
XBL-EFMT
2-1
Model
Description
Remark
Main Unit
XBM-DR16S DC24V Power supply, DC24V Input 8 point, Relay output 8 point
XBM-DN16S
Communication
Module
Special Module
Expansion Unit
XBM-DN32S
XBE-DC08A
XBE-DC16A
XBE-DC32A
XBE-RY08A
XBE-RY16A
XBE-TN08A
XBE-TN16A
XBE-TN32A
XBE-DN16A
XBE-DR16A
XBE-DN32A
XBE-DN64A
XBF-AD04A
XBF-DC04A
XBF-DV04A
XBF-RD04A
XBF-TC04A
TC input 4 channel
Scheduled
Scheduled
Scheduled
Scheduled
Scheduled
Scheduled
XBL-C21A
Cnet (RS-232C/Modem)
XBL-C41A
Cnet (RS-422/485)
XBL-EFMT
Enet module
XBL-EDMT
2-2
Scheduled
Scheduled
RS-232C / RS-485
XBM-DR16S
XBM-DN32S
PADT
connection
2-3
XBM-DN32S XBL-C21A
Modem
Modem
XBM-DN32S XBL-C21A
Modem
Modem
(4) 1:1 ratio of an external device (monitoring unit) to main unit using a built-in RS-232C/485 port.
XBM-DN32S
2-4
XBM-DN32S
XBM-DN32S
PADT connection
XBM-DN32S
Can be connected
Max. 32 stations
Built-in RS-232C
connection
(2) Using RS-485 built-in function/expansion Cnet I/F module can be connect for up to 32 stations.
XBM-DN32S XBL-C41A
XBM-DN32S XBL-C41A
XBM-DN32S
XBL-C41A
PADT connection
Can be connected
Max. 32 stations
Can be connected
Max. 32 stations
Built-in RS-232C
connection
* Refer to Chapter 10 Built-in Communication Function for details.
2-5
XBM-DN32S XBL-EDMT
XBM-DN32S XBL-EDMT
M
H
HMI
100Base-TX
HMI
2-6
Items
Specification
Reference
Ambient Temp.
0 ~ 55 C
Storage Temp.
25 ~ +70 C
Ambient humidity
5 ~ 95%RH (Non-condensing)
Storage humidity
5 ~ 95%RH (Non-condensing)
Occasional vibration
Frequency
Vibration
Acceleration
Pulse width
Times
10 f < 57Hz
0.075mm
57 f 150Hz
9.8m/s2 (1G)
10 times
each
Continuous vibration
Frequency
Acceleration
Pulse width
direction
10 f < 57Hz
0.035mm
(X,Y and Z)
57 f 150Hz
4.9m/s2 (0.5G)
IEC61131-2
2
Peak acceleration : 147 m/s (15G)
Shocks
Duration : 11ms
Pulse wave type : Half-sine (3 times each direction per each axis)
Square wave
1,500 V
impulse noise
Electrostatic
discharge
7
Impulse noise
LSIS standard
Radiated
27 ~ 500 MHz, 10V/m
electromagnetic
field noise
Fast transient
/Burst noise
Operation
ambience
Classifi-
Power
Digital/Analog Input/Output,
cation
supply
Communication Interface
Voltage
2kV
1kV
IEC61131-2
IEC61000-4-2
IEC61131-2,
IEC61000-4-3
IEC61131-2
IEC61000-4-4
Altitude
10
Pollution degree
Less than 2
11
Cooling method
Air-cooling
Notes
1) IEC(International Electrotechnical Commission)
: An international civil community that promotes international cooperation for standardization of electric/
electro technology, publishes international standard and operates suitability assessment system
related to the above.
2) Pollution Degree
: An index to indicate the pollution degree of used environment that determines the insulation
performance of the device. For example, pollution degree 2 means the state to occur the pollution of
non-electric conductivity generally, but the state to occur temporary electric conduction according to
the formation of dew.
3-1
Items
Remark
XBM-DR16S/XBM-DN16S/XBM-DN32S
Program language
Number of Basic
instructions Application
28
677
Processing speed
(Basic instruction)
0.16 /Step
Program capacity
10ksteps
F
Data area
S00.00 ~ S127.99
Z000~Z127(128 Word)
N0000~N3935(3936 Word)
Total program
128
Initial task
1 (_INT)
Cyclic task
Max. 8
I/O task
Max. 8
Max. 8
Operation mode
Self-diagnosis function
Program port
Back-up method
Word
400 mA
240 mA
300 mA
140 g
100 g
110 g
4- 1
Specifications
Items
XBM-DxxxS
Remark
High-speed counter
Capacity
addition/subtraction method
Counter
function
function
Operation
specification
Positioning function
RS-232C 1 port
RS-485 1 port
Additional
Built-in function
Positioning
TR output
function
type support
JOG operation
Additional
function
Pulse catch
External interrupt
Input filter
XBM-DR16S
XBM-DN32S
8-1
8-3
8-2
No.
Name
Description
PADT connecting
connector
Key switch
4- 3
Name
Description
8-1
Built-in RS-485
connecting
connector
8-2
Built-inRS-232C
connecting
connector
8-3
Power supply
connector
Input
Specification
Rated voltage
DC24V
DC20.4~28.8V(-15%, +20%)
Inrush current
70APeak or less
Input current
1A (Typ.550 )
Efficiency
60% or more
Permitted momentary
Less than 10
power failure
Output
Output voltage
DC5V (2%)
Output current
1.5 A
Cable specification
0.75 ~ 2 mm2
* Use the power supply which has 4 A or more fuse for protecting power supply.
1) Consumption current (DC 5V)
Type
Main unit
Model
XBM-DR16S
400
XBM-DN16S
240
XBM-DN32S
300
XBE-DC32A
50
XBE-RY16A
420
XBE-TN32A
120
XBF-AD04A
50
XBF-DV04A
50
XBL-C21A
150
XBL-EFMT
200
4- 4
Type
Model
Unit No.
Internal 5V
consumption
current
Remark
(Unit : )
Main unit
Expansion
module
Consumption
current
Consumption
voltage
XBM-DN16S
240
XBE-DC32A
100
XBE-TN32A
160
XBF-AD04A
50
XBF-DC04A
50
XBL-C21A
150
830
4.15 W
Remark
Calculating of consumption current is based on maximum consumption current. In application system,
the consumption current is consumed less than above calculation.
4- 5
Processing description
-
Start
Initialization processing
END
y Performs the operation in order from the program start to last step.
5-1
Input power
Momentary power failure exceeding
20ms momentary power failure exceed
Remark
5-2
5- 3
WDT
count(ms)0 1 2 3 ..
WDT Reset
8 9 0 1 2
SCAN END
012
WDT instruction
execution
Remark
1) The setting range of Watchdog Timer is 10 ~ 1000ms (Unit: 1ms).
5- 4
6 7 0 1 2
SCAN END
Preset value
Timer output relay
Timer type
1) On delay timer
The current value of timer starts to increase from 0 when the input condition of TON instruction turns on.
When the current value reaches the preset value, the timer output relay turns on.
When the timer input condition is turned off, the current value becomes 0 and the timer output relay is
turned off.
Input condition
t0
t1
t2
t3
t4
t5
Output relay
t4+PT
t0+PT
t5
Pre value
Current value
t0
t1
t2
t3
t4
t5
t0
t2
t1
t3
t4
t5
t1 + PT
PT
t5 + PT
PT
Preset value
Current value
5- 5
Timer input
condition
t0 t1
t2
t5
t4
Preset value
Current value
t0
t1
t2
t3
t5
t5+PT
4) Monostable timer
In general, its operation is same as off-delay timer. However, the change of input condition is ignored
while the timer is operating (decreasing). When current value reaches preset value the timer output relay
is turned off and current value is cleared.
Timer input
condition
t0
t2
t1
t4
t3
t0+PT
t2
t2+PT
t4
Preset value
Current value
t0
t1
t2
5- 6
t4
t4+PT
t2
t0
t3
t2
Preset value (PV)
t0
t3
t0+PT
t3+PT
Remark
The Maximum timing error of timers of XGB series is 1 scan time + the time from 0 step to
timer instruction
5- 7
Down counter decreases the current value at the rising edges of input.
The counter output contact (Cxxx) is turned On when the current value reaches the preset value.
When the reset input is turned On, the counter output contact (Cxxx) is turned Off.
(3) Up/Down counter
The current value is increased with the rising edge of up-count input signal, and decreased with the
rising edge of down-count input signal. The counter output contact (Cxxx) is turned On when the
current value is same as or more than current value. The counter output contact (Cxxx) is turned Off
when the current value is same as or less than current value.
When the reset input is turned On, the current value is cleared as 0.
5- 8
The current value is increased with the rising edge of the counter input signal, and the counter output
contact (Cxxx) is turned on when the current value reaches the preset value. Then the current value and
counter output contact (Cxxx) is cleared as 0 when the next rising edge of the counter input signal is
applied.
When the reset input is turned On, the counter output contact is cleared as 0.
2) Maximum counting speed
The maximum counting speed of determined by the length of scan time. Counting is possible only when
the on/off switching time of the counter input signal is longer than scan time.
Maximum counting speed
C max =
n
1
( )
100 tS
n : duty (%)
t S : scan time [s]
Duty is the ratio of the input signals on time to off time as a percentage.
On
Off
Off
T1
T2
If T1 T2, n =
If T1 > T2, n = t2
5- 9
T1
x 100 [%]
T1+T2
x 100 [%]
Description
Initializing program
It will be executed till the specific Flag INIT_DONE is On. And while the
initialization task is executed, several of initializing program is
programmed. (If INIT_DONE instruction is executed, scan program is
executed.)
Scan program
The program is performed according to the fixed time interval in case that the
required processing time condition is as below.
In case that the faster processing than 1 scan average processing time is
required
In case that the longer time interval than 1 scan average processing time is
required
In case that program is processed with the appointed time interval
External interrupt
program
Subroutine
program
Only when some condition is satisfied.(in case that input condition of CALL
instruction is On)
Start processing
END processing
5- 10
1) Scan program
(1) Function
This program performs the operation repeatedly from 0 step to last step in order prepared by the program
to process the signal that is repeatedly regularly every scan.
In case that the execution condition of interrupt by task interrupt or interrupt module while executing
program is established, stop the current program in execution and perform the related interrupt program.
2) Interrupt program
(1) Function
This program stops the operation of scan program and then processes the related function in prior to
process the internal/external signal occurred periodically/non-periodically.
(2) Type
Task program is divided as below.
Cycle time task program: available to use up to 8.
Internal device task program: available to use up to 8.
I/O (External contact task program): available to use up to 8. (P000 ~ P007)
Cycle time task program
Performs the program according to the fixed time internal.
Internal device task program
Performs the corresponding program when the start condition of internal device occurs.
The start condition detection of device shall be performed after processing of scan program.
I/O (External contact task program)
Performs the program according to the input external signal (P000~P007).
5- 11
Interrupt name
priority
Task No.
Program
Initializing
Interrupt 0_
Cycle time 1
Cycle time 1
External
Interrupt 2_external
External
Internal device
Interrupt 3_internal
14
Internal
Cycle time 2
Cycle time 2
Scan program
Initializing
(Before INIT_DONE instruction)
Cycle time 1/
external occur
simultaneously
Internal device
Interrupt occur
Cycle time 2
occur
END
Timed-driven 1
execution
Remark
In case that several tasks to be executed are waiting, execute from the highest Task Program in
priority. When the same priority tasks are waiting, execute from the order occurred.
While interrupt executing, if the highest interrupt is occurred, the highest interrupt is executed earliest of
all.
When power On, All interrupts are in the state Disable
Internal device interrupt is executed after END instruction.
5- 12
The screen of Task setting is shown. Click Initialization in Execution condition and make a Task name.
5- 13
Make initializing program. In initializing program, INIT_DONE instruction must be made. If not, Scan
program is not executed.
5- 14
5- 15
Description
Task name
Priority
Task number
Execution
condition
Initialization
Cycle time
I/O
Internal
device
5- 16
Remark
Character, number
available
2 is the highest
priority number.
Till the execution of
INIT_DONE
instruction
0~4294967295
available
P000 ~ P007
available
-
5- 17
3) Task type
Task type and function is as follows.
Type
Cycle time task
Spec.
(Interval task)
Max. Task
number
I/O task
(Interrupt task)
Start condition
Cyclic
(setting up to max.
4,294,967.295 sec. by
1ms unit)
Internal device
execution condition
Detection and
execution
Immediate execution at
the edge of main units
contact
Detection delay
time
Max. 1 ms delay
Execution
priority
Task no.
5- 18
5- 19
5- 20
5- 21
Interrupt name
Priority
Task No.
Program
Cycle time
10 _cycle time
Program 1
Internal device
Internal device_M00
16
Program 2
I/O
I/O_P00
Program 3
5- 22
Scan started
(Initial operation started)
PO executed
P1 executed
10ms_Cycle time
Program 2
Internal device_M000
Program 3
External I/O_P000
Time
6 7 8 10 12
20 22 24 25
30 32 34
Time ()
0
0~6
6~8
8~10
20~22
Scan program is stop by request of 10 _Cycle time interrupt signal and execute program
1.
Program 1 is finished and Scan program is continued.
Request of Cycle time interrupt signal and External I/O (P000) signal is occurred
concurrently but priority of External I/O signal is higher than Cycle time interrupt signal
so program 3 is executed and program 1 is standby.
Program 3 is finished and Scan program is continued.
22~24
24~25
10~12
12~20
20
25
25~30
30~32
32~34
34
At the finished point of scan program, check the request of Internal device M000
execution and execute program 2.
Program P2 is executed.
When 10 _Cycle time interrupt signal is occurred, the priority of that is higher than Internal
device M000 though program 2 is stopped and program 1 is executed.
P1 executed completed and the stopped P2 execution finished
New scan starts (Start scan program execution)
5- 23
Operation
mode change
Change to other mode
5- 24
5- 25
Item
Start/Stop Debugging
Go
Description
Change the debug stop mode
It starts debug operation.
Step Over
It operates by 1 step.
Step Into
Step Out
Go to Cursor
Remark
Other operation is
identical to Step
Over.
Breakpoints List
Breakpoint Conditions
Set/Remove Breakpoints
(2) Go
Run the program to breakpoint. At break-pointer
5- 26
is displayed.
5- 27
Remark
Refer to XG5000 Users Manual Chapter 12 Debugging for detailed information.
5- 28
XG5000 command
Operation mode
RUN
Run
RUN
Remote Run
STOP
Remote Stop
Debug
Debug Run
Mode change
Stop
STOP
(1) Remote mode conversion is available only in the state of Remote Enabled: On, Mode switch: Stop.
(2) In case of changing the Remote RUN mode to STOP by switch, operate the switch as follows.
(STOP) RUN STOP .
Warning
In case of changing Remote RUN mode to RUN mode by switch, PLC operation continues the
operation without interruption.
It is available to modify during RUN in RUN mode by switch but the mode change operation by
XG5000 is limited. This should be set only in case that remote mode change is not allowed.
5- 29
5.4 Memory
There are two types of memory in CPU module that the user can use. One is Program Memory that saves the
user program written by the user to build the system, and the other is Data Memory that provides the device area
to save the data during operation.
Device features
Description
P0000 ~ P127f
I/O device P
2,048 points
M0000 ~ M255f
Internal device M
4,096 points
L0000 ~ L1279f
Communication device L
20,480 points
K00000 ~ K2559F
Preservation device K
40,960 points
F0000 ~ F255f
Special device F
4,096 points
T0000 ~ T255
Timer device T
256 points
C0000 ~ C255
Counter device C
256 points
S00.00 ~ S127.99
Step controller S
128 x 100 step
5- 30
Device features
Description
D00000 ~ D5119
Data register D
5120 words
U00.00 ~ U07.31
N0000 ~ N3935
Communication data
register
N 3,936 words
Z000 ~ Z127
Index register
Z 128 words
T0000 ~ T255
C0000 ~ C255
Counter current
value register
C 256 words
5- 31
P127
M000
M255
K000
K2559
F000
I/O Relay
(2048 points)
Auxiliary Relay
D5119
(4096 points)
N0000
M
Keep Relay
(40960 points)
(4096 points)
0000
FFFF
Data Register
Parameter area
(5120 words)
F
U07.31
Analog Data
Register
(256 words)
L0000
Auxiliary Relay
L1279
(20480 points)
T000
Timer
T255
C000
(256 points)
Counter
C255
S000
S127
(256 points)
Step controller
(128 x 100 step)
S00.00~S127.99 S
Z000
Index Register
Z127
(128 words)
T000
T255
T000
(256 words)
T255
C000
(256 words)
C255
C000
(256 words)
C255
(256 words)
5- 32
Comm. Data
Register
(3936 words)
N3935
U00.00
Special Relay
F255
D0000
1st latch
2nd latch
Features
Remark
K, L, N, R devices are basically latched.
1) Latch area setting
Click Device Area Setup of Basic parameter settings.
5- 33
Classification
Detailed operation
Latch 1
Latch 2
Power change
Off/On
Keep
Keep
Reset by XG5000
Overall reset
Reset
Keep
Keep
Keep
Data broken
Reset
Reset
XG5000 online
Clear Latch 1
Reset
Reset
Reset
Keep
Clear Latch 2
Reset
Reset
5- 34
3) Data initialization
In case of Memory Delete state, the memory of all device shall be cleared as 0. In case of giving the data
value at the beginning according to system, please use the initialization task.
Device area is cleared by click Clear in Online-Clear PLC- Clear Memory.
5- 35
There are three main options ; Basic Operation Setup , Device Area Setting and Error Operation
Setup.
6- 1
Category
Item
Fixed period
operation
Watchdog timer
Basic
operations
Device
area
Error
operation
Description
Note
1~999
10~1000
1,3,5,10,20,70,100
Operation resumes
in case of operation
error
Allowance/Prohibition
Allowance/Prohibition
Pause/Resume
Clicking Module in Slot Position indicates a list of modules, in which you may set I/O
corresponding to the actual system. Then, the following window is displayed.
6- 2
Remark
If settings are different with I/O module actually accessed, Inconsistent module type error occurs,
displaying error.
Without settings, CPU reads each I/O module information and operates.
CPU module logs errors occurred so that the causes will be identified and fixed easily. Clicking
Error/Warning of Online shows the current error and previous error log.
Item
Error/Warning
Error Log
Description
Remarks
Saving up to 100
Remark
Saved data are not deleted until selecting a menu of XG5000 and clicking Delete.
6- 3
6- 4
6- 5
Item
Description
Move to the beginning and end of I/O area(P000P127)
Move address
Application
Single
Select All
Delete All
Setting device
Data
6- 6
Remark
For details regarding IORF instruction, refer to XGB Instructions List.
6- 7
F2020
FSET
F2002
If any trouble occurs, CPU is in error status and operation halts. At this moment, F2020 and F2002 flags
are off (error LED switches on and off every second.)
3) Processing warning of external device
When detecting any warning of external device in user program, it turns on a flag in the warning position
of system flag F203 (_ANC_WB) and if turning on the detection request flag, F2003(_CHK_ANC_WB) ,
it displays warning at the time when scan program ends. If a warning occurs, the detection request flag,
F2003(_CHK_ANC_WB) is automatically off(F203 is not deleted).
If a warning occurs, the LED switches on and off every other second.
If turning off a bit in question of F203 and turning on F2003 bit after processing warning, warning is
cancelled and the LED turns off.
Example
M000
FSET
F2030
FSET
F2003
FRST
F2030
Warning cancellation
FSET
F2003
M001
6- 8
Number of
Connection stage
Type
I/O allocation
Remarks
XBM-DN32S
XBE-DC32A
Input : P0040~P007F
XBE-TN32A
XBL-C41A
P0120 ~ P015F
XBF-AD04A
P0160 ~ P019F
XBE-DV04A
P0200~P027F
XBE-DC32A
Input : P0240~P027F
XBE-TN32A
6- 9
6- 10
3) It turns to program modification mode during run when the program background is changed.
4) Modifying a program.
6- 11
7) The program background returns and the program modification during run is completed.
Remark
For parameter modification during run, change each parameter on XG-PD and clickOnline-Write
Modified Program .
6- 12
6.9
If clicking Details after selecting a module, it displays detail information of a selected module.
6- 13
6.10
Monitoring
Description
Designate the start and stop of monitor.
Remarks
Click for reverse turn.
Pause monitoring.
Monitor resumes;
clicking for resume.
-
System Monitoring
Device Monitoring
Trend Monitoring
Custom Events
Data Traces
6- 14
2) Device monitoring
It monitors by device (type).
6- 15
4) Trend monitoring
It displays device values graphically.
6- 16
6- 17
Double-clicking a number produced monitors the relative values of device and the detail message as
follows.
Remark
For details of monitor, refer to XG5000 Users Manual.
6- 18
Load
Output
module
Inductor
Output
module
Resistor
5) The cable size connected to terminal block should be twisted pair 0.3~0.75 , thickness less
than 2.8 . As cable varies the allowable current by insulation thickness, cares should be
taken.
7-1
100
50
30
20
10
0.5
10
7-2
100
Basic unit
XBM-DR16S
Specification
Input point
8 point
Insulation method
DC24V
On Voltage/Current
Off Voltage/Current
Input resistance
Off On
Response
time
On Off
Insulation pressure
Insulation resistance
10 or more by megger
Common Method
8 point / COM
Current consumption ()
Operation indicator
External connection
method
Weight
Circuit configuration
DC5V
TB1
Photo coupler
LED
R
Internal
Circuit
TB8
TB9
COM
DC24V
7-3
No.
Contact
TB1
00
TB2
01
TB1
TB3
02
TB2
TB4
03
TB5
04
TB3
TB4
TB6
05
TB7
06
TB8
07
TB9
COM
Type
TB5
TB6
TB7
TB8
TB9
Basic unit
XBM-DN16S
Specification
Input point
8 point
Insulation method
DC24V
On Voltage/Current
Off Voltage/Current
Input resistance
Response
time
Off On
On Off
Insulation pressure
Insulation resistance
10 or more by megger
Common method
8 point / COM
0.3
Current consumption
Operation indicator
20 pin connector
Weight
100g
Circuit configuration
DC5V
B10
Photo coupler
LED
R
Internal
circuit
B03
B02
COM
DC24V
7-4
No.
Contact
No.
Contact
B10
00
A10
NC
B09
01
A09
NC
B08
02
A08
NC
B10
B09
A10
A09
B07
03
A07
NC
B06
04
A06
NC
B08
B07
B06
A08
A07
A06
B05
05
A05
NC
B05
B04
B03
A05
A04
A03
B04
06
A04
NC
B02
B01
A02
A01
B03
07
A03
NC
B02
COM
A02
NC
B01
COM
A01
NC
Type
Basic unit
XBM-DN32S
Specification
Input point
16 point
Insulation method
DC24V
On Voltage/Current
Off Voltage/Current
Input resistance
Response
time
Off On
On Off
Insulation pressure
Insulation resistance
10 or more by megger
Common method
16 point / COM
0.3
Current consumption
Operation indicator
External connection
method
Weight
Circuit configuration
DC5V
B10
Photo coupler
LED
R
Internal
circuit
A03
B02
COM
DC24V
7-5
No.
Contact
No.
Contact
B10
00
A10
08
B09
01
A09
09
B08
02
A08
0A
B10
B09
A10
A09
B07
03
A07
0B
B06
04
A06
0C
B08
B07
B06
A08
A07
A06
B05
05
A05
0D
B05
B04
B03
A05
A04
A03
B04
06
A04
0E
B02
B01
A02
A01
B03
07
A03
0F
B02
COM
A02
COM
B01
COM
A01
COM
Type
Basic unit
XBM-DR16S
Specification
Output point
8 point
Insulation method
Relay insulation
DC5V / 1
AC250V, DC125V
0.1 (AC220V, 60 )
3,600 times/hr
Surge absorber
None
Mechanical
Service
life
Electrical
Response
time
Off On
10 or less
On Off
12 or less
Common method
8 point / COM
Current consumption
Operation indicator
Weight
140g
Circuit configuration
DC5V
LED
TB1
Internal
circuit
No.
Contact
TB1
20
TB2
21
TB3
22
TB4
23
TB5
24
TB6
25
TB7
26
TB8
27
TB9
COM
RY
TB8
TB9
7-6
Type
TB1
TB2
TB3
TB4
TB5
TB6
TB7
TB8
TB9
Basic unit
XBM-DN16S
Specification
Output point
8 point
Insulation method
DC 12 / 24V
DC 10.2 ~ 26.4V
0.5A / 1 point
0.1 or less
4A / 10 or less
DC 0.4V or less
Surge absorber
Zener Diode
Response
time
Off On
1 or less
On Off
Common method
8 point / COM
0.3
Current consumption
External
power supply
Voltage
Current
Operation indicator
20 pin connector
Weight
100g
Circuit configuration
DC5V
B10
LED
Internal
circuit
B03
B01,B02
A01,A02
DC12/24V
Terminal block no.
7-7
No.
Contact
B10
B09
B08
B07
B06
B05
B04
B03
B02
B01
A10
A09
A08
A07
A06
A05
A04
A03
A02
A01
20
21
22
23
24
25
26
27
DC12
/24V
NC
NC
NC
NC
NC
NC
NC
NC
COM
Type
B10
B09
A10
A09
B08
B07
B06
A08
A07
A06
B05
B04
B03
A05
A04
A03
B02
B01
A02
A01
Basic unit
XBM-DN32S
Specification
Output point
16 point
Insulation method
DC 12 / 24V
DC 10.2 ~ 26.4V
0.1 or less
4A / 10 or less
DC 0.4V or less
Surge absorber
Zener Diode
Response
time
Off On
1 or less
On Off
Common method
16 point / COM
0.3
Current consumption
External
power supply
Voltage
Current
Operation indicator
20 pin connector
Weight
110g
Circuit configuration
DC5V
B10
LED
Internal
circuit
A03
B01,B02
A01,A02
DC12/24V
Terminal block no.
7-8
No.
Contact
B10
B09
B08
B07
B06
B05
B04
B03
B02
B01
A10
A09
A08
A07
A06
A05
A04
A03
A02
A01
20
21
22
23
24
25
26
27
DC12
/24V
28
29
2A
2B
2C
2D
2E
2F
COM
Type
B10
B09
A10
A09
B08
B07
B06
A08
A07
A06
B05
B04
B03
A05
A04
A03
B02
B01
A02
A01
DC input module
XBE-DC08A
Specification
Input point
8 point
Insulation method
DC24V
About 4
On Voltage/Current
Off Voltage/Current
Input resistance
About 5.6
Response
time
Off On
On Off
Insulation pressure
Insulation resistance
10 or more by megger
Common method
8 point / COM
Current consumption
Operation indicator
External connection
method
Weight
Circuit configuration
DC5V
TB1
Photo coupler
LED
R
Internal
circuit
TB8
TB9
COM
DC24V
7-9
No.
Contact
TB1
TB2
TB1
TB3
TB2
TB4
TB5
TB3
TB4
TB6
TB7
TB8
TB9
COM
Type
TB5
TB6
TB7
TB8
TB9
DC input module
XBE-DC16A
Specification
Input point
16 point
Insulation method
DC24V
About 4
On Voltage/Current
Off Voltage/Current
Input resistance
About 5.6
Response
time
Off On
On Off
Insulation pressure
Insulation resistance
10 or more by megger
Common method
16 point / COM
Current consumption
Operation indicator
Weight
40g
Circuit configuration
DC5V
TB1
Photo coupler
LED
R
Internal
circuit
TB8
TB9
COM
DC24V
7-10
No.
Contact
TB1
TB2
TB1
TB3
TB2
TB4
TB5
TB3
TB4
TB6
TB7
TB8
TB1
TB2
TB2
TB3
TB4
TB3
TB4
TB5
TB6
TB7
TB6
TB7
TB8
TB8
TB9
TB9
COM
TB10
COM
Type
TB5
TB6
TB7
TB8
TB1
TB5
TB10
DC input module
XBE-DC32A
Specification
Input point
32 point
Insulation method
DC24V
About 4
Input Derating
On Voltage/Current
Off Voltage/Current
DC 6V or less / 1 or less
Input resistance
About 5.6
Off On
Response
time
On Off
Insulation pressure
Insulation resistance
10 or more by megger
Common method
32 point / COM
0.3
Current consumption
Operation indicator
40 pin connector
Weight
60g
Circuit configuration
DC5V
B20
Photo coupler
LED
R
1F
Internal
circuit
B03
B02
COM
DC24V
On rate (%)
100
90
DC28.8V
80
70
60
50
40
10
40
50 55
30
20
Ambient temperature ()
7-11
No.
Contact
No.
Contact
B20
B19
B18
B17
B16
B15
B14
B13
B12
B11
B10
B09
B08
B07
B06
B05
B04
B03
B02
B01
00
01
02
03
04
05
06
07
08
09
0A
0B
0C
0D
0E
0F
A20
A19
A18
A17
A16
A15
A14
A13
A12
A11
A10
A09
A08
A07
A06
A05
A04
A03
A02
A01
10
11
12
13
14
15
16
17
18
19
1A
1B
1C
1D
1E
1F
NC
NC
COM
COM
NC
NC
COM
COM
Type
B20
A20
B19
A19
B18
A18
B17
A17
B16
A16
B15
A15
B14
B13
A14
A13
B12
A12
B11
B10
B09
A11
A10
A09
B08
B07
B06
A08
A07
A06
B05
B04
B03
A05
A04
A03
B02
B01
A02
A01
DC input module
XBE-DC64A
Specification
Input point
64 point
Insulation method
DC24V
About 4
Input Derating
On Voltage/Current
Off Voltage/Current
Input resistance
About 5.6
Off On
Response time
On Off
Insulation pressure
Insulation resistance
10 or more by megger
Common method
32 point / COM
0.3
Current consumption
Operation indicator
40 pin connector2 ea
Weight
Circuit configuration
1B20
Photo coupler
1B02
COM
DC24V
20
30
40
On rate (%)
Contact
1A20
10
2B20
20
2A20
30
11
2B19
21
2A19
31
LED
1B18
02
1A18
12
2B18
22
2A18
32
1B17
03
1A17
13
2B17
23
2A17
33
1B16
04
1A16
14
2B16
24
2A16
34
1B15
05
1A15
15
2B15
25
2A15
35
1B14
06
1A14
16
2B14
26
2A14
36
1B13
07
1A13
17
2B13
27
2A13
37
1B12
08
1A12
18
2B12
28
2A12
38
DC26.4V
DC28.8V
10
No.
1A19
DC24V
50 55
Ambient temperature ()
Contact
01
No.
00
A: P00~P1F indication
B: P20~3F indication
100
90
80
70
60
50
40
30
20
Contact
1B19
Indication
switching
circuit
A
B
No.
1B20
Internal
circuit
1A05
Contact
DC5V
R
1F
No.
1B11
09
1A11
19
2B11
29
2A11
39
1B10
0A
1A10
1A
2B10
2A
2A10
3A
1B09
0B
1A09
1B
2B09
2B
2A09
3B
1B08
0C
1A08
1C
2B08
2C
2A08
3C
1B07
0D
1A07
1D
2B07
2D
2A07
3D
1B06
0E
1A06
1E
2B06
2E
2A06
3E
1B05
0F
1A05
1F
2B05
2F
2A05
3F
1B04
NC
1A04
NC
2B04
NC
2A04
NC
1B03
NC
1A03
NC
2A03
NC
NC
2B03
COM
2B02
COM
2B01
7-12
Type
Specification
Output point
8 point
Insulation method
Relay insulation
DC5V / 1
AC250V, DC125V
0.1 (AC220V, 60 )
3,600 times/hr
Surge absorber
None
Mechanical
Service life
Electrical
Response
time
Off On
10 or less
On Off
12 or less
Common method
8 point / COM
Current consumption
Operation indicator
Weight
80g
Circuit configuration
DC5V
LED
TB1
Internal
circuit
No.
Contact
TB1
TB2
TB3
TB1
TB2
TB4
TB3
TB5
TB4
TB5
TB6
TB7
TB8
TB9
COM
RY
TB8
TB9
7-13
Type
TB6
TB7
TB8
TB9
Specification
Output point
16 point
Insulation method
Relay insulation
DC5V / 1
AC250V, DC125V
0.1 (AC220V, 60 )
3,600 times/hr
Surge absorber
None
Mechanical
Service
life
Electrical
Response
time
Off On
10 or less
On Off
12 or less
Common method
8 point / COM
Current consumption
Operation indicator
Weight
130g
Circuit configuration
DC5V
LED
TB1
Internal
circuit
RY
TB8
TB9
7-14
No.
Contact
TB1
TB2
TB3
TB4
TB5
TB6
TB7
TB8
TB9
COM
TB1
TB2
TB3
TB4
TB5
TB6
TB7
TB8
TB9
F
COM
Type
TB1
TB2
TB3
TB4
TB5
TB6
TB7
TB8
TB9
TB1
TB2
TB3
TB4
TB5
TB6
TB7
TB8
TB9
Specification
Output point
8 point
Insulation method
DC 12 / 24V
DC 10.2 ~ 26.4V
0.5A / 1 point
0.1 or less
4A / 10 or less
DC 0.4V or less
Surge absorber
Zener Diode
Response
time
Off On
1 or less
On Off
Common method
8 point / COM
Current consumption
External
Voltage
power
Current
supply
Operation indicator
External connection
method
Weight
Circuit configuration
No.
Contact
TB01
TB02
TB03
TB04
TB05
TB04
TB05
TB06
TB06
TB09
TB07
TB10
TB08
TB09
TB09
DC12
/24V
TB10
TB10
COM
DC5V
TB01
LED
Internal
circuit
TB08
DC12/24V
Terminal block no.
7-15
Type
TB01
TB02
TB03
TB07
TB08
Specification
Output point
16 point
Insulation method
DC 12 / 24V
DC 10.2 ~ 26.4V
0.1 or less
4A / 10 or less
DC 0.4V or less
Surge absorber
Zener Diode
Response
time
Off On
1 or less
On Off
Common method
16 point / COM
Current consumption
External
power supply
Voltage
Current
Operation indicator
Weight
40g
Circuit configuration
DC5V
TB10
LED
Internal
circuit
TB08
TB09
TB10
DC12/24V
Terminal block no.
No.
Contact
TB01
TB02
TB03
TB04
TB05
TB06
TB07
TB08
TB01
TB02
TB03
TB04
TB05
TB06
TB07
TB08
0
1
2
3
4
5
6
7
8
9
A
B
C
D
E
F
DC12
/24V
COM
TB09
TB10
7-16
Type
TB01
TB02
TB03
TB04
TB05
TB06
TB07
TB08
TB01
TB02
TB03
TB04
TB05
TB06
TB07
TB08
TB09
TB10
Specification
Output point
32 point
Insulation method
DC 12 / 24V
DC 10.2 ~ 26.4V
0.1 or less
0.7A / 10 or less
DC 0.4V or less
Surge absorber
Zener Diode
Response time
Off On
1 or less
On Off
Common method
32 point / COM
0.3
Current consumption
External power
supply
Voltage
Current
Operation indicator
40 pin connector
Weight
60g
Circuit configuration
DC5V
LED
R
Internal
circuit
No.
Contact
No.
Contact
B20
00
A20
10
B19
01
A19
11
B18
B17
B20
L
B16
B15
B14
B13
B12
A05
B11
L
B10
B01,B02
B09
A01,A02
B08
B07
DC12/24V
Terminal block no. B06
B05
B04
B03
B02
B01
02
03
04
05
06
07
08
09
0A
0B
0C
0D
0E
0F
NC
NC
A18
A17
A16
A15
A14
A13
A12
A11
A10
A09
A08
A07
A06
A05
A04
A03
A02
A01
12
13
14
15
16
17
18
19
1A
1B
1C
1D
1E
1F
NC
NC
7-17
DC12/
24V
COM
Type
B20
A20
B19
A19
B18
A18
B17
A17
B16
A16
B15
A15
B14
B13
A14
B12
A12
B11
B10
B09
A11
A10
A09
B08
B07
B06
A08
A07
A06
B05
B04
B03
A05
A04
A03
B02
A02
A01
B01
A13
Specification
Output point
64 point
Insulation method
DC 12 / 24V
DC 10.2 ~ 26.4V
0.1 or less
0.7A / 10 or less
DC 0.4V or less
Surge absorber
Zener Diode
Response time
Off On
1 or less
On Off
Common method
32 point / COM
0.3
Current consumption
External power
supply
Voltage
Current
Operation indicator
40 pin connector 2 ea
Weight
80g
Circuit configuration
No.
DC5V
B20
LED
Internal
circuit
A05
R
B01,B02
Indication
switching
circuit
A01,A02
DC12/24V
Connector no.
A: P00~P1F indication
B: P20~3F indication
Contact
No.
1B20
00
1A20
1B19
01
1A19
1B18
02
1A18
1B17
03
1A17
1B16
04
1A16
1B15
05
1A15
1B14
06
1A14
1B13
07
1A13
1B12
08
1A12
1B11
09
1A11
1B10
0A
1A10
1B09
0B
1A09
1B08
0C
1A08
1B07
0D
1A07
1B06
0E
1A06
1B05
0F
1A05
1B04
NC
1A04
1B03
NC
1A03
1B02 12/24V 1A02
DC
1B01
1A01
7-18
Contact
10
11
12
13
14
15
16
17
18
19
1A
1B
1C
1D
1E
1F
NC
NC
COM
No.
Contact
No.
2B20
20
2A20
2B19
21
2A19
2B18
22
2A18
2B17
23
2A17
2B16
24
2A16
2B15
25
2A15
2B14
26
2A14
2B13
27
2A13
2B12
28
2A12
2B11
29
2A11
2B10
2A
2A10
2B09
2B
2A09
2B08
2C
2A08
2B07
2D
2A07
2B06
2E
2A06
2B05
2F
2A05
2B04
NC
2A04
2B03
NC
2A03
2B02 12/24V 2A02
DC
2B01
2A01
Type
Contact
30
31
32
33
34
35
36
37
38
39
3A
3B
3C
3D
3E
3F
NC
NC
COM
B20
A20
B19
A19
B18
A18
B17
A17
B16
A16
B15
A15
B14
B13
A14
B12
A12
B11
B10
B09
A11
A10
A09
B08
B07
B06
A08
A07
A06
B05
B04
B03
A05
A04
A03
B02
B01
A02
A01
A13
Specification
Output point
8 point
Insulation method
DC 12 / 24V
DC 10.2 ~ 26.4V
0.5A / 1 point
0.1 or less
4A / 10 or less
DC 0.4V or less
Surge absorber
Zener Diode
Response
time
Off On
1 or less
On Off
Common method
8 point / COM
Current consumption
External
Voltage
power
Current
supply
Operation indicator
Circuit configuration
DC5V
TB09
LED
TB10
Internal
circuit
TB08
TB01
L
Terminal block no.
7-19
No.
Contact
Type
TB01
TB02
TB03
TB04
TB05
TB06
TB06
TB07
TB08
TB07
TB08
TB09
COM
TB10
0V
TB01
TB02
TB03
TB04
TB05
TB09
TB10
Specification
Output point
16 point
Insulation method
DC 12 / 24V
DC 10.2 ~ 26.4V
0.1 or less
4A / 10 or less
DC 0.4V or less
Surge absorber
Zener Diode
Response
time
Off On
1 or less
On Off
Common method
16 point / COM
Current consumption
External
power supply
Voltage
Current
Operation indicator
Weight
40g
Circuit configuration
DC5V
TB09
LED
DC12/24V
TB10
Internal
circuit
TB08
TB01
L
Terminal block no.
7-20
No.
Contact
TB01
TB02
TB03
TB04
TB05
TB06
TB07
TB08
TB01
TB02
TB03
TB04
TB05
TB06
TB07
TB08
TB09
TB10
0
1
2
3
4
5
6
7
8
9
A
B
C
D
E
F
COM
COM
Type
TB01
TB02
TB03
TB04
TB05
TB06
TB07
TB08
TB01
TB02
TB03
TB04
TB05
TB06
TB07
TB08
TB09
TB10
Specification
Output point
32 point
Insulation method
DC 12 / 24V
DC 10.2 ~ 26.4V
0.1 or less
4A / 10 or less
DC 0.4V or less
Surge absorber
Zener Diode
Response time
Off On
1 or less
On Off
Common method
32 point / COM
0.3
Current consumption
External power
supply
Voltage
Current
Operation indicator
40 pin connector
Weight
60g
Circuit configuration
DC5V
B02,B01
LED
A02,A01
Internal
circuit
A05
DC12/24V
B20
L
Terminal block no.
7-21
No.
Contact
No.
Contact
B20
B19
B18
B17
B16
B15
B14
B13
B12
B11
B10
B09
B08
B07
B06
B05
B04
B03
B02
B01
00
01
02
03
04
05
06
07
08
09
0A
0B
0C
0D
0E
0F
NC
NC
A20
A19
A18
A17
A16
A15
A14
A13
A12
A11
A10
A09
A08
A07
A06
A05
A04
A03
A02
A01
10
11
12
13
14
15
16
17
18
19
1A
1B
1C
1D
1E
1F
NC
NC
COM
0V
Type
B20
A20
B19
A19
B18
A18
B17
A17
B16
B15
B14
B13
A16
A15
A14
A13
B12
A12
B11
B10
B09
A11
A10
A09
B08
B07
B06
A08
A07
A06
B05
B04
B03
A05
A04
A03
B02
B01
A02
A01
Specification
Output point
64 point
Insulation method
DC 12 / 24V
DC 10.2 ~ 26.4V
0.1 or less
4A / 10 or less
DC 0.4V or less
Surge absorber
Zener Diode
Response time
Off On
1 or less
On Off
Common method
32 point / COM
0.3
Current consumption
External power
supply
Voltage
Current
Operation indicator
40 pin connector2 ea
Weight
80g
Circuit configuration
DC5V
B02,B01
LED
No.
DC12/24V
A02,A01
Internal
circuit
A05
Indication
switching
circuit
A
B
A: P00~P1F indication
B: P20~3F indication
B20
Connector no.
1B20
1B19
1B18
1B17
1B16
1B15
1B14
1B13
1B12
1B11
1B10
1B09
1B08
1B07
1B06
1B05
1B04
1B03
1B02
1B01
Contact
00
01
02
03
04
05
06
07
08
09
0A
0B
0C
0D
0E
0F
NC
NC
COM
No.
1A20
1A19
1A18
1A17
1A16
1A15
1A14
1A13
1A12
1A11
1A10
1A09
1A08
1A07
1A06
1A05
1A04
1A03
1A02
1A01
7-22
Contact
10
11
12
13
14
15
16
17
18
19
1A
1B
1C
1D
1E
1F
NC
NC
0V
No.
2B20
2B19
2B18
2B17
2B16
2B15
2B14
2B13
2B12
2B11
2B10
2B09
2B08
2B07
2B06
2B05
2B04
2B03
2B02
2B01
Contact
20
21
22
23
24
25
26
27
28
29
2A
2B
2C
2D
2E
2F
NC
NC
COM
No.
2A20
2A19
2A18
2A17
2A16
2A15
2A14
2A13
2A12
2A11
2A10
2A09
2A08
2A07
2A06
2A05
2A04
2A03
2A02
2A01
Contact Type
30
31
B20
32
B19
33
B18
34
B17
35
B16
B15
36
B14
37
B13
B12
38
B11
39
B10
3A
B09
B08
3B
B07
3C
B06
3D
B05
B04
3E
B03
3F
B02
NC
B01
NC
0V
A20
A19
A18
A17
A16
A15
A14
A13
A12
A11
A10
A09
A08
A07
A06
A05
A04
A03
A02
A01
Description
Signal
Input type
A-phase, B-phase
Voltage input (Open collector)
Signal level
24V
Number of channels
Coefficient range
Count mode
(Program setting)
Input mode
1-phase input
(Program setting)
Signal type
setting
2 phase input
CW/CCW
Multiplication
function
Control input
External
output
1 phase input
1 multiplication
2 phase input
4 multiplication
CW/CCW
1 multiplication
Signal
Signal level
Signal type
Voltage
Output points
Type
Output type
Count Enable
CW/CCW input
Voltage
1 phase input
Up/Down
2-phase input
Preset function
Auxiliary mode
Count Latch
8-1
Spcification
Input voltage
Input current
20.4V
6V
Structure
XBM-DN16S
XBM-DN32A
P00
P01
P02
P03
P04
P05
P06
P07
P00
P01
P02
P03
P04
P05
P06
P07
XBM-DR16S
P00
P01
P02
P03
P04
P05
P06
P07
COM
COM
COM
COM
COM
Names
Usage
Terminal
No.
1-phase
2-phase
1-phase
2-phase
P000
A-phase input
P001
B-phase input
P002
A-phase input
P003
B-phase input
P004
P005
No use
P006
P007
No use
COM0
Input common
Input common
Common terminal
Common terminal
8-2
Internal circuit
No.
3.3 k
P00
3.3 k
P01
P02
3.3 k
P03
3.3 k
1-phase
2-phase
guaranteed
Ch 0
Ch 0
On
20.4~28.8V
Pulse input
A-phase input
Off
6V or less
Ch 1
Ch 0
On
20.4~28.8V
Pulse input
B-phase input
Off
6V or less
Ch 2
Ch 2
On
20.4~28.8V
Pulse input
A-phase input
Off
6V or less
Ch 3
Ch 2
On
20.4~28.8V
Pulse input
B-phase input
Off
6V or less
Ch 0
Ch 0
On
20.4~28.8V
Preset input
Preset input
Off
6V or less
On
20.4~28.8V
Off
6V or less
Input
P04
5.6 k
P05
5.6 k
P06
5.6 k
P07
5.6 k
COM0
Ch 1
Preset input
voltage
Ch 2
Ch 2
On
20.4~28.8V
Preset input
Preset input
Off
6V or less
On
20.4~28.8V
Off
6V or less
Ch 2
Preset input
8-3
On/Off
Operation
I/O
Signal
Terminal
Increasing/Decreasing classification
Increasing/decreasing count setting signal Off
Increasing/decreasing count setting signal On
Operation example
On
Off
10
11
12
13
12
11
Decreasing
Increasing
8-4
10
11
Increasing
Increasing count
Decreasing count
Increasing/Decreasing classification
Operation example
On
Off
10
Decreasing
Increasing
8
Increasing
Increasing
8-5
Increasing count
Operation example
10
Increasing
11
10
Decreasing
2) Counter mode
2 types of count can be selected for the applicable use based on functions.
A) Linear counter
Linear Count range: -2,147,483,648 ~ 2,147,483,647
If count value reaches the maximum value while increased, Carry will occur, and if count
value reaches the minimum value while decreased, Borrow will occur.
If Carry occurs, count stops and increasing is not available but decreasing is available.
If Borrow occurs, count stops and decreasing is not available but increasing is available.
+2,147,483,647
Decreasing
Increasing
-2,147,483,648
Count start point
Borrow
Carry
8-6
Preset value
Present position
:Not included
:Included
Ring Count
minimum value
Ring Count
maximum value
Preset value
Present position
:Not included
:Included
Ring Count
Minimum value (0)
Borrow occurred
(3) Operation when setting Ring Count based on present count value (during increasing
count)
If present count value exceeds user-defined range when setting Ring Count
- Error (code no. 27) is occurred and it operates linear counter.
If present count value is within user-defined range when setting Ring Count
- Present count value starts to increase up to the user-defined maximum value and
down to the user-defined minimum value and keeps counting after Carry occurs.
- Not the maximum but the minimum value only is displayed with count kept on as
shown below.
8-7
Carry occurred
2,147,483,647
Carry occurred
Ring Count
maximum value
Present position
Ring Count
minimum value (0)
:Not included
:Included
Present position
-2,147,483,648
(4) Operation when setting Ring Count based on present count value (during decreasing count)
If present count value exceeds user-defined range when setting Ring Count
- Error (code no. 27) is occurred and it operates linear counter.
If present count value is within user-defined range when setting Ring Count
- Present count value starts to decrease down to the user-defined minimum value and up to
the user-defined maximum value and keeps counting after Borrow occurs.
2,147,483,647
Ring Count
maximum value
Ring Count
minimum value
Present position
Present
position
Borrow occurred
Borrow occurred
-2,147,483,648
If within the
defined range
:Not included
:Included
user-
Remark
1. Based on count value within or out of user-defined range, count will be decided to be within or out
of the range when setting Ring Count.
2. Ring Count setting when count value is out of the range is regarded as users mistake. The count
is not available within the Ring Count range.
3. Use preset function or the like when using Ring Count so to surely position the count value within
the range.
8-8
Value
Set to 0
Set to 1
Channel 0 : K302
Channel 1 : K330
Channel 2 : K358
Channel 3 : K386
Set to 2
Set to 3
Set to 4
Set to 5
Set to 6
In order to make actual comparison enabled after compared output condition set, the
compared enable signal is to be On.
Area per channel
Classification
Operation
Ch. 0
Ch. 1
Ch. 2
Ch. 3
K2600
K2700
K2800
K2900
0: forbidden, 1: enable
K2604
K2704
K2804
K2904
0: forbidden, 1: enable
In order to make external output, the compared coincidence output signal (P20~P27) must
be set. If Compared output contact is Off, Compared coincidence output signal (internal
device) is only output.
Classification
Compared coincidence
output signal
Ch. 1
Ch. 2
Ch. 3
K2612
K2712
K2812
K2912
8-9
Operation
0: Compared output Off
1: Compared output On
123457
123458
123459
Compared
value
123460
123461
123462
123460
Compared enable
External output
123457
123458
123459
123460
123460
Compared value
Compared enable
signal
External output
8-10
123461
123462
Count value
12345
Compared value
12345
123458
12345
123457
12346
123461
123462
123460
Identical reset
signal
Compared enable
signal
External output
123457
123458
Compare
l
123459
123460
123460
Compared enable
signal
External output
8-11
123461
123462
123457
123458
123459
123460
123461
123462
123458
Count value
Compared enable
signal
External output
123457
123458
123459
123460
123458
Compared value2
123460
8-12
123461
123462
123457
Compared value1
123458
123459
123460
123461
123462
123458
Compared value2
123461
Compared enable
signal
External output
4) Carry signal
A) Carry signal occurs
(1) When count range maximum value of 2,147,483,647 is reached during Linear Count.
(2) When user-defined maximum value of Ring Count changed to the minimum value during Ring
Count.
B) Count when Carry Signal occurs
(1) Count stops if Carry occurs during Linear Count.
(2) Count does not stop even if Carry occurs during Ring Count.
C) Carry reset
(1) The Carry generated can be cancelled by Carry/Borrow reset signal On.
Classification
Carry signal
Channel 1
Channel 2
Channel 3
K2610
K2710
K2810
K2910
8-13
Classification
Channel 1
Channel 2
Channel 3
K2611
K2711
K2811
K2911
Borrow signal
6) Revolution/Unit time
While auxiliary mode enable signal is On, it counts the number of input pulses for a specified time.
A) Setting
(1) Unit time setting
Classification
Unit time (1~60000)
Channel 1
Channel 2
Channel 3
K322
K352
K382
K412
Channel 1
Channel 2
Channel 3
K323
K353
K383
K413
(3) If Count function of revolution/unit time is used, enable signal set by On.
Classification
Revolution/unit time
command
Channel 1
Channel 2
Channel 3
K2605
K2705
K2805
K2905
B) Count function of Revolution/Unit time is used to count the number of pulses for a
specified time while auxiliary mode enable signal is On.
8-14
Command
Count value
1000
700
500
500
400
300
350
Revolution
per time
(K264)
300
100
1000
1000
300
1000
200
1000
F) In order to indicate revolution per minute (RPM), the program is as shown below. In case
of DMUL operation, RPM value is saved 64 bit in D100~D103. If operated RPM value is
used, it can use to Word or Dword type according to system (case of RPM value is small
number).
8-15
Command
Count value
1000
700
500
500
400
300
350
Revolution
per time
30
10
30
20
1000
1000
1000
1000
7) Count latch
When Count latch signal is On, present count value is latched.
Setting
If present counter value is to latch, Count Latch function is set Use.
Classification
Count latch command
Channel 1
Channel 2
Channel 3
K2606
K2706
K2806
K2906
Count latch function is operated when Count latch signal is On. Namely, counter value is not
cleared when power supply Off =>On and mode change, it is counted from previous value.
In latch counter function, internal or external preset function has to use for clearing present
value.
8-16
Pulse Generator
24V
CHSC
A
B
COM
24VG
COM
Pulse Generator
8-17
Slot info
Unused
8-18
Description
Parameter
Value
Setting
Ch 1
Ch 2
Ch 3
K300
K330
K360
K390
Word
K301
K331
K361
K391
Word
K302
K332
K362
K392
Word
-2,147,483,648 ~ 2,147,483,647
K304
K334
K364
K394
DWord
-2,147,483,648 ~ 2,147,483,647
K306
K336
K366
K396
DWord
h0000
Linear count
h0001
Ring count
h0000
Pulse input
h0001
mode
h0002
CW / CCW
h0003
2 phase 4 multiplication
h0000
(Magnitude) <
h0001
(Magnitude)
h0002
(Magnitude) =
h0003
(Magnitude)
h0004
(Magnitude) >
h0005
(Range) Include
h0006
(Range) Exclude
Counter
mode
Comp.
Output mode
Internal
preset
External
preset
Remark
Ch 0
8-19
Parameter
Value
Ring counter
value
Comp. output
min.
Comp. output
max.
Comp. output
point
Pulse/Rev.value
Setting
Remark
Ch 0
Ch 1
Ch 2
Ch 3
-2,147,483,648 ~ 2,147,483,647
K310
K340
K370
K400
DWord
-2,147,483,648 ~ 2,147,483,647
K312
K342
K372
K402
DWord
-2,147,483,648 ~ 2,147,483,647
K314
K344
K374
K404
DWord
K320
K350
K380
K410
Word
K322
K352
K382
K412
DWord
K323
K353
K383
K413
HFFFF
No use
h0000
P0020
h0001
P0021
h0002
P0022
h0003
P0023
h0004
P0024
h0005
P0025
h0006
P0026
h0007
P0027
1 ~ 60000
1 ~ 60000
8-20
DWord
Parameter
Ch 1
Ch 2
Ch 3
K2600
K2700
K2800
K2900
K2601
K2701
K2801
K2901
K2602
K2702
K2802
K2902
K2603
K2703
K2803
K2903
K2604
K2704
K2804
K2904
K2605
K2705
K2805
K2905
K2606
K2706
K2806
K2906
K2610
K2710
K2810
K2910
Borrow signal
K2611
K2711
K2811
K2911
K2612
K2712
K2812
K2912
Counter enabling
Internal preset
designation of counter
External preset enabling
of counter
Designation of
decremental counter
Comp. output enabling
Enabling of revolution
time per unit time
Designation of latch
counter
3) Area of monitoring
Parameter
Remark
Ch 0
Ch 1
Ch 2
Ch 3
K262
K272
K282
K292
DWord
K264
K274
K284
K294
DWord
8-21
CH1
CH2
CH3
K266
K276
K286
K296
Remarks
Word
Description
(Decimal)
20
21
22
23
25
26
27
28
Comparative output min. value is set out of permissible min. input range
29
Comparative output max. value is set out of permissible max. input range
30
31
34
35
Remark
If two and more errors occur, the module saves the latter error code and removes
the former one.
8-22
B) Selecting high-speed counter opens a window to set high-speed counter parameters as follows.
For details regarding each parameter setting, refer to 8.1~8.3.
(Every parameter settings are saved in the special K device area.)
8-23
D) To use additional functions of the high-speed counter, you needs to turn on the flag allowing
an operation command.
* Refer to 2. Operation Command, <8.3.1 Special K Area for High-speed Counter>
For instance, turn on 2605 bit if among additional functions, rotation number function is used.
8-24
8-25
Item
Description
FLAG Monitor
Start Monitoring
Test
Close
8-26
D) ClickingFLAG Monitor shows the monitor of each flag in high-speed counter, in which
you may direct operation commands by flags(clicking commands reverse turn).
8-27
9.1.1 Features
Positioning function features the followings
1) Diversity of positioning function
It contains various functions necessary for position system such as position control at any
temporary position or constant speed operation.
A) Operation data containing position address, operation method and operation pattern may set up
to
30 steps per axis. It executes position function by using this operation data.
B) Position control per axis may be controlled linearly. The control may also perform singular
position
control by one operation data and continual position control by several operation data.
C) It may control linear interpolation.
D) Depending on operation data and control types designated by parameters, there are position
control, speed control, position/speed control, switching control and position/speed switching
control.
E) It also provides various homing control functions.
(1) Homing control may be chosen among the following three.
Origin detection after proximal origin Off
Origin detection after deceleration if proximal origin On
Origin detection by proximal origin
(2) It is achieved position control from any temporary position to machines origin (floating origin
setting).
2) Easy maintenance
It saves types of data such as position data and parameter into flash memory of main unit.
3) XG5000 may perform health check, monitor and test.
Diagnosing of I/O signal line
Monitoring
Providing detail information of errors and troubleshooting
9-1
XG5000
Basic unit
Drive
Forward
rotating pulse
Program
Setting Data
Reverse
rotating pulse
Read,
Write
and etc.
Stepping motor
Polyphase
pulse
generator
Pulse
AMP
XG5000
Basic unit
Driver
Forward
rotating pulse
Program
Setting
Reverse
Data
Read,
rotating pulse
Servo motor
Speed
instruction
Variation
Counter
D/A
Conversion
Write
Servo
AMP
Interface
and etc
Feedback pulse
Speed
Accumulated
pulse
Pulse amount
Time
< Position control for servo motor >
9-2
Ext. signal
XG5000
XGB basic unit
Setting
Setting control
control
parameter
parameter
andand
operation
operation data
data
Test
Test operation
operation
-Jog
- Jog
operation
operation
-Inching
- Inchingoperation
operation
-Indirect
- Indirectstart
start
-Direct
- Directstart
start
-Linear
- Linearinterpolation
interpolation
-Position
- Positionsynchronization
synchronization
-Speed
- Speed
synchronization
synchronization
SERVO
AMP
Start by external pulse
string
Motor
Monitoring
Monitoring and
andtesting
testing
position
position
operation by
operation
using start
by using
start
instruction
instruction
Operating a motor by receiving
pulse string from encoder
MPG
Encoder
Dog signal
Origin signal
Upper limit signal
Lower limit signal
Operation by
direction of servo
Task
9-3
Item
No. of control axis
2 axes
Interpolation
Control type
Control unit
Pulse
30 data areas per axis(operation step no. 1 30)
Position data
Position monitor
Back-up
Position
Position address
range
-2147483648 2147483647
Speed range
1 100,000pps
Acceleration/deceler Trapezoid-shaped
ation processing
Acceleration/deceler 1 10,000
ation time
(selectable from 4 types of acceleration/deceleration patterns)
Max. output pulse
100 Kpps
2m
< Performance specifications >
9-4
Rated input
voltage/current
Ext. upper
limit
Ext. lower
limit
DC 24V/7
DOG
Operating
voltage
range
DC 20.4
28.8V
DC 24V/4
Home
On
voltage/current
Off
voltage/current
Input
resistance
DC 19V/5.7
or more
DC 6V/1.8
or less
Approx.
3.3
DC 19V/3.4
or more
DC 6V/1.1
or less
Approx.
5.6
Response
time
0.5 or
less
2) Output specifications
Pulse output specifications
Max. load
Max. voltage
current/inrush
drop (On)
current
100(1 point)
DC 0.3V or
DC 524V DC 4.7526.4V
1A / 10 or less
less
Output pulse is outputted in pulse/sign type as below.
Rated load
voltage
Operating load
voltage range
Leakage current
(Off)
Response
time
0.1 or less
100 or
less
Pulse
output
mode
Reverse
Reverse
Pulse
High
Direction
High
Low
Low
Type
Pin No.
Signal name
X-axis Y-axis
A1
A2
Pulse
A3
A4
Direction
10 10
Input output
A9/A10
Pulse output
(open collector)
Pulse output
(open collector)
External 24V power
Lower limit
Edge
A1
A3
24V
Output
COM
LimitL
A2
A4
LimitH
Upper limit
Edge
A5
A7
STOP
DOG
Edge
A6
A8
A9 / A10
B9 / B10
DOG
Input
COM
Home signal(+24V)
Edge
Common
B9/B10
Input
10 10
Output
Signal direction
Operation
Position condition
external
9-5
Internal circuit
Open collector output
Signal
A1
A2
Pulse
A3
A4
Direction
A9
A10
B9
B10
A9
A10
B9
B10
24V
COM
Pulse output
Direction output
External 24V power
External 24V GND
DC24V
*1
Pin No.
X-axis
Y-axis
Internal circuit
Signal
Selectable Selectable
LimitL
Lower limit
Selectable Selectable
LimitH
Upper limit
Selectable Selectable
STOP
DOG
Selectable Selectable
DOG
Home signal(+24V)
Selectable Selectable
COM
Common
*1: Is normally works with -24V. That is, NPN or PNP types of sensors are available.
9-6
0 1000
Distance
Start address
Target address
Coordinate
Control
method
Operation
pattern
Operation
method
Repeated
step
Goal position
[pulse]
M
code
Acce./
dece. No.
Operation
speed
[pls/s]
Dwell
time
[]
Absolute
Position
End
Single
8000
100
Remark
9-7
Forward
Reverse
If direction is positive
If direction is negative
[ example ]
Start address : 5000, Target address : -7000: it moves reversely as much as -2000.
-2000
5000
0
Reverse position control
(Distance : -7000)
Start address
Target address
Parameter setting(position data item setting)
StepNo.
Coordi
-nate
Control
method
Operation
pattern
Operation
method
Repeated
step
Goal
position
[pulse]
M
code
Acce./
dece. No.
Operation
speed
[pls/s]
Dwell time
[]
Incremental
Position
End
Single
-7000
100
9-8
Forward(Y-axis)
Y2
Move along
Y-axis
Y1
Start address
(X1, Y1)
Target address
(X2, Y2)
Movement by linear interpolation of X/Y axis
Forward(X-axis)
Reverse
Move along
X-axis
X1
Reverse
X2
[ example ]
It moves as follows when
Start address is (1000, 4000), and
Target address is (10000, 1000).
(Y-axis)
4000
Start address
1000
0
(X-axis)
1000
5000
10000
X
axis
Y
axis
Step
No.
Coordinate
Absolute
Absolute
Control
method
Position
control
Position
control
Operation
pattern
Operation
method
Repeated
step
Goal
position
[Pulse]
M code
Acce/dece.
No.
Operation
speed
[Pls/s]
Dwell time
[]
End
Single
10000
100
End
Single
1000
100
9-9
Start address
(X1, Y1)
Reverse
Target address
(X2, Y2)
Movement by linear interpolation of X/Y
Forward(X-axis)
Move along X-axis
X1
X2
Forward
[ example ]
It moves as follows if the start address is (1000, 4000) and the target address is (9000, 3000).
(Y-axis)
4000
Start address
Move along
Y-axis
(-3000)
1000
Target address
(X-axis)
1000
5000
10000
Coordinate
Absolute
Absolute
X
axis
Y
axis
Control
method
Operation
pattern
Operation
method
Repeated
step
Goal
position
[Pulse]
M code
Acce/dece.
No.
Operation
speed
[Pls/s]
Dwell
time
[]
End
Single
9000
100
End
Single
-3000
100
Position
control
Position
control
Coordi
-nate
Control
method
Operation
pattern
Operation
method
Repeate
d step
Goal position
[Pulse]
Acce/dece.
No.
M code
Operation
speed [Pls/s]
Dwell time
[]
Dwell
Time
On
Start instruction
On
In operation
It would not be On
despite of halt.
Position completion
signal
On
Deceleration
stop instruction
[ example ]
Parameter setting(position data item setting)
Step
No.
Coordinate
Control
method
Operation
pattern
Operation
method
Repeated
step
Goal position
[Pulse]
M code
Acce/dece.
No.
Operation
speed
[Pls/s]
Dwell time
[]
Absol
ute
Speed
control
End
Single
-100
1000
9-11
Coordinate
Control
method
Operation
pattern
Operation
method
Repeated
step
Goal position
[Pulse]
M
code
Acce/dece.
No.
Operation
speed
[Pls/s]
Dwell time
[]
Normal
Speed
Keep
Single
1000
1000
100
Reverse
Incremental
Incremental
Speed
End
Repeat
-1000
2000
100
Speed
Preset speed
Acc section
Speed
control
Position
control
Move specified
Dwell time
Time
On
Start instruction
On
In operation
On
Speed/position
switching signal
On
Speed/position
switching signal
(internal instruction)
9-12
Coordinate
Control
method
Operation
pattern
Operation
method
Repeated
step
Goal
position
[Pulse]
M
code
Acce/dece.
No.
Operation speed
[Pls/s]
Dwell time
[]
Normal
Speed
Keep
Single
500
100
Reverse
Incremental
Incremental
Speed
End
Repeat
600
100
Speed
Preset speed
Acc section
Speed
control
Speed
control
Dwell time
Time
On
Start instruction
On
In operation
On
Internal
position/speed
switching signal
On
Deceleration
stop instruction
9-13
Position
control
Speed
control
Operation
pattern
Operation
method
Remarks
End
Single
End
Repeat
Continue
Single
Continue
Repeat
Continue
Single
Continue
Repeat
End
Single
Continue
Single
Unavailable
Continue
Repeat
Unavailable
Operation mode is set by PLC program or operation data items in software package.
Operation data may be set up to 30 per axis between 1 ~ 30 operation step numbers.
Operation data type
Range/type
Step No.
1~30
Coordinate
Absolute/Incremental
Control method
Position/Speed
Operation pattern
End/Continue/Sequential
Operation method
Single/Repeat
Target position[Pulse]
-2147483648~2147483647
M code
0~65,535
Operation speed[Pulse/s]
0~100,000
Dwell time[]
0~50,000
Position operation method that may be executed by position data one by one operation step if start
instruction is ordered or that may be done sequentially by several operation steps is determined
by the position data set by a user
9-14
Dwell time
Time
On
Start instruction
On
In operation
On
Acceleration
On
Regular speed
On
Deceleration
On
Dwelling
On
Position
complete
Irregular operation pattern
When setting operation speed excessively than
position movement
Speed
Speed
Dwell time
Start
instruction
In operation
Time
Start
instruction
On
Acceleration
Regular speed
Regular speed
Dwell time
On
On
In operation
On
Acceleration
Deceleration
Dwell time
Time
Bias speed
On
Deceleration
On
Dwell time
On
Position
complete
Position
complete
9-15
On
On
On
Time
Operation step No. : 4
On
Start
instruction
On
In operation
Parameter setting
Step
No.
Coordinate
Control
method
Operation
pattern
Operation
method
Repeated
step
Goal position
[Pulse]
M
code
Acce/dece.
No.
Operation
speed [Pls/s]
Dwell time
[]
xxxx
Position
End
Single
10000
1000
Absolute
Position
End
Single
20000
500
Absolute
Position
End
Single
30000
1000
Absolute
Position
End
Single
40000
500
9-16
Speed
Time
On
Start
instruction
On
In Operation
Parameter setting
Step
No.
Coordinate
Control
method
Operation
pattern
Operation
method
Repeated
step
Goal position
[Pulse]
M code
Acce/dece.
No.
Operation
speed [Pls/s]
Dwell time
[]
Absolute
Position
End
Single
10000
1000
Absolute
Position
End
Single
20000
500
Absolute
Position
End
Single
30000
1000
Absolute
Position
End
Single
40000
500
9-17
Speed
Dwell time
Operation mode :
Go-on
Operation mode :
End
Operation mode :
End
Operation step no. : 4
Time
O
Start instruction
O
In Operation
Parameter setting
Step
No.
Coordinate
Control
method
Operatio
n pattern
Operation
method
Repeat
ed step
Goal position
[Pulse]
M code
Acce/dece
.
No.
Operation
speed [Pls/s]
Dwell time
[]
Absolute
Position
Keep
Single
10000
1000
Absolute
Position
Keep
Single
20000
500
Absolute
Position
End
Single
30000
2000
Absolute
Position
End
Repeat
40000
3000
9-18
Time
On
Start instruction
In Operation
Parameter setting
Step
No.
Coordinate
Control
method
Operation
pattern
Operation
method
Repeated
step
Goal position
[Pulse]
M
code
Acce/dece.
No.
Operation
speed [Pls/s]
Dwell time
[]
Absolute
Position
Continuous
Single
10000
1000
Absolute
Position
End
Repeat
20000
500
9-19
Program start
XGB series support three starts; indirect start(IST), direct start(DST) and start by designating a
special K area.
2) Concurrent start
Concurrently, start positioning operation data of 2 axes according to axial data and preset step by
internal concurrent start instruction.
If stop instruction is entered during concurrent start operation, it decelerates and stop the axis
while it starts positioning operation according to Incremental coordinate or absolute coordinate
when internal concurrent start instruction is entered again in case concurrent operation step No. is
the current operation step number.
Concurrently, start positioning operation data of 2 axes according to axial data and present step by
external input signal.
9-20
Position synchronic start is available only when the main axis is in origin setting status.
Position synchronic instruction starts as a sub axis is synchronized, depending on the current
operation, a sub axis starts operation at a time when the current position of a main axis is in
accord with a position set as a position synchronization.
During position synchronization, the operation step number of a sub axis is determined by the start
With speed synchronic start instruction, a sub axis is speed-synchronized according to speed
synchronization ratio when a main axis starts.
Although a sub axis is set in position control mode, start and stop repeat as soon as a main axis
operates.
The rotation direction of a sub axis is identical with that of a main axis.
Once speed synchronic instruction is executed in a sub axis, it turns in-operation status and it
remains speed synchronic operation status until speed synchronic instruction is cancelled by stop
instruction.
Speed synchronization ratio is available from 0.00% to 100.00%, or it may result in Error 356.
If executing speed synchronic instruction with M code on, it generates Error 353. Therefore, it
should be used after canceling M code.
A main axis setting may be set as X-axis, Y-axis, HSC CH1, HSC CH1, HSC CH2 and HSC CH3.
9-21
Terms definition
Main axis : an axis of which operation step numbers positioning distance is longer than the
other axis Sub axis : an axis of which operation step numbers positioning distance is shorten
than the other axis At the moment, the speed, acceleration time, deceleration time and bias
speed of a sub axis are re-calculated.
Available operation modes are limited to end operation and continuous operation.
During 2 axes linear interpolation operation, the operation speed of a sub axis is not displayed.
9-22
Stop by
parameter
setting *4
Stop by
sequence
program *5
Stop by
external signal
Stop by
monitoring
Positioning
Home
*1
Return *2
Jog
operation
Stop axis
Axis operation
status after stop
instruction *3
M code On
Signal status
Not
detected
Immediate
stop
Individual
axis
Error status
(Error 501)
No change
Not
detected
Immediate
stop
Individual
axis
Error status
(Error 502)
No change
Error 322
(keep
running)
Individual
axis
Decelerating
No change
Individual
axis
Error status
(Error 481)
No output
Individual axis
Decelerating
stop
instruction
Emergency
stop
instruction
Decelerating Decelerating
stop
stop
Immediate stop
External upper
limit On
Immediate stop
Forward
immediate
stop
Individual
axis
Individual axis
No change
External lower
limit On
Immediate stop
Reverse
immediate
stop
Individual
axis
Individual axis
No change
Decelerating
stop
instruction
Decelerating Decelerating
stop
stop
Error 322
(keep
running)
Individual
axis
Stopping
No change
Remark
*1 :Positioning refers to position control, speed control, position/speed switching control and
speed/position switching position by positioning data.
*2 : If Home Return is complete, DOG and Home Signal, which are external input signals, do not
affect positioning control.
*3 : If axial operation is no output after being stopped, run a instruction to cancel No Output. Then,
No output is cancelled and error number is reset.
*4 : Soft upper/lower limits by parameters are unavailable in speed control operation mode.
*5 : Sequence program refers to XGB program method.
*6 : Error 495 may occur depending on a rotation direction.
9-23
If it meets any immediate stop factor in deceleration section during positioning, it processes
immediate stop at the time.
Remark
In case of any immediate stop factor during decelerating stop, it processes as follow.
Positioning speed
Decelerating stop factor
Immediate stop factor
Stop position by decelerating stop factor
9-24
9-25
Decelerating at DOG On
DOG Signal
Origin signal
Home Return
instruction
Home Return
processing
Origin
determined
Operating Waiting
Home Return
9-26
Time
Waiting
Time
DOG signal
Origin signal
If Home Return speed is applied from home return high speed to deceleration after DOG signal
is changed from/to Off and On, origin is not determined although it meets origin entry.
Speed
Time
DOG signal
Origin signal
It
operates as follows if it meets an external lower limit while waiting for origin entry after DOG
signal is changed from/to Off and On.
Forward
Reverse
Home Return
instruction
DOG signal
External lower
limit
Origin signal
Since positioning module immediately turns a direction without any
decelerating section as soon as it meets external input upper/lower limits
during home return operation, it should be noted that using a stepping
motor may cause a fault.
If On time of origin is short, positioning module may not recognize it.
Origin
0.1 and longer
9-27
Decelerating at DOG On
Origin signal
Home-returning
Waiting
Remark
Origin is determined if origin signal is entered with DOG set On as long as home return speed
is operating at low speed from high speed via decelerating section with DOG signal set On.
That is, when home return speed is decelerating, origin is not determined by origin signal.
If
it meets external upper/lower limit signal prior to origin after DOG signal is changed from Off to
On, it works as same as 3.6.2.
9-28
Forward
Reverse
Time
Home Return low speed
External upper limit
Origin signal
1 rotation of servo motor
(1 rotation of PG)
Home Return
instruction
Home Return
processing
Origin determined
Operating Waiting
Home-returning
Waiting
Remark
If origin signal is On before external upper/lower limit signals are entered, it turns the rotation
direction, keeping home return low speed operation and origin is determined with origin
signal set On as soon as external upper/lower limit signals are entered regardless of the
above.
Speed
Time
External upper limit
Origin signal
9-29
Forward
Reverse
DOG signal
Home Return
instruction
Home Return
processing
Origin determined
Operating
Waiting
Home-returning
Waiting
Remark
It works as follows if the duration of DOG On is longer than that of deceleration.
Forward
Reverse
Decelerating
section
DOG signal
9-30
Time
C) If jog speed is set out of allowable range, it generates an error and operation is not available.
Range
1 100,000
(unit: 1pps)
Remark
Make sure to follow the cautions.
1. Jog high speed needs attention as follows.
Bias speed Jog high speed Speed limit
Speed
Speed limit
Bias speed
Time
2. Jog low speed operates regardless of bias speed and speed limit.
2) Inching operation
As one of manual operations, it outputs as much as pulse set at the speed for origin/manual
parameter inching speed.
While operation by jog instruction may not exactly move to the start/end points, inching
instruction may easily reach to a target point as much as desirable distance. Therefore, it is
probable to move close to an operation position by jog instruction and then move to an exact
target position by inching operation instruction.
The available range is between 2147483648 2147483647 Pulse.
9-31
9-32
Upper limit
Stopper
Direction
Start Start
Direction
Stopper
Limit switch
Positioning
Drive
Note that positioning operation is not available if it stops out of positioning range.
If it stops due to external input stroke limit detection, move it into the controllable range of
positioning by manual operation(jog operation, inching operation, manual pulse generator
operation).
External input stroke upper/lower limit error is detected by edge during positioning, so manual
operation is available although it exceeds stroke range.
2) Stroke upper/lower limits
Stroke upper/lower limit function does not execute positioning operation if it is operated out of
ranges of stroke upper/lower limits, which are set in positioning parameters.
When it starts operation or is in operation, stroke upper/lower limits are checked.
9.2.14 Temporary position address setting to origin and current position change
1) Setting a temporary address to origin
To set a temporary address to origin, you may set it as home return address in this software
package parameter.
Temporary address of a set axis may be confirmed in the current status code info reading function
block after executing floating origin setting or home return.
In addition, it may be checked with current position after executing floating origin setting or home
return in this software package monitor.
2) Changing current position
Current position change is to change the current address to a temporary address.
If executing a current position change instruction(PRS) without origin set, it is changed to origin
determined.
Once the current position is changed by current position change instruction(PRS), it is necessary to
execute home return again because the mechanical origin position is changed by home return.
9-34
Remark
1) Flash save of changed data(WRT)
If operation data is changed by teaching function, it is necessary to use WRT instruction in order to
save the changed value to flash memory. It is not possible to maintain the changed values when
turning it off or changing a mode unless the values are saved by using WRT instruction.
9.2.18 M code
By reading M code, it may be used to check the current operation step number and execute any
auxiliary task(clamp, drill rotation, tool exchange and etc).
M code signal generated during operation may be reset by a M code, Off instruction.
M code number may be differently set by each operation step number of positioning data.
M code number range: 1 65,535
M code output is as follows.
M code signal occurred during operation may be reset by M code Off instruction. It generates M
code On signal while it outputs M code number set in position data after positioning is complete by
start instructions(indirect start, direct start, concurrent start and linear interpolation).
Speed
Continuous
operation
Dwell
End
operation
Indirect start
M code number
In operation
M code On
signal
M code Off
instruction
9-35
Dwell
Time
Remark
If M code signal is On despite of positioning completed, it generates an error(Error
number: 233) while the next operation step number is not operated. Therefore, if M code
signal is On, the M code signal should be Off by M code off instruction in order for
positioning operation of the next operation step number.
Time
Dwell Time
Dwell Time
Start
Busy
Positioning
complete
tw :1scan time
tw
9-36
tw
Time
Dwell Time
Dwell Time
Start
Busy
Positioning
complete
tw :1scan time
tw
Speed
Time
Dwell Time
Start
Busy
Positioning
complete
tw : 1scan time tw
9-37
Once Positioning is selected, the Positioing Parameter Setting window is popped up as follows.
9-38
Basic
parameters
Origin/Manual
parameters
Item
Description
Positioning
Pulse output level
Bias speed
Speed limit
ACC/DECNo.1
ACC/DEC No.1
ACC/DEC No.3
ACC/DEC No.4
S/W upper limit
S/W lower limit
Backlash
compensation amount
S/W upper/lower limits
during constant speed
operation
Use upper/lower limits
Home Return method
Home Return direction
Origin address
Origin compensation
amount
Home Return high
speed
Home Return low
speed
Home Return
accelerating time
Home Return
decelerating time
Dwell time
Jog high speed
Jog low speed
Jog accelerating time
Jog decelerating time
Inching speed
9-39
Range
Initial value
Device area
X-axis
Y-axis
Remarks
0 : No use, 1 : use
0 : Low Active,
1 : High Active
K4870
K5270
Bit
K4871
K5271
Bit
Bias speed
1 100,000[pulse/sec]
K450
K490
Speed limit
1 100,000[pulse/sec]
10,000
K452
K492
ACC time 1
DEC time 1
ACC time 2
DEC time 2
ACC time 3
DEC time 3
ACC time 4
DEC time 4
0 ~ 10,000[unit: ms]
0 ~ 10,000[unit: ms]
0 ~ 10,000[unit: ms]
0 ~ 10,000[unit: ms]
0 ~ 10,000[unit: ms]
0 ~ 10,000[unit: ms]
0 ~ 10,000[unit: ms]
0 ~ 10,000[unit: ms]
-2147483648
2147483647 [pulse]
-2147483648
2147483647 [pulse]
500
500
1000
1000
1500
1500
2000
2000
K454
K455
K456
K457
K458
K459
K460
K461
K494
K495
K496
K497
K498
K499
K500
K501
2147483647
K462
K502
-2147483648
K464
K504
K466
K506
Word
K4684
K5084
Bit
0 : no use, 1 : use
K4872
K5272
Bit
0 65,535[pulse]
1) Positioning
Determine whether to use positioning.
If not using positioning function, set it 0: no use while for use, it should be set to 1: use.
Remark
Make sure to set it 1: use to use positioning.
If not using positioning and using general output contact, set it 0: no use.
9-40
Double
word
Double
word
Word
Word
Word
Word
Word
Word
Word
Word
Double
word
Double
word
PLS / DIR
F P terminal
RP terminal
CW(forward output)
CCW(reverse output)
The following figure shows high active pulse output level depending on pulse output mode.
PLS / DIR
FP terminal
RP terminal
CCW(reverse output)
CW(forward output)
3) Bias speed
Considering that torque of stepping motor is unstable when its speed is almost equal to 0, the
initial speed is set during early operation in order to facilitate motors rotation and is used to save
positioning time. The speed set in the case is called bias speed.
In Pulse unit, the range is between 0 1,000,000 (unit: pps).
Operation with
bias speed set
Speed limit
Operation with no bias
speed set
Bias speed
ACC time
DEC time
9-41
Time
4) Speed limit
5) ACC/DEC time
It is applied to sequential operation instruction, speed override, positioning speed override during
positioning operation as well as start/end time of positioning operation.
ACC/DEC time is set at units of axis in PLC program(special K area) and position control
monitoring.
The range is between 0 10,000 (unit: 1) per axis.
A) ACC time : a duration required to reach from 0(stop) speed to the speed limit set in parameter.
Using bias would be a time consumed to reach from bias speed set to the speed limit set in
parameter.
B) DEC time: a duration required to reach from the speed limit set in parameter up to 0(stop)
speed.
Using bias would be a time consumed to reach from bias speed set to the speed limit set in
parameter.
Speed limit
Speed
Set speed
Actual DEC time
Actual ACC time
Time
DEC time
ACC time
9-42
Remark
Terms definition
Speed limit: the max positioning speed to be set in parameter of software package.
Set speed: Speed of operation data actually operated by position data
Actual ACC time: a duration reaching from 0(stop) speed to the speed set by operation
data.
Actual DEC time: a duration reaching from the speed set by operation data to
0speed(stop).
A range of a machines move is called stroke limit, and it sets the upper/lower limits of stroke into
software upper limit and software lower limit and does not execute positioning if it operates out of
ranges set in the above.
Therefore, it is used to prevent against out-of-range of upper/lower limits resulting from incorrect
positioning address or malfunction by program error and it needs installing emergency stop limit
switch close to a machines stroke limit.
The range of software upper/lower limits may be checked during operation or when operation starts.
If an error is detected by setting software upper/lower limits(software upper limit error: 501,
software lower limit error: 502), pulse output of positioning module is prohibited.
Therefore, to resume operation after an error is detected, it is prerequisite to cancel No output.
The range is set per axis as follows;
Software upper limit address range : -2,147,483,648 2,147,483,647
Software lower limit address range : -2,147,483,648 2,147,483,647(unit: Pulse).
9-43
A tolerance that a machine does not operate due to wear when its rotation direction is changed if it
is moving with motor axis combined with gear and screw is called backlash.
Therefore, when changing a rotation direction, it should output by adding backlash compensation
amount to positioning amount.
It is available for positioning operation, inching operation and jog operation
The range is between 0 65,535(unit: Pulse) per axis.
Once backlash compensation amount is set or changed, home return should be executed.
Since it may not reach the original position due to backlash if a position is moved 1m rightward and
then 1m leftward, backlash compensation amount should be added.
Moving 1m righward(forward)
Gear
Moving 1m leftward(reverse)
Turning a direction
Backlash
Backlash
Backlash compensation outputs backlash compensation amount first and then, address of
positioning operation, inching operation and jog operation move to the target positions.
Speed
B: 500
P0 : 1000
(1000)
P3 : 0
P2 : 1500
P1 : 1500 (1500+compensation (3000+compensation
(1500) amount)
amount)
Time
C:0
D: 1500
9-44
by speed control.
In the case, S/W upper/lower limit detection is available as long as origin is set and the position
If No use is set, it does not detect upper/lower limits and is available with general input contact.
Item
Range
Initial
value
X-axis
Y-axis
Origin address
K469
K509
1 100,000[pulse/sec]
5,000
K471
K511
1 100,000[pulse/sec]
500
K473
K513
0 ~ 65535[unit: ms]
1,000
K475
K515
Word
0 ~ 65535[unit: ms]
1,000
K476
K516
Word
0 ~ 50,000[unit: ms]
K477
K517
Word
K4780
K4781
K5180
K5181
Bit
0 : forward, 1 : reverse
K4782
K5182
Bit
Remarks
Double
word
Double
word
Double
word
Double
word
Double
word
1 100,000[pulse/sec]
5,000
K479
K519
1 100,000[pulse/sec]
1,000
K481
K521
0 ~ 10,000[unit: ms]
1,000
K483
K523
Word
0 ~ 10,000[unit: ms]
1,000
K484
K524
Word
Inching speed
1 65,535[pulse/sec]
100
K485
K525
Word
9-45
Forward
Reverse
3) Origin address
It is used to change the current address to a value set in home return address when home return is
completed by home return instruction.
The range of home return address is between -2,147,483,648 2,147,483,647(unit: Pulse).
4) Home Return high speed
As a speed when it returns home by home return instruction, it is divided into high speed and low
speed.
When setting home return speed, it should be speed limit home return high speed home return
low speed.
It refers to a speed operating in regular speed section via accelerating section by home return
instruction.
The range of home return high speed is between 1 100,000(unit: pps)
5) Home Return low speed
It refers to a speed operating in regular speed section via decelerating section from home return
high speed by home return instruction.
The range of home return low speed is between 1 100,000(unit: pps)
Remark
It is recommended to set home return low speed as low as possible when setting home return
speed. Origin signal detection may be inaccurate if low speed is set too fast.
6) ACC/DEC time
When it returns home by home return instruction, it returns home at the speed of home return high
speed and home return low speed by ACC/DEC time.
The range of home return ACC/DEC time is between 0 10,000(unit: 1 ).
7) Dwell time
Dwell time is necessary to maintain precise stop of servo motor when positioning by using a servo
motor.
The actual duration necessary to remove remaining pulse of bias counter after positioning ends is
called dwell time.
The range of home return dwell time is between 0 50,000 (unit: 1 )
9-46
9-47
Step
Initial
values
X-axis
Y-axis
ABS
K5384
K8384
Bit
End
K5382~3
K8382~3
Bit
Position
K5381
K8381
Bit
Single
K5380
K8380
Bit
0~30
K539
K839
Word
Target position
K530
K830
Double
word
M Code number
0 ~ 65,535
K537
K837
Word
K5386
K5387
K8386
K8387
Bit
1 100,000[pulse/sec]
K534
K834
Double
word
0 ~ 50,000[unit: ]
K536
K836
Word
Item
Coordinate
Range
0 : ABS, 1 : Incremental
Device area
K540~549
K840~849
K550~559
K850~859
3~29
K560~819 K860~K1119
30
K820~829 K1120~1129
9-48
Remark
s
100
8000
Move: 7000
Current position
Target position
Remark
Control by absolute coordinate method may be activated as long as origin is set.
It generates Error 234 if it starts without origin set.
9-49
If direction is negative( - )
Reverse
Forward
[ example ]
If the current position is 5000 and target position is -7000, it completes positioning at -2000.
Positioning results
-
500
Current position
3) Control method(position/speed)
Select whether position control or speed control with control method.
4) Operation pattern(end/continuous/sequential)
For an operation pattern, select one of end, continuous and sequential.
5) Operation method(single/repeat)
For operation method, select single operation or repeat operation.
6) Target position
It is an area to set a move of position data as position value
The range is between 2,147,483,648 2,147,483,647(unit: Pulse).
Target position may be changed in a program by using special K area(for position control
function).
9-50
Remark
How to use M code in a program
1) M code number may be read by Current Operation Status Code Info Reading.
2) M code operation may check On/Off status by Current Operation Status Bit Info Reading.
X axis M code No.(Word): K428, Y axis M code No.: K438
X axis M code No.(Bit): K4203, Y axis M code No.: K4303
8) ACC/DEC number
As ACC/DEC number, select ACC/DEC number set in basic positioning parameter.
The range is between No.1 ~ No.4.
9) Operation speed
Operation speed is set within a range not exceeding speed limit of basic parameter.
The range of operation speed(unit is pulse) is between 1 100,000(unit: 1pps).
9-51
Status information
Operation status bit information (lower)
Operation status bit information (upper)
Current position (lower)
Current position (upper)
Current speed (lower)
Current speed (upper)
Step number
Error code
M code number
External I/O signal status
9-52
X-axis
word
Status information
Y-axis
bit
address
In operation
Error status
bit
address
K4200
K4300
0:stop, 1:operating
K4201
K4301
Positioning
complete
K4202
K4302
0:incomplete, 1:complete
M code signal
K4203
K4303
K4204
K4304
No pulse output
K4205
K4305
Stop status
K4206
K4306
K4208
K4308
K4209
K4309
Emergency stop
K420A
K430A
Forward/reverse
K420B
K430B
0:forward, 1:reverse
Operating(ACC)
K420C
K430C
Operating(Regular)
K420D
K430D
0:no regular
speed
Operating(DEC)
K420E
K430E
Operating(Dwell)
K420F
K430F
K4210
K4310
K4211
K4311
K4212
K4312
K4215
K4315
K4216
K4316
K4217
K4317
K4218
K4318
K4219
K4319
Inching operation
K421A
K431A
Operation control
(Position control)
Operation control
(Speed control)
Operation control
(Linear
interpolation)
Home Return
Position
synchronization
Speed
synchronization
K421
word
K430
K431
9-53
speed,
1:regular
Axis
Output
Description
K4290
X-axis start
K4291
K4292
K4293
K4390
Y-axis start
K4391
K4392
K4393
1) Start signal
A) Unlike indirect start or direct start by instructions, start signal executes positioning operation in
accordance with the current operation step number of positioning module without step number
set.
B) If changing the current operation step number during operation, it is necessary to use start step
number change instruction(SNS).
C) Examples of start programs
(1) Use push button as external start input switch.
(2) If toggle switch is used as external start input switch, it should be noted that operating switch
is off once positioning is complete and it restarts.
Device
P000F
K4200
K4201
K4290
Description
X-axis start signal input
X-axis operating signal
X-axis error status
X-axis start
9-54
Device
P0008
P0009
P000A
K4200
K4201
K4291
K4292
K4293
Description
X-axis forward jog external input
X-axis reverse jog external input
X-axis jog low/high speed external input
X-axis operating signal
X-axis error
X-axis forward jog
X-axis reverse jog
X-axis jog low/high speed
Remark
Note that if executing jog operation by entering adding operation signals(K4200, K4300) as
normal close(B contact) input as jog operation input condition, it may cause malfunction.
9-55
Instruction
Instruction condition
ORG
FLT
DST
Direct start
IST
Indirect start
LIN
Linear interpolation
SST
Concurrent start
VTP
Speed/position switching
PTV
Position/speed switching
STP
Stop
SSP
Position synchronization
SSS
Speed synchronization
POR
Position override
SOR
Speed override
PSO
INCH
Inching start
MOF
M code cancel
PRS
EMG
Emergency stop
CLR
WRT
Remark
Dedicated instructions operate at rising edge. That is, it operates once if instruction contact is On.
9-56
B) Description
Device
M000
K4200
K4201
Description
X-axis home return input
X-axis operating signal
X-axis error status
Instruction
Operand
ORG
Home Return
OP1
Slot
Constant
Word
OP2
Axis
P,M,L,K,
Constant,D,Z,R
Word
In case of home return start, it executes home return operation by the set home return parameters;
when it operates normally, the origin setting completion signal is On.
2) Floating origin setting(instruction : FLT)
A) Program
B) Description
Device
M000
K4200
K4201
Description
X-axis home return input
X-axis operating signal
X-axis error status
Instruction
Operand
FLT
OP1
Slot
OP2
Axis
Floating origin
Constant
P,M,L,K,
D,Z,R
constant,
Word
Word
Unlike home return, the origin setting completion signal is immediately On without any external
signal at the current position.
3) Direction start(Instruction : DST)
A) Program
9-57
Description
M000
K4200
K4201
Operand
Instruc
-tion
DST
Direct start
OP1
Slot
Constant
Word
OP2
Axis
P,M,L,K,constant, D,Z,R
Word
Instruction axis(0:X,1:Y)
OP3
Target
position
P,M,L,K,constant,D,Z,R
Dint
Target position
(-2147483648 ~ 2147483647)
OP4
Target
speed
P,M,L,K,constant,D,Z,R
Double
word
OP5
Dwell
time
P,M,L,K,constant,D,Z,R
Word
Dwell time(0~50000)
OP6
M code
P,M,L,K,constant,D,Z,R
Word
M code(0~65535)
word
Bit0(0:position,1:speed),
Bit4(0:absolute,1:Incremental),
Bit5,6(0:No.1,1:No.2,2:No.3,3:No.4
ACC/DEC time)
OP7
Control
word
P,M,L,K,constant,D,Z,R
Target speed(1~100000)
If the control word of instruction info is h0012, it is set by position control, Incremental, ACC/DEC time.
The 1 ~ 3rd and 7 ~ 15th bits of control words, which are no use area, would not affect the setting..
That is, h0010 and h0012 are set identically.
4) Indirect start(instruction : IST)
A) Program
B) Description
Device
M000
K4200
K4201
Description
X-axis home return input
X-axis operating signal
X-axis error status
Instruction
Operand
IST
Indirect start
OP1
Slot
constant
Word
OP2
Axis
P,M,L,K,constant,D,Z,R
Word
OP3
Operation
step
P,M,L,K,constant,D,Z,R
Word
If step number is set to 0 in indirect start, it operates with the current operation step number.
9-58
B) Description
Device
Description
M0000
K4200
K4201
K4300
K4301
Operand
Instruc
-tion
LIN
Linear interpolation
OP1
Slot
Constant
Word
OP2
Main axis
P,M,L,K,constant,D,Z,R
Word
OP3
Operation
step
P,M,L,K,constant,D,Z,R
Word
Operation
axis
P,M,L,K,constant,D,Z,R
Word
OP4
9-59
Dummy Operand(*1)
B) Description
Device
M000
K4200
K4201
K4300
K4301
Description
Concurrent start input
X-axis operating signal
X-axis error status
Y-axis operating signal
Y-axis error status
Instruction
SST
OP1
Operand
Circular interpolation
Constant
Word
P,M,L,K,constant,D,Z,R
Word
Slot
OP2
Axis
OP3
X-axis
operation step
P,M,L,K,constant,D,Z,R
Word
OP4
Y-axis
operation step
P,M,L,K,constant,D,Z,R
Word
OP5
Z-axis
operation step
P,M,L,K,constant,D,Z,R
Word
Dummy Operand(*1)
OP6
Operation axis
P,M,L,K,constantD,Z,R
Word
Dummy Operand(*1)
It operates concurrently and also called internal concurrent start to tell from external concurrent
start,
*1 : Dummy Operand value does not affect operation.
7) Speed/position switching(instruction : VTP)
A) Program
B) Description
Device
M0000
K4200
K4201
Description
X-axis speed/position switching
X-axis operating signal
X-axis error status
Instruction
Operand
VTP
Speed/position switching
OP1
Slot
Constant
Word
OP2
Axis
P,M,L,K,constant,D,Z,R
Word
B) Description
Device
M0000
K4200
K4201
Description
X-axis speed/position switching input
X-axis operating signal
X-axis error status
Instruction
Operand
PTV
Speed/position switching
OP1
Slot
Constant
Word
OP2
Axis
P,M,L,K,constant,D,Z,R
Word
B) Description
Device
M0000
K4200
K4201
Description
X-axis speed/position switching input
X-axis operating signal
X-axis error status
Instruction
Operand
STP
Decelerating stop
OP1
Slot
constant
Word
OP2
Axis
P,M,L,K,constant,D,Z,R
Word
Instruction axis(0:X,1:Y)
OP3
Decelerating
time
P,M,L,K,constant,D,Z,R
Word
Decelerating time
(0 ~ 65,535ms)
Decelerating stop instruction is not executed if being decelerating already; instead, it may stop only
when accelerating or regular speed operating.
Decelerating time means a duration until decelerating stop and is available between 0 ~ 65535ms.
If it is set to 0, it immediately stop without accelerating/decelerating; if any other value but 0 is set,
it stops by ACC/DEC time set by operation data or direct start instruction.
9-61
B) Description
Device
M0000
K4200
K4201
Description
X-axis speed/position switching input
X-axis operating signal
X-axis error status
Instruction
Operand
SSP
Position synchronization
OP1
Slot
constant
Word
OP2
Axis
P,M,L,K,constant
,D,Z,R
Word
OP3
Main axis
synchronization
position
P,M,L,K,constant
,D,Z,R
Dint
OP4
Operation step
P,M,L,K,constant
,D,Z,R
Word
OP5
Main axis
P,M,L,K,constant
,D,Z,R
Word
Instruction axis(0:X,1:Y)
If position synchronization instruction is executed first, it turns in operation and the sub-axis, X-axis
does not output pulse.
The main axis, Y-axis starts, No.11 step of X-axis where the current position is 1000 starts, pulse
outputs and positioning operation starts by the operation pattern of X-axis.
9-62
B) Description
Device
M0000
K4200
K4201
Description
X-axis speed/position
switching input
X-axis operating signal
X-axis error status
Instruction
SSS
Speed synchronization
OP1
Slot
Constant
Word
OP2
Axis
P,M,L,K, constant,D,Z,R
Word
Instruction axis(0:X,1:Y)
OP3
Main
axis
ratio
P,M,L,K,constant,D,Z,R
Word
OP4
Sub
axis
ratio
P,M,L,K,costant,D,Z,R
Word
Delay time(1~10)ms
OP5
Main
axis
P,M,L,K,constant,D,Z,R
Word
Operand
If speed synchronization instruction is executed, it turns in operation and no pulse is output at X-axis.
If the synchronization ratio is set to 5,000, the main axis setting, Y-axis starts and if operation speed is
100pps, the sub axis, X-axis operates at 50pps depending on the synchronization ratio
50.50%(5,000/100%).
If the main axis setting, Y-axis operation speed is changed to 1000pps, the Y-axis operation speed is
changed at the speed of 500pps, which is X-axis, the sub axis.
During speed synchronization operation, the synchronization ratio is available between
1~10000(0.00% ~ 100.00%).
Delay time is a delayed time of main/sub axes. If delay time is large, delay occurs as long as the delay
time set, but output pulse is output stably. In case of any possibility of fault in a motor and etc, the
delay time should be set largely. The available range is between 1 ~ 10ms.
9-63
B) Description
Device
M0000
K4200
K4201
Description
X-axis speed/position switching
input
X-axis operating signal
X-axis error status
Instruction
Operand
POR
Position override
OP1
Slot
Word
OP2
Axis
P,M,L,K,constant,D,Z,R
Word
Instruction axis(0:X,1:Y)
OP3
Position
P,M,L,K,constant,D,Z,R
Dint
If position override is set before reaching a target position unless the target position is 20000 during Xaxis operation, the target position is changed to 20000, starting positioning operation.
13) Speed override(instruction : SOR)
A) Program
B) Description
Device
M0000
K4200
K4201
Description
X-axis speed/position switching input
X-axis operating signal
X-axis error status
Instruction
Operand
SOR
Speed override
OP1
Slot
Constant
Word
OP2
Axis
P,M,L,K,constant,D,Z,R
Word
Instruction axis(0:X,1:Y)
OP3
Speed
P,M,L,K,constant,D,Z,R
Double
word
Target speed to
change(1~100,000)
If speed override instruction is executed as X-axis operation speed is not 5000, the operation speed
is changed to 5000 pps and operation starts.
9-64
B) Description
Device
Description
M0000
K4200
K4201
Instruction
Operand
PSO
OP1
Slot
Word
OP2
Axis
P,M,L,K,
constant,D,Z,R
Word
Instruction axis(0:X,1:Y)
OP3
Position
P,M,L,K,constant,D,Z,R
Dint
OP4
Speed
P,M,L,K,constant,D,Z,R
Double
word
to
If positioning override instruction is executed when X-axis operation speed is 500pps and the target
position is 2,000,000, operation speed is changed to 5000pps and it operates.
15) Inching start(instruction : INCH)
A) Program
B) Description
Device
M0000
K4200
K4201
Description
X-axis speed/position switching
input
X-axis operating signal
X-axis error status
Instruction
Operand
INCH
Inching operation
OP1
Slot
Constant
Word
OP2
Axis
P,M,L,K,constant,D,Z,R
Word
Instruction axis(0:X,1:Y)
OP3
Position
P,M,L,K,constant,D,Z,R
Dint
If M000 is on, it operates forward at the inching operation speed set in origin/manual parameters.
9-65
B) Description
Device
M0000
K4200
K4201
Description
X-axis start step number change
input
X-axis operating signal
X-axis error status
Instruction
Operand
MOF
M code cancel
OP1
Slot
Constant
Word
OP2
Axis
P,M,L,K,Constant,D,Z,R
Word
Instruction axis(0:X,1:Y)
OP2
Axis
P,M,L,K,constant,D,Z,R
Word
B) Description
Device
M0000
K4200
K4201
Description
X-axis speed/position switching
input
X-axis operating signal
X-axis error status
Instruction
Operand
MOF
M code cancel
OP1
Slot
Constant
Word
OP2
Axis
P,M,L,K,constant,D,Z,R
Word
Instruction axis(0:X,1:Y)
If on X-axis, M code occurs and M000 is On, M code On signal and M code number are simultaneously
cancelled.
9-66
B) Description
Device
M0000
K4200
K4201
Description
X-axis speed/position switching input
X-axis operating signal
X-axis error status
Instruction
Operand
PRS
OP1
Slot
Constant
Word
OP2
Axis
P,M,L,K,constant,D,Z,R,ZR
Word
Instruction axis(0:X,1:Y)
OP3
Position
P,M,L,K,constant,D,Z,R,ZR
Dint
B) Description
Device
Description
M000
Instruction
Operand
EMG
Emergency stop
OP1
Slot
Constant
Word
OP2
Axis
P,M,L,K,constant,D,Z,R,ZR
word
Instruction axis(0:X,1:Y)
9-67
B) Description
Device
M0000
K4200
K4201
Description
X-axis speed/position switching
input
X-axis operating signal
X-axis error status
Instruction
CLR
OP1
Slot
Constant
Word
OP2
Axis
P,M,L,K,constant,D,Z,R
Word
Instruction axis(0:X,1:Y)
OP3
No
output
cancel
P,M,L,K,constant,D,Z,R
Word
0: No cancel of no output
1: No output cancel
Operand
If M000 is On, an error occurred on X-axis is reset and no pulse status is cancelled.
21) Saving Parameter/Operation Data(instruction : WRT)
A) Program
B) Description
Device
M0000
K4200
K4201
Description
X-axis speed/position switching
input
X-axis operating signal
X-axis error status
Instruction
Operand
WRT
OP1
Slot
Constant
Word
OP2
Axis
P,M,L,K,constant,D,Z,R
Word
Dummy Operand
OP3
Selection
of saving
area
P,M,L,K,constant,D,Z,R
Word
If M000 is on, it instructions that the parameters and operation data currently operated on a selected
axis of X-axis is to be saved.
9-68
Clicking special module monitor after startign monitoring shows the following window.
9-69
Monitoring window
Instruction window
Item
Monitoring
Description
Remarks
Y-Axis Data
Start Monitor
Stop Monitor
Write PLC
Save Project
Parameter area
Item
Description
Related
instruction
IST
Error reset
CLR
Direct start
DST
M-code off
MOF
Decelerating stop
STP
Emergency stop
EMG
Speed override
SOR
POR
PSO
ORG
FLT
PRS
SNS
Inching operation
INCH
Jog operation
Indirect start
Position override
Speed override with
position
Home Return
FLT
Position preset
Speed position
switching
Position/speed
switching
Speed
synchronization
SSS
Position
synchronization
SSP
9-71
VTP
PTV
PSS
LIN
Item
Description
Related flags
Remarks
X-axis
Y-axis
K422
K432
Double
word
K424
K434
Double
word
K426
K436
Word
K427
K437
Word
K428
K438
Word
Busy signal
K4200
K4300
Bit
Positioning
complete
K4202
K4302
Bit
M code On
K4203
K4302
Bit
K4204
K4302
Bit
No output
K4205
K4305
Bit
Upper limit
detection
K4208
K4308
Bit
Lower limit
detection
K4209
K4309
Bit
K420A
K430A
Bit
Forward/reverse
Display forward/reverse rotation status.
rotation
K420B
K430B
Bit
Origin setting
Operation status
Bit
K4310~
K4312
Bit
K4215
K4315
Bit
Position
synchronization
K4216
K4316
Bit
Speed
synchronization
K4217
K4317
Bit
K4219
K4319
Bit
K4218
K4318
Bit
K421A
K431A
Bit
Home Return
9-72
Item
Description
Related flags
X-axis
Y-axis
P1
P3
P0
P2
DOG signal
P4
P6
Origin signal
P5
P7
9-73
If applying the changed data to a project, select Save Project. Make sure that positioning
parameters of XG5000 would be changed as long as Save Project is selected. If not selected, the
project and parameters of PLC and XG 5000 may be different each other.
9-74
XBMDN32S
XBEDC32A
BCD Digital
X-axis servo
Servo motor
Push button
Y-axis servo
Servo motor
9-75
Description
P0008
P0009
P000F
K4200
K4201
K4290
X-axis start
K420~K428
X-axis status info(refer to <9.4.1 Status monitoring flag for positioning > )
X-axis setting
Step
No.
Coordinate
Absolute
Absolute
Absolute
Control
method
Operation
speed
[pls/s]
Dwell
time
[]
No.1
1000
100
No.1
1500
100
No.1
2000
100
Operation
pattern
Operation
method
Repeat
step
Target position
[pulse]
End
Single
10000
End
Single
20000
End
Single
30000
Position
control
Position
control
Position
control
M
ACC/DEC
code
no.
10000
P000F
20000 Dwell
time
Dwell
time
B) Program
9-76
30000
Time
Dwell
time
Description
P0008
P0009
P000F
K4200
K4201
K4300
K4301
K420~K428
Step
No.
Coordinate
X-axis
Absolute
Absolute
Y-axis
Control
method
Position
control
Position
control
Operation
pattern
Operation Repeat
method
step
Target
position
[pulse]
M code
ACC/DEC no.
End
Single
10000
No.1
1000
100
End
Single
5000
No.1
1000
100
5000
Y-axis move
(5000 0
= 5000)
1000
Start address
Operation
Dwell time
speed
[]
[pls/s]
X-axis
1000
5000
10000
X-axis move(10000 0 = 10000)
B) Program
9-77
Description
P0008
P0009
P000A
P000F
K4200
K4201
K420~K428
X-axis status info(refer to <9.4.1 Status monitoring flag for positioning >)
It returns home by the home return method set in home return/manual parameters.
(0: DOG/origin(Off)).
Since DEC time is set as a value but 0 in decelerating stop command, it decelerates by No.1
DEC time.
X-axis
Step no.
Coordinate
Control method
Absolute
Position
control
Single
B) Program
9-78
Target position
[pulse]
M
code
ACC/DEC
No.
Operation
speed
[pls/s]
Dwell
time
[]
15000
1000
100
Description
P0008
P0009
P000A
P000F
K4200
K4201
P0004
K420~K428
Step
No.
Coordinate
X-axis
Absolute
Absolute
Absolute
ACC/DEC
No.
Operation
Dwell time
speed
[]
[pls/s]
End
Single
10000
No.11
1000
100
End
Single
20000
No.1
1500
100
End
Single
30000
No.1
2000
100
...
...
...
...
Absolute
M code
...
12
Target
position
[pulse]
...
Absolute
Repeat
step
...
11
Position
control
Position
control
Position
control
Operation Operation
pattern
method
...
...
Absolute
Position
control
Position
control
Position
control
...
...
10
Control
method
End
Single
50000
No.1
1000
100
End
Single
60000
No.1
1500
100
End
Single
70000
No.1
2000
100
B) Program
9-79
Description
X-axis error reset, no output cancel switch
X-axis floating origin switch
X-axis step number change
X-axis DEC stop
X-axis start switch
X-axis operating signal
X-axis error status signal
BCD Digital switch input
X-axis status info
(refer to <9.4.1 Positioning Status Monitoring Flag Info>)
Since DEC time is set to 0 in DEC stop command, execute deceleration by No.1 ACC/DEC time.
X-axis
Step
Coordinate
No.
1
Absolute
Control
method
Operation
pattern
Speed
control
End
Target
Operation
Operation Repeat
M ACC/DEC
position
speed
method
step
code
No.
[pulse]
[pls/s]
Single
No.1
1000
Dwell
time
[]
100
...
...
...
...
...
...
...
...
...
...
...
10
Absolute
Speed
control
End
Single
50000
No.1
1000
100
B) Program
9-80
Description
P0008
P0009
P000F
K4200
K4201
K4300
K4301
K420~K428
K430~K438
Position
data item
X-axis
Coordinate
Control
method
Operation
pattern
Operation
method
Absolute
Position
control
End
Single
10000
No.1
1000
Dwell
time
[]
100
...
...
...
...
...
...
...
...
...
...
...
Y-axis
Target
Operation
Repeat
M ACC/DEC
position
speed
step
code
No.
[pulse]
[pls/s]
Step
No.
10
Absolute
Position
control
End
Single
20000
No.1
2000
100
B) Program
9-81
Description
P0008
P0009
P000E
P000F
K4200
K4201
K4300
K4301
K420~K428
K430~K438
Sub-axis X-axis
Absolute
Control
method
Position
control
Repeat
step
Target
position
[pulse]
M
code
ACC/DEC
No.
Single
10000
No.1
Operation Operation
pattern
method
End
Operation Dwell
speed
time
[pls/s]
[]
1000
100
...
...
...
...
...
...
...
...
...
...
...
Main-axis Y-axis
Step
Coordinate
No.
10
absolute
Position
control
End
Single
15000
No.1
1500
100
B) Program
9-82
Description
P0008
P0009
P000A
P000E
P000F
K4200
K4201
K4300
K4301
K420~K428
K430~K438
If using toggle switch for Y-axis DEC stop, it may generate an error.
Since DEC time is set to 0 in DEC stop command, it executes DEC by No.1 ACC/DEC time.
Step
No.
Coordinate
Absolute
...
...
...
...
...
...
...
...
...
...
...
Target
Operation Dwell
Control Operation Operation Repeat
M
ACC/DEC
position
speed
time
method
pattern
method
step
code
No.
[pulse]
[pls/s]
[]
Speed
End
Single
0
0
0
No.1
1000
100
control
absolute
Speed
control
End
Single
No.1
1000
100
Main axis
Synchronization ratio
Delay time
1:Y axis
5000 : 50.00%
1:1ms
B) Program
9-83
Description
P0008
P0009
P000F
K4200
K4201
K420~K428
9-84
Description
P0008
P0009
P000D
P000E
P000F
K4200
K4201
K420~K428
9-85
Description
P0008
P0009
P000F
K4200
K4201
D0100 ~
D0101
K420~K428
9-86
Description
P0008
P0009
P000A
P000F
K4200
K4201
K420C
K420D
D0100 ~
D0101
K420~K428
X-axis
Step
Coordinate
No.
1
Absolute
Control
method
Operation
pattern
Position
control
End
Target
Operation Repeat
M ACC/DEC
position
method
step
code
No.
[pulse]
Single
100000
No.1
Operation
speed
[pls/s]
Dwell
time
[]
5000
100
B) Program
9-87
Description
P0008
P0009
P000A
P000F
K4200
K4201
K420D
D0100 ~ D0101
K420~K428
X-axis
Step
Coordinate
No.
1
Absolute
Target
Operation
Operation Operation Repeat
M
ACC/DEC
position
speed
pattern
method
step
code
No.
[pulse]
[pls/s]
Position
100000
End
Single
0
0
No.1
5000
control
Control
method
Dwell
time
[]
100
B) Program
9-88
Description
P0008
P0009
P000A
P000F
K4200
K4201
K420D
D0100 ~ D0101
Positioning settings(50000pulse)
D0102 ~ D0103
Sped settings(10000pps)
K420~K428
X-axis
Step
Control Operation Operation
Coordinate
No.
method
pattern
method
1
Absolute
Position
control
End
Single
Repeat
step
Target
position
[pulse]
100000
M
ACC/D
code EC No.
0
No.1
Operati
on
speed
[pls/s]
Dwell time
[]
5000
100
B) Program
9-89
Description
P0008
P0009
P000A
K4200
K4201
K4290
K420~K428
X-axis
Step
No.
Coordinate
Absolute
Absolute
ACC/DEC
No.
Operation
speed
[pls/s]
End
Single
10000
No.1
1000
End
Single
20000
No.1
1500
Dwell
time
[]
100
100
...
...
...
...
...
...
Absolute
M
code
...
11
Position
control
Position
control
Target
Operation Operation Repeat
position
pattern
method
step
[pulse]
...
...
Absolute
Position
control
Position
control
...
...
10
Control
method
End
Single
50000
No.1
1000
100
End
Single
60000
No.1
1500
100
B) Program
9-90
Description
P0008
P0009
P000A
P000F
K4200
K4201
K4290
D0100 ~ D0101
K420~K428
X-axis
Step
Coordinate
No.
1
Absolute
Control
method
Position
control
Target
Operation Operation Repeat
position
pattern
method
step
[pulse]
End
Single
B) Program
9-91
100000
M
code
ACC/DEC
No.
Operation
speed
[pls/s]
Dwell
time
[]
No.1
5000
100
Description
P0008
P0009
P000A
P000F
K4200
K4201
K4290
K534 ~ K535
D0100 ~ D0101
K420~K428
Step
No.
Coordinate
Control
method
Absolute
Position
control
X-axis
Target
Operation
Operation Operation Repeat
M
ACC/DEC
position
speed
pattern
method
step
code
No.
[pulse]
[pls/s]
End
Single
10000
No.1
Dwell
time
[]
100
B) Program
Remark
1) Flash save of changed data(WRT)
If operation data is changed by DMOV command, it is necessary to use WRT command in order to
save the changed value to flash memory. It is not possible to maintain the changed values when
turning it off or changing a mode unless the values are saved by using WRT command.
2) Teaching is available for every item of operation data(Coordinate, control method and etc).
However, teaching is not available for any operating step. Make sure to execute teaching to notoperating step.
9-92
Description
P0008
P0009
P000A
P000F
K4200
K4201
K4290
K530 ~ K531
D0100 ~ D0101
K420~K428
X-axis
Step
Coordinate
No.
1
Absolute
Control
method
Position
control
Target
Operation Operation Repeat
position
pattern
method
step
[pulse]
End
Single
M
code
ACC/DEC
No.
Operation
speed
[pls/s]
Dwell
time
[]
No.1
500
100
B) Program
Remark
1) Flash save of changed data(WRT)
If operation data is changed by DMOV command, it is necessary to use WRT command in order to
save the changed value to flash memory. It is not possible to maintain the changed values when
turning it off or changing a mode unless the values are saved by using WRT command.
9-93
Description
X-axis error reset, no output cancel switch
X-axis home return switch
X-axis start switch
X-axis parameter change switch(speed limit)
X-axis parameter change switch(ACC/DEC time 1)
X-axis operating signal
X-axis error status signal
X-axis start signal
X-axis constant speed signal
X-axis present operation step number
X-axis speed limit
X-axis ACC time
X-axis DEC time
X-axis speed limit setting data(100000)
X-axis ACC time1 setting data(100)
X-axis ACC time1 setting data(100)
X-axis status info(refer to <9.4.1 Status monitoring flag for positioning>)
X-axis
Step
No.
Coordinate
Control
method
Absolute
Position
control
Operation Operation
pattern
method
End
Single
Target
Repeat
position
step
[pulse]
0
10000
M
code
ACC/DEC
No.
Operation
speed
[pls/s]
Dwell
time
[]
1000
100
Settings
100000
100
100
B) Program
Remark
1) Flash save of changed data(WRT)
If operation data is changed by DMOV command, it is necessary to use WRT command in order to
save the changed value to flash memory. It is not possible to maintain the changed values when
turning it off or changing a mode unless the values are saved by using WRT command.
9-94
Description
P0008
P0009
P000A
P000F
K4200
K4201
K4290
K4203
K420~K428
Step
No.
Coordinate
X-axis
Absolute
Absolute
absolute
Control
method
Position
control
Position
control
Position
control
Continuo
us
Continuo
us
End
Target
position
[pulse]
M
ACC/DEC
code
No.
Operation
speed
[pls/s]
Dwell
time
[]
Single
10000
No.1
1000
100
Single
20000
No.1
1500
100
Single
No.1
2000
100
B) Program
9-95
Touch Screen
Servo motor
Y-axis servo
Push button
Moving object
Encoder
B) Description
Target position, forward rotation speed and reverse rotation speed are changed in touch screen with
MOV command and if starting after home return, a servo motor rotates as much as speed/position
move data set in the touch screen. At the moment, to save the changed value into flash memory, make
sure to use WRT command. If saving the data into flash memory without WRT command, it does not
save the changed values(settings) when it turns off or a mode is changed.
C) Devices used
Device
Description
P0008
P0009
P000A
P000B
P000C
P000D
P000F
K4200
K4201
K4290
K530 ~ K531
K534 ~ K535
K544 ~ K545
D00500 ~ D00501
D00540 ~ D00541
D00542 ~ D00543
K420~K428
9-96
X-axis
Step
No.
Coordinate
Absolute
Absolute
Target
Control Operation Operation Repeat
position
method
pattern
method
step
[pulse]
Position
End
Single
0
10000
control
Position
End
Single
1
0
control
M
code
ACC/DEC
No.
Operation
speed
[pls/s]
Dwell
time
[]
No.1
500
20
No.1
500
20
D0500~D0501
D0540~D0541
D0542~D0543
Reverse rotation
On
On
Start command
On
Operating
H) Program
9-97
B) Devices used
Device
Description
P0008
P0009
P000F
K4200
K4201
K4290
K420~K428
C) Operation sequence
P0009(home return) switch On,Off => P000F(start) switch On,Off 4 times
D) Operation data setting
Position
data items
X-axis
Step
Coordinate
No.
1
Incremental
Incremental
Incremental
Incremental
Incremental
Incremental
Incremental
Incremental
Control
method
Position
control
Position
control
Position
control
Position
control
Position
control
Position
control
Position
control
Position
control
Operation
pattern
Target
Operation Repeat
position
method
step
[pulse]
M
code
ACC/DEC
No.
Operation
speed
[pls/s]
Dwell
time
[]
End
Single
1000
No.1
1000
20
End
Single
2000
No.1
2000
20
Continuous
Single
3000
No.1
3000
20
Continuous
Single
4000
No.1
4000
20
Continuous
Single
5000
No.1
5000
20
End
Single
10000
No.1
6000
20
Continuous
Single
20000
No.1
7000
20
Continuous
Single
30000
No.1
8000
20
9-98
End
0
Step
End
Continue
Continue
End
Continue
Continue
Continue
Position
1000
6000
3000
Step No.1 Step No.2 Step No.3
10000
Step No.4
15000
Step No.5
25000
Step No.6
45000
Step No.7
75000
Step No.8
9kpps
End operation(repeat)
Reverse rotation
On
On
On
On
Start command
(P000F)
F) Program
9-99
Description
P0008
P0009
P000A
P000F
K4200
K4201
K4203
K4290
K420~K428
C) Operation sequence
P0009(home return) switch On, Off => P000F(start) switch On, Off => P000A(M code cancel) switch
On, Off => P000F(start) switch On, Off => P000A(M code cancel) switch On, Off => P000A(M code
cancel) switch On, Off => P000F(start) switch On, Off => P000A(M code cancel) switch On, Off =>
P000A(M code cancel) switch On, Off
Refer to start commands of operation pattern, M code Off commands.
D) Operation data settings
Position
data items
Step
No.
Coordinate
X-axis
Absolute
Absolute
Absolute
Absolute
Absolute
Absolute
Control
method
Operation
pattern
Position
End
control
Position
Continuous
control
Position
Continuous
control
Position
End
control
Position
Continuous
control
Position
End
control
Operation
method
Repeat
step
Target
position
[pulse]
M
code
ACC/DEC
No.
Operation
speed
[pls/s]
Dwell
time
[]
Single
10000
No.1
1000
100
Single
20000
No.1
1000
100
Single
30000
10
No.1
3000
100
Single
40000
20
No.1
4000
100
Single
50000
30
No.1
5000
100
Single
40
No.1
6000
100
9-100
Continuous
End
End
Continuous
Continuous
Time
10000
Step No.1
40000
20000
30000
Step No.2 Step No.3 Step No.4
50000
Step No.5
0
Step No.6
10kpps
End operation
Reverse rotation
Start command On
(P000F)
On
Operating
(P0011)
Dwelling
(M000F)
M code signal
(M0003)
M code number
(D0005)
M code Off command
(P0002)
On
On
On
On
On
On
On
On
10
On
On
On
On
On
20
30
40
Remark
In sequential operation mode, M code signal is changed into a M code number without pause every
time operation step number is changed and it Continuous operation.
If M code signal is on in continuous operation mode, the next operation step number may be operated
as long as M code On is changed to off with M code off command.
F) Program
9-101
Description
P0008
P0009
P000F
K4200
K4201
K4300
K4301
K420~K428
K430~K438
C) Operation sequence
P0009(home return) switch On, Off => P000F(linear interpolation) switch On, Off => P000F(linear
interpolation) switch On, Off
D) Operation data setting
Position
data items
X-axis
Position
data items
X-axis
Step
Control
Coordinate
No.
method
1
Absolute
Absolute
Absolute
Absolute
Absolute
Absolute
Step
No.
Coordinate
Absolute
Absolute
Absolute
Absolute
Absolute
Absolute
Position
control
Position
control
Position
control
Position
control
Position
control
Position
control
Control
method
Operation
pattern
Target
Operation Repeat
position
method
step
[pulse]
M
code
ACC/DE
C No.
Operation
speed
[pls/s]
Dwell
time
[]
End
Single
3000
No.1
1000
100
Continuous
Single
8000
No.1
1000
100
Continuous
Single
10000
No.1
1000
100
Single
8000
No.1
1000
100
Single
3000
No.1
1000
100
Single
1000
No.1
1000
100
M
code
ACC/DEC
No.
Operation
speed
[pls/s]
Dwell
time
[]
Continuous
Continuous
Continuous
Operation
pattern
Position
End
control
Position
Continuous
control
Position
Continuous
control
Position
Continuous
control
Position
Continuous
control
Position
Continuous
control
Target
Operation Repeat
position
method
step
[pulse]
Single
2000
No.1
1000
100
Single
2000
No.1
1000
100
Single
5000
No.1
1000
100
Single
8000
No.1
1000
100
Single
8000
No.1
1000
100
Single
5000
No.1
1000
100
9-102
E) Operation pattern
Y-axis position address
8000
Step No. : 5
Step No. : 4
7000
6000
5000
Step No. : 6
Step No. : 3
4000
3000
2000
1000
Step No. : 1
Step No. : 2
X-axis position address
Origin
1000 2000 3000 4000 5000 6000 7000 8000 9000 10000 11000
F) Program
9-103
P0000
XBMDN32S
XBEDC32A
Setting inching
Y-axis servo
Servo mo
motor
Moving object
Encoder
P0008
P0009
Error reset
Home return
P000A
P000B
P000C
Inching forward(+)
P000D
Inching reverse(-)
P000E
Position teaching
P000F
Start
9-104
Description
P0008
P0009
P000A
P000B
P000C
P000D
P000E
P000F
K4200
K4201
K4290
K530 ~ K531
D00000 ~ D00001
D0100 ~ D0101
D0102 ~ D0103
K420~K428
C) Operation sequence
P0009(home return) switch On, Off => P000A(jog high speed forward rotation) switch On, Off =>
P000B(jog high speed reverse rotation) switch On, Off => Setting inching move(amount) with BCD
digital switch => P000C(inching forward rotation) switch On, Off => Setting inching move(amount) with
BCD digital switch => P000D(inching reverse-rotation) switch On, Off => P000E(position change)
switch On, Off => P0009(home return) switch On,Off => P000F(start) switch On, Off
D) Operation data setting
Position
data items
Step
No.
Coordinate
X-axis
Absolute
Absolute
Control
method
Position
control
Position
control
Operation Operation
pattern
method
Repeat
step
Target
M
position
code
[pulse]
ACC/DEC
No.
Operation
speed
[pls/s]
Dwell
time
[]
End
Single
No.1
1000
100
End
Single
No.1
9-105
On
Start command
G) Program
Remark
Flash save of changed data(WRT)
If operation data is changed by DMOV command, it is necessary to use WRT command in order to
save the changed value to flash memory. It is not possible to maintain the changed values when
turning it off or changing a mode unless the values are saved by using WRT command.
9-106
XG5000
9-107
9.8.3 Wiring
1) Wiring cautions
A) The length of cable connecting positioning module and drive should be as short as possible because
the lengths are 2m and 10m respectively.
B) By using a separate cable, AC and external I/O signal of positioning module are not subject to any
surge or induced noise generated from AC.
C) Cable should be selected considering ambient temperature and allowable current, and it is also
recommended that the size should be more than the max size(AWG22(0.3))
D) If wiring is too close to any hot devices or materials or contacts with oils for a long time, it may
cause short circuit, malfunction or destruction.
E) Make sure to check the polarities before turn it on.
F) If wiring is linked with high voltage wire or power line, it may cause induction fault, probably
resulting in malfunction or troubles
G) If wiring by using pipes, it needs grounding the pipes
H) Use the only stable power supplied from outside(DC 5V, DC 24V)
I) If it is suspicious that there is any noise source of wiring between positioning module and drive,
make sure to connect them by using twisted pair wire or shield cable as the wiring of output pulse
from positioning module to motor driver.
9-108
Max. 2m
XBM-DN16/32S
Signal
Ch0
Ch1
Pulse
P40
P41
CW-
Common
COM COM
CW+
Direction
P42
Common
COM COM
+24V input
(Note3)
(Note 4)
Stepping motor driver
CCW-
P43
Origin
P04
P06
Near point
P05
P07
Low limit
P00
P02
Upper limit
P01
P03
Emg. Stop
Input
Common
COM0(input
CCW+
DC5V
(Note 1)
TIMING
COM
DC24V
Signal
Ch0
Ch1
Pulse
P40
P41
Common
COM COM
Direction
P42
Common
COM COM
+24V Input
Origin
P05
P07
Near point
P04
P06
Low limit
P00
P02
High limit
P01
P03
Common
CW2K, 1/2W
P43
(Note 4)
Max. 2m
XBM-DN16/32S
DC24V
(Note2)
CW+
CCWCCW+
2K, 1/2W
(Note1)
TIMING
COM
Input
COM0(Input
DC24V
(Note1) In case of VEXTA PKD, timing output is on every time a motor rotates 7.2 degrees. For precise home return,
timing output and origin sensor should be structured by AND circuit. Depending on a systems features, it is
recommended to use home return only by DOG signal or origin sensor by origin signal(XGB origin input
rating is DC 24V).
(Note2) Connect resistors suitable for the driver in series if DC24V is used.
(Note3) Although origin, DOC, upper/lower limit signals are with fixed contact, it may be used for general input if they
are not used. Emergency stop is available by the command(EMG).
(Note4) Since the positioning pulse of XGB forward/reverse-rotates by the rotation direction as in the below figure,
make sure to change the input mode of a stepping motor driver into 1 phase input mode prior to use.
9-109
MR-J2S- A
MC
TE1
L1
Power supply
3-phase 200VAC
V
W
L2
L3
L11
L21
CTE2
D
PE
EMG
PE
XBM-DN16/32S
B1
B2
24VDC
Electronical brake
CN1A
SM
W
E
Detector
CN2
Ch0
Ch1
Pulse
P40
P41
PP
Common
COM COM
SG
10
Direction
P42
NP
Common
COM COM
OPC
11
COM
+24V Input
(Note
(Note3)
Signal
P43
(Note
1)
Origin
P05
P07
Near point
P04
P06
LG
SD
Plate
Low limit
P00
P02
High limit
P01
P03
Emg stop
Common
OP
14
Input
COM0(Input
DC24V
Operation limit
Reverse operation limit
RA1
Error
Zero speed detection
In torque limit
RA2
RA3
12
2
CN3
TxD
SD
LG
GND
11
5
LG
15
LG
15
5
RES
14
PC
GND
TL
RS
LSP
16
14
CS
LSN
17
13
DR
SG
10
Plate
ER
20
3
COM
13
ALM
18
ZSP
19
TLC
P15R
11
TLA
12
LG
SD
Plate
(Note1) The rating of XGB origin input is DC24V. Make sure to connect the open
CS
DR
SOn
SG
Personal
GND computer
RS
LG
CN1E
EMG
VDD
RD
RxD
ER
Monitor output
A
A
10k
10k
Less than 2m
(Note2) Although origin, DOC, upper/lower limit signals are with fixed contact, it may be used for general input if they are
not used. Emergency stop is available by the command(EMG).
(Note3) Since the positioning pulse of XGB forward/reverse-rotates by the rotation direction as in the below figure, make
sure to change the input mode of a stepping motor driver into 1 phase input mode prior to use.
9-110
Max. 10mA
(Note4)
Max. 2m
FDA-5000
Signal
Ch0
Ch1
Pulse
P40
P41
Common
COM COM
Direction
P42
Common
COM COM
+24V Input
Origin
(Note2
)
(Note3)
1.5K,1/2W
P43
P04
P06
24G
P24V
1.5K,1/2W
(Note1)
10
PFIN
11
PPFIN
12
PRIN
PPRIN
5
30
PZO+
21
RDY
INPOS
PZO-
Near point
P05
P07
22
Low limit
P00
P02
47
P03
48
BRAKE
20
ALARM
45
A_CODE0
19
A_CODE1
44
A_CODE2
24
25
GND24
18
SVOnEN
38
CLR
15
CCWLIM
High limit
P01
Emg. stop
Input
Common
COM0(Input
P24V
40
24G
0 SPEED
GND24
CWLIM
39
ESTOP
38
ALMRST
41
P/P1
14
TLIM
49
+24VIN
(Note1) The rating of XGB is 24VDC. If it is line driver output, contact is not connected. In the case, use a convert from line
driver output to open collector output or use home return only by DOG signal/origin sensor of origin signal.
(Note2) Although origin, DOC, upper/lower limit signals are with fixed contact, it may be used for general input if they are not
used. Emergency stop is available by the command(EMG).
(Note3) If using DC24V, make sure to connect resistor suitable for a driver(1.5K,1/2W) in series.
(Note4) Since the positioning pulse of XGB forward/reverse-rotates by the rotation direction as in the below figure, make
sure to change the input mode of a stepping motor driver into 1 phase input mode prior to use.
9-111
Countermeasures
Operation
Description
101
Stop
102
Stop
103
Stop
104
Stop
111
Stop
Re-adjust S/W upper limit equal to or larger than the lower limit.
Stop
Stop
Stop
121
122
123
131
132
133
134
Stop
Stop
Stop
Stop
135
Stop
136
Stop
137
Stop
151
Stop
Stop
Stop
Stop
152
153
154
155
201
202
211
221
Stop
Stop
Stop
Stop
Stop
9-112
224
231
232
233
234
236
241
242
244
245
247
248
250
251
253
257
258
Stop
Stop
Stop
Operation
Stop
Stop
Stop
Stop
Operation
Operation
Stop
Stop
Stop
Stop
Stop
Stop
Check whether sub axis was not designated at the time of linear
interpolation command.
Check whether the target position of operation data of a step for
Stop
Countermeasures
Operation
Description
9-113
Operation
Description
Linear interpolation is unavailable when sub axis is
Stop
controlling speed.
Countermeasures
Check whether the control method of sub axis operation data step
for linear interpolation was not set by speed control.
Check whether an axis with error was not contained in concurrent
291
Operation
292
Stop
status.
293
Stop
start command and whether M code signal was not on at the time
of the command.
294
Stop
296
Stop
301
302
304
311
312
314
Stop
344
Stop
operating.
322
343
Stop
target position.
342
Stop
controlling speed.
321
341
Stop
Operation
Stop
Operation
Operation
Stop
Stop
Stop
9-114
Error
code
346
347
351
352
353
355
356
357
361
362
363
364
366
371
372
373
375
377
381
382
383
Countermeasures
Operation
Description
Position synchronic command is unavailable without origin
Stop
Stop
synchronic command.
Speed synchronic command is unavailable during
operation.
Operation
Stop
status.
Speed synchronic command is unavailable with M code on
Stop
Stop
synchronic command.
There is an error of synchronization ratio setting of speed
Stop
synchronic command
Delay time setting error
Stop
Stop
Stop
Operation
Operation
Operation
Stop
but busy.
Out-of speed override range error
Stop
Operation
Operation
Operation
9-115
Stop
Stop
Stop
Check whether main axis was without origin set at the time of
position synchronic command.
Check whether main axis of position synchronic command was not
set equally with command axis.
Check whether an axis was not
synchronic command.
Check whether an axis was not in no output status at the time of
speed synchronic command.
Check whether M code signal of an axis was not on at the time of
speed synchronic command.
Check whether the main axis of speed synchronic command was
not set equally with command axis.
Check whether the synchronization ratio of speed synchronic
command was not set between 0~10,000.
Check whether delay time was set between 1 ~ 10ms.
Check whether an axis did not stop at the time of position override
command.
Check whether an axis was not dwelling at the time of position
override command.
Check whether an axis was not operating by position control at the
time of position override command.
Check whether an axis was not in linear-interpolation operation at
the time of position override command.
Check whether an axis was not operating as a sub axis of
synchronic operation at the time of position override command.
Check whether an axis did not stop at the time of speed override
command.
Re-set the speed of speed override command equal to or lower
than the max speed set in the basic parameter.
Check whether an axis was not operating as a sub axis of linear
interpolation at the time of speed override command.
Check whether an axis was not operating as a sub axis of
synchronic operation at the time of speed override command.
Check whether an axis was not decelerating for stoppage at the
time of speed override command.
Check whether an axis did not stop at the time of positioning speed
override command.
Check whether an axis was not in speed control operation at the
time of positioning speed override.
Check whether the speed of positioning speed override command
was not equal to or lower than the max speed set in parameter.
386
Description
Positioning speed override command is unavailable to an
sub axis of linear interpolation operation.
Positioning speed override command is unavailable to an
sub axis of synchronic operation.
401
402
411
412
Operation
Operation
Operation
Stop
Operation
Stop
441
Countermeasures
Operation
Operation
operation.
442
Stop
451
Operation
452
Stop
command.
481
Stop
491
Stop
492
Stop
493
Stop
494
Stop
501
Stop
502
Stop
511
Stop
512
Stop
513
Stop
9-116
10-1
RS-232C I/F
Wiring
PC
Female Type
PC
Pin No.
XGB
Pin No.
Signal
485+
2(RXD)
485-
3(TXD)
GND
TXD
5(GND)
RXD
8
9
In case channel 2 is used, it is connected using the 485+ and 485- of 485 terminals.
10-2
PMU (LSIS)
XGB main unit
RS-485 I/F
RS-232C I/F
Wiring
PC
PC
PC
Pin No.
Signal
485+
2(RXD)
485-
3(TXD)
GND
TXD
5(GND)
RXD
Pin No.
Female Type
PMU
485+
485+
485-
485-
10-3
RS-232C I/F
RS-485 I/F
Wiring
XGB
1
2
3
4
5
Signal
1(485+)
485+
2(485-)
485-
3(GND)
GND
4(TXD)
TX
5(RXD)
RX
10-4
Station
number
Command
Command
type
Tail
(EOT)
Frame check
(BCC)
(2) ACK response frame (XGB main unit external communication device, when receiving data
normally) (max. 256 bytes)
Header
(ACK)
Station
number
Command
Command
type
Tail
(ETX)
Frame check
(BCC)
(3) NAK response frame (Cnet I/F module external communication device when receiving data
abnormally)(max. 256 bytes)
Header
(NAK)
Station
number
Command
Command
type
Tail
(ETX)
Frame check
(BCC)
Remark
1) The numerical data of all frames are ASCII codes equal to hexadecimal value, if theres no
clear statement.
The terms in hexadecimal are as follows.
Station No.
When the main command is R(r) or W (w) and the command type is numerical (means a data type)
All of the terms indicating size of all data in the Formatted data area.
Monitoring registration and command registration number of execution commands.
All contents of data
2) If it is hexadecimal, H is attached in front of the number of frames like H01, H12345, H34, H12,
and H89AB.
3) Available frame length is maximum 256 bytes.
4) Used control codes are as follows.
Codes
Hex value
Name
Contents
ENQ
H05
Enquire
ACK
H06
Acknowledge
NAK
H15
Not Acknowledge
EOT
H04
End of Text
ETX
H03
End Text
5) If the command is small letter (r), BCC value is added in check frame. The other side capital
letter (R), BCC value is not added in check frame.
10-5
Command
Formatted data
EOT
BCC
ACK
Station
No.
Command
Data or null
ETX
BCC
Error code
ETX
BCC
Station
No.
Command
4) List of commands
Classification
Main command
Code
Items
Reading
device
Writing
device
Individual
r(R)
Continuous
r(R)
Individual
w (W)
Continuous
w(W)
Command type
Treatment
Classification
SS
5353
SB
5342
SS
5353
SB
5342
Command
Main command
Register No.
Treatment
Item
Code
ASCII code
Register no.
Monitoring variable
register
x(X)
H78
(H58)
H00~H0F
Execution of
monitoring
y(Y)
H79
(H59)
H00~H0F
Remark
- XGB main unit identifies capitals or small letters for main commands, but not for the others.
10-6
Range
Size (Word)
Remark
P0 P127
128
Read/Write/Monitor available
M0 M255
256
Read/Write/Monitor available
K0 K255
256
Read/Write/Monitor available
F0 F255
256
Read/Monitor available
T0 T255
256
Read/Write/Monitor available
C0 C255
256
Read/Write/Monitor available
L0 L127
128
Read/Write/Monitor available
N0 N3935
1024
Read/Monitor available
D0 D5119
5120
Read/Write/Monitor available
X(58H)
%PX000,%MX000,%LX000,%KX000,%CX000,%TX000,%FX000 etc.
Byte
B(42H)
%PB000,%MB000,%LB000,%KB000,%CB000,%TB000,%FB000 etc.
Word
W(57H)
Dword
D(44H)
Lword
L(4CH)
%PW000,%MW000,%LW000,%KW000,%CW000,%TW000,%FW000,
%DW000,%SW000 etc.
%PD000,%MD000,%LD000,%KD000,%CD000,%TD000,
%FD000,%DD000,%SD000 etc.
%PL000,%ML000,%LL000,%KL000,%CL000,%TL000,
%FL000,%DL000,%SL000 etc.
Remark
1) Timer/Counter used in bit command means contact point values. (word command means
current values.)
2) Data register (D) and Step relay (R) can uses only word or byte commands.
3) In byte type commands, address is doubled. For example, D1234 is addressed to %DW1234 in
word type, and is addressed to %DB2468 in byte type.
10-7
Header
Station
No.
Command
Command
type
Number of
blocks
Device
length
Device name
Tail
Frame check
......
ENQ
H20
R(r)
SS
H01
H06
%MW100
EOT
BCC
H05
H3230
H52(72)
H5353
H3031
H3036
H254D57313030
H04
Description
When command is lowercase(r), only one lower byte of the value resulted by adding
1 Byte each to ASCII values from ENQ to EOT is converted into ASCII and added to
BCC
BCC. For example, the BCC of the above frame is gotten as below:
H05+H32+H30+H72+H53+H53+H30+H31+H30+H36+H25+H4D+H57+H31+H30+H3
0+H04 = H03A4 Therefore BCC value is A4.
Number of
Blocks
This specifies how much of the blocks composed of "[device length][device name]"
are in this request format. This can be set up to 16. Therefore, the value of [Number
of blocks] must be set between H01(ASCII value:3031)-H10(ASCII value:3030).
Device
This indicates the number of name's characters that means device, which is
length
allowable up to 16 characters. This value is one of ASCII converted from hex type,
(Length of
device
example, if the device name is %MW0, it has 4 characters to be H04 as its length.
name)
Device
name
Remark
H of example frame represents hex value, and is unnecessary during preparing real frame.
10-8
Number of Number of
blocks
data
H02
H20
R(r)
SS
H01
H3230
H52(72)
H5353
H3031
data
......
HA9F3
Tail
ETX
H3032 H41394633
Frame
check
BCC
H04
Description
BCC
When command is lowercase(r), only one lower byte of the value resulted by
adding 1 Byte each to ASCII values from ACK to ETX is converted into ASCII and
added to BCC, and sent.
Number of data means byte number of hex type, and is converted into ASCII. This
number is determined according to data type(X,B,W) included in device name of
computer request Format.
Number of
data
Data
Available variable
Number of data
%(P,M,L,K,F,T,C)X
Byte(B)
%(P,M,L,K,F,T,C,D,S)B
Word(W)
%(P,M,L,K,F,T,C,D,S)W
In data area, there are the values of hex data converted to ASCII code saved.
Ex.1
The fact that number of data is H04(ASCII code value:H3034) means that there is hex data of 4
bytes in data .
Hex data of 4 bytes is converted into ASCII code in data.
Ex.2
If number of data is H04 and the data is H12345678, ASCII code converted value of this is "31 32
33 34 35 36 37 38," and this contents is entered in data area. Name directly, highest value is
entered first, lowest value last.
Remark
If data type is Bit, data read is indicated by bytes of hex. Namely, if Bit value is 0, it indicated by H00, and
if 1, by H01.
10-9
Format
Command
Error code
type
(Hex 2 Byte)
R(r)
SS
H52(72)
H5353
Header
Station No.
Command
Ex. of frame
NAK
H20
ASCII value
H15
H3230
name
Item
BCC
Error code
Tail
Frame check
H1132
ETX
BCC
H31313332
H03
Explanation
When command is lowercase(r), only one lower byte of the value resulted by adding 1 Byte each to
ASCII values from NAK to ETX is converted into ASCII and added to BCC.
Hex and 2 bytes(ASCII code, 4 bytes) indicate error type. Refer to 10.1.4 XGT dedicated
communication error codes and countermeasures.
(5) Example
This example supposes when 1 WORD from M20 and 1 WORD from P001 address of station No.1
are read and BCC value is checked. Also it is supposed that H1234 is entered in M20, and data of
H5678 is entered in P001.
PC request format (PC XGB main unit)
Format name
Header
Ex. of frame
ENQ
H01
ASCII value
H05
H3031
Command Number of
Variable
Format
Device
type
blocks
length
name
length
SS
H02
H05
%MW20
H06
H72
H5353
H3032
H3035
H254D57
3230
H3036
Frame
Format name
Tail
%PW001
EOT
BCC
H04
H25505730
3031
check
For ACK response after execution of command (PC XGB main unit)
Format name
Header
Ex. of frame
ACK
H01
ASCII value
H06
H3031
blocks
data
SS
H02
H02
H52(72)
H5353
H3032
H3032
10-10
Data
H1234
Number of
data
H02
Data
Tail
H5678
ETX
Frame
check
BCC
-
For NAK response after execution of command (PC XGB main unit)
Format
name
Header
Station No.
Ex. of frame
NAK
H01
ASCII value
H15
H3031
H52(72)
Error code
Tail
Frame check
SS
ETX
BCC
H5353
H03
ENQ
Station
No.
H10
H05
H3130
Header
R(r)
Command
type
SB
Device
length
H06
H52(72)
H5342
H3036
Command
Device
%MW100
H254D573
13030
Number of data
(Max. 128 Bytes)
H05
EOT
Frame
check
BCC
H3035
H04
Tail
Remark
1) Number of data specifies the number to read according to the type of data. Namely, if the
data type of device is word and number is 5, it means that 5 words should be read.
2) Max. of %MW in number of data can be used up to 120(240bytes).
3) Protocol of RSB doesn't have number of blocks.
4) R(r)SB command of bit devices is not available.
Item
Description
When command is lowercase(r), only one lower byte of the value resulted by
BCC
adding 1 Byte each to ASCII values from ENQ to EOT is converted into
ASCII and added to BCC.
Device length
(Length of
device name)
This indicates the number of name's characters that means device, which is
allowable up to 16 characters. This value is one of ASCII converted from hex
type, and the range is from H01(ASCII value:3031) to H10(ASCII
value:3130).
Address to be actually read is entered. This must be ASCII value within 16
Device name
characters, and in this name, digits, upper/lowercase, and '%' only are
allowable to be entered.
10-11
Format name
Header
Ex. of frame
ACK
H10
ASCII value
H06
H3130
No.
Command
Number of
Number of
type
blocks
data
R(r)
SB
H01
H52(72)
H5342
H3031
Command
Item
Frame
data
Tail
H02
H1122
EOT
BCC
H3134
H31313232
H03
check
Description
It means byte number of hex type, and is converted into ASCII.
Data type
BYTE(B)
WORD(W)
DWord(D)
LWord(L)
Number of data
Available device
%(P,M,L,K,F,T,C,D)B
%(P,M,L,K,F,T,C,D)W
%(P,M,L,K,F,T,C,D)D
%(P,M,L,K,F,T,C,D)L
Ex.1
When memory type included in variable name of computer request Format is W(Word), and
data number of computer request Format is 03, data number of PLC ACK response after
execution of command is indicated by H06(2*03 = 06 bytes)Byte and ASCII code value 3036 is
entered in data area.
Ex.2
In just above example, when data contents of 3 words are 1234, 5678, and 9ABC in order,
actual ASCII code converted values are 31323334 35363738 39414243, and the contents are
entered in data area.
Format name
Header
Station No.
Command
Command type
Number of blocks
Ex. of frame
NAK
H10
R(r)
SB
H1132
ETX
BCC
ASCII value
H15
H3130
H52(72)
H5342
H31313332
H03
Item
BCC
Error code
data
data
Description
When command is lowercase(r), only one lower byte of the value resulted by
adding 1 Byte each to ASCII values from NAK to ETX is converted into ASCII and
added to BCC, and sent.
Hex and 2 bytes (ASCII code, 4 bytes) indicate error type. For the details, Refer to
10.1.4 XGT dedicated communication error codes and countermeasures.
10-12
Command
Command type
Device length
Device name
Number of data
Tail
Frame check
No.
Frame (Example)
ENQ
H0A
R(r)
SB
H06
%MW000
H02
EOT
BCC
ASCII value
H05
H3041
H52(72)
H5342
H3036
H254D3030
30
H3032
H04
For ACK response after execution of command (PC XGB main unit)
Station
Format name Header
Command
Command type
Number of data
Data
Tail
Frame check
No.
Frame (Example)
ACK
H0A
R(r)
SB
H04
12345678
ETX
BCC
ASCII value
H06
H3041
H52(72)
H5342
H3034
H3132333435363738
03
For NAK response after execution of command (PC XGB main unit)
Format name
Header
Station No
Command
Command type
Error code
Tail
BCC
Frame (Example)
NAK
H0A
R(r)
SB
ETX
BCC
ASCII value
H15
H3041
H52(72)
H5342
H03
10-13
Frame
Device
blocks
Length
Frame (Example)
ENQ
H20
W(w)
SS
H01
H06
ASCII value
H05
H3230
H57(77)
H5353
H3031
H3036
.....
Tail
Device Name
Data
%MW100
H00E2
EOT
BCC
H30304532
H04
H254D573130
30
check
Description
BCC
When command is lowercase(r), only one lower byte of the value resulted by
adding 1 Byte each to ASCII values from ENQ to EOT is converted into ASCII
and added to BCC.
Number of
blocks
Device
Length
(Name length of
device)
device
Data
Ex.1
If type of data to be currently written is WORD, the data is H1234, ASCII code converted value of
this is "31323334" and this content must be entered in data area. Namely, most significant value
must be sent first, least significant value last.
Remark
1) Device data types of each block must be the same.
2) If data type is Bit, the data to be written is indicated by bytes of hex. Namely, if Bit value is 0, it must be
indicated by H00(3030), and if 1, by H01(3031).
10-14
Header
Station No.
Command
Command type
Tail
Frame check
Frame (Example)
ACK
H20
W(w)
SS
ETX
BCC
ASCII value
H06
H3230
H57(77)
H5353
H03
Item
Description
BCC
When command is lowercase(r), only one lower byte of the value resulted by adding
1 Byte each to ASCII values from ACK to ETX is converted into ASCII and added to
BCC, and sent.
Header
Station No.
Command
Command type
Error code
(Hex 2 Byte)
Tail
Frame check
Frame (Example)
NAK
H20
W(w)
SS
H4252
ETX
BCC
ASCII value
H15
H3230
H57(77)
H5353
H34323532
H03
Item
BCC
Error code
Description
When command is lowercase(r), only one lower byte of the value resulted by adding
1 Byte each to ASCII values from NAK to ETX is converted into ASCII and added to
BCC, and sent.
Hex and 2 bytes(ASCII code, 4 bytes) indicate error type. For the details, Refer to
10.1.4 XGT dedicated communication error codes and countermeasures.
(5) Example
This example supposes that "HFF" is written in M230 of station No. 1.
PC request format (PC XGB main unit)
Format name Header
Station
No.
H05
Command
Command Number
Device
type
of blocks
Length
Device Name
Data
Tail
Frame
check
H01
W(w)
SS
H01
H06
%MW230
H00FF
EOT
BCC
H3031
H57(77)
H5353
H3031
H3036
H254D573233
30
H30304646
H04
For ACK response after execution of command (PC XGB main unit)
Format name
Header
Station No.
Command
Command type
Tail
Frame check
Frame (Example)
ACK
H01
W(w)
SS
ETX
BCC
ASCII value
H06
H3031
H57(77)
H5353
H03
For NAK response after execution of command (PC XGB main unit)
Format name
Header
Frame (Example)
NAK
H01
ASCII value
H15
H3031
Command type
Tail
Tail
Format name
W(w)
SS
ETX
BCC
H57(77)
H5353
H03
10-15
Header
Station
No.
Command
Comma
nd type
Device
Length
Device
Number of data
(Max.128 Byte)
Data
Tail
Frame
check
ENQ
H10
W(w)
SB
H06
%MW100
H02
H11112222
EOT
BCC
H05
H3130
H254D57313
030
H3032
H3131313132
323232
H04
Frame
(Example)
ASCII
value
Remark
1) Number of data specifies the number according to the type of device. Namely, if the data type
of device is WORD, and number of data is 5, it means that 5 WORDs should be written.
2) Number of data can be used up to 240Bytes(120 Words).
Item
Description
When command is lowercase(r), only one lower byte of the value resulted by
BCC
adding 1 Byte each to ASCII values from ENQ to EOT is converted into ASCII and
added to BCC.
Device
This indicates the number of name's characters that means device, which is
Length
(Name length of
variable)
device
allowable up to 16 characters. This value is one of ASCII converted from hex type,
and the range is from H01(ASCII value:3031) to H10(ASCII value:3130).
Address to be actually read. This must be ASCII value within 16 characters, and in
this name, digits, upper/lower case, and '%' only are allowable to be entered.
Header
Station No.
Command
Command type
Tail
Frame check
Frame (Example)
ACK
H10
W(w)
SB
ETX
BCC
ASCII value
H06
H3130
H57(77)
H5342
H03
Item
Description
When command is lowercase(r), only one lower byte of the value resulted by adding 1
BCC
Byte each to ASCII values from ACK to ETX is converted into ASCII and added to
BCC, and sent.
10-16
Header
Station No.
Command
Command type
Frame (Example)
ENQ
H10
W(w)
SB
ASCII value
H05
H3130
H57(77)
H5342
Item
Error code
Tail
Frame check
H1132
EOT
BCC
H31313332
H03
(Hex 2 Byte)
Description
When command is lowercase(r), only one lower byte of the value resulted by adding
BCC
1 Byte each to ASCII values from NAK to ETX is converted into ASCII and added to
BCC, and sent.
Error code
Hex and 2 bytes(ASCII code, 4 bytes) indicate error type. For the details, Refer to
10.1.4 XGT dedicated communication error codes and countermeasures.
(5) Example
This example supposes that 2 byte HAA15 is written in D000 of station No. 1.
PC request format (PC XGB main unit)
Station
No.
ENQ
H01
Command
W(w)
Comman
Device
d type
Length
SB
H06
H5342
H3036
Number of
Device
Data
Tail
Frame check
H01
HAA15
EOT
BCC
H3031
H41413135
H04
data
%DW000
(Example)
ASCII value
H05
H3031 H57(77)
H2544573030
30
For ACK response after execution of command (PC XGB main unit)
Format name
Header
Station No.
Command
Command type
Tail
Frame check
Frame (Example)
ACK
H01
W(w)
SB
ETX
BCC
ASCII value
H06
H3031
H57(77)
H5342
H03
For NAK response after execution of command (PC XGB main unit)
Format name
Header
Station No.
Command
Command type
Tail
Frame check
Format name
Frame (Example)
NAK
01
W(w)
SB
ETX
BCC
ASCII value
H15
H3031
H57(77)
H5342
H03
10-17
Head
er
Station
No.
Comma
nd
Registration
No.
Registration format
Tail
Frame
check
Frame
(Example)
ENQ
H10
X(x)
H09
Refer to
registration format
EOT
BCC
ASCII value
H05
H3130
H58(78)
H3039
Refer to *1
H04
Item
Description
When command is lowercase(x), only one lower byte of the value resulted by
BCC
adding 1 byte each to ASCII values from ENQ to EOT is converted into ASCII,
added to BCC.
Register No.
Register
Format
*1: Register Format of request Formats must select and use only one of the followings.
Individual reading of device
RSS
...
Number of data
Header
Station No.
Command
Command type
Tail
Frame check
Frame (Example)
ACK
H10
X(x)
H09
ETX
BCC
ASCII value
H06
H3130
H58(78)
H3039
H03
Item
Description
BCC
When command is lowercase(r), only one lower byte of the value resulted by
adding 1 Byte each to ASCII values from ACK to ETX is converted into ASCII and
added to BCC, and sent.
10-18
Header
Station No.
Command
Registration No.
Error code
(Hex 2Byte)
Tail
Frame
check
Frame (Example)
ACK
H10
X(x)
H09
H1132
ETX
BCC
ASCII value
H06
H3130
H58(78)
H3039
H31313332
H03
Item
Description
When command is one of lower case(r), only one lower byte of the value resulted
BCC
by adding 1 Byte each to ASCII values from NAK to ETX is converted into ASCII
and added to BCC, and sent.
Hex and 2 bytes (ASCII code, 4 bytes) indicate error type. For the details, Refer to
Error code
Format name
Header
Frame (Example)
ENQ
ASCII value
Station
No.
H01
Registration Format
Registration
Command
No.
X(x)
R##
H01
H3031
Number of
blocks Device length
RSS
H01
Device name
H06
H525353 H3031
H3036
%MW000
Tail
Frame
check
EOT BCC
H255457303030 H04
Header
Frame (Example)
ACK
H01
ASCII value
H06
H3031
Registration No.
Tail
Frame check
X(x)
H01
ETX
BCC
H58(78)
H3031
H03
Format name
Header
Frame (Example)
NAK
H01
X(x)
ASCII value
H15
H3031
H58(78)
Registration No.
Tail
Frame check
H01
Error code(2)
ETX
BCC
H3031
Error code(4)
H03
10-19
Header
Station No.
Command
Registration No.
Tail
Frame check
Frame (Example)
ENQ
H10
Y(y)
H09
EOT
BCC
ASCII value
H05
H3130
H59(79)
H3039
H03
Item
Description
Register
Register No. uses the same number registered during monitor register for monitor
No.
BCC
adding 1 byte each to ASCII values from ENQ to EOT is converted into ASCII,
added to BCC.
Format name
Header
Station
No.
Command
Frame (Example)
ACK
H10
Y(y)
H09
H01
ASCII value
H06
H3130
H59(79)
H3039
H3031
Data
Tail
Frame check
H02
H9183
ETX
BCC
H3032
H39313833
H03
In case that the register Format of register No. is the continuous reading of device
Registration
Number of data
No.
Format name
Frame (Example)
ACK
H10
Y(y)
H09
ASCII value
H06
H3130
H59(79)
H3039
Data
Tail
Frame check
H04
H9183AABB
ETX
BCC
H3034
H3931383341414242
H03
Header
Station
No.
Command
Registration
No.
Error code
(Hex 2Byte)
Tail
Frame check
Frame (Example)
NAK
H10
Y(y)
H09
H1132
ETX
BCC
ASCII value
H15
H3130
H59(79)
H3039
H31313332
H03
Item
Description
When command is lowercase(y), only one lower byte of the value resulted by
BCC
adding 1 Byte each to ASCII values from NAK to ETX is converted into ASCII and
added to BCC, and sent.
Error code
Hex and 2 bytes (ASCII code, 4 bytes) indicate error type. For the details, Refer to
10.1.4 XGT dedicated communication error codes and countermeasures.
10-20
Header
Station No.
Command
Registration No.
Tail
Frame check
Frame (Example)
ENQ
H01
Y(y)
H01
EOT
BCC
ASCII value
H05
H3031
H59(79)
H3031
H04
Header
No.
Frame (Example)
ACK
ASCII value
H06
H01
Y(y)
H3031 H59(79)
Number of
Blocks
Number of data
Data
Tail
Frame check
H2342
ETX
BCC
H01
H01
H02
H3031
H3031
H3032
H32333432 H03
Header
Station No.
Command
Registration No.
Error code
Tail
Frame check
Frame (Example)
NAK
H01
Y(y)
H01
Error code(2)
ETX
BCC
ASCII value
H15
H3031
H59(79)
H3031
Error code(4)
H03
10-21
Intra-company 1:N dedicated protocol communication (if using built-in RS-485 communication)
10-22
RXD1
PIN
No.
1
TXD1
TXD1
GND
GND
485+
485+
485-
485-
Signal
PIN
No.
Signal
RXD1
P2P Setting
High speed Link setting
10-23
communication
Connector
1
2
3
4
5
Description
Basic unit communication type is fixed as follows.
(CH 1 : RS-232C , CH 2 : RS-485)
Speed
Available from/to 1200, 2400, 4800, 9600, 19200, 38400, 57600 bps.
Data bit
Set to 7 or 8 bits.
Stop bit
Set to 1 or 2 bit(s).
(1 if parity bit is set or 2 if not)
Parity bit
Station No.
Delay time
Set the time from when this frame is sent to when the next frame is sent.
(0 ~ 255 in the unit of 10 )
Timeout
Set the time elapsed waiting for response after asking data.
(1~ 65535 in the unit of 100 )
10-24
Meaning
Remarks
Refer to
setting
Dedicated service
P2P
XGT server
(5) Upon the settings, save the above parameter and run Online Write Parameter.
For communication monitoring, use Online System Diagnosis.
Item
communication
Module info
Frame monitor
Service status
Description
Displays communication module information.
Monitors each frame currently used for communication.
Displays the current communication service status.
10-25
P2P
Dedicated service
Dedicated service
b) Frame Monitor
It displays each frame currently used for communication.
10-26
Item
Description
Base No.
Standard
information
Dedicated
service
information
Detailed
information
Slot No.
Remarks
-
Link type
Drive type
Port No.
Service
count
Error count
Status
10-27
Cnet / Enet
XGT dedicated client communication is a communication method demand types of data from each slave device
connected to master communication at a desirable time.
Double-clicking P2P Channel shows the following P2P driver setting window.
10-28
10-29
Item
Description
Remarks
1,2
Condition flag
Command
type
Single
Series
BIT
Byte
Data type
WORD
Dword
Lword
No. of variables
Data size
Destination station number
1 : 1Byte
2 : 2Byte
4 : 4Byte
8 : 8Byte
Unit: Byte
Memory Settings
Read area
Read area
If designating
READ
Save area
Address
Read area
If designating
WRITE
Save area
Address
Bit device
Upon the completion of settings for each block, save the above parameter and write parameters.
For communication monitoring, use Diagnosis System Diagnosisfunction.
10-30
10-31
XBM-DxxxS #1
Server
XBM-DxxxS #2
Server
XBM-DxxxS #3
Server
XBM-DxxxS #4
Server
10-32
(4) Set the communication parameter with each XGB basic unit(XGT dedicated server) in P2P Block.
10-33
Read
Read
Write
Read
Save
area
Remarks
F091
Single
P000
M0010
2 Byte
M0001
Single
P000
M0020
2 Byte
M0002
Single
P000
M0020
2 Byte
M0003
Single
P000
M0030
2 Byte
10-34
10-35
D) Slave Setting
Regarding Slave Stations, set the basic parameters only, write parameters(WRITE) and allows Enable Link,
completing the setting.
10-36
10-37
10-38
Error type
0003
Exceeding of block
number error
0004
0007
0011
Data error
Measure
01rSS113%MW10000000000
01rSB05%MW%4
If % is omitted.
01rSS0105$MW10
01rSS0105%MW^&
01wSS0105$MX1011
0090
0190
0290
Monitor registration
error
1132
1232
1234
1332
Data type discordance In case of single read and write, all block have to
01rSS0205%MW1005%MB10
error
request for identical data type..
1432
01wSS0105%MW10AA%5
7132
Requesting of
exceeding area of
variable
01rSS0108%MWFFFFF
10-39
01wSB05%MW1040AA5512
01rSS0105%MW10000
Header
Address
Function code
Data
LRC
Tail(CR/LF)
Size
1 byte
2 bytes
2 bytes
n bytes
2 bytes
2 bytes
2) RTU mode
A) It communicates, using hexadecimal data.
B) Theres no header and tail. It starts with address and finishes frame with CRC.
C) It has at least 3.5 character times between two frames.
D) It checks errors, using 16 bit CRC.
E) Frame structure (Hexadecimal data)
Item
Address
Function code
Data
CRC
Size
1 byte
1 bytes
n bytes
2 bytes
3) Address area
(1) Setting range is available from 1 to 247, but XGB supports from 0 to 63.
(2) Address 0 is used for broadcast address. Broadcast address is all slave device recognize and
respond to like the self-address, which can't be supported by XGB.
4) Function code area
(1) It divides the command using 0~225. XGB supports only 01, 02, 03, 04, 05, 06, 15, and 16
among function codes.
(2) If the response format is confirm+(ACK), it uses the same function code.
(3) If the response format is confirm-(NAK), it returns as it sets the 8th bit of function code as 1.
Ex.) If function code is 03
- We write here only function code part, because only function codes are different.
[Request]
0000 0011 (H03)
[Confirm+]
0000 0011 (H03)
[Confirm-]
1000 0011 (H83)
It returns as it sets the 8th bit of
function code of request frame.
10-40
Modicon PLC
Data address
Remark
01
0XXXX(bit-output)
Read bits
02
1XXXX(bit-input)
Read bits
03
4XXXX(word-output)
Read words
04
3XXXX(word-input)
Read words
05
0XXXX(bit-output)
Write bit
06
4XXXX(word-output)
Write word
15
0XXXX(bit-output)
Write bits
16
4XXXX(word-output)
Write words
10-41
1
2
3
4
XGB unit
Signal
Pin no.
Quantum (9 pin)
Pin no.
Signal
485+
CD
485-
RXD
GND
TXD
TXD
DTR
RXD
GND
DSR
RTS
CTS
9
Use RS-485+ and 485- of RS-485 terminal connector when using channel 2.
PMU
XGB unit
485+
485+
485-
485-
10-42
P2P setting
High speed Link setting
Communication parameter
10-43
C) communication setting
Set the following items at a users option for communication.
Item
Station No.
Description
Available from 0 to 63 as station number.
Speed
Available from/to 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200bps.
Data bit
Set to 7 or 8 bits.
(7 bits for ASCII mode or 8 bits for RTU mode.
Parity bit
Stop bit
Set to 1 or 2 bit(s).
Type
10-44
Meaning
P2P
XGT server
Remarks
Refer to P2P
setting
Dedicated service
-
E) Address mapping (address designation) when setting Modbus server (ASCII , RTU)
Clicking Modbus Setting shows the following address mapping window.
Modbus setting
Meaning
According to the above Modbus bus addressing rules, designate each XGB device (If designating
00000 as a function code 01 in Modbus master, it means that XGB series bit area is designated
as M0000; if designating 0000 as a function code, h10, it means that it designates XGB series
word D0020.)
10-45
Frame Monitor
It shows frames currently used for communication.
10-46
Station
No.
Function
code
Address
No. of Data
No. of Byte
Date
LRC
Tail
00
10
077F
0002
04
192B0000
A0
CR/LF
This frame is commanded to write(Function Code h10: continue to write output register) two
words data(4 bytes) in 07ff(2047) address of 00 station no. by Modbus ASCII Communication(if
4xxxx area is set as D0020 in the address mapping, the address actually written is D(0020 +
2047) = D2067, from which the data, D2067 = h192B, D2068 = h0000 is written.)
Server (Slave) Normal Response Frame
Header
Station No.
Function code
Address
No. of Data
LRC
Tail
00
10
077F
0002
A0
CR/LF
The response is that 2 words data (4 bytes) are written to 07ff (2047) of #00 by Modbus ASCII
Communication.
Server(Slave) Abnormal Response Frame
Header
:
Station No.
00
Function code
90
Error code
*1
xx
*2
LRC
Tail
xx
CR/LF
In case of an error, set the function code MSB as 1 and respond the error code.
*1 function code : 0001 0000 = h10, if error occurs: 1001 0000 = h90
*2 for details of error codes, refer to Error Code.
10-47
B) communication Setting
Set the following items at a users option for communication.
Item
Station No.
Description
Available from 1 to 63.
Speed
Available from/to 1200, 2400, 4800, 9600, 19200, 38400, 57600 bps.
Data bit
Set to 7 or 8.
(7 bits for ASCII mode or 8 bits for RTU mode.)
Parity bit
Stop bit
Type
Set to 1 or 2 bit(s).
(1 with parity bit or 2 without parity bit.)
Basic unit built-in communication channel is fixed as follows.
(CH 1 : RS-232C , CH 2 : RS-485)
10-48
Double-clicking P2P Channel shows the following P2P driver setting window.
10-49
10-50
Item
Description
Remarks
1,2
Condition flag
Command
Built in Basic
unit
Bit device
Single
Continuous
BIT
Data type
WORD
No. of variables
Data size
Destination station number
Unit: Byte
-
Memory settings
If
designating
READ
Read area
Save area
Address
If
designating
WRITE
Read area
Save area
Address
Auto allocation
Auto allocation
Upon the completion of settings for each block, save the above parameter and write parameters.
Once downloading is complete, reset communication module or turn off/on PLC to apply the set
communication parameter. For communication monitoring, use Diagnosis System
Diagnosis function.
For details of communication monitor function, refer to the examples, 10.1.1 Built-in dedicated
communication.
10-51
SMART I/O #1
SMART I/O #2
SMART I/O #3
SMART I/O #4
SMART I/O #5
Input 32
Input 16
Output 16
Input 32
Output 32
Communication uses RS-485 (using CH2) communication Channel built in XGB basic unit.
B) Communication Operation
It is assumed that the above-structured system operates as follows.
Read 32 point input data of Smart I/O #1 at every 200ms and save it to M10.
If P04 #1 Bit is set, it reads 16 point input of Smart I/O #2 and saves it into M20.
If M10 #2 Bit is set, it outputs 1word of M11 to Smart I/O #3.
If P04 #2 Bit is set, it reads 32 input of Smart I/O #4 and saves into MW30.
If P04 #3 Bit is set, it outputs 2 words of M20 to Smart I/O #5.
C) Parameter Setting
(1) Open a new file in XG5000.
(2) Selecting XG-PD, set the communication basic parameters as follows.
10-52
(4) Set communication parameter with each SMART I/O inP2P Block.
10-53
Save
area
Read
F092
Series
Word
0x30000
M0010
Read
P0041
Single
Word
0x30000
M0020
Write
M0102
Single
Word
M0011
0x40000
Read
P0042
Series
Word
0x30000
M0030
Write
P0043
Series
Word
M040
0x40000
Remark
SMART
I/O #1
SMART
I/O #2
SMART
I/O #3
SMART
I/O #4
SMART
I/O #5
Function Code
Address
No. of Data
CRC
01
04
0000
0002
71CB
The frame is commanded to read 2words(4 bytes) in 0000 address of #01 by Modbus RTU
Communication(Function Code h04: read input register).
Server(Slave) Normal Response Frame
Station No.
Function Code
No. of Bytes
Data
CRC
01
04
04
12345678
xxxx
10-54
Function Code
Error Code
LRC
01
84 *1
xx *2
xx
In case of an error, set the function code MSB as 1 and respond the error code.
*1 function code : 0000 0100 = h04, if error occurs : 1000 0100 = h84
*2 for details of error codes, refer to Error Code.
b) SMART I/O #2 Setting Window
Function Code
Address
No. of Data
CRC
02
04
0000
0001
xxxxx
The frame is commanded to read 1 word(4 bytes) in 0000 address of #2 by Modbus RTU
communication(Function Code h04: read input register).
Server(Slave) Normal Response Frame
Station No.
Function Code
No. of Bytes
Data
CRC
02
04
02
1234
xxxx
Function Code
84
*1
Error Code
xx
*2
LRC
xx
In case of an error, set the function code MSB as 1 and respond the error code.
*1 function code : 0000 0100 = h04, if error occurs: 1000 0100 = h84
*2 for details of error codes, refer to Error Code.
10-55
Function Code
Address
Data
CRC
03
06
0000
1234
xxxx
The frame is commanded to write 1 word(2bytes: h1234) in 0000 address of #3 by Modbus RTU
Communication(Function Code h06: write 1 word output register).
Server(Slave) Normal Response Frame
Station No.
Function Code
Address
Data
CRC
03
06
0000
1234
xxxx
The response is that 2 bytes data(h1234) of 0000 address is written to #01 by Modbus RTU
Communication.
Server(Slave) Abnormal Response Frame
Station No.
Function Code
Error Code
LRC
03
86 *1
xx *2
xx
In case of an error, set the function code MSB as 1 and respond the error code
*1 function code : 0000 0110 = h06, if error occurs : 1000 0110 = h86
*2 for details of error code, refer to Error Code.
10-56
Function Code
Address
No. of Data
CRC
04
04
0000
0002
xxxx
This frame is commanded to read 1 word(4bytes) in 0000 address of #02 by Modbus RTU
Communications(Function Code h04 : read input register).
Server(Slave) Normal Response Frame
Station No.
Function Code
No. of Bytes
Data
CRC
04
04
02
1234
xxxx
The response is that 2 bytes data(h1234) of 0000 address is read to #01 by Modbus RTU
Communications.
Server(Slave) Abnormal Response Fram
Station No.
Function Code
Error Code
LRC
04
84 *1
xx *2
Xx
In case of an error, set the function code MSB as 1 and respond the error code
*1 function code : 0000 0100 = h04, if error occurs: 1000 0100 = h84
*2 for details of error code, refer to Error Code.
10-57
Function Code
Address
No. of Data
No. of Bytes
Data
CRC
05
10
0000
0002
04
12345678
xxxx
The frame is commanded to write 2 words(4 bytes) data(h12345678) to 0000 address of #05 by
Modbus RTU Communication(Function code h10: continue to write output register)
Server(Slave) Normal Response Frame
Station No.
Function Code
Address
No. of Data
CRC
05
10
0000
0002
xxxx
The response is that 2 words data(h12345678) of 0000 address is normally written to #01 by
Modbus RTU Communication.
Server(Slave) Abnormal Response Frame
Station No.
05
Function Code
90
*1
Error Code
xx
*2
LRC
xx
In case of an error, set the function code MSB as 1 and respond the error code.
*1 function code : 0001 0000 = h10, if error occurs : 1001 0000 = h90
*2 for details of error codes, refer to Error Code.
10-58
Once P2P parameter setting is complete, connect to the system by using XG-PD Online
Connectmenu and download the set parameters by using Write Parameter menu..
10-59
10-60
10-61
Slot no.
Link type
Link information
Description
Display base number (XGB has 0 as its base)
Display a location of communication module slot
(built-in communication is 0)
Display communication Module type (Cnet / Enet).
Display the station number and communication type for
each channel.
Hardware/Software
information
g) Frame Monitor
Display each frame currently used for communication.
10-62
Base no.
Slot no.
Link type
Detailed
information
Description
Block number
Port number
Status
Service count
Error count
Name
Description
01
Illegal Function
02
Illegal Address
03
10-63
10-64
P2P Setting
High speed Link setting
Module setting (Cnet, Enet)
Communication parameter
setting mode
10-65
Description
Station No.
Speed
Available from/to 1200, 2400, 4800, 9600, 19200, 38400, 57600 bps.
Data bit
Set to 7 or 8 bits.
(7 bits for ASCII mode or 8 bits for RTU mode.
Parity bit
Stop bit
Type
Delay time
Set to 1 or 2 bit(s).
(1 with parity bit or 2 without parity bit.)
Basic unit built-in Communication channel is fixed as follows.
(CH 1 : RS-232C , CH 2 : RS-485)
Set the interval of communication frame (0 ~ 255 in the unit of 10 ).
10-66
10-67
It describes the procedure and method of how to create a user-defined transmission frame for the
communication with the following frame.
Item
Header
Frame
h05
Setting
Size
Body
00
wSB 06%MW100
Tail
04
10-68
Variable size
variable
h04
BCC
Hex To ASCII
conversion
Byte Checksum
ASCII
conversion(Body)
Transmission
condition setting
To show editing menus, click the right mouse button on the frame.
Item
Edit Group
Delete Group
Add Frame
Description
Edit user frame group.
Delete user frame group.
Add user frame.
10-69
To show HEAD frame registration window, double click it with cursor placed on the right window.
Numeric
constant
String
constant
Data
Description
Remark
Set data.
numbers
-
The following window shows the status that HEAD setting is complete.
10-70
or
characters
Double-clicking on the right window opens the below Add Segment window, in which a string
constant, 00 is set.
10-71
Type
Numeric constant
Description
Set a numeric
constant.
String constant
Variable Conversion
size
variables
Swap
Data
Remarks
According to the above method, set the string constants, wSB, 06%MW100 and 04.
10-72
Group
Frame
10-73
Item
Type
Numeric
constant
String
constant
Data
Description
Remarks
Set BCC(to show the following window, click the right mouse button in the frame setting window).
10-74
Method
Item
Description
BYTE SUM
WORD SUM
BYTE XOR
DLE AB
DLE SIEMENS
LSIS CRC
BYTE SUM 2S
CMP
CRC 16
BYTE SUM 1S
CMP
7BIT SUM
Sum up bytes and attach the value taking the only 7 bits.
7BIT XOR
Execute Exclusive OR of each byte and attach the value taking the only 7 bits.
Start
position
HEAD
BODY
TAIL
End
position
Before
BCC
End of
area
Settings
ASCII Conversion
BCC Check is a method in which, in order to transmit and receive accurate frame, values are
calculated in accordance with the defined method, the calculated values, in turn, inserted into a
designated place and transmitted while it is checked at the receiver whether to determine if correct
and normal data are received in order that the only correct data would be received. It sends data with
2bytes inserted to the designated place of frame (designated BCC segment).
10-75
Once SEND group is set, SEND Command conditions are to be readily designated in P2P block.
10-76
Variable
Frame
Read area
Size
Address
Description
Remark
10-77
Body
00
wSB
Numeric String
String
constant constant constant
Tail
06%MW100
04
String
constant
String
constant
Variable size
variable
(h1234)
Hex To ASCII
conversion
0x04
BCC
Numeric
constant
Byte Checksum
ASCII conversion
BCC method: byte: SUM , start position : HEAD segment 0 , stop position : just before BCC
05 + 30 + 30 + 77 + 53 + 42 + 30 + 36 + 25 + 4D + 57 + 31 + 30 + 30 + 30 + 34 + 31 + 32 + 33 +
34 + 04 = 463 (36 33)
The following describes the procedure and method of creating user-defined receive frame.
Item
Header
Frame
h05
Setting
Numeric
constant
Byte
00
Body
wSB
String
String
constant constant
2
06%MW100
String
constant
Hex To ASCII
conversion
10-78
Tail
BCC
Byte Checksum
ASCII
conversion
2
10-79
10-80
10-81
10-82
Set BCC segment(clicking the right mouse button in segment setting window shows the following
window).
10-83
Group
Frame
Segment setting
Once RECEIVE Group setting is completed, it is to designate RECEIVE condition in P2P block.
10-84
Item
Channel
Frame
Variable
Save
area
Address
Description
Designate Communication channel.
Designate RECEIVE Group
Designate internal device to receive.
Display network device allocation.
Remarks
Group already registered as RECEIVE
Group
Available only when variable size
variables are set in the BODY segment
of RECEIVE group.
10-85
XG5000
RS-485
2) It exemplifies the remote access to #01.
Execute Online->Connection Settings of XG5000.
10-86
Description
Type
Depth
Timeout interval
Retrial times
Setting Port number and Baud rate of the locally connected RS-232C, click Remote 1.
10-87
Item
Description
Network type
Local
communication
module
Remote 1
communiction
module
Base number
Slot number
Station number
IP address
Cnet channel
10-88
Upon the Connect, XG5000 operates as if XG5000 is locally connected to #1 although it is physically
connected to #0.
#0
#1
#2
Physical access
XG5000
RS-485
Actual access
If running program read, it starts reading the program of #1.
10-89
#3
#4
XG5000
#5
#1
RS-485
RS-232C
#6
2) It exemplifies the remote Connect to #01.
Execute Online->Connection Settings of XG5000.
10-90
General
Read/Write
data size in
PLC run
mode
Description
Type
Depth
Time out
duration
Retrial times
Normal
Maximum
Setting communication port number and Baud rate of the locally connected RS-232C, click Remote 1.
10-91
Item
Description
Network type
Local
communication
module
Remote 1
communication
module
Base number
Slot number
Station number
IP address
Cnet channel
10-92
Upon the connect, XG5000 operates as if XG5000 is locally connected to #6 although it is physically
connected to #0.
Physical access
XG5000
#2
#0
RS-485
#5
#1
RS-232C
Actual access
#6
If running program read, it starts reading the program of #6.
10-93
#3
#4
11-1
Specifications
No. of loops
Scope of
setting
PID
constants
Proportional
constant(P)
16 Loop
Real number (0 ~ 3.40282347e+38)
Integral constant(I)
Differential
constant(D)
INT(-32,768 ~ 32,767)
INT(-32,768 ~ 32,767)
INT(-32,768 ~ 32,767)
INT(-32,768 ~ 32,767)
RUN/STOP
Indication
Error
Warning
Control operation
Control interval
Additional
functions
PWM output
Mixed forward/reverse
output
Limiting change of
present value
Limiting change of
maneuver value
Equally dividing set
value
Present value followup
Cascade control
Min./max. present
value
Differential filter
Dead band setting
Prevention of dual
integral accumulation
PID operation pause
11-2
To use the built-in PID control function of XGB series, it is necessary to set PID control parameters by
loops in the parameter window and operate it though the commands. Here, it explains parameters to
use PID control functions and how to set them.
11-3
Description
Scope
Auto/manual
operation
Forward/reverse
Disabled/enabled
Disabled/enabled
100 ~ 65535
-32,768 ~ 32,767
Real number
Real number
Real number
-32,768 ~ 32,767
-32,768 ~ 32,767
-32,768 ~ 32,767
-32,768 ~ 32,767
Manual maneuver
value
-32,768 ~ 32,767
DeadBand setting
0 ~ 65,535
0 ~ 65,535
P20 ~ P3F
100 ~ 65,535
0 ~ 65,535
0 ~ 65,535
-32,768 ~ 32,767
-32,768 ~ 32,767
11-4
MVd = K P Td
dE
shows that the integral control among PID control output components
dt
accumulates errors as time goes on, from which it may take more time to return the normal status
after the actuator is saturated in a system of which response characteristically is slow. It is so
called integral accumulation phenomenon as illustrated in Fig. 11.9, which shows that if the initial
error is very large, the error is continuously accumulated by integral control. Accordingly, a drive
is saturated within its output upper limit while the control signal is getting larger, keeping being
saturated for a long while until the drift becomes negative and the integral term turns small
enough. Due to the operation, the PV may have a large over-shoot as seen in the figure. Such a
wind-up phenomenon may occur if the initial drift is large or by a large disturbance or due to
malfunction of a device.
The PID function of XGB series is basically with the integral accumulation prevention function,
cutting off any integral accumulation phenomenon. In addition, it can detect a time when SV is
suddenly decreased, providing a more strong dual integral accumulation prevention function.
Drive saturation
PV
Target
value
Integral accumulation phenomenon
MV
11-5
Time
Output
0 sec
5000
1 sec
3000
MV = 5000
0.5sec
MV = 7000
0.5sec
0.3sec
0.7sec
P20 output
Time
DeadBand
PV
Target
value
11-7
If SV Ramp is used
SV * operation cycle
Existing SV
Time
11-8
Common
K area
Data
type
Default
Description
K12000~F
_PID_MAN
Bit
Auto
PID
output
1:manual)
K12010~F
_PID_PAUSE
Bit
RUN
K12020~F
_PID_REV
Bit
Forward
K12030~F
_PID_AW2D
Bit
Disabled
K12040~F
_PID_REM_RUN
Bit
Disabled
WORD
K1205~K1207
Reserved
designation(0:auto,
Control
direction(0:forward,
1:reverse) operation control
Dual
integral
accumulation
prevention(0:enabled, 1:disabled)
PID remote operation(0:disabled,
1:enabled)
Reserved
PWM output enable(0:disabled,
1:enabled)
PID operation indication(0:stop,
1:run)
K12080~F
_PID_PWM_EN
Bit
Disabled
K12090~F
_PID_STD
Bit
K12100~F
_PID_ALARM
Bit
K12110~F
_PID_ERROR
Bit
WORD
Reserved
PID SV
K1212~K1215
Loop 0
Symbol
Reserved
K1216
_PID00_SV
INT
K1217
_PID00_T_s
WORD
100
K1218
_PID00_K_p
REAL
K1220
_PID00_T_i
REAL
K1222
_PID00_T_d
REAL
K1224
_PID00_d_PV_max
WORD
K1225
_PID00_d_MV_max
WORD
K1226
_PID00_MV_max
INT
4000
K1227
_PID00_MV_min
INT
K1228
_PID00_MV_man
INT
K1229
_PID00_PV
INT
PID PV
11-9
Loop
K area
Loop 0
Symbol
Default
Description
K1230
_PID00_PV_old
INT
K1231
_PID00_MV
INT
PID MV
K1232
_PID00_ERR
DINT
K1234
_PID00_MV_p
REAL
PID
MV
component
K1236
_PID00_Mv_i
REAL
K1238
_PID00_MV_d
REAL
PID
MV
component
K1240
_PID00_DB_W
WORD
K1241
_PID00_Td_lag
WORD
K1242
_PID00_PWM
WORD
H20
K1243
_PID00_PWM_Prd
WORD
100
K1244
_PID00_SV_RAMP
WORD
K1245
_PID00_PV_Track
WORD
K1246
_PID00_PV_MIN
INT
K1247
_PID00_PV_MAX
INT
4000
K1248
_PID00_ALM_CODE
Word
K1249
_PID00_ERR_CODE
Word
K1250
_PID00_CUR_SV
INT
WORD
Reserved
K1251-1255
Loop 1
Data
type
K1256~K1295
Reserved
1
proportional
differential
value
control
~
Loop16
K1816~K1855
address
Unit
Setting
_PID_MAN
(PID RUN mode setting)
K1200n
BIT
Available
It determines whether to operate the PID control of n loop automatically or manually. For more
information about RUN mode, refer to 11.2.2 PID control parameter setting. If the bit is off, it
operates automatically; if on, it runs manually.
(2) _PID_PAUSE (PID Pause setting)
Flag name
Address
Unit
Setting
K1201n
BIT
Available
It changes PID control of n loop to pause status. If PID control is paused, the control MV is
fixed as the output at the time of pause. At the moment, PID operation is continued internally
with output fixed. If changing pause status to operation status again, it resumes control, so it
may take a longer time until the PV is going to SV once system status is largely changed during
pause. If the bit is off, it cancels pause; if on, it operates as paused.
(3) _PID_REV (PID RUN direction setting)
Flag name
Address
Unit
Setting
_PID_REV
(PID RUN direction setting)
K1202n
BIT
Available
It sets the RUN direction of PID control of n loop. For more information about run direction,
refer to 11.2.2 PID control parameter setting. If the bit is off, it operates normally; if on, it
operates reversely.
(4) _PID_AW2D (Dual Integral accumulation prevention setting)
Flag name
Address
Unit
Setting
_PID_AW2D
(dual integral accumulation
prevention setting)
K1203n
BIT
Available
Address
Unit
Setting
_PID_REM_RUN
(PID remote run setting)
K1204n
BIT
Available
XGB series built-in PID function can be started by both run from commands start junction and
remote run bit setting. That is, XGB starts PID control if PIDRUN commands start junction is on
or remote run setting bit is on. Namely, if one of them is on, it executed PID control.
11-11
Address
Unit
Setting
_PID_PWM_EN
(PWM output enable)
K1208n
BIT
Available
It determines whether to output the MV of PID control of n th loop as PWM output. For more
information about PWM output, refer to 11.2.2 PID control parameter setting. If the bit is off, it is
disabled; if on, it is enabled.
(7) _PID_STD (PID RUN status indication)
Flag name
Address
Unit
Setting
_PID_STD
(PID RUN status indication)
K1209n
BIT
Unavailable
It indicates the PID control RUN status of n th loop. If a loop is running or paused, it is on while
if it stops or has an error during RUN, it is off. In the area as monitoring area, it is changed to
the current run status by PLC although a user enters any value temporarily.
(8) _PID_ALARM (PID Warning occurrence)
Flag name
Address
Unit
Setting
_PID_ALARM
(PID Warning occurrence)
K1210n
BIT
Unavailable
It indicates warning if any warning occurs during PID control of nth loop. Once a warning
occurs during PID control operation of a loop, it is on while if it is normal, it is off. At the moment,
despite of warning, PID control continues without interruption, but it is desirable to check
warning information and take a proper measure. Once a warning occurs, the warning code is
also indicated in warning code area of a loop. For more information about the types of warning
codes and measures, refer to 11.6. In the area as monitoring area, it is changed to the current
run status by PLC although a user enters any value temporarily.
(9) _PID_ERROR (PID Error occurrence)
Flag name
Address
Unit
Setting
_PID_ERROR
(PID error occurrence)
K1211n
BIT
Unavailable
If an error that discontinues running during PID control of n th loop occurs, it indicates the
errors occurrence. If an error generates warning, it is on; if normal, it is off. When an error
occurs, PID control stops and MV is output as the min. output set in parameter. Also, if an error
occurs, the error code is indicated in the error code area of a loop. For more information about
type of error codes and measures, refer to 11.6. In the area as monitoring area, it is changed to
the current run status by PLC although a user enters any value temporarily.
B) PID Flag area by loops
PID flag areas by loops are allocated between K1216 ~ K1855 and for totally 16 loops, each 40
words is allocated per loop. Therefore, the individual data areas of n th loop are between
K(1216+16*n) ~ K(1255+16*n). Every setting of the PID flag areas by loops may be changed
during PID control operation. Once the settings are changed, they are applied from the next PID
control cycle.
(1) _PIDxx_SV (PID xx Loop SV setting)
Flag name
Address
Unit
Scope
K1216+16*xx
INT
-32,768 ~ 32,767
It sets/indicates the SV of PID control of xx th loop. For more information about SV, refer to
11.2.2 PID control parameter setting. The available scope is between -32,768 ~ 32,767.
11-12
Address
Unit
Scope
_PIDxx_T_s
(PID xx Loop operation cycle)
K1217+16*xx
WORD
100 ~ 65,535
It sets/indicates the operation cycle of PID control of x th loop. For more information about
operation cycle, refer to 11.2.2 PID control parameter setting. The available scope is between
100 ~ 65,535.
(3) _PIDxx_K_p (PID xx Loop proportional constant)
Flag name
Address
Unit
Scope
_PIDxx_K_p
(PID xx Loop proportional constant)
K1218+16*xx
REAL
Real number
It sets/indicates the proportional constant of PID control of x th loop. For more information
about proportional constant, refer to 8.3.3 PID Control Parameter Setting. The available scope
is real number(-3.40282347e+38 ~ -1.17549435e-38 , 0 , 1.17549435e-38 ~ 3.40282347e+38).
If it is, however, set as 0 and lower, the PID control of a loop generates an error and does not
work.
(4) _PIDxx_T_i (PID xx Loop Integral time)
Flag name
Address
Unit
Scope
K1220+16*xx
REAL
Real number
It sets/indicates integral time of PID control of xx th loop. The available scope is real number.
If it is set as 0 and lower, it does not execute integral control.
(5) _PIDxx_T_d (PID xx Loop differential time)
Flag name
Address
Unit
Scope
K1222+16*xx
REAL
Real number
It sets/indicates differential time of PID control of x th loop. The available scope is real number.
If it is set as 0 and lower, it does not execute differential control.
(6) _PIDxx_d_PV_max (PV change limit)
Flag name
Address
Unit
Scope
K1224+16*xx
WORD
0 ~ 65,535
Address
Unit
Scope
K1225+16*xx
WORD
0 ~ 65,535
It sets the MV change limit of xxth loop. For more information about MV change limit, refer to
11.2.2 PID control parameter setting. If it is set as 0, the MV change limit function does not work.
11-13
Address
K1226+16*xx
K1227+16*xx
K1228+16*xx
Unit
Scope
INT
-32,768 ~ 32,767
It sets the max. MV, min. MV and manual MV of x th loop. For more information about max.
MV, min. MV and manual MV, refer to 11.2.2 PID control parameter setting. If the max. MV is
set lower than the min. MV, the PID control loop generates an error and does not work.
(9) _PIDxx_PV (prevent value)
Flag name
Address
Unit
Scope
K1229+16*xx
INT
-32,768 ~ 32,767
It is the area that receives the present value of xx th PID control loop. PV is the present status
of the system to control and is normally saved into U device via input devices such as A/D input
module if it is entered from a sensor. The value is used to execute PID operation by moving to
_PIDxx_PV by means of commands like MOV.
(10) _PIDxx_PV_OLD (PV of previous control cycle)
Flag name
Address
Unit
Scope
K1230+16*xx
INT
Unavailable
The area indicates the PV just before the xx th PID control loop. The flag, as a dedicated
monitoring flag, would be updated by PLC although a user directly enters it.
(11) _PIDxx_MV (Control MV)
Flag name
Address
Unit
Scope
K1231+16*xx
INT
Unavailable
The areas shows the MV of xx th PID control loop. As the area in which XGB built-in PID
operation result is output every PID control cycle, it delivers the value in the area to U device
every scanning by using commands like MOV in the program and outputs to D/A output module,
operating a drive.
(12) _PID00_ERR (Present error)
Flag name
Address
Unit
Scope
K1232+16*xx
DINT
Unavailable
The areas shows the current error of xx th PID control loop. It is also used as an indicated
about how much gap the present status has with a desired status and if an error is 0, it means
the control system reaches a desired status exactly. Therefore, if control starts, error is quickly
reduced at transient state and it reaches normal state, maintaining remaining drift as 0, it could
be an ideal control system. The flag, as a dedicated monitoring, is updated although a user
directly enters it.
11-14
Address
Unit
Scope
Address
Unit
Scope
K1240+16*xx
WORD
0 ~ 65,535
It sets the deadband of xx th loop. For more information about Deadband function, refer to
11.2.2 PID control parameter setting. If it is set as 0, the function does not work.
(15) _PIDxx_Td_lag (Differential filter coefficient)
Flag name
Address
Unit
Scope
K1241+16*xx
WORD
0 ~ 65,535
It sets the differential filter coefficient of x th loop. For more information about differential filter
coefficient, refer to 11.2.2 PID control parameter setting. If it is set as 0, the function does not
work.
(16) _PIDxx_PWM (PWM output junction setting)
Flag name
Address
Unit
Scope
K1242+16*xx
WORD
H20 ~ H3F
It sets the junction to which PWM output of x th loop is output. PWM output junction is valid
only between H20 ~ H3F. If any other value is entered, PWM output does not work.
(17) _PIDxx_PWM_Prd (PWM Output cycle setting)
Flag name
Address
Unit
Scope
K1243+16*xx
WORD
100 ~ 65,535
It sets the PWM output cycle of x th loop. The available scope is between 100 ~ 65,535 at the
unit of 0.1ms.
(18) _PIDxx_SV_RAMP (SV ramp setting)
Flag name
Address
Unit
Scope
K1244+16*xx
WORD
0 ~ 65,535
It sets the SV ramp value of xx th loop. For more information about SV ramp of PV, refer to
11.2.2 PID control parameter setting. If it is set as 0, the function does not work.
11-15
Address
Unit
Scope
K1245+16*xx
WORD
0 ~ 65,535
It sets the PV follow-up SV of xx th loop. For more information about PV follow-up, refer to
11.2.2 PID control parameter setting. If it is set as 0, the function does not work.
(20) _PIDxx_PV_MIN, _PIDxx_PV_MAX(Min. PV input, Max. PV input)
Flag name
Address
Unit
Scope
INT
-32,768 ~ 32,767
K1246+16*xx
K1247+16*xx
Address
Unit
Scope
_PIDxx_ALM_CODE(Warning code)
K1248+16*xx
WORD
Unavailable
It indicates warning code if a warning occurs during x th loop run. The flag, as a dedicated
monitoring, is updated although a user directly enters it. For more information about warning
code, refer to 11.5.
(22) _PIDxx_ERR_CODE(Error code)
Flag name
Address
Unit
Scope
_PIDxx_ERR_CODE(error code)
K1249+16*xx
WORD
Unavailable
It indicates error code if an error occurs during x th loop run. The flag, as a dedicated
monitoring, is updated although a user directly enters it. For more information about warning
code, refer to 11.5.
(23) _PIDxx_CUR_SV(SV of the present cycle)
Flag name
Address
Unit
Scope
_PIDxx_CUR_SV
(SV of the present cycle)
K1250+16*xx
INT
Unavailable
11-16
- Operand S means the loop no. to execute PID control and avaiable only for constant(0~15).
- If start signal is on, the PID control of a loop starts.
2) PIDCAS
PIDCAS is a command to execute CASCADE control.
- Operand M and S mean master loop and slave loop respecively and available only for
constant(0~15).
- If start junction is on, cascade control is executed through master loop and slave loop.
Cascade control is called a control method which is intended to increase control stability through
quick removal of disturbance by connecting two PID control loops in series and is structured as
follows.
11-17
- Operand F and R represent forward operation loop and reverse operation loop and available
only for constant(0~15).
- If start junction is on, it starts the mixed forward/reverse operation from the designated
forward/reverse loops.
The mixed forward/reverse control is called a control method to control forward operation control
output and reverse operation control operation alternatively to a single control process. The XGB
built-in PID control enables the mixed forward/reverse control by connecting two PID control loops
set as forward/reverse operations. At the moment, it uses PIDHBD command. For more information
about the command, refer to 11.3.5. The mixed forward/reverse run is executed as follows in the
XGB built-in PID control.
A) Commencement of mixed run
If PIDHBC command starts first, it starts reverse run when PV is higher than SV; it starts
forward run if PV is lower than SV.
B) Conversion of RUN direction
The conversion of run direction is executed according to the following principles. In case of
forward operation run, it keeps running by converting to reverse operation once PV is over SV
+ DeadBand value. At the moment, the DeadBand setting value uses the deadband of a loop
set for forward operation. If PV is below SV DeadBand value during reverse operation, it also
keeps running by converting to forward operation. In the case, the DeadBand setting uses the
deadband of a loop set for reverse loop. It may be illustrated as 11.14.
11-18
Item
designated
Available device
OP1
Slot
Constant
OP2
N/A
P,M,L,K,D,Z,R,
constant
OP3
Parameter type
P,M,L,K,D,Z,R,constant
11-19
Remark
Designating basic uit as 0
Not used
0 : positioning X axis
1 : positioning Y axis
2 : HS counter
3 : PID parameter
4 : PID auto-tuning parameter
Specifications
Scope of SV
INT(-32,768 ~ 32,767)
Scope of PV
INT(-32,768 ~ 32,767)
Scope of MV
INT(-32,768 ~ 32,767)
Error indication
AT direction setting
Forward/reverse
Control cycle
Additional
function
PWM output
Available
Hysterisis
Supportable
11-20
Description
Scope
RUN direction
Forward/reverse
Disable/enable
-32,768 ~ 32,767
100 ~ 65535
Max. MV
-32,768 ~ 32,767
Min. mV
-32,768 ~ 32,767
PWM junction
designation
Hysterisis setting
P20 ~ P3F
100 ~ 65,535
0 ~ 65,535
MV
PV
SV
Hysteresis
SV+Hysteresis
SV- Hysteresis
11-22
Common
Loop0
K area
Symbol
Data type
Default
Description
Auto-tuning
direction(0:forward,
1:reverse)
PWM output enable(0:disable,
1:enable)
K18560~F
_AT_REV
Bit
Forward
K18570~F
_AT_PWM_EN
Bit
Disable
K18580~F
_AT_ERROR
Bit
Auto-tuning error(0:normal,1:error)
K1859
Reserved
WORD
Reserved
K1860
_AT00_SV
INT
AT SV loop 00
K1861
_AT00_T_s
WORD
100
K1862
_AT00_MV_max
INT
4000
K1863
_AT00_MV_min
INT
K1864
_AT00_PWM
WORD
K1865
_AT00_PWM_Prd
WORD
K1866
_AT00_HYS_val
WORD
AT hysterisis setting
K1867
_AT00_STATUS
WORD
K1868
_AT00_ERR_CODE
WORD
AT error code
K1869
_AT00_K_p
REAL
K1871
_AT00_T_i
REAL
K1873
_AT00_T_d
REAL
K1875
_AT00_PV
INT
AT PV
K1876
_AT00_MV
INT
AT MV
Word
Reserved
K1877~1879
Reserved
11-23
Address
Unit
Setting
_AT_REV
(PID RUN direction setting)
K1856n
BIT
Available
It determines the run direction of auto-tuning of n th loop. If the bit is off, it is forward operation;
if on, it is reverse operation.
(2) _AT_PWM_EN (PWM output enable)
Flag name
Address
Unit
Setting
_AT_PWM_EN
(PWM output enable)
K857n
BIT
Available
It sets whether to output the auto-tuning MV of n th loop as PWM output. If the bit is off, it is
disabled; if on, it is enabled.
(3) _AT_ERROR (Auto-tuning error occurrence)
Flag name
Address
Unit
Setting
_PID_ERROR
(PID error occurrence)
K1858n
BIT
Unavailable
It indicates the error in case an error that discontinues operation during auto-tuning of nth loop
occurs. If an error occurs, it is on; if normal, it is off. Once an error occurs, auto-tuning stops
and the MV is output as the min. output set in the parameter. Also, if an error occurs, it
indicates the error code in the error code area of a loop. For more information about error code
types and measures, refer to 11.6. The area, as a dedicated monitor area, is updated although
a user directly enters it.
B) Auto-tuning flag area by loops
The auto-tuning flag areas by loops are K1860 ~ K2179 and each 20 words per loop are
allocated to totally 16 loops. Therefore, individual data area of n th loop is between
K(1860+16*n) ~ K(1879+16*n).
(1) _ATxx_SV (auto-tuning xx Loop SV setting)
Flag name
Address
Unit
Scope
K1860+16*xx
INT
-32,768 ~ 32,767
11-24
Address
Unit
Scope
_PIDxx_T_s
(Auto-tuning xx Loop operation cycle)
K1861+16*xx
WORD
100 ~ 65,535
It sets/indicates the operation cycle of x th loop auto-tuning. The available scope is 100 ~
65,535.
(3) _ATxx_MV_max, _ATxx_MV_min(max. MV, min. MV)
Flag name
Address
K1862+16*xx
K1863+16*xx
Unit
Scope
INT
-32,768 ~ 32,767
It sets max. MV and min. MV of xx th loop respectively. If the max. MV is set lower than min.
MV, the auto-tuning loop generates an error and does not work.
(4) _ATxx_PWM (AT output junction setting)
Flag name
Address
Unit
Scope
_AT00_PWM
(AT output junction setting)
K1864+16*xx
WORD
H20 ~ H3F
It sets the junction that PWM output of xth loop is output. The PWM output junction is valid
only between H20 ~ H3F(hex). If any other value is entered, PWM output does not work.
(5) _ATxx_PWM_Prd (PWM output cycle setting)
Flag name
Address
Unit
Scope
_ATxx_PWM_Prd
(PWM output cycle setting)
K1865+16*xx
WORD
100 ~ 65,535
It sets the PWM output cycle of x th loop. The available scope is between 100 ~ 65,535 at the
unit of 0.1ms.
(6) _ATxx_HYS_val (Hysterisis setting)
Flag name
Address
Unit
Scope
K1866+16*xx
WORD
0 ~ 65,535
It sets the hysterisis of xx th loop. For more information about hysterisis function, refer to
11.4.3 Auto-Tuning Parameter Setting. If it is set as 0, it does not work.
(7) _ATxx_STATUS (Auto-tuning status)
Flag name
Address
Unit
Scope
K1867+16*xx
WORD
Unavailable
Address
Unit
Scope
_ATxx_ERR_CODE(Error code)
K1868+16*xx
WORD
Unavailable
It indicates error code in case an error occurs during the auto-tuning of xth loop. The flag, as a
dedicated monitor, is updated although a user directly enters it. For more information about
error code, refer to Error codes.
11-25
Address
K1869+16*xx
K1871+16*xx
K1873+16*xx
Unit
Scope
Real
Unavailable
The area indicates proportional coefficient, integral time and differential time calculated after
the auto-tuning of x th loop is normally completed. The flag, as a dedicated monitoring,
updated although a user directly enters it.
(10) _ATxx_PV (PV)
Flag name
Address
Unit
Scope
_ATxx_PV (PV)
K1875+16*xx
INT
-32,768 ~ 32,767
Address
Unit
Scope
K1876+16*xx
INT
Unavailable
It is the area to output MV of xx th auto-tuning loop. Every auto-tuning cycle, it saves XGB
auto-tuning and it delivers the value in the area by using commands like MOV in a program and
operates a drive every scanning.
1) PIDAT
PIDAT is a command to execute auto-tuning by loops.
- Operand S means the loop no. to execute auto-tuning and avaiable only for constant(0~15).
- If start junction is on, the PID control of a loop starts.
11-26
Water
level sensor
Tank
Tank
Pump
0~10V
RS-232C
XG5000
XGB D/A
A/D
0~10V
[Example of water level control system ]
The example system in figure is an example of a system to control a pails water level to a desired
level. The pails water level is sensed by a water level sensor and entered to A/D input module while
PID control operation result, MV is output to a pump through D/A output module, controlling a pumps
rotation velocity, regulating the water amount flowing into a pail and regulating the water level as
desired. Each mechanism is explained as follows.
1) XGB basic unit
The XGB basic unit operates by PID control operating PID control operation. It receives PV from
A/D input module(XBF-AD04A), executes the built-in PID control operation, output the MV to
D/A(XBF-DV04A) and executes PID control.
2) A/D input module(XBF-AD04A)
It functions as receiving PV of an object to control from a water level sensor and delivering it to
basic unit. XBF-AD04A is a 4CH analog input module and settings of analog input types and
scopes can be changed in the I/O parameter setting window appeared when selecting I/O
parameter in the parameter item of project window. For more information, refer to 12. Analog I/O
Module.
3) D/A output module(XBF-DV04A)
It functions as delivering control MV from basic unit to a drive(pump). XBF-DV04A is a 4CH analog
voltage output module and ranges 0 ~ 10V. For detail setting, refer to 12. Analog I/O Module.
4) Water Level Sensor
A water level sensor plays a role to deliver the PV of an object to control to XGB by measuring the
water level of a pail and outputting it within 0 ~ 10V. Since the types and output scope of water
level sensors varies, the output scope of a sensor should be identical with that of A/D input
modules input scope. The example uses a water level sensor outputting between 0 ~ 10V.
11-27
11-29
11-30
Data type
Application
F0099
BIT
U01.01.0
BIT
U02.02.0
BIT
U01.02
INT
U02.03
INT
K1875
INT
K1876
INT
K18677
BIT
K18580
BIT
K1863
INT
B) Program explanation
(1) Since F0099(always on) is ON if PLC is converted form STOP to RUN, CH0 of A/D and
D/A starts operating.
(2) At the moment, PV entered to CH0 is moved to K1875, the input device of PV and saved
accordingly.
(3) Once M0000 junction is on, the auto-tuning of loop 0 starts.
(4) The auto-tuning MV of loop 0 that is output by PIDAT command is output to D/A output
module by line 14 MOV command.
(5) If auto-tuning is complete or there is any error during auto-tuning, M0001 junction is set,
blocking operation of PIDAT command and it outputs min. MV set in parameter to D/A
output module.
C) Monitoring and changing PID control variables using K area
In XGB series built-in auto-tuning, it can monitor and change RUN status of auto-tuning by
using K area allocated as fixed area by loops.
Variable registration
If selecting Register in Variable/Description by right clicking in the variable monitor
window, Variable/Device Selection window appears. Select Item as PID, deselect
View All and enter 0(means loop number) in Parameter No, K area device list to save
every setting and status of loop 0 appears. Then, if selecting a variable to monitor and
clicking OK, a selected device is registered to variable monitor window as illustrated in
figure. Through the monitor window, a user can monitor auto-tuning run status or change
the settings.
11-31
11-32
11-33
11-35
Data type
Application
F0099
BIT
U01.01.0
BIT
U02.02.0
BIT
U01.02
INT
U02.03
INT
K1875
INT
K1876
INT
K18677
BIT
K18580
BIT
K1863
INT
K1229
INT
K1876
INT
11-36
11-37
Indications
H0001
MV_MIN_MAX_ERR
H0002
PV_MIN_MAX_ERR
H0004
SV_RANGE_ERR
H0005
PWM_ADDRESS_ERR
H0006
P_GAIN_SET_ERR
H0007
I_TIME_SET_ERR
H0008
D_TIME_SET_ERR
H0009
Measures
It occurs when max. MV is set lower than min. MV. Make
sure to set max. MV larger than min. MV.
It occurs when max. PV is set lower min. Pv. Make sure to
set max. PV larger than min. PV.
It occurs when SV is larger than PV at the start time of
auto-tuning if auto-tuning is forward or when SV is larger
than PV at the start time of auto-tuning if auto-tuning is
reverse.
It occurs when the junction designated as PWM output
junction is beyond between P20 ~ P3F.
H000A
TUNE_DIR_CHG_ERR
H000B
PID_PERIOD_ERR
H000C
HBD_WRONG_DIR
H000D
HBD_SV_NOT_MATCH
It occurs when operation direction is changed during autotuning. Never attempt to change operation direction during
auto-tuning.
It occurs when period of operation is smaller than 100
(10ms) at Auto-tuning or PID operation.
Make sure to set period of operation larger than 100.
In mixed operation, It occurs when the direction parameter
of forward operation set to reverse operation or the
direction parameter of reverse operation set to forward
operation. Make sure set to appropriate direction each
loop.
In mixed operation, it occurs when the Set value of each
loop is not concurrent. Make sure set to Set value
concurrently.
[PID error codes]
11-38
Indications
H0001
PV_MIN_MAX_ALM
H0002
H0003
H0004
H0005
H0006
Measures
It occurs when the set PV is beyond the min./max. PV.
11-39
Specifications
XBF-AD04A
DC 0 10 V (Input resistance: 1 M min.)
DC 4 20 mA (Input resistance 250 )
DC 0 ~ 20 mA (Input resistance 250 )
Analog input range can be selected through XG5000 users (or sequence) program or
[I/O parameter].
Respective input ranges can be set based on channels.
Analog input
Digital output
Digital output
Unsigned Value
Signed Value
Precise Value
0 ~ 10 V
4 ~ 20 mA
0 ~ 20 mA
0 ~ 4000
-2000 ~ 2000
0 ~ 1000
400 ~ 2000
Percentile Value
0 ~ 2000
0 ~ 1000
Format of digital output data can be set through user program or S/W package
respectively based on channels.
Max. resolution
Resolution (1/4000)
Resolution (1/4000)
0 ~ 10 V
2.5 mV
4 ~ 20 mA
0 ~ 20 mA
5.0 A
Accuracy
Max. conversion
speed
Absolute max.
input
Analog
input points
Insulation method
Terminal
connected
I/O points
occupied
Internalconsumed current
0.5% or less
1.5 ms/channel
15 V
25 mA
4 channels/1 module
Weight
67g
Remark
1) When A/D conversion module is released from the factory, Offset/Gain value is as adjusted for
respective analog input ranges, which is unavailable for user to change.
2) Offset Value: Analog input value where digital output value is 0 when digital output format is set
to Unsigned Value.
3) Gain Value: Analog input value where digital output value is 16000 when digital output format
is set to Unsigned Value.
12-1
No.
Description
RUN LED
12-2
Digital
output
value
1011
1000
2047
2000
4047
4000
750
1000
3000
500
2
2000
250
- 1000
1000
- 2000
Gain
value
Offset value
Analog input
value
DC 0 ~ 10 V
5V
0V
10V
12-3
2.5
7.5
10
10.11
Unsigned value
(0 ~ 4047)
1000
2000
3000
4000
4047
Signed value
(-2000 ~ 2047)
-2000
-1000
1000
2000
2047
Precise value
(0 ~ 1011)
250
500
750
1000
1011
Percentile value
(0 ~ 1011)
250
500
750
1000
1011
12-4
10
15
20
20.23
Unsigned value
(0 ~ 4047)
1000
2000
3000
4000
4047
Signed value
(-2000 ~ 2047)
-2000
-1000
1000
2000
2047
Precise value
(0 ~ 2023)
500
1000
1500
2000
2023
Percentile value
(0 ~ 1011)
250
500
750
1000
1011
12-5
12
16
20
20.23
Unsigned value
(-48 ~ 4047)
-48
1000
2000
3000
4000
4047
Signed value
(-2048 ~ 2047)
-2048
-2000
-1000
1000
2000
2047
Precise value
(381 ~ 2023)
381
400
800
1200
1600
2000
2023
Percentile value
(-12 ~ 1011)
-12
250
500
750
1000
1011
Remark
1) If analog input value exceeding digital output range is input, the digital output value will be kept to be the
max. or the min. value applicable to the output range specified. For example, if the digital output range is
set to unsigned value (0 ~ 4047) and the digital output value exceeding 4047 or analog value exceeding
0 is input, the digital output value will be fixed as 0~4047.
2) Voltage and current input shall not exceed 15 V and 25 respectively. Rising heat may cause
defects.
3) Offset/Gain setting for XBF-AD04A module shall not be performed by user.
12-6
[ Accuracy ]
12-7
Description
Channel Run/Stop
setting
Input voltage/Current
range setting
A/D conversion
methods
There are three A/D conversion methods, sampling processing, filter processing and average processing.
Sampling Processing
A/D Conversion Methods
Filter Processing
Average Processing
Time Average
Count Average
1) Sampling processing
It collects analog input sign through general A/D conversion processing at a specific interval so to
convert to digital. The time required for A/D conversion of analog input sign till saved on the memory
depends on the number of channels used.
(Processing time) = (Number of channels used) X (Conversion speed)
Ex.) If the number of channels used is 3, its process time will be
3 x 1.5 = 4.5
Sampling is to calculate the sampling value of continuous analog sign at a specific interval.
12-8
0.01
3600
3960
3997
*2)
0.66
1360
2257
2850
*3)
0.99
40
80
119
count =
(Number
12-9
Setting time
of Channels used) x ( Conversion
Speed)
Average
processing
count
16000 ms
1 1 . 5 ms
10667 times
Average
processing
count
4 ms
4 1 . 5 ms
1 times
If setting value of time average is not specified within 4 ~ 16000, RUN LED blinks at an interval
of 1 second. In order to set RUN LED to On status, reset the setting value of time average within
4 ~ 16000 and then convert PLC CPU from STOP to RUN. Be sure to use request flag of error
clear (UXY.11.0) to clear the error through modification during RUN.
Time average is processed after converted to average of the times inside the A/D conversion
module. In this case, a remainder may be produced when setting time is divided by (number of
channels used X conversion speed), which will be disregarded. Thus, the average processing
frequency will be the quotient of [(setting time) (number of channels used x conversion
speed)].
Ex.) If the number of channels used is 5, and setting time is 151 ms
151 ms (4 X 1.5 ms) = 26 times Remainder of 2 26 times
(2) Count average process
A) Setting range: 2 ~ 64000 (times)
B) The time required for average value to be saved on memory when frequency average used
depends on the number of channels used.
Process time = setting frequency X number of channels used X conversion speed
*1: If setting value of count average is not specified within 2 ~ 64000, RUN LED blinks at
an interval of 1 second. In order to set RUN LED to On status, reset the setting value
of frequency average within 2 ~ 64000 and then convert PLC CPU from STOP to
RUN. Be sure to use request flag of error clear (UXY.11.0) to clear the error through
modification during RUN..
*2: If any error occurs in setting value of frequency average, the default value 2 will be
saved.
Ex.) If the number of channels used is 4, and average processing frequency is 50
50 X 4 X (1.5 ms) = 300 ms
12-10
B) Current input
*1) Use a 2-core twisted shielded wire. AWG 22 is recommended for the cable standard.
*2) XGF-AC8As input resistance is 250 (typ.).
*3) XGF-AV8As input resistance is 1 M (min.).
12-11
Rc
Vs
Vin
Ri
Rc
Load
Where,
12-12
Vin =
Ri Vs
[Rs + (2 Rc ) + Ri ]
Vin
%Vi = 1
100 %
Vs
Remark
In current input, there will be no accuracy tolerance caused by cable length and internal resistance of the
source.
12-13
Item
Details
[I/O parameter]
(1) Specify the following setting items necessary for the module
operation.
- Channel Enable/Disable setting
- Setting ranges of input voltage/current
- Output data format setting
- Filter processing Enable/Disable setting
- Filter constant setting
- Average processing Enable/Disable setting
- Average processing method setting
- Average value setting
(2) The data specified by user through S/W package will be saved on A/D
conversion module when [Special Module Parameters] are
downloaded. In other words, the point of time when [Special Module
Parameters] are saved on A/D conversion module has nothing to do
with PLC CPUs status RUN or SPOP.
12-14
(4) Click the arrow button on the screen above to display the screen where an applicable module can
be selected. Search for the applicable module to select.
12-15
(8) Input range: Select the range of analog input voltage as desired.
12-16
(11) Filter constant: Set the filter process above surely to [Enable] in order to input the filter constant
in this field. With the filter process set to [Enable], double-click the value of the filter constant to
input the value. The range of the value available in this field is 1 ~ 99. Any value exceeding this
range will not be input.
12-17
(13) Average method: Set the average process above surely to [Enable] in order to change the
value in this field. Average processing can be selected between time average and frequency
average.
(14) Average value: Set the average process above surely to [Enable] in order to input the average
value in this field. With the average process set to [Enable], double-click the average value to
input the value. The range of the value available in this field is 2 ~ 64000 for frequency average,
and 4 ~ 16000 for time average. Any value exceeding this range will not be input
12-18
12-19
Details
[Special Module
Monitoring]
(1) Monitor/Test
Through applicable XG5000 menu of [Monitor] -> [Special Module
Monitoring], A/D converted value can be monitored and the operation
of A/D conversion module can be tested.
(2) Monitoring the max./min. value
The max./min. value of the channel can be monitored during Run.
However, the max./min. value displayed here is based on the present
value shown on the screen. Accordingly, when [Monitoring/Test]
screen is closed, the max./min. value will not be saved.
Remark
The screen may not be normally displayed due to insufficient system resource. In such a case, close the
screen and finish other applications in order to restart XG5000.
The parameters specified for the test of A/D conversion module on the Special Module Monitoring
screen of [Special Module Monitoring] will be deleted the moment the Special Module Monitoring
screen is closed. In other words, the parameters of A/D conversion module specified on the Special
Module Monitoring screen will not be saved in [I/O parameters] located on the left tap of XG5000.
Test function of [Special Module Monitoring] is provided for user to check the normal operation of A/D
conversion module even without sequence programming. If A/D conversion module is to be used for
other purposes than a test, use parameters setting function in [I/O parameters].
12-20
12-21
C) Click [Monitor] on the Special Module screen in [Special Module List] to display [Special Module
Monitoring] screen as below, where 4 options are available such as [Reset max./min. value],
[Monitor Start], [Test Execute] and [Close]. A/D conversion modules output value and max./ min.
value are displayed on the monitoring screen at the top of the screen, and parameters items of
respective modules are displayed for individual setting on the test screen at the bottom of the
screen.
12-22
E) [Test]: [Test] is used to change the presently specified parameters of A/D conversion module.
Click the setting value at the bottom field of the screen to change parameters. Below screen
will be displayed after [Test] is executed with channels 0s input voltage range changed to 0~20 mAin the state of input not wired.
[ ]
12-23
12-24
12-25
2) Save variables
A) The contents of View Variable can be saved as a text file.
B) Select [Edit] -> [Export to File].
C) The contents of View variable are saved as a text file.
3) View variables
A) The example program of XG5000 is as shown below.
12-26
C) Select [View] -> [Devices/Variables]. Devices and variables are both displayed.
D) Select [View] -> [Device/Comments]. Devices and comments are both displayed.
12-27
UXY.00.0
UXY.00.F
UXY.01.0
UXY.01.1
UXY.01.2
UXY.01.3
UXY.02
UXY.03
UXY.04
UXY.05
UXY.11.0
Details
R/W
Sign direction
A/D CPU
A/D CPU
R
R
R
R
W
A/D CPU
CPU A/D
A) In the device assigned, X stands for the Base No. and Y for the Slot No. on which module is
installed.
B) In order to read CH1 digital output value of A/D conversion module installed on Base No.0, Slot
No.4, it shall be displayed as U04.03.
C) In order to read Flag to detect CH4 disconnection of A/D conversion module installed on Base
No.0, Slot No.5, it shall be displayed as U05.10.4.
12-28
Details
R/W
Remark
PUT
PUT
PUT
PUT
PUT
PUT
GET
B14
B13
B12
B11
B10
B9
B8
B7
B6
B5
B4
B3
B2
B1
UXY.00
B0
R
R
Error information
Bit ON (1): Error, Bit Off (0): Normal
Module READY
Bit ON (1): READY, Bit Off (0): NOT READY
12-29
UXY.01
B9
B8
B7
B6
B5
B4
B3
B2
B1
B0
C
H
3
C
H
2
C
H
1
C
H
0
UXY.02 ~ UXY.09
B9
B8
B7
B6
B5
B4
B3
B2
B1
B0
Address
Details
Address No.2
Address No.3
Address No.4
Address No.5
UXY.11.0
B8
B7
B6
B5
B4
B3
B2
B1
B0
C
R
12-30
B15
B14
B13
B12
B11
B10
B9
B8
B7
B6
B5
B4
B3
B2
B1
B0
Error code
Details
Normal operation
Remark
50#
60#
70#
80#
# of the error codes stands for the channel with error found.
C) If 2 or more errors occur, the module sill not save other error codes than the first error code found.
D) If an error found is corrected, use the flag to request error clear, or let power OFF ON in
order to stop LED blinking and to delete the error code.
.
12-31
XBMDR16S
XBFAD04A
XBERY16A
2) Initial setting
No.
Item
1
2
3
4
5
6
Channel
Input voltage range
Output data range
Filter process
Ch0 filter constant
Average process
Average process
method
6
7
Average value
Details
Ch0, Ch1, Ch2
0 ~ 10 V
0 ~ 4000
Ch0
50
Ch1, Ch2
Frequency average: Ch1
Time average: Ch2
Frequency average value:
100 (times)
Time average value:
200 (ms)
Internal memory
address
0
1
2
3
4
12
13
h0100
15
100
16
200
3) Program
A) If Ch 0s digital value is less than 3000, Contact No. 0 (P00080) of relay output module installed
on Slot No.2 will be On.
B) If CH 1s digital value is greater than 3200, Contact No.2 (P00082) of relay output module
installed on Slot No.2 will be On.
C) If CH 2s digital value is greater than or equal to 3000 and less than or equal to 3200, Contact
No.4 (P00086) of relay output module installed on Slot No.2 will be On.
D) If CH 2s digital value is equal to 3200, Contact No.5 (P00085) of relay output module installed
on Slot No.2 will be On.
12-32
Slot no.
12-33
If A/D conversion value of Ch4 is 3000 or more and 3200 or less, P0085 is changed to On status. 204
12-34
Range
Signed value
0 ~ 4000
0 ~ 4000
Unsigned value
-2000 ~ 2000
-2000 ~ 2000
Precise value
0 ~ 1000
Percentile value
0 ~ 1000
0 ~ 1000
2.5(1/4000)
5(1/4000)
Maximum resolution
Accuracy
0.5% or less
1/channel
DC 15V
DC +25
4 channels
Insulation method
Terminal connected
Current
consump
tion
110mA
110mA
External
(DC 21.6 ~26.4V)
70mA
120mA
64g
70g
Weight
Remark
1) You may set a range of digital input and an analog output with parameters or a program by
channels.
2) When D/A conversion module is released from the factory, Offset/Gain value is as adjusted for
respective analog output ranges, which is unavailable for user to change.
3) Offset Value: Digital input value when analog output value reaches 0V (0mA) while analog output
type is Unsigned Value type.
4) Gain Value: Digital input value when analog output value reaches 0V (0mA) while analog output
type is Unsigned Value type.
12 - 35
CH0
XBF-DC04A
RUN
CH0
CH1
CH1
CH2
CH2
CH3
CH3
No.
Description
RUN LED
12 - 36
12 - 37
0V
2.5V
5V
7.5V
10V
over 10V
under 0
1000
2000
3000
4000
over 4000
under -2000
-2000
-1000
1000
2000
over 2000
under 0
250
500
750
1000
over 1000
under 0
250
500
750
1000
over 1000
4mA
8mA
12mA
16mA
20mA
over 20mA
under 0mA
0mA
5mA
10mA
15mA
20mA
over 20mA
under 0
1000
2000
3000
4000
over 4000
under -2000
-2000
-1000
1000
2000
over 2000
under 400
400
800
1200
1600
2000
over 2000
under 0
500
1000
1500
2000
over 2000
under 0
250
500
750
1000
over 1000
12 - 38
10mA
5V
0.05V
0.1mA
0V
0mA
-0.05V
-0.1mA
0
2000
Digital input
12 - 39
4000
Details
1) It sets up Run/Stop of a channel that will operate an analog output.
2) You can save the time of whole operation by stopping unused channels.
The range of
output
The range of
input data
The status of
channel output
12 - 40
Wiring example
Analog voltage output module
Motor driver etc.
XBF-DV04A
CH0
CH0+
Over 2k
CH0-
D/A
Conversion
circuit
CH1+
1
GND
CH1-
CH2+
CH2-
CH3
CH3+
Over 2k
CH3+15V
DC/DC
Conversion circuit
DC +24V
DC 0V
DC +24V
DC 0V
GND
-15V
XBF-DC04A
CH0
CH0+
Under
510
CH0-
D/A
Conversion
circuit
CH1+
1
GND
CH1-
CH2+
CH2-
CH3
CH3+
Under
510
CH3+15V
DC/DC
Conversion circuit
DC +24V
DC 0V
DC +24V
DC 0V
-15V
12 - 41
GND
[I/O parameters]
(3) If [I/O parameter setting] window is displayed, click the module area of the applicable slot to select
the applicable module.
(4) Click the slot of the base that contains analog voltage output module in the [I/O Parameter Setting]
window.
12 - 42
(6) Double-click the applicable slot that is selected for the parameters setting or click [Details].
(7) A screen will be displayed for you to specify parameters for respective channels as shown below.
Click a desired item to display parameters to set for respective items.
12 - 43
Input type
12 - 44
2) [Special Module List] window will show base/slot information and types of special module by click
[Monitor] [Special Module Monitoring].
12 - 45
4) Select a special module then click [Start Monitoring] button to display the information as described
below.
12 - 46
Monitoring screen
Details of channel 0
6) [Test] is used to change the parameters of the voltage output module. You can change the parameters
when you click the values at the bottom of the screen. It is only available when XGB CPU units status is
in [Stop Monitoring].
12 - 47
12 - 48
Save variables
(1) The contents of View Variables can be saved as a text file.
(2) Click [Edit] [Export to File].
(3) The contents of View Variable are saved as a text file.
View variables in a program
(1) The example of XG5000 is shown below.
12 - 49
(3) Select [View] [Devices/Variables]. Device and variable both are displayed.
(4) Select [View] [Devices/Comments]. Device and comment both are displayed.
12 - 50
Description
Details
U0x.00
U0x.01
CH operation information
U0x.02
Output setting
U0x.03
U0x.04
U0x.05
U0x.06
Remarks
Read
available
Read/Write
available
In the device assignment, x stands for a slot number that the module is installed.
In order to write CH0 digital input value of the analog output module installed on Slot No.4, it should be
named as U04.03.
U0x.00
B8
B7
B6
B5
B4
B3
B2
B1
B0
Module
C
H
3
C
H
2
C
H
1
C
H
0
Module Ready
Bit On (1): Ready
Bit Off (0): Not Ready
U0x.01
B8
B7
B6
B5
B4
B3
B2
B1
B0
C
H
3
C
H
2
C
H
1
C
H
0
12 - 51
U0x.02
B8
B7
B6
B5
B4
B3
B2
B1
B0
C
H
3
C
H
2
C
H
1
C
H
0
B10 B9
B8
B7
B6
B5
B4
B3
B2
B1
B0
Details
U0x.03
U0x.04
U0x.05
U0x.06
12 - 52
Description
Details
Remarks
11
12
13
14
Read/Write
available
Read
available
Error code
XBF-DC04A
Address
(Dec)
Description
Details
Remarks
11
12
13
14
Read/Write
available
Read
available
Error code
Address 0
B8
B7
B6
B5
B4
B3
B2
B1
B0
C
H
3
C
H
2
C
H
1
C
H
0
Address 1
B8
B7
B6
CH 3
B5
B4
CH 2
B3
B2
CH 1
B1
B0
CH 0
Address 2
B8
B7
B6
CH 3
B5
B4
CH 2
B3
B2
CH 1
B1
B0
CH 0
Address 3
~
Address 6
B10 B9
B8
B7
B6
B5
B4
B3
B2
Address
Details
12 - 54
B1
B0
Value
Address 11
~
Address 14
Address
B8
B7
B6
B5
B4
B3
B2
B1
B0
Error code
Details
11
CH0 error
12
CH1 error
13
CH2 error
14
CH3 error
Error code
(Dec)
-
B10 B9
Details
LED status
31#
41#
12 - 55
Module ready
12 - 56
12 - 57
1) Environment requirements
Avoid installing this unit in locations which are subjected or exposed to:
(1) Water leakage and dust.
(2) Continuous shocks or vibrations.
(3) Direct sunlight.
(4) Dew condensation due to rapid temperature change.
(5) Higher or lower temperatures outside the range of 0 to 55
(6) Relative humidity outside the range of 5 to 95
(7) Corrosive or flammable gases
131
Inductive load
OUT
Output part
Surge Killer
COM
OUT
Inductive load
+
Output part
Diode
COM
(6) Terminal block
Check its fixing. During drilling or wiring, do not allow any wire scraps to enter the PLC. It can cause
malfunction and fault.
(7) Be cautious that strong shock does not applied to the I/O part. Do not separate the PCB from its case.
132
133
(7) When installing PLC or other equipment (Relay, electronic contactor), keep the distance to avoid
radiant noise or heat.
100 mm or more
50 mm or more
50 mm or more
134
Fixed position
protrusion
Fixed hook
Connecting protrusion
Warning
Module must be attached after fixed the module correctly. Module is broken when attach the
module by force.
135
Fixed hook
Warning
If detach the module by force, fixed hook or fixed position of module would be broken.
136
13.2 Wiring
13.2.1 Power wiring
(1) Use a power supply which generates minimal noise across wire and across PLC and ground.
XGB
Main unit
DC power supply
Shield cable
Input
Output
RA
DC
137
PLC
Other
PLC
3 class earth
A) Dedicated earth : Best
Other
PLC
Other
3 class earth
B) Common earth : Good
2
4) Use more than 2 mm cable for earth. Place the earth point near this PLC as possible to have the short
length of earth cable.
Type of External
Connection
Low limit
High limit
Digital Input
0.18 (AWG24)
1.5 (AWG16)
Digital Output
0.18 (AWG24)
2.0 (AWG14)
Analog I/O
0.18 (AWG24)
1.5 (AWG16)
Communication
0.18 (AWG24)
1.5 (AWG16)
Main power
1.5 (AWG16)
2.5 (AWG12)
Protection earth
1.5 (AWG16)
2.5 (AWG12)
138
Chapter 10 Maintenance
Chapter 14 Maintenance
Be sure to perform daily and periodic maintenance and inspection in order to maintain the PLC in the best
conditions.
Judgment
Ambient
environment
Humidity
5 ~ 95%RH
Vibration
No vibration
Corrective Actions
Hold it with the allowable range.
Hold it with the allowable range of each module.
Adjust the operating temperature and humidity with the
defined range.
Play of modules
No play allowed
Connecting conditions of
terminal screws
No loose allowed
Spare parts
indicator
Judgment
Corrective
Actions
Retighten
Screws.
Retighten
Screws.
Retighten
Screws.
Correct.
Correct.
PWR LED
Run LED
Connecting conditions of
terminal block or extension
cable
LED
Check Points
ERR LED
Input LED
Output LED
141
Chapter 10 Maintenance
Checking Methods
0 ~ 55 C
Ambient temperature
Ambient
environment
Ambient Humidity
Ambient pollution level
PLC
Conditions
Connecting
conditions
Looseness, Ingress
dust or foreign
material
Loose terminal
screws
Distance between
terminals
Loose connectors
Judgment
5 ~ 95%RH
Corrective
Actions
Adjust to general
standard
(Internal environmental
standard of control section)
There should be no
corrosive gases
The module should be
mounted securely.
Visual check
Re-tighten screws
Retighten
Visual check
Proper clearance
Correct
Visual check
Measure voltage between input
terminals
142
DC24V:DC20.4 ~ 28.8V
Retighten screws
Chapter 15 Troubleshooting
Chapter 15 Troubleshooting
The following explains contents, diagnosis and corrective actions for various errors that can occur during system
operation.
15.2 Troubleshooting
This section explains the procedure for determining the cause of troubles as well as the errors and corrective
actions.
Symptoms
15-1
Chapter 15 Troubleshooting
15.2.1 Troubleshooting flowchart used when the PWR(Power) LED turns Off.
The following flowchart explains corrective action procedure used when the power is supplied or the power LED
turns Off during operation.
No
No
Yes
Yes
No
Yes
Yes
Yes
Complete
15-2
Chapter 15 Troubleshooting
15.2.2 Troubleshooting flowchart used with when the ERR (Error) LED is flickering
The following flowchart explains corrective action procedure use when the power is supplied star
ts or the ERR LED is flickering during operation.
No
Warning error?
Yes
No
Complete
Yes
Warning
Though warning error appears, PLC system doesnt stop but corrective action is needed
promptly. If not, it may cause the system failure.
15-3
Chapter 15 Troubleshooting
15.2.3 Troubleshooting flowchart used with when the RUN , STOP LED turns Off.
The following flowchart explains corrective action procedure to treat the lights-out of RUN LED when the power
is supplied, operation starts or operation is in the process.
No
Yes
15-4
Complete
Chapter 15 Troubleshooting
15.2.4 Troubleshooting flowchart used when the I/O part doesnt operate normally.
The following flowchart explains corrective action procedure used when the I/O module doesnt
operate normally.
No
Yes
Correct wiring.
No
No
Yes
Is the
terminal connector
appropriate?
Is the output
wiring correct?
Yes
Is it normal condition?
Yes
Yes
Yes
No
Yes
Is it normal condition?
No
15-5
Chapter 15 Troubleshooting
Continue
No
No
Yes
No
No
Yes
Yes
Is the condition
of the terminal board connector
appropriate?
No
Is the
terminal screw tighten
securely?
Yes
No
Correct wiring
No
Yes
15-6
Chapter 15 Troubleshooting
FAX)
OS version No.(
Serial No.(
),
),
),
), No(
15-7
), Related to environment(
Chapter 15 Troubleshooting
Cause
Leakage current of external device
(Such as a drive by non-contact switch)
Corrective Actions
y Connect an appropriate register and
capacity, which will make the voltage lower
Input signal
doesnt turn
AC input
off.
Leakage current
AC input
External device
R
~
Input signal
doesnt turn
current value.
off.
AC input
C
(Neon lamp
Leakage current
External device
on)
may be still
Input signal
doesnt turn
off.
AC input
AC input
Leakage current
External device
Input signal
doesnt turn
off.
External device
Leakage current
R
External device
Input signal
doesnt turn
off.
DC input
E
E
DC input
E1
Chapter 15 Troubleshooting
Cause
Corrective Action
is off, excessive
voltage is
applied to the
load.
R
D
Load
C
R
Load
doesnt
turn off.
Output
C
R
Load
capacity.
Leakage current
Load
Load
is C-R type
timer, time
constant
Output
Load
fluctuates.
therefore, be cautious.
C
R
Leakage current
Timer
Output
power supplies.
Output
Load
Load
E1
E2
15-9
Chapter 15 Troubleshooting
Output circuit troubles and corrective actions (continued).
Condition
Cause
Corrective actions
y Over current at off state [The large y Insert a small L/R magnetic contact and
response
solenoid current fluidic load (L/R is large) drive the load using the same contact.
time is long.
Outpu
Outpu
Off current
Loa
Loa
transistor is
destroyed.
Output
Output
E1
Output
R
15-10
Chapter 15 Troubleshooting
24
Error cause
Program to execute is
abnormal
Action
(restart mode after taking an action)
Start after reloading the program
Start after reloading I/O parameter,
Battery change if battery has a problem.
Check the preservation status after I/O
parameter reloading and if error occurs,
change the unit.
Start after reloading Basic parameter,
Change battery if it has a problem.
Check the preservation status after Basic
parameter reloading and if error occurs,
change the unit.
Operation
status
LED
status
Diagnosis
point
Warning
0.5 second
Flicker
RUN
mode
Warning
0.5 second
Flicker
Reset
RUN
mode
switching
Warning
0.5 second
Flicker
Reset
RUN
mode
switching
25
30
Module set in
parameter and the
installed module does
not match
Warning
0.5 second
Flicker
RUN
mode
switching
31
Warning
0.1 second
Flicker
Every
scan
33
Heavy
error
0.1 second
Flicker
Scan end
34
Normal access of
special/link module
data during operation
not available
Heavy
error
0.1 second
Flicker
Scan end
39
Abnormal stop of
CPU or malfunction
Heavy
error
0.1 second
Flicker
Ordinary
time
Warning
0.5 second
Flicker
While
running
the
program
Warning
0.5 second
Flicker
While
running
the
program
40
41
44
Warning
0.5 second
Flicker
Scan end
50
Heavy error of
external device
Heavy
error
1 second
Flicker
Scan end
60
E_STOP function
executed
Heavy
error
1 second
Flicker
While
running
the
program
not possible
500
15-11
Warning
1 second
Flicker
Power On
Bit
Variables
Function
_SYS_STATE
F0000
_RUN
Run
Run state.
F0001
_STOP
Stop
Stop state.
F0002
_ERROR
Error
Error state.
F0003
_DEBUG
Debug
Debug state.
F0004
_LOCAL_CON
Local control
F0006
_REMOTE_CON
Remote mode
F0008
_RUN_EDIT_ST
F0009
_RUN_EDIT_CHK
F000A
_RUN_EDIT_DONE
F000B
_RUN_EDIT_END
F000C
_CMOD_KEY
Operation mode
F000D
_CMOD_LPADT
Operation mode
F000E
_CMOD_RPADT
Operation mode
F000F
_CMOD_RLINK
Operation mode
F0010
_FORCE_IN
Forced input
F0011
_FORCE_OUT
Forced output
F0014
_MON_On
Monitor
Monitor on execution.
F0015
_USTOP_On
Stop
F0016
_ESTOP_On
EStop
F0017
_CONPILE_MODE
Compile
Compile on execution.
F0018
_INIT_RUN
Initialize
F001C
_PB1
Program Code 1
F001D
_PB2
Program Code 2
F001E
_CB1
Compile Code 1
F001F
_CB2
Compile Code2
_CNF_ER
System error
F0021
_IO_TYER
F0022
_IO_DEER
Module detachment
error
Module is detached.
F0024
_IO_RWER
F0025
_IP_IFER
F0026
_ANNUM_ER
F000~1
F002~3
App. 1-1
Description
by
Remote
F002~3
F004
Bit
Function
Description
F0028
_BPRM_ER
Basic parameter
F0029
_IOPRM_ER
IO parameter
F002A
_SPPRM_ER
F002B
_CPPRM_ER
Special module
parameter
Communication module
parameter
F002C
_PGM_ER
Program error
Program error.
F002D
_CODE_ER
Code error
F002E
_SWDT_ER
System watchdog
F0030
_WDT_ER
Scan watchdog
_CNF_WAR
System warning
F0041
_DBCK_ER
Backup error
F0043
_ABSD_ER
Operation shutdown
error
F0046
_ANNUM_WAR
F0048
_HS_WAR1
F0049
_HS_WAR2
F0054
_P2P_WAR1
P2P parameter 1
F0055
_P2P_WAR2
P2P parameter 2
F0056
_P2P_WAR3
P2P parameter 3
F005C
_CONSTANT_ER
Constant error
Constant error.
_USER_F
User contact
F0090
_T20MS
20ms
F0091
_T100MS
100ms
F0092
_T200MS
200ms
F0093
_T1S
1s Clock
1s cycle Clock.
F0094
_T2S
2 s Clock
2s cycle Clock.
F0095
_T10S
10 s Clock
F0096
_T20S
20 s Clock
F0097
_T60S
60 s Clock
F0099
_On
Ordinary time On
F009A
_Off
F009B
_1On
1scan On
F009C
_1Off
1scan Off
F009D
_STOG
Reversal
F009
Variable
App. 1-2
F010
Bit
Description
_USER_CLK
User Clock
F0100
_USR_CLK0
F0101
_USR_CLK1
F0102
_USR_CLK2
F0103
_USR_CLK3
F0104
_USR_CLK4
F0105
_USR_CLK5
F0106
_USR_CLK6
F0107
_USR_CLK7
_LOGIC_RESULT
Logic result
F0110
_LER
operation error
F0111
_ZERO
Zero flag
F0112
_CARRY
Carry flag
F0113
_ALL_Off
F0115
_LER_LATCH
Operation error
Latch
_CMP_RESULT
Comparison result
F0120
_LT
LT flag
F0121
_LTE
LTE flag
F0122
_EQU
EQU flag
On in case of equal.
F0123
_GT
GT flag
F0124
_GTE
GTE flag
F0125
_NEQ
NEQ flag
F012
Function
F011
Variable
F014
_FALS_NUM
FALS no.
F015
_PUTGET_ERR0
PUT/GET error 0
F023
_PUTGET_NDR0
PUT/GET end 0
F044
_CPU_TYPE
CPU Type
F045
_CPU_VER
CPU version
F046
_OS_VER
OS version
Indicates OS version.
F048
_OS_DATE
OS date
F050
_SCAN_MAX
F051
_SCAN_MIN
F052
_SCAN_CUR
App. 1-3
Bit
-
F057
Variable
_FPU_INFO
Function
FPU operation result
Description
Fixed decimal operation result.
F0570
_FPU_LFLAG_I
F0571
_FPU_LFLAG_U
F0572
_FPU_LFLAG_O
F0573
_FPU_LFLAG_Z
F0574
_FPU_LFLAG_V
F057A
_FPU_FLAG_I
F057B
_FPU_FLAG_U
F057C
_FPU_FLAG_O
F057D
_FPU_FLAG_Z
Zero divide
F057E
_FPU_FLAG_V
Invalid operation
F057F
_FPU_FLAG_E
Irregular input
F058
_ERR_STEP
Error step
F060
_REF_COUNT
Refresh
F062
_REF_OK_CNT
Refresh OK
F064
_REF_NG_CNT
Refresh NG
F066
_REF_LIM_CNT
Refresh Limit
F068
_REF_ERR_CNT
Refresh Error
F070
_MOD_RD_ERR_CNT
F072
_MOD_WR_ERR_CNT
F074
_CA_CNT
Block service
F076
_CA_LIM_CNT
F078
_CA_ERR_CNT
F080
_BUF_FULL_CNT
Buffer Full
F082
_PUT_CNT
Put count
F084
_GET_CNT
Get count
F086
_KEY
Current key
F088
_KEY_PREV
Previous key
F090
_IO_TYER_N
Mismatch slot
F091
_IO_DEER_N
Detach slot
F093
_IO_RWER_N
F094
_IP_IFER_N
RW error slot
F096
_IO_TYER0
IF error slot
App. 1-4
Bit
F104
_IO_DEER0
F120
_IO_RWER0
Module RW 0 error
F128
_IO_IFER_0
Module IF 0 error
F140
_AC_FAIL_CNT
F142
_ERR_HIS_CNT
F144
_MOD_HIS_CNT
F146
_SYS_HIS_CNT
F148
_LOG_ROTATE
Log Rotate
F150
_BASE_INFO0
Slot information 0
_USER_WRITE_F
F2000
_RTC_WR
RTC RW
F2001
_SCAN_WR
Scan WR
F2002
_CHK_ANC_ERR
F2003
_CHK_ANC_WAR
_USER_STAUS_F
F2010
_INIT_DONE
Initialization completed
F202
_ANC_ERR
F203
_ANC_WAR
Display information of
external serious error
Display information of
external slight error
(warning)
F200
F201
Variable
Function
Request detection of
external serious error
Request detection of
external slight error
(warning)
App. 1-5
Description
Keyword
Type
Description
High speed link parameter 1 normal operation of all station
L000
_HS1_RLINK
Bit
L001
_HS1_LTRBL
L0020 ~
L005F
_HS1_STATE[k]
(k = 00~63)
Bit
Bit
Array
_HS1_STATE[k] = HS1MOD[k]&_HS1TRX[k]&(~_HS1_ERR[k])
L0060 ~
L009F
_HS1_MOD[k]
(k = 00~63)
Bit
Array
L0100 ~
L013F
_HS1_TRX[k]
(k = 00~63)
Bit
Array
L0140 ~
L017F
_HS1_ERR[k]
(k = 00~63)
Bit
Array
L0180 ~
Bit
_HS1_SETBLOCK[k]
L021F
Array
App. 1-6
Keyword
Type
Description
High-speed link parameter 2 normal operation of all station.
L0260
_HS2_RLINK
Bit
L0261
_HS2_LTRBL
L0280 ~
L031F
_HS2_STATE[k]
(k = 00~63)
Bit
Bit
Array
_HS2_STATE[k]=HS2MOD[k]&_HS2TRX[k]&(~_HS2_ERR[k])
L0320 ~
L035F
_HS2_MOD[k]
(k = 00~63)
Bit
Array
L0360 ~
L039F
_HS2_TRX[k]
(k = 00~63)
Bit
Array
L0400 ~
L043F
_HS2_ERR[k]
(k = 00~63)
Bit
Array
L0440 ~
Bit
_HS2_SETBLOCK[k]
L047F
Array
App. 1-7
Keyword
Type
Description
L5120
_P2P1_NDR00
Bit
L5121
_P2P1_ERR00
Bit
L513
_P2P1_STATUS00
Word
L514
_P2P1_SVCCNT00
DWord
L516
_P2P1_ERRCNT00
DWord
L5180
_P2P1_NDR01
Bit
L5181
_P2P1_ERR01
Bit
L519
_P2P1_STATUS01
Word
L520
_P2P1_SVCCNT01
DWord
L522
_P2P1_ERRCNT01
DWord
L524~L529
Word
L530~L535
Word
L536~L697
Word
L698~L703
Word
[Communication flag list according to P2P service setting] P2P parameter: 1~3, P2P block: 0~31
App. 1-8
Keyword
Type
Description
N000
_P1B00SN
Word
N0000~0004
_P1B00RD1
Word
N005
_P1B00RS1
Word
N0006~0009
_P1B00RD2
Word
N010
_P1B00RS2
Word
N0011~0014
_P1B00RD3
Word
N015
_P1B00RS3
Word
N0016~0019
_P1B00RD4
Word
N020
_P1B00RS4
Word
N0021~0024
_P1B00WD1
Word
N025
_P1B00WS1
Word
N0026~0029
_P1B00WD2
Word
N030
_P1B00WS2
Word
N0031~0034
_P1B00WD3
Word
N035
_P1B00WS3
Word
N0036~0039
_P1B00WD4
Word
N040
_P1B00WS4
Word
N0041~0081
Word
Saving area of
N0082~0122
Word
Saving area of
N0123~1311
Word
Saving area of
N1312~2623
Word
Saving area of
P2P parameter 2.
N2624~3935
Word
Saving area of
P2P parameter 3.
[Network register according to P2P service setting] P2P parameter: 1~3, P2P block: 0~31
Remark
In XGB S type, Network register is available only monitoring. (Read Only)
App. 1-9
Appendix 2 Dimension
0 XBM-DN32S
0
PWR
1
RUN
2
3
ERR
4
5
6
RS-232C
7
8
9
A
B
C
D
E
F
RUN
2
0
1
2
3
4
5
6
7
8
9
A
B
C
D
E
F
-. XBM-DR16S
0 XBM-DR16S
0
PWR
1
RUN
2
3
ERR
4
5
6
RS-232C
7
RUN
2
0
1
2
3
4
5
6
7
60
App. 21
Appendix 2 Dimension
2) Expansion module
-. XBE-DC32A, XBE-TR32A
XBE-DC32A
B A
20
19
18
17
16
15
14
13
12
11
10
09
08
07
06
05
04
03
02
01
-. XBE-RY16A
XBE-RY16A
RUN
01
07
01
07
App. 22
Appendix 2 Dimension
3) Communication module
-. XBL-C41/21A
XBL-CU41A
XBL-CU21A
RS-422
RS-232C
-. XBL-EMTA
XBL-EUMTA
10/100BASE-TX
App. 23
Appendix 2 Dimension
4) Special module
-. XBF-AD04A
XBF-AD04A
RUN
CH0
CH1
CH2
CH3
CH0
CH1
CH2
CH3
-. XBF-DV04A
XBF-DV04A
RUN
CH0
CH1
CH2
CH3
App. 24
XGB
Function
Symbol
Device
Function
F0000
RUN mode
_RUN
F0000
F0001
Program mode
_STOP
F0001
Program mode
F0002
Pause mode
_ERROR
F0002
Error mode
F0003
Debug mode
_DEBUG
F0003
Debug mode
F0004
N/A
_LOCAL_CON
F0006
Remote mode
F0005
N/A
_MODBUS_CON
F0006
Remote mode
F0006
Remote mode
_REMOTE_CON
F0006
Remote mode
F0007
F0007
N/A
F0008
N/A
_RUN_EDIT_ST
F0008
F0009
N/A
_RUN_EDIT_CHK
F0009
F000A
_RUN_EDIT_DONE
F000A
F000B
N/A
_RUN_EDIT_END
F000B
F000C
N/A
_CMOD_KEY
F000C
F000D
N/A
_CMOD_LPADT
F000D
F000E
N/A
_CMOD_RPADT
F000E
F000F
_CMOD_RLINK
F000F
F0010
Ordinary time On
_FORCE_IN
F0010
Forced input
F0011
_FORCE_OUT
F0011
Forced output
F0012
1 Scan On
_SKIP_ON
F0012
F0013
1 Scan Off
_EMASK_ON
F0013
F0014
_MON_ON
F0014
Monitor execution
_USTOP_ON
F0015
_ESTOP_ON
F0016
_CONPILE_MODE
F0017
Compile
_INIT_RUN
F0018
Initialize
F0019 ~
F001F
N/A
_PB1
F001C
Program Code 1
F0015 ~
F001C
N/A
F001D
N/A
_PB2
F001D
Program Code 2
F001E
N/A
_CB1
F001E
Compile code 1
F001F
N/A
_CB2
F001F
Compile code 2
App. 3-1
Function
XGB
Symbol
Device
Function
F0020
1 Step RUN
_CPU_ER
F0020
F0021
_IO_TYER
F0021
F0022
Scan RUN
_IO_DEER
F0022
F0023
_FUSE_ER
F0023
F0024
_IO_RWER
F0024
_IP_IFER
F0025
_ANNUM_ER
F0026
F0025 ~
F002F
N/A
F0027
N/A
_BPRM_ER
F0028
_IOPRM_ER
F0029
_SPPRM_ER
F002A
_CPPRM_ER
F002B
_PGM_ER
F002C
Program error
_CODE_ER
F002D
_SWDT_ER
F002E
_BASE_POWER
_ER
F002F
_WDT_ER
F0030
Scan watchdog
F0030
Heavy error
F0031
Light error
F0031
F0032
WDT error
F0032
F0033
F0033
F0034
F0034
F0035
Fuse error
F0035
F0036 ~
F0038
N/A
F0036 ~
F0038
F0039
Backup normal
F0039
F003A
F003A
F003B
Program change
F003B
F003C
F003C
F003D ~
F003F
F003D ~
F003F
F0040~
F005F
N/A
N/A
N/A
_RTC_ER
F0040
_DBCK_ER
F0041
_HBCK_ER
F0042
_ABSD_ER
F0043
_TASK_ER
F0044
Task collision
_BAT_ER
F0045
Battery error
_ANNUM_ER
F0046
App. 3-2
F0040 ~ F005F
XGB
Function
N/A
Symbol
Device
Function
_LOG_FULL
F0047
_HS_WAR1
F0048
_HS_WAR2
F0049
_HS_WAR3
F0049
_HS_WAR4
F0049
_HS_WAR5
F0049
_HS_WAR6
F0049
_HS_WAR7
F0049
_HS_WAR8
F0049
_HS_WAR9
F0050
_HS_WAR10
F0051
_HS_WAR11
F0052
_HS_WAR12
F0053
_P2P_WAR1
F0054
_P2P_WAR2
F0055
_P2P_WAR3
F0056
_P2P_WAR4
F0057
_P2P_WAR5
F0058
_P2P_WAR6
F0059
_P2P_WAR7
F005A
_P2P_WAR8
F005B
_Constant_ER
F005C
Constant error
F005D ~ F005F
N/A
F0060 ~ F006F
F0060 ~ F006F
N/A
F0070 ~ F008F
F0070 ~ F008F
N/A
F0090
_T20MS
F0090
F0091
_T100MS
F0091
F0092
_T200MS
F0092
F0093
1s cycle Clock
_T1S
F0093
1s cycle Clock
F0094
2s cycle Clock
_T2S
F0094
2s cycle Clock
F0095
_T10S
F0095
F0096
_T20S
F0096
F0097
_T60S
F0097
F0098
N/A
_ON
F0099
Ordinary time On
_OFF
F009A
F0098
~F009F
N/A
App. 3-3
F0098~F009F
XGB
Function
N/A
Symbol
Device
Function
_1ON
F009B
1 Scan On
_1OFF
F009C
1 Scan Off
_STOG
F009D
F009B ~ F009F
N/A
F0100
User Clock 0
F0100
User Clock 0
F0101
User Clock 1
F0101
User Clock 1
F0102
User Clock 2
F0102
User Clock 2
F0103
User Clock 3
F0103
User Clock 3
F0104
User Clock 4
F0104
User Clock 4
F0105
User Clock 5
F0105
User Clock 5
F0106
User Clock 6
F0106
User Clock 6
F0107
User Clock 7
F0107
User Clock 7
F0108 ~ F010F
F0108 ~ F010F
N/A
F0110
_Ler
F0110
F0111
Zero flag
_Zero
F0111
Zero flag
F0112
Carry flag
_Carry
F0112
Carry flag
F0113
_All_Off
F0113
F0114
N/A
F0115
F0116 ~ F011F
N/A
F0114
F0115
_Ler_Latch
F0116 ~ F011F
F0120
LT flag
_LT
F0120
LT flag
F0121
LTE flag
_LTE
F0121
LTE flag
F0122
EQU flag
_EQU
F0122
EQU flag
F0123
GT flag
_GT
F0123
GT flag
F0124
GTE flag
_GTE
F0124
GTE flag
F0125
NEQ flag
_NEQ
F0125
NEQ flag
F0126 ~ F012F
N/A
F0126 ~ F012F
N/A
F0130~ F013F
AC Down Count
_AC_F_CNT
F0130~ F013F
AC Down Count
F0140~ F014F
FALS no.
_FALS_NUM
F0140~ F014F
FALS no.
_PUTGET_ERR
F0150~ F030F
CPU TYPE
F0440 ~ F044F
CPU TYPE
CPU VERSION
F0450 ~ F045F
CPU VERSION
F0460 ~ F047F
O/S date
F0480 ~ F049F
F0150~ F015F
F0160~ F049F
N/A
App. 3-4
Function
XGB
Symbol
Device
Function
F0500~ F050F
_SCAN_MAX
F0500~ F050F
F0510~ F051F
_SCAN_MIN
F0510~ F051F
F0520~ F052F
_SCAN_CUR
F0520~ F052F
F0530~ F053F
Clock data
(year/month)
_YEAR_MON
F0530~ F053F
F0540~ F054F
_DAY_TIME
F0540~ F054F
Clock data(day/hr)
F0550~ F055F
_MIN_SEC
F0550~ F055F
Clock data(min/sec)
F0560~ F056F
Clock data
(100year/weekday)
_HUND_WK
F0560~ F056F
Clock data(100year/weekday)
_FPU_LFlag_I
F0570
_FPU_LFlag_U
F0571
_FPU_LFlag_O
F0572
_FPU_LFlag_Z
F0573
_FPU_LFlag_V
F0574
F0570~ F058F
N/A
F0590~ F059F
F0600~ F060F
F0610~ F063F
N/A
F0575 ~ F0579
_FPU_Flag_I
F057A
_FPU_Flag_U
F057B
_FPU_Flag_O
F057C
_FPU_Flag_Z
F057D
_FPU_Flag_V
F057E
_FPU_Flag_E
F057F
Error Step
F0580~ F058F
F0590~ F059F
N/A
_REF_COUNT
F060~F061
Refresh Count
_REF_OK_CNT
F062~F063
Refresh OK Count
_REF_NG_CNT
F064~F065
Refresh NG Count
_REF_LIM_CNT
F066~F067
_REF_ERR_CNT
F068~F069
_MOD_RD_ERR_CNT
F070~F071
_MOD_WR_ERR_CNT
F072~F073
_CA_CNT
F074~F075
_CA_LIM_CNT
F076~F077
_CA_ERR_CNT
F078~F079
_BUF_FULL_CNT
F080~F081
App. 3-5
Basic
Instructions
Instructions
Contact Point Instruction
Unite Instruction
Reverse Instruction
NOT
MCS, MCSCLR
OUT, SET, RST, 1 Scan Output Instruction, Output Reverse
Instruction (FF)
Output Instruction
Sequence/Last-input
Preferred Instruction
End Instruction
END
NOP
Timer Instruction
Counter Instruction
Conversion Instruction
Rotate Instruction
Move Instruction
Exchange Instruction
BIN Operation Instruction
BCD Operation Instruction
Logic Operation Instruction
System Instruction
Data Process Instruction
Data Table Process
Instruction
4/8/64 Bits
available
4/8 Bits
available
Special Function
Instruction
Data Control Instruction
Diverge Instruction
JMP, CALL
Remarks
Non-Process Instruction
Application
Instructions
Details
Loop Instruction
FOR/NEXT/BREAK
App. 4-1
Compare to
Unsigned
Compare to
Signed
4/8 Bits
available
4/8 Bits
available
4/8 Bits
available
Designations
Symbol
Description
LOAD
LOAD NOT
AND
AND NOT
OR
Contact
Point
Support
XGK
XGB
OR NOT
LOADP
LOADN
ANDP
ANDN
ORP
ORN
2) Union instruction
Classification
Designations
Symbol
AND LOAD
OR LOAD
Unite
Description
MPUSH
MPUSH
Support
XGK
XGB
MLOAD
MLOAD
MPOP
MPOP
Remark
1) The number of Basic Steps means the case that indirect specification, index formula and direct
variable input were not used. In other words, it represents the minimum number of the steps of the
applicable instruction.
2) The number of steps depends on indirect specification, index formula and pulse application used.
App. 4-2
Designations
Symbol
Description
Previous Operation results
Reverse
NOT
Support
XGK
XGB
Designations
Symbol
Description
XGB
MCS
MCSCLR
MCS
MCSCLR
Support
XGK
5) Output instruction
Classification
Output
Designations
Symbol
Description
Support
XGK
XGB
OUT
OUT NOT
OUTP
OUTN
SET
RST
FF
FF
Designations
Symbol
Description
Syy.xx
SET S
Step
Control
Syy.xx
OUT S
Support
XGK
XGB
Sequence Control
Last-input Preferred
7) End instruction
Classification
End
Designations
Symbol
END
Description
END
Program End
8) Non-process instruction
Classification
Designations
Non-Process
NOP
Symbol
Description
Non-Process Instruction, used
in Nimonic
App. 4-3
Support
XGK
XGB
Support
XGK
XGB
Designations
Symbol
TON
TON
Support
Description
Input
T
XGK
XGB
Input
TOFF
TOFF
T
t1+t2 = t
Input
Timer
TMR
TMR
t1
t2
Input
TMON
TMON
Input
TRTG
TRTG
Symbol
Support
Description
XGK
XGB
Reset
CTD
CTD
C c
Count
Pulse
Setting
Present
Output
Reset
Count
Pulse
CTU
CTU
Setting
C c
Present
Output
Reset
Counter
Increased
Pulse
Decreased
CTUD
Pulse
CTUD
C U D c
Setting
Present
Output
Reset
CTR
CTR
C c
Count
Pulse
Present
Output
App. 4-4
Setting
32 bits
Transfer
Short
Real Number
Transfer
Long
Real Number
Transfer
4 bits
Transfer
8 bits
Transfer
1s complement
Transfer
16 bits
Group Transfer
Multiple
Transfer
Designations
Symbol
MOV
MOV
S D
MOVP
MOVP
S D
DMOV
DMOV
S D
DMOVP
DMOVP
S D
RMOV
RMOV
S D
RMOVP
RMOVP
S D
LMOV
LMOV
S D
LMOVP
LMOVP
S D
MOV4
MOV4
Sb Db
(S)
(D)
(S+1,S)
(D+1,D )
(S+3,S+2,S+1,S)
(D+3,D+2,D+1,D)
(Sb): Bit Position
MOV4P
MOV4P
Sb Db
MOV8
MOV8
Sb Db
MOV8P
MOV8P
Sb Db
b15
b0
CMOV
CMOV
S D
b0
8bit trans
CMOVP
CMOVP
S D
DCMOV
DCMOV
S D
DCMOVP
DCMOVP
S D
GMOV
GMOV
S D N
GMOVP
GMOVP
S D N
FMOV
FMOV
S D N
FMOVP
FMOVP
S D N
BMOV
BMOV
S D N
1s complement
(S)
(D)
1s complement
(S+1,S)
(D+1,D )
(S)
(S)
(S)
(D)
GBMOV
BMOVP
GBMOV
S D N
S D Z N
Specified Bits
Group Transfer
GBMOVP
(D+1,D )
4bit trans
BMOVP
(S+1,S)
(D)
(D)
b0
b15
Specified Bits
Transfer
Support
XGK
XGB
Description
GBMOVP
S D Z N
* Z: Control Word
(S) b15
:
(S+N)
(D)
:
(D+N)
App. 4-5
b0
N
* Z: Control Word
Symbol
Support
XGK
XGB
Description
$MOV
$MOV
S D
$MOVP
$MOVP
S D
BCD
Conversion
Symbol
Support
XGK
XGB
Description
BCD
BCD
S D
BCDP
BCDP
S D
DBCD
DBCD
S D
DBCDP
DBCDP
S D
BCD4
BCD4
Sb Db
(S)
To BCD
(D)
BIN( 0~9999 )
(S+1,S)
To BCD
(D+1,D )
BIN( 0~99999999 )
(Sb):Bit, BIN(0~9)
b15
b0
To 4bit BCD
4/8 Bits
BCD
Conversion
BCD4P
BCD4P
BCD8
BCD8
Sb Db
(Db): Bit
Sb Db
(Sb):Bit, BIN(0~99)
b15
b0
To 8bit BCD
BCD8P
BCD8P
Sb Db
(Db):Bit
BIN
Conversion
BIN
BIN
S D
BINP
BINP
S D
DBIN
DBIN
S D
DBINP
DBINP
S D
BIN4
BIN4
Sb Db
(S)
To BIN
(D)
BCD( 0~9999 )
(S+1,S)
To BIN
(D+1,D )
BCD( 0~99999999 )
(Sb):Bit, BCD(0~9)
b15
b0
To 4bit BIN
4/8 Bits
BIN
Conversion
BIN4P
BIN4P
Sb Db
(Db):Bit
BIN8
BIN8
Sb Db
(Sb):Bit, BCD(0~99)
b15
b0
To bit BIN
BIN8P
BIN8P
Sb Db
(Db):Bit
Group
BCD,BIN
Conversion
GBCD
GBCD
S D N
GBCDP
GBCDP
S D N
GBIN
GBIN
S D N
GBINP
GBINP
S D N
App. 4-6
Symbol
I2R
S D
(S)
I2RP
16 Bits
Integer/Real
Conversion I2L
I2RP
S D
I2L
S D
I2LP
I2LP
S D
D2R
D2R
S D
D2RP
32 Bits
Integer/Real
Conversion D2L
D2RP
S D
D2L
S D
D2LP
D2LP
S D
R2I
R2I
S D
R2IP
Short
Real/Integer
Conversion R2D
R2IP
S D
R2D
S D
S D
L2I
L2I
S D
L2IP
S D
L2D
S D
L2DP
S D
(D+1,D)
Int( -32768~32767 )
(S)
To Long
(D+3,D+2,D+1,D)
Int( -32768~32767 )
(S+1,S)
To Real
(D+1,D)
Dint(-2147483648~2147483647)
(S+1,S)
To Long
(D+3,D+2,D+1,D)
Dint(-2147483648~2147483647)
To INT
(D)
(S+1,S)
R2DP
L2DP
To Real
(S+1,S)
R2DP
L2IP
Long
Real/Integer
Conversion L2D
Support
XGK
XGB
Description
To DINT
(D+1,D)
To INT
(D)
(S+3,S+2,S+1,S)
To DINT
(D+1,D)
Remark
1) Integer value and Real value will be saved respectively in quite different format. For such reason, Real
Number Data should be converted as applicable before used for Integer Operation.
App. 4-7
Symbol
CMP
Unsigned
Compare
CMPP
with Special
Relay
DCMP
used
DCMPP
4/8 Bits
Compare
Table
Compare
Group
Compare
(16 Bits)
Description
CMP
S1 S2
CMPP
S1 S2
DCMP
S1 S2
DCMPP
S1 S2
CMP4
CMP4
S1 S2
CMP4P
CMP4P
S1 S2
CMP8
CMP8
S1 S2
CMP8P
CMP8P
S1 S2
TCMP
TCMP
S1 S2 D
TCMPP
TCMPP
S1 S2 D
DTCMP
DTCMP
S1 S2 D
DTCMPP
DTCMPP
S1 S2 D
GEQ
GEQ
S1 S2 D N
GEQP
GEQP
S1 S2 D N
GGT
GGT
S1 S2 D N
GGTP
GGTP
S1 S2 D N
GLT
GLT
S1 S2 D N
GLTP
GLTP
S1 S2 D N
GGE
GGE
S1 S2 D N
GGEP
GGEP
S1 S2 D N
GLE
GLE
S1 S2 D N
GLEP
GLEP
S1 S2 D N
GNE
GNE
S1 S2 D N
GNEP
GNEP
S1 S2 D N
Support
XGK
XGB
CMP(S1,S2))
:
CMP(S1+15,S2+15)
Result:(D) ~ (D+15), 1 if identical
CMP((S1+1,S1),(S2+1,S2))
:
CMP((S1+31,S1+30),(S2+31,S2+30))
Result:(D) ~ (D+15)
Remark
1) CMP(P), DCMP(P), CMP4(P), CMP8(P), TCMP(P) & DTCMP(P) Instructions all process the results of
Unsigned Compare. All the other Compare Instructions will perform Signed Compare.
App. 4-8
Group
Compare
(32 Bits)
Symbol
Description
Support
XGK
XGB
GDEQ
GDEQ
S1 S2 D N
GDEQP
GDEQP
S1 S2 D N
GDGT
GDGT
S1 S2 D N
GDGTP
GDGTP
S1 S2 D N
GDLT
GDLT
S1 S2 D N
GDLTP
GDLTP
S1 S2 D N
GDGE
GDGE
S1 S2 D N
GDGEP
GDGEP
S1 S2 D N
GDLE
GDLE
S1 S2 D N
GDLEP
GDLEP
S1 S2 D N
GDNE
GDNE
S1 S2 D N
GDNEP
GDNEP
S1 S2 D N
App. 4-9
16 Bits
Data
Compare
(LOAD)
16 Bits
Data
Compare
(AND)
16 Bits
Data
Compare
(OR)
32 Bits
Data
Compare
(LOAD)
Symbol
LOAD=
S1 S2
LOAD>
>
S1 S2
LOAD<
<
S1 S2
LOAD>=
>=
S1 S2
LOAD<=
<=
S1 S2
LOAD<>
<>
S1 S2
AND=
S1 S2
AND>
>
S1 S2
AND<
<
S1 S2
AND>=
>=
S1 S2
AND<=
<=
S1 S2
AND<>
<>
S1 S2
OR=
S1 S2
OR<=
<=
S1 S2
OR<>
<>
S1 S2
LOADD=
D=
S1 S2
LOADD>
D>
S1 S2
LOADD<
D<
S1 S2
LOADD>=
D>=
S1 S2
LOADD<=
D<=
S1 S2
LOADD<>
D<>
S1 S2
Description
Support
XGK
XGB
Remark
Comparison instruction process Signed comparison instruction generally. To process Unsigned comparison, Use
comparison instruction.
App. 4-10
32 Bits
Data
Compare
(AND)
32bt
Data
Compare
(OR)
Short
Real Number
Compare
(LOAD)
Short
Real Number
Compare
(AND)
Designations
Symbol
ANDD=
D=
S1 S2
ANDD>
D>
S1 S2
ANDD<
D<
S1 S2
ANDD>=
D>=
S1 S2
ANDD<=
D<=
S1 S2
ANDD<>
D<>
S1 S2
ORD=
D=
S1 S2
ORD>
D>
S1 S2
ORD<
D<
S1 S2
ORD>=
D>=
S1 S2
ORD<=
D<=
S1 S2
ORD<>
D<>
S1 S2
LOADR=
R=
S1 S2
LOADR>
R>
S1 S2
LOADR<
R<
S1 S2
LOADR>=
R>=
S1 S2
LOADR<=
R<=
S1 S2
LOADR<>
R<>
S1 S2
ANDR=
R=
S1 S2
ANDR>
R>
S1 S2
ANDR<
R<
S1 S2
ANDR>=
R>=
S1 S2
ANDR<=
R<=
S1 S2
ANDR<>
R<>
S1 S2
Description
Support
XGK
XGB
App. 4-11
Real Number
Compare
(OR)
Symbol
ORR=
R=
S1 S2
ORR>
R>
S1 S2
ORR<
R<
S1 S2
ORR>=
R>=
S1 S2
ORR<=
R<=
S1 S2
ORR<>
R<>
S1 S2
LOADL=
L=
S1 S2
LOADL>
L>
S1 S2
L<
S1 S2
L>=
S1 S2
LOADL<=
L<=
S1 S2
LOADL<>
L<>
S1 S2
ANDL=
L=
S1 S2
ANDL>
L>
S1 S2
L<
S1 S2
L>=
S1 S2
ANDL<=
L<=
S1 S2
ANDL<>
L<>
S1 S2
Long
Real Number LOADL<
Compare
(LOAD)
LOADL>=
Long
ANDL<
Real Number
Compare
ANDL>=
(AND)
Description
Compares (S1+3,S1+2,S1+1,S) to
(S2+3,S2+2, S2+1,S2) and saves its
result in Bit Result(BR) (Signed
Operation)
App. 4-12
Support
XGK
XGB
Double Real
Number
Compare
(OR)
String
Compare
(LOAD)
String
Compare
(AND)
Designations
Symbol
ORL=
L=
S1 S2
ORL>
L>
S1 S2
ORL<
L<
S1 S2
ORL>=
L>=
S1 S2
ORL<=
L<=
S1 S2
ORL<>
L<>
S1 S2
LOAD$=
$=
S1 S2
LOAD$>
$>
S1 S2
LOAD$<
$<
S1 S2
LOAD$>=
$>=
S1 S2
LOAD$<=
$<=
S1 S2
LOAD$<>
$<>
S1 S2
AND$=
$=
S1 S2
AND$>
$>
S1 S2
AND$<
$<
S1 S2
AND$>=
$>=
S1 S2
AND$<=
$<=
S1 S2
AND$<>
$<>
S1 S2
Description
Support
XGK
XGB
App. 4-13
String
Compare
(OR)
16 Bits
Data
Group Compare
(LOAD)
16 Bits
Data
Group Compare
(AND)
16 Bits
Data
Group Compare
(OR)
Designations
Symbol
Description
OR$=
$=
S1 S2
OR$>
$>
S1 S2
OR$<
$<
S1 S2
OR$>=
$>=
S1 S2
OR$<=
$<=
S1 S2
OR$<>
$<>
S1 S2
LOADG=
G=
S1 S2 N
LOADG>
G>
S1 S2 N
LOADG<
G<
S1 S2 N
LOADG>=
G>=
S1 S2 N
LOADG<=
G<=
S1 S2 N
LOADG<>
G<>
S1 S2 N
ANDG=
G=
S1 S1 N
ANDG>
G>
S1 S1 N
ANDG<
G<
S1 S1 N
ANDG>=
G>=
S1 S1 N
ANDG<=
G<=
S1 S1 N
ANDG<>
G<>
S1 S1 N
ORG=
G=
S1 S2 N
ORG>
G>
S1 S2 N
ORG<
G<
S1 S2 N
ORG>=
G>=
S1 S2 N
ORG<=
G<=
S1 S2 N
ORG<>
G<>
S1 S2 N
App. 4-14
Support
XGK
XGB
32 Bits
Data
Group
Compare
(LOAD)
32 Bits
Data
Group
Compare
(AND)
32 Bits
Data
Group
Compare
(OR)
Designations
Symbol
LOADDG=
DG=
S1 S2 N
LOADDG>
DG>
S1 S2 N
LOADDG<
DG<
S1 S2 N
LOADDG>=
DG>=
S1 S2 N
LOADDG<=
DG<=
S1 S2 N
LOADDG<>
DG<>
S1 S2 N
ANDDG=
DG=
S1 S1 N
ANDDG>
DG>
S1 S1 N
ANDDG<
DG<
S1 S1 N
ANDDG>=
DG>=
S1 S1 N
ANDDG<=
DG<=
S1 S1 N
ANDDG<>
DG<>
S1 S1 N
ORDG=
DG=
S1 S2 N
ORDG>
DG>
S1 S2 N
ORDG<
DG<
S1 S2 N
ORDG>=
DG>=
S1 S2 N
ORDG<=
DG<=
S1 S2 N
ORDG<>
DG<>
S1 S2 N
App. 4-15
Description
Support
XGX
XGB
Performs OR operation of
(S1), (S1+1), , (S1+N) &
(S2), (S2+1), , (S2+N) 1 to
1 Compare Result and Bit
Result(BR), and then saves its
result in BR
Designations
Symbol
Description
LOAD3=
3=
S1 S2 S3
LOAD3>
3>
S1 S2 S3
3<
S1 S2 S3
3>=
S1 S2 S3
LOAD3<=
3<=
S1 S2 S3
LOAD3<>
3<>
S1 S2 S3
AND3=
3=
S1 S2 S3
AND3>
3>
S1 S2 S3
3<
S1 S2 S3
3>=
S1 S2 S3
AND3<=
3<=
S1 S2 S3
AND3<>
3<>
S1 S2 S3
OR3=
3=
S1 S2 S3
OR3>
3>
S1 S2 S3
<3
S1 S2 S3
>=3
S1 S2 S3
OR3<=
3<=
S1 S2 S3
OR3<>
3<>
S1 S2 S3
LOADD3=
D3=
S1 S2 S3
LOADD3>
D3>
S1 S2 S3
D3<
S1 S2 S3
D3>=
S1 S2 S3
LOADD3<=
D3<=
S1 S2 S3
LOADD3<>
D3<>
S1 S2 S3
Support
XGK
XGB
App. 4-16
Designations
Description
ANDD3=
D3=
S1 S2 S3
ANDD3>
D3>
S1 S2 S3
D3<
S1 S2 S3
D3>=
S1 S2 S3
ANDD3<=
D3<=
S1 S2 S3
ANDD<>
D3<>
S1 S2 S3
ORD3=
D3=
S1 S2 S3
ORD3>
D3>
S1 S2 S3
ORD3<
D3<
S1 S2 S3
Three 32-Bit
Data Compare
(OR)
Symbol
ORD3>=
D3>=
S1 S2 S3
ORD3<=
D3<=
S1 S2 S3
ORD3<>
D3<>
S1 S2 S3
Support
XGK
XGB
App. 4-17
Designations
Symbol
Support
Description
INC
INC
INCP
INCP
DINC
DINC
DINCP
DINCP
DEC
DEC
(D)+1
XGK
XGB
(D)
4-94
BIN Data
Increase
/
Decrease
(Signed)
(D+1,D)
(D+1,D)+1
(D)-1
DECP
DECP
DDEC
DDEC
DDECP
DDECP
INC4
INC4
Db
INC4P
INC4P
Db
INC8
INC8
Db
INC8P
INC8P
Db
DEC4
DEC4
Db
DEC4P
DEC4P
Db
DEC8
DEC8
Db
DEC8P
DEC8P
Db
INCU
INCU
INCUP
INCUP
DINCU
DINCU
DINCUP
DINCUP
DECU
DECU
DECUP
DECUP
DDECU
DDECU
DDECUP
DDECUP
(D)
2
4-96
(D+1,D)
(D+1,D)-1
2
3
4-95
2
3
2
3
4-97
(D)+1
(D)
2
3
2
4-98
BIN Data
Increase
/
Decrease
(Unsigned)
(D+1,D)+1
(D)-1
(D+1,D)
(D)
2
4-99
(D+1,D)-1
App. 4-18
(D+1,D)
Designations
ROL
Rotate to Left
Symbol
ROL
D n
b15
ROLP
ROLP
D n
DROL
DROL
D n
DROLP
DROLP
D n
ROL4
ROL4
Db n
ROL4P
Db n
ROL8
ROL8
Db n
ROL8P
ROL8P
Db n
ROR
ROR
D n
b31
b15
D+1
b+3
Rotate to Right
D n
DROR
DROR
D n
DRORP
DRORP
D n
ROR4
ROR4
Db n
ROR4P
ROR4P
Db n
ROR8
ROR8
Db n
ROR8P
ROR8P
Db n
RCL
RCL
D n
Rotate to Left
(including
Carry)
b+7
4/8 Bits
Rotate to Left
(including
Carry)
Rotate
to Right
(including
Carry)
DRCL
DRCL
D n
DRCLP
DRCLP
D n
RCL4
RCL4
Db n
RCL4P
RCL4P
Db n
RCL8
RCL8
Db n
RCL8P
RCL8P
Db n
RCR
RCR
D n
RCRP
RCRP
D n
DRCR
DRCR
D n
DRCRP
DRCRP
D n
RCR4
RCR4
Db n
RCR4P
Db n
RCR8
Db n
RCR8P
Db n
RCR8P
b15
b31
b0
CY
b
CY
CY
b15
b0
b31
b15
b+3
CY
b0
D+1
CY
b+7
CY
b0
b15
CY
b15
b31
b0
CY
D
b+3
b
CY
b+7
App. 4-19
CY
D+1
4/8 Bits
RCR4P
Rotate to Right
(including
RCR8
Carry)
b0
b15
CY
D n
b+7
RCLP
b+3
RCLP
D+1
4/8 Bits
Rotate to Right
D
RORP
b0
CY
RORP
XGB
CY
ROL4P
XGK
b0
CY
CY
4/8 Bits
Rotate to Left
Support
Description
CY
Designations
Symbol
Support
Description
BSFT
BSFT
St Ed
BSFTP
BSFTP
St Ed
St
b15
Ed
BSFL
D n
BSFLP
BSFLP
D n
DBSFL
DBSFL
D n
DBSFLP
DBSFLP
D n
BSFL4
BSFL4
Db n
BSFL4P
Db n
BSFL8
Db n
BSFL8P
BSFL8P
Db n
BSFR
BSFR
D n
BSFRP
BSFRP
D n
DBSFR
DBSFR
D n
DBSFRP
DBSFRP
D n
BSFR4
BSFR4
Db n
BSFR4P
Db n
BSFR8
Db n
BSFR8P
BSFR8P
Db n
WSFT
WSFT
Et Ed
WSFTP
WSFTP
Et Ed
Bit Move
b31
b0
(D+1, D)
b+3
CY
b+7
D
CY
b0
(D)
0
CY
b0
(D+1, D)
CY
D
CY
D
0
h0000
CY
..
St (Start Word)
Ed (End Word)
WSFL
D1 D2 N
WSFLP
WSFLP
D1 D2 N
D2
WSFR
WSFR
D1 D2 N
D1
h0000
h0000
D1 D2 N
D N
b+7
Db I
CY
b+3
SR
WSFL
SR
CY
b31
WSFRP
b0
(D)
b15
WSFRP
0
b15
Word Move
Word Data
Move to
Left/Right
..
..
D1
N
Move to Lower
Bit
Move to Higher
Bit
XGB
b0
Bits Move
BSFL
XGK
D2
App. 4-20
Designations
Symbol
XCHG
XCHG
D1 D2
XCHGP
XCHGP
D1 D2
(D1)
Data
Exchange
DXCHG
DXCHG
D1 D2
DXCHGP
DXCHGP
D1 D2
Higher/Lower
Byte
Exchange
Group
Byte
Exchange
GXCHG
GXCHG
D1 D2 N
(D1)
SWAP
SWAPP
GSWAP
GSWAPP
GXCHGP
XGB
(D2+1, D2)
(D2)
:
GXCHGP
XGK
(D2)
(D1+1, D1)
Group
Data
Exchange
Support
Description
D1 D2 N
SWAP
SWAPP
GSWAP
GSWAPP
b15
b0
(D)
Upper Byte
Lower Byte
(D)
Lower Byte
Upper Byte
D N
D N
App. 4-21
Exchanges Higher/Lower
Byte of Words N starting from D
Designations
Symbol
ADD
ADD
S1 S2 D
ADDP
ADDP
S1 S2 D
DADD
DADD
S1 S2 D
DADDP
DADDP
S1 S2 D
SUB
SUB
S1 S2 D
SUBP
SUBP
S1 S2 D
DSUB
DSUB
S1 S2 D
DSUBP
DSUBP
S1 S2 D
MUL
MUL
S1 S2 D
Integer
Multiplication
(Signed)
MULP
MULP
S1 S2 D
DMUL
DMUL
S1 S2 D
DMULP
DMULP
S1 S2 D
DIV
DIV
S1 S2 D
DIVP
DIVP
S1 S2 D
Integer Division
(Signed)
DDIV
DDIV
S1 S2 D
XGB
(S1+1,S1)+(S2+1,S2)
(D+1,D)
(D)
(S1)-(S2)
Integer
Subtraction
(Signed)
XGK
(D)
(S1)+(S2)
Integer Addition
(Signed)
Support
Description
(S1+1,S1)-(S2+1,S2)
(D+1,D)
(D+1,D)
(S1)(S2)
(S1+1,S1)(S2+1,S2)
(D+3,D+2,D+1,D)
(S1)(S2)
(D) Quotient
(D+1) Remainder
(S1+1,S1)(S2+1,S2)
(D+1,D) Quotient
Integer Addition
(Unsigned)
Integer
Subtraction
(Unsigned)
Integer
Multiplication
(Unsigned)
DDIVP
DDIVP
S1 S2 D
ADDU
ADDU
S1 S2 D
ADDUP
ADDUP
S1 S2 D
DADDU
DADDU
S1 S2 D
DADDUP
DADDUP
S1 S2 D
SUBU
SUBU
S1 S2 D
SUBUP
SUBUP
S1 S2 D
DSUBU
DSUBU
S1 S2 D
DSUBUP
DSUBUP
S1 S2 D
MULU
MULU
S1 S2 D
MULUP
MULUP
S1 S2 D
DMULU
DMULU
S1 S2 D
DMULUP
DMULUP
S1 S2 D
(D+3,D+2) Remainder
(D)
(S1)+(S2)
(S1+1,S1)+(S2+1,S2)
(D+1,D)
(D)
(S1)-(S2)
(S1+1,S1)-(S2+1,S2)
(D+1,D)
(D+1,D)
(S1)(S2)
(S1+1,S1)(S2+1,S2)
(D+3,D+2,D+1,D)
App. 4-22
Designations
DIVU
Symbol
DIVU
S1 S2 D
DIVUP
DIVUP
S1 S2 D
DDIVU
DDIVU
S1 S2 D
XGK
XGB
(D) Quotient
(S1)(S2)
Integer Division
(Unsigned)
Support
Description
(D+1) Remainder
(S1+1,S1)(S2+1,S2)
(D+1,D) Quotient
Real Number
Addition
Real Number
Subtraction
Real Number
Multiplication
Real Number
Division
String
Addition
DDIVUP
DDIVUP
S1 S2 D
RADD
RADD
S1 S2 D
RADDP
RADDP
S1 S2 D
LADD
LADD
S1 S2 D
LADDP
LADDP
S1 S2 D
RSUB
RSUB
S1 S2 D
RSUBP
RSUBP
S1 S2 D
LSUB
LSUB
S1 S2 D
LSUBP
LSUBP
S1 S2 D
RMUL
RMUL
S1 S2 D
RMULP
RMULP
S1 S2 D
LMUL
LMUL
S1 S2 D
LMULP
LMULP
S1 S2 D
RDIV
RDIV
S1 S2 D
RDIVP
RDIVP
S1 S2 D
LDIV
LDIV
S1 S2 D
LDIVP
LDIVP
S1 S2 D
$ADD
$ADD
S1 S2 D
$ADDP
$ADDP
S1 S2 D
(D+3,D+2) Remainder
(S1+1,S1)+(S2+1,S2)
(D+1,D)
(S1+3,S1+2,S1+1,S1)
+(S2+3,S2+2,S2+1,S2)
(D+3,D+2,D+1,D)
(S1+1,S1)-(S2+1,S2)
(D+1,D)
(S1+3,S1+2,S1+1,S1)
-(S2+3,S2+2,S2+1,S2)
(D+3,D+2,D+1,D)
(S1+1,S1)(S2+1,S2)
(D+1,D)
(S1+3,S1+2,S1+1,S1)
(S2+3,S2+2,S2+1,S2)
(D+3,D+2,D+1,D)
(S1+1,S1)(S2+1,S2)
(D+1,D)
GADD
GADD
S1 S2 D N
GADDP
GADDP
S1 S2 D N
GSUB
GSUB
S1 S2 D N
GSUBP
GSUBP
S1 S2 D N
(S1+3,S1+2,S1+1,S1)
(S2+3,S2+2,S2+1,S2)
(D+3,D+2,D+1,D)
Group Addition
Group
Subtraction
(S2)
(S1)
+
(S2)
(S1)
App. 4-23
(D)
(D)
Designations
Symbol
Support
Description
ADDB
ADDB
S1 S2 D
ADDBP
ADDBP
S1 S2 D
DADDB
DADDB
S1 S2 D
DADDBP
DADDBP
S1 S2 D
SUBB
SUBB
S1 S2 D
SUBBP
SUBBP
S1 S2 D
DSUBB
DSUBB
S1 S2 D
DSUBBP
DSUBBP
S1 S2 D
MULB
MULB
S1 S2 D
MULBP
MULBP
S1 S2 D
DMULB
DMULB
S1 S2 D
DMULBP
DMULBP
S1 S2 D
DIVB
DIVB
S1 S2 D
DIVBP
DIVBP
S1 S2 D
DDIVB
DDIVB
S1 S2 D
BCD Addition
(S1+1,S1)+(S2+1,S2)
(D+1,D)
(D)
(S1)-(S2)
BCD Subtraction
(S1+1,S1)-(S2+1,S2)
(D+1,D)
(D+1,D)
(S1)(S2)
(S1+1,S1)(S2+1,S2)
(D+3,D+2,D+1,D)
BCD Division
(S1)(S2)
(D) Quotient
(D+1) Remainder
(S1+1,S1)(S2+1,S2)
(D+1,D) Quotient
DDIVBP
XGB
(D)
(S1)+(S2)
BCD
Multiplication
XGK
DDIVBP
S1 S2 D
App. 4-24
(D+3,D+2) Remainder
Logic
Multiplication
Designations
Symbol
Basic
Steps
Page
Description
WAND
WAND
S1 S2 D
WANDP
WANDP
S1 S2 D
DWAND
DWAND
S1 S2 D
DWANDP
DWANDP
S1 S2 D
WOR
WOR
S1 S2 D
WORP
WORP
S1 S2 D
DWOR
DWOR
S1 S2 D
DWORP
DWORP
S1 S2 D
WXOR
WXOR
S1 S2 D
WXORP
WXORP
S1 S2 D
DWXOR
DWXOR
S1 S2 D
DWXORP
DWXORP
S1 S2 D
WXNR
WXNR
S1 S2 D
WXNRP
WXNRP
S1 S2 D
DWXNR
DWXNR
S1 S2 D
DWXNRP
DWXNRP
S1 S2 D
Word AND
(S1) (S2)
(D)
DWord AND
(S1+1,S1)(S2+1,S2)
(D+1,D)
Word OR
(S1) (S2)
(D)
Logic Addition
Exclusive
OR
Exclusive
NOR
Group
Logic Operation
GWAND
GWAND
S1 S2 D N
GWANDP
GWANDP
S1 S2 D N
GWOR
GWOR
S1 S2 D N
GWORP
GWORP
S1 S2 D N
GWXOR
GWXOR
S1 S2 D N
GWXORP
GWXORP
S1 S2 D N
GWXNR
GWXNR
S1 S2 D N
DWord OR
(S1+1,S1)(S2+1,S2)
Word Exclusive OR
(S1) (S2)
(S1)
(S2)
App. 4-25
(D)
(S1)
(D)
(S2)
(D)
(S2)
(S1)
(D)
(S2)
(S1)
(D+1,D)
S1 S2 D N
(D+1,D)
GWXNRP
(D)
DWord Exclusive OR
(S1+1,S1)(S2+1,S2)
GWXNRP
(D+1,D)
(D)
Designations
Symbol
XGK
XGB
b15
BSUM
BSUM
S D
BSUMP
BSUMP
S D
DBSUM
DBSUM
S D
DBSUMP
DBSUMP
S D
BRST
BRST
D N
BRSTP
BRSTP
D N
Bit Check
Bit Reset
1s number
b31
I/O
Refresh
Data
Search
Max. Value
Search
b15
b0
S
1s number
ENCO
ENCO
S D n
ENCOP
ENCOP
S D n
DECO
DECO
S D n
DECOP
DECOP
S D n
N bits
2binary
DIS
DIS
S D n
...
D
...
...
N bits
2binary
2 bits
S
...
Decode
Word/
Byte
Conversion
b0
Encode
Data
Disconnect &
Connect
Support
Description
...
2N bits
DISP
DISP
S D n
UNI
UNI
S D n
UNIP
UNIP
S D n
WTOB
WTOB
S D n
WTOBP
WTOBP
S D n
BTOW
BTOW
S D n
..
...
...
..
Higher Lower
BTOWP
BTOWP
IORF
IORF
S1 S2 S3
IORFP
IORFP
S1 S2 S3
D
D+1
S D n
SCH
SCH
S1 S2 D N
SCHP
SCHP
S1 S2 D N
DSCH
DSCH
S1 S2 D N
DSCHP
DSCHP
S1 S2 D N
MAX
MAX
S D n
MAXP
MAXP
S D n
DMAX
DMAX
S D n
DMAXP
DMAXP
S D n
...
D
D+1
D+N-1
...
D
D+1
D+N-1
...
...
..
h00
h00
h00
h00
Lower
Higher
Lower
Higher
S
...
h00
h00
h00
h00
..
Lower D
Higher D+1
Lower
Higher
Higher Lower
App. 4-26
Min. Value
Search
Designatio
ns
Symbol
Support
Description
MIN
MIN
S D n
MINP
MINP
S D n
DMIN
DMIN
S D n
DMINP
DMINP
S D n
SUM
SUM
S D n
SUMP
SUMP
S D n
DSUM
DSUM
S D n
DSUMP
DSUMP
S D n
AVE
AVE
S D n
AVEP
AVEP
S D n
DAVE
DAVE
S D n
DAVEP
DAVEP
S D n
XGK
XGB
Sum
Adds up N double words starting
from S to save in D
Average
MUX
MUX
S1 S2 D N
S1st data
D
MUXP
MUXP
S1 S2 D N
DMUX
DMUX
S1 S2 D N
DMUXP
DMUXP
S1 S2 D N
DETECT
DETECT
S1 S2 D N
DETECTP
DETECTP
S1 S2 D N
MUX
S2+1
N
Data
Detect
Ramp Signal
Output
RAMP
RAMP
n1 n2 D1 n3 D2
SORT
SORT
S n1 n2 D1 D2
Data
Align
SORTP
SORTP
S n1 n2 D1 D2
App. 4-27
S2
S1st data
D+1
Data
Write
First-input
Data
Read
Last-Input
Data
Read
Designations
Data
Pull
Description
FIWR
FIWR
S D
FIWRP
FIWRP
S D
FIFRD
FIFRD
S D
FIFRDP
FIFRDP
S D
FILRD
FILRD
S D
FILRDP
FIINS
Data
Insert
Symbol
FILRDP
FINS
S D
S D n
FIINSP
FINSP
S D n
FIDEL
FDEL
S D n
FIDELP
FDELP
S D n
Support
XGK
XGB
Designations
Symbol
Description
SEG
SEG
S D Z
SEGP
SEGP
S D Z
App. 4-28
Support
XGK
XGB
Convert to
Decimal
ASCII
Cord
Convert to
Hexadecimal
ASCII
Cord
Convert BCD
to Decimal
ASCII
Cord
Designations
BINDA
S D
BINDAP
BINDAP
S D
DBINDA
DBINDA
S D
DBINDAP
DBINDAP
S D
BINHA
BINHA
S D
BINHAP
BINHAP
S D
DBINHA
DBINHA
S D
DBINHAP
DBINHAP
S D
BCDDA
BCDDA
S D
BCDDAP
BCDDAP
S D
DBCDDA
DBCDDA
S D
DBCDDAP
DBCDDAP
S D
DABIN
DABIN
S D
DABINP
S D
DDABIN
S D
DDABINP
DDABINP
S D
HABIN
HABIN
S D
HABINP
HABINP
S D
DHABIN
DHABIN
S D
DHABINP
DHABINP
S D
DABCD
DABCD
S D
DABCDP
S D
DDABCD
S D
DDABCDP
DDABCDP
S D
LEN
LEN
S D
LENP
LENP
S D
DABCDP
Convert
Decimal ASCII
to BCD
DDABCD
String
Length Detect
Description
BINDA
DABINP
Convert
Decimal ASCII
to BIN
DDABIN
Convert
Hexadecimal
ASCII to BIN
Symbol
Support
XGK
XGB
App. 4-29
Convert BIN16/32 to
String
Convert String to
BIN16/32
Designations
Symbol
Description
STR
STR
S1 S2 D
STRP
STRP
S1 S2 D
DSTR
DSTR
S1 S2 D
DSTRP
DSTRP
S1 S2 D
VAL
VAL
S D1 D2
VALP
VALP
S D1 D2
DVAL
DVAL
S D1 D2
DVALP
DVALP
S D1 D2
RSTR
RSTR
S1 S2 D
RSTRP
RSTRP
S1 S2 D
LSTR
LSTR
S1 S2 D
LSTRP
LSTRP
S1 S2 D
STRR
STRR
S D
STRRP
STRRP
S D
STRL
STRL
S D
STRLP
STRLP
S D
ASC
ASC
S D cw
ASCP
ASCP
S D cw
HEX
HEX
S D N
HEXP
HEXP
S D N
RIGHT
RIGHT
S D N
RIGHTP
RIGHTP
S D N
LEFT
LEFT
S D N
LEFTP
LEFTP
S D N
MID
MID
S1 S2 D
MIDP
MIDP
S1 S2 D
ASCII Conversion
HEX Conversion
App. 4-30
Support
XGK
XGB
Extracts
string
which
conforms to S2 condition
among S1 string to save in
starting D
Designations
REPLACE
REPLACEP
Symbol
REPLACE S1 D S2
REPLACEP S1 D S2
FIND
FIND
S1 S2 D N
FINDP
FINDP
S1 S2 D N
String Find
Parse Real
Number to BCD
Convert BCD
Data to Real
Number
RBCD
RBCD
S1 S2 D
RBCDP
RBCDP
S1 S2 D
LBCD
LBCD
S1 S2 D
LBCDP
LBCDP
S1 S2 D
BCDR
BCDR
S1 S2 D
BCDRP
BCDRP
S1 S2 D
BCDL
BCDR
S1 S2 D
BCDLP
BCDLP
S1 S2 D
App. 4-31
Description
Basic
Steps
Page
Processes
S1
String
as
applicable to S2 Condition to
save in D String
Designations
Symbol
Description
SIN
SIN
S D
SINP
SINP
S D
COS
COS
S D
COSP
COSP
S D
TAN
TAN
S D
TANP
TANP
S D
RAD
RAD
S D
RADP
RADP
S D
DEG
DEG
S D
DEGP
DEGP
S D
SQRT
SQRT
S D
SQRTP
SQRTP
S D
SIN Operation
COS
Operation
SIN(S+1,S)
TAN Operation
RAD
Conversion
Angle
Conversion
Square Root
Operation
(D+1,D)
Basic
Steps
Page
COS(S+1,S)
(D+1,D)
TAN(S+1,S)
(D+1,D)
(S+1,S)
(D+1,D)
Converts angle to radian
(S+1,S)
(D+1,D)
Converts radian to angle
App. 4-32
(S+1,S)
(D+1,D)
Designations
Basic
Steps
Page
Symbol
Description
LIMIT
LIMIT
S1 S2 S3 D
LIMITP
LIMITP
S1 S2 S3 D
DLIMIT
DLIMIT
Dead-zone
Control
Vertical-zone
Control
Built-in
PID Control
Instruction
DLIMITP
DLIMITP
S1 S2 S3 D
DZONE
DZONE
S1 S2 S3 D
DZONEP
DZONEP
S1 S2 S3 D
DDZONE
DDZONE
DDZONEP
DDZONEP S1 S2 S3 D
VZONE
VZONE
VZONEP
VZONEP
S1 S2 S3 D
S1 S2 S3 D
DVZONE
DVZONEP
DVZONEP S1 S2 S3 D
S1 S2 S3 D
PIDRUN
PIDRUN
PIDPAUSE
PIDPAUSE N
PIDAT
D = S1
D = S3
S1 S2 S3 D
DVZONE
PIDPRMT
D = S2
PIDPRMT
PIDRUN
S N
PIDCAS
PIDPRMT
S N
PIDHBD
PIDPRMT
S N
PID .
App. 4-33
Time Data
Increase
Time Data
Decrease
Designations
Symbol
DATERD
DATERD
DATERDP
DATERDP
DATEWR
DATEWR
DATEWRP
DATEWRP
ADDCLK
ADDCLK
ADDCLKP
ADDCLKP S1 S2 D
SUBCLK
SUBCLK
S1 S2 D
SUBCLKP
SUBCLKP
S1 S2 D
SECOND
Time Data
Format
Conversion
Description
S1 S2 D
SECOND
SECONDP S D
HOUR
HOUR
HOURP
XGB
Input
S ~ S+6s Time Data in PLC
(Yr/Mn/Dt/Hr/Mn/Sd/Day)
S D
SECONDP
HOURP
Support
XGK
S D
S D
Divergence
Instruction
Designations
Symbol
JMP
LABEL
JMP
Description
LABEL
CALL
CALL
LABEL
CALLP
CALLP
LABEL
XGK
XGB
LABEL
Support
SBRT
RET
SBRT
LABEL
RET
App. 4-34
Designations
Symbol
FOR
Loop
Instruction
Support
Description
FOR
NEXT
NEXT
BREAK
BREAK
Operates
times
FOR~NEXT
section
XGK
XGB
Designations
Symbol
Description
STC
STC
CLC
CLC
CLE
CLE
Support
XGK
XGB
Designations
Error Display
FALS
Scan Cluck
DUTY
Time Cluck
TFLK
WDT
Initialize
Symbol
Description
FALS
DUTY
TFLK
D n1 n2
D1 S1 S2 D2
WDT
WDT
WDTP
WDTP
OUTOFF
Operation Stop
STOP
STOP
Emergent
Operation Stop
ESTOP
ESTOP
Support
XGK
XGB
Self Diagnosis
(Error Display )
Designations
All Channels
Interrupt
Setting
EI
EI
DI
DI
Individual
Channel
Interrupt
Setting
Symbol
Description
EIN
EIN
DIN
DIN
App. 4-35
Support
XGK
XGB
2s
complement
Real Number
Data Sign
Reverse
Designations
Symbol
Description
NEG
NEG
NEGP
NEGP
DNEG
DNEG
DNEGP
DNEGP
RNEG
RNEG
RNEGP
RNEGP
LNEGR
LNEG
LNEGP
LNEGP
ABS
ABS
ABSP
ABSP
DABS
DABS
DABSP
DABSP
Support
XGK
XGB
value again in
2s complement
Converts (D+1,D)
highest Bit to 0
Block
Conversion
Flash
Word Data
Transfer
Designations
Symbol
Description
RSET
RSET
RSETP
RSETP
EMOV
EMOV
S1 S2 D
EMOVP
EMOVP
S1 S2 D
Support
XGK
XGB
Flash
Double Word
Data
Transfer
EDMOV
EDMOV
S1 S2 D
EDMOVP
EDMOVP
S1 S2 D
Block Read
EBREAD
EBREAD S1 S2
Block Write
EBWRITE
EBWRITE S1 S2
Block
Compare
EBCMP
EBCMP
S1 S2 D1 D2
App. 4-36
Designations
Symbol
P2PSN
Support
XGK
XGB
Description
n1 n2 n3
P2PWRD
n1 n2 n3 n4 n5
P2PWWR
n1 n2 n3 n4 n5
P2PBRD
n1 n2 n3 n4 n5
n1 n2 n3 n4 n5
P2PBWR
Designations
GET
Special
Module
Read/Write
Symbol
GET
sl S D N
GETP
GETP
sl S D N
PUT
PUT
sl S1 S2 N
PUTP
PUTP
Support
Description
module
module
sl S1 S2 N
App. 4-37
XGK
XGB
Designations
Symbol
Description
Support
XGK
XGB
Return to Origin
Point
ORG
ORG
sl ax
Floating Origin
Point
FLT
FLT
sl ax
Direct Start
DST
Indirect Start
IST
Linear
Interpolation
LIN
LIN
sl ax n1 n2
Circular
Interpolation
CIN
CIN
sl ax n1 n2
Simultaneous
Start
SST
sl ax n1 n2 n3 n4
DST
sl ax n1 n2 n3 n4 n5
IST
SST
sl ax n
Speed/Position
Control Switch
VTP
VTP
sl ax
Position/Speed
Control Switch
PTV
PTV
sl ax
STP
sl ax
SKP
sl ax
sl ax n1 n2 n3
sl ax n1 n2 n3
Skip
Position
Synchronization
Speed
Synchronization
Position
Override
SKP
SSP
SSS
POR
SSP
SSS
POR
sl ax n
App. 4-38
Speed
Override
Designations
Symbol
SOR
SOR
Position specified
PSO
Speed
Override
PSO
Description
Support
XGK
XGB
sl ax n
sl ax n
sl ax n
sl ax
Continuous
Operation
NMV
Inching
INCH
Return to Position
Previous to Manual
Operation
RTP
Operation
Step Change
SNS
SNS
sl ax n
Repeated
Operation
Step Change
SRS
SRS
sl ax n
M Code
Off
MOF
sl ax
Present Position
Change
PRS
sl ax n
Zone
Allowed
ZOE
ZOE
sl ax
Zone
Prohibited
ZOD
ZOD
sl ax
sl ax n
Encoder Value
change
NMV
INCH
RTP
MOF
PRS
EPRS
EPRS
sl ax
Teaching
TEA
TEA
sl ax n1 n2 n3 n4
Teaching
Array
TEAA
TEAA
sl ax n1 n2 n3 n4
Emergent Stop
EMG
EMG
sl ax
App. 4-39
Error Reset
Error
History
Reset
Designations
CLR
Symbol
CLR
ECLR
ECLR
Description
Support
XGK
XGB
sl ax n
sl ax
sl ax n
Point
Operation
PST
Basic Parameter
Teaching
TBP
TBP
sl ax n1 n2
Extended
Parameter
Teaching
TEP
TEP
sl ax n1 n2
Return to Origin
Point Parameter
Teaching
THP
THP
sl ax n1 n2
Manual
Operation
Parameter
Teaching
TMP
TMP
sl ax n1 n2
Input Signal
Parameter
Teaching
TSP
Common
Parameter
Teaching
TCP
Parameter
Save
WRT
WRT
sl ax n
Present State
Read
SRD
SRD
sl ax D
Point Operation
Step Write
PWR
PWR
sl ax S n1
Plural Teaching
Data
Write
TWR
TWR
sl ax S n1
PST
TSP
TCP
sl ax n
sl ax n1 n2
App. 4-40
Warranty
1. Warranty Period
The product you purchased will be guaranteed for 18 months from the date of manufacturing.
2. Scope of Warranty
Any trouble or defect occurring for the above-mentioned period will be partially replaced or repaired. However,
please note the following cases will be excluded from the scope of warranty.
(1) Any trouble attributable to unreasonable condition, environment or handling otherwise specified in the
manual,
(2) Any trouble attributable to others products,
(3) If the product is modified or repaired in any other place not designated by the company,
(4) Due to unintended purposes
(5) Owing to the reasons unexpected at the level of the contemporary science and technology when delivered.
(6) Not attributable to the company; for instance, natural disasters or fire
3. Since the above warranty is limited to PLC unit only, make sure to use the product considering the safety for
system configuration or applications.
Environmental Policy
LS Industrial Systems Co.,Ltd supports and observes the environmental policy as below.
Environmental Management
About Disposal
reusable.