XGB Built-In Positioning: Programmable Logic Controller
XGB Built-In Positioning: Programmable Logic Controller
LSIS strives to maximize customers' profit in gratitude of choosing us for your partner.
http://eng.lsis.biz
Safety Instruction
For your safety and effective operation, please read the safety instructions
thoroughly before using the product.
Moreover, even classified events under its caution category may develop into
serious accidents relying on situations. Therefore we strongly advise users to
observe all precautions properly just like warnings.
► The marks displayed on the product and in the user’s manual have the
following meanings.
After reading this user’s manual, it should be stored in a place that is visible
to product users.
Safety Instruction
Warning
Never connect the overload than rated to the output module nor
allow the output circuit to have a short circuit, which may cause a
fire.
Caution
I/O signal or communication line shall be wired at least 100mm
away from a high-voltage cable or power line. If not, it may cause
abnormal output or operation due to noise.
Caution
Use PLC only in the environment specified in PLC manual or
general standard of data sheet. If not, electric shock, fire, abnormal
operation of the product or flames may be caused.
Don’t let any metallic foreign materials inside the product, which
may cause electric shock, fire or abnormal operation..
Safety Instruction
Warning
Prior to wiring, be sure that power of PLC and external power is
turned off. If not, electric shock or damage on the product may be
caused.
Before PLC system is powered on, be sure that all the covers of
the terminal are securely closed. If not, electric shock may be caused
Caution
Let the wiring installed correctly after checking the voltage rated
of each product and the arrangement of terminals. If not, fire,
electric shock or abnormal operation may be caused.
Don’t let any foreign materials such as wiring waste inside the
module while wiring, which may cause fire, damage on the product
or abnormal operation.
Warning
Don’t touch the terminal when powered. Electric shock or abnormal
operation may occur.
Please connect the battery accurately and Don’t let the battery
recharged, disassembled, heated, short or soldered. Heat,
explosion or ignition may cause injuries or fire.
Caution
Don’t remove PCB from the module case nor remodel the module.
Fire, electric shock or abnormal operation may occur.
Before use edit function during operate, make sure to carefully read and
understand the User’s Manual. If not, it may be caused damage to the
product or accident due to disoperation.
Do not drop and give an impact to battery. It may be caused leak of liquid
of inside battery due to damage the battery. Do not use any battery
that had been fell on the floor or had been shocked. Also let skilled
worker take in charge of the operation of changing battery.
Safety Instruction
Caution
Product or battery waste shall be processed as industrial waste.
The waste may discharge toxic materials or explode itself.
Revision History
Version Date Remark Page
※ The num ber of User’s m anual is indicated right part of the back cover.
ⓒ 2008 LSIS Co.,Ltd. All Rights Reserved.
About User’s Manual
basic unit
XGB FEnet I/F It describes how to use XGB FEnet I/F module. 10310000873
◎ Contents ◎
Chapter 1 General
XGB series transistor output type contains 2 positioning axes. This manual describes the specifications and
usage of positioning.
1.1 General
The purpose of position function is to exactly move an object from the current position to a designated
position and this function executes highly precise position control by sending a position pulse string
signal to types of servo drive or stepping motor control drive. For applications, it may be widely used;
for instance, machine tools, semiconductor assembling machine, grinder, small machine center, lifter
and etc.
1- 1
Chapter 1 General
1.1.2 Features
Positioning function features the followings.
1- 2
Chapter 1 General
1- 3
Chapter 1 General
1- 4
Chapter 1 General
1- 5
Chapter 1 General
Input Output
1- 6
Chapter 1 General
1- 7
Chapter 1 General
* based on XBC-DN32H
Input (P0)
Output (P4)
* based on XBC-DN30S
1- 8
Chapter 1 General
X/Y
Input common COM Input common terminal
axis
1- 9
Chapter 1 General
1- 10
Chapter 1 General
When using positioning function, easy wiring is available by connecting the I/O connector with smart
link board.
The available smart link and I/O cable are as follows.
XGB Smart link Connection cable
The no.
Classification Model Model Model Length Content
of pin
XBM-
SLT-
DN32S SLP- For main unit connection
Main unit 40 CT101- 1m
XBM- T40P (20Pin + 20Pin)
XBM
DN16S
SLT-
XBE- SLP-
40 CT101- 1m
DC32A T40P For extension module
XBE
connection
SLT-
SLP- (40Pin)
Extension 40 CT101- 1m
T40P
module XBE
XBE-
For extension module
TN32A SLP-
SLP- connection (40Pin)
40 CT101- 1m
RY4A Exclusive for relay built-in
XBE
SLP type
Item Specification
Rated voltage AC/DC 125[V]
Rated current Max. 1[A]
Withstanding
600V 1min
voltage
Insulation
100 ㏁ (DC500V)
resistor
Cable
1.25[㎟] or below
specification
Terminal/screw M3 X 8L
6.2 ㎏ f.㎝ or
Torque
above
Terminal
PBT, UL94V-0
material
Weight 186g
1- 11
Chapter 1 General
XBM-DN32S
SLT-CT101-XBM
SLP-T40P
At this time, relationship of XGB I/O signal and Smart link board terminal number is as follows.
The following figure describes signal allocation when SLT-CT101-XBM is used as connection cable.
When the user makes the cable, make sure that wring is done as figure below.
1- 12
Chapter 2 General Specification
Related
No. Item Specifications
standards
Operating
1 0 ~ 55 °C
temperature
Storage
2 −25 ~ +70 °C
temperature
Operating
3 5 ~ 95%RH, no condensation
humidity
4 Storage humidity 5 ~ 95%RH, no condensation
If intermittent vibration exists -
Frequency Acceleration Amplitude Times
10 ≤ f < 57Hz − 0.075mm
57 ≤ f ≤ 150Hz −
2
Vibration 9.8m/s 10 times to
5
immunity If continuous vibration exists X, Y and Z IEC61131-2
Frequency Acceleration Amplitude directions,
10 ≤ f < 57Hz − 0.035mm each
57 ≤ f ≤ 150Hz −
2
4.9m/s
• Max. impact acceleration : 147 m/s
2
Note
1) IEC(International Electro technical Commission)
: International private group facilitating international cooperation of electric/electronic standardization, issuing
international standards and operating the compliance evaluation systems.
2) Pollution degree
: As an index representing the pollution degree of an environment to determine the insulation of a device,
pollution degree 2 generally means the status generating non-conductive contamination. However, it also
contains the status generating temporarily conduction due to condensation.
2-1
Chapter 2 General Specification
Item Specification
Item XB(E)C-
XB(E)C- XB(E)C-
DR(N)(P)20S(U)
DR/DN/DP40SU DR/DN/DP60SU
/DR(N)(P)30S(U)
voltage
DC24V DC21.4~26.4 V(±2%)
ripple
Voltage status display When power is normal, PWR LED On
2
Cable specification 0.75 ~ 2 mm
* For protection of power supply, use power supplier which has maximum 4A fuse.
2-2
Chapter 2 General Specification
Specification
XEC- XEC-
Item XBC- XBC-
DR32H DR64H
/DR32H DR64H
/DN32H /DN64H
/DN32H /DN64H
/DP32H /DP64H
Rated input
voltage AC 100 ~ 240 V
Input voltage
AC85~264V(-15%, +10%)
range
Inrush current 50APeak or less
Input
Input current 0.5A or less (220V), 1A or less (110V)
Efficiency 65% or above
Allowed
temporary cutoff 10 ㎳ or less (Checking is necessary)
Rated DC5V 2A 3A
output DC24V 0.4A 0.6A
Output Output DC5V DC 4.9 ~ 5.15V (-2%, +3%) DC 4.9 ~ 5.1V (±2%)
voltage
ripple DC24V DC21.4~26.4 V(±2%)
2-3
Chapter 2 General Specification
It describes I/O specification when P0000~P000F is used for built-in positioning. For using P0000~P000F
as general I/O, refer to XGB user manual for hardware
2-4
Chapter 2 General Specification
Response time 0.5 ㎳ or less (when used for input for positioning)
TB1 RX
TB2 485+
TB3 TX
TB1
TB4 485- TB2
TB5 SG TB3
TB4
TB6 00 TB5
Photo
0 coupler TB7 01 TB6
TB6 TB7
TB8 02
R TB8
11 Inner
TB9 03 TB9
TB23 R
circuit TB10 04 TB10
TB24 TB11
COM TB11 05 TB12
Circuit configuration TB13
TB12 06
and terminal array DC24 TB14
TB13 07 TB15
TB14 08 TB16
TB17
TB15 09
TB18
TB16 0A TB19
TB20
TB17 0B
TB21
TB18 0C TB22
TB19 0D TB23
TB24
TB20 0E
TB21 0F
TB22 10
TB23 24G
TB24 COM
For XBC-DN20S(U), there is no actual input point P0000C ~ P0000F. If you want to use them, turn on by
user program.
2-5
Chapter 2 General Specification
TB1 RX
TB2 485+
TB3 TX
TB1
TB4 485- TB2
TB5 SG TB3
P00 TB4
TB6 TB5
IX0.0.0 P01
TB7 TB6
P02 IX0.0.1 TB7
TB8
IX0.0.2 P03 TB8
TB9 TB9
P04 IX0.0.3 TB10
TB10
IX0.0.4 P05 TB11
Circuit TB11 TB12
P06 IX0.0.5
configuration and TB12 TB13
IX0.0.6 P07 TB14
terminal array TB13 TB15
P08 IX0.0.7
TB14 TB16
IX0.0.8 P09 TB17
TB15
P0A IX0.0.9 TB18
TB16 TB19
IX0.0.10 P0B TB20
TB17
P0C IX0.0.11 TB21
TB18 TB22
IX0.0.12 P0D
TB19 TB23
P0E IX0.0.13 TB24
TB20
IX0.0.14 P0F
TB21
IX0.0.15
TB22 COM
TB23 24G
TB24 24V
2-6
Chapter 2 General Specification
B02 A02
CO
12/24V
B01 A01 M
2-7
Chapter 2 General Specification
Signal name Pulse string output / CW output Direction output / CCW output
Rated load
DC5~24V (DC4.75~26.4V)
voltage
Maximum load
0.1A/1or less
current
Insulation
Photo coupler insulation
method
Inrush current 1A/10 ㎳ or less
Voltage drop
DC 0.3V or less
when On
Leakage current
0.1 ㎃ or less
when Off
Response time 0.1 ㎳ or less (rated load, resistive load)
No. Contact No. Contact
TB1
AC
TB2 FG
power
TB3
TB4 P
P20 TB1
TB TB5 TB2
P21 QX0.0.0
TB6 TB3
QX0.0.1 P22 TB4
TB07 TB7 TB5
P23 QX0.0.2 TB6
TB04 TB8 TB7
DC12/24 QX0.0.3 TB8
TB0 TB9 COM0 TB9
P24 TB10
TB10
TB10 QX0.0.4 P25 TB11
Circuit TB11 TB12
TB06 P26 QX0.0.5 TB13
Internal circuit
2-8
Chapter 2 General Specification
TB1
AC
TB2 FG
power
TB3
TB4 P
P20 TB1
TB5 TB2
P21 QX0.0.0 TB3
TB6 TB4
QX0.0.1 P22
TB7 TB5
P23 QX0.0.2 TB6
TB8 TB7
QX0.0.3 TB8
TB9 COM0 TB9
P24 TB10
TB10
QX0.0.4 P25 TB11
TB11 TB12
Circuit
P26 QX0.0.5 TB13
configuration and TB12 TB14
QX0.0.6 P27 TB15
terminal array TB13 TB16
QX0.0.7 TB17
TB14 COM1
P28 TB18
TB15 TB19
P29 QX0.0.8 TB20
TB16 TB21
QX0.0.9 P2A TB22
TB17 TB23
P2B QX0.0.10
TB18 TB24
QX0.0.11
TB19 COM2
P2C
TB20
QX0.0.12 P2D
TB21
P2E QX0.0.13
TB22
QX0.0.14 TB23 P2F
QX0.0.15
TB24 COM3
2-9
Chapter 2 General Specification
Supported
at S, H type
Supported
at H type
2-10
Chapter 3 Before positioning
Positioning
Operation description Instruction Ref.
function
DST Ch.5.2.3
IST Ch.5.2.4
APM_DST Ch.5.3.4
APM_IST Ch.5.3.5
Operation
Position pattern
control
If the rising edge of start command is detected, it moves with designated speed to
Operation
designated position and after dwell time, complete signal is on during one scan.
DST Ch.5.2.3
IST Ch.5.2.4
APM_DST Ch.5.3.4
APM_IST Ch.5.3.5
Operation
pattern
Speed control
If the rising edge of start command is detected, it moves with designated speed
Operation and stops after deceleration by stop command. At this time, complete signal will
not be not on.
VTP Ch.5.2.7
APM_VTP Ch.5.3.8
Operation
speed/position pattern
switching
control
Switching
signal
3- 1
Chapter 3 Before positioning
Positioning
Operation description Instruction Ref.
function
PTV Ch.5.2.8
APM_PTV Ch.5.3.9
Operation
Position/speed pattern
switching
control
Operation
Linear pattern
interpolation
control
Operation
pattern
Concurrent
start
Operation
pattern
Sync start
3- 2
Chapter 3 Before positioning
Positioning Instru
Operation description ction
Ref.
function
ORG Ch.5.2.1
APM_ Ch.5.3.2
ORG
Operation
pattern
Home return
Operation
Position override pattern
Operation
Speed override pattern
Operation
Speed override pattern
with position
3- 3
Chapter 3 Before positioning
Position control is to move the designated axis from start address (present position) up to target
address (movement). There are two position control methods, absolute and incremental.
Object moves from start address to target address. Position control is performed, based on the
address designated in Home Return (home address).
Direction is determined by start address and target address.
• Start address < target address: forward positioning
• Start address > target address: reverse positioning
(a) example
• It assumes that operation data is specified as shown table 3-1. (For how to set operation
parameter, refer to the Ch.3.3)
• In table 3-1, since coordinates is ‘ABS’, control method is ‘POS’, step no. 1 is position control
by absolute coordinates.
• It assumes that the current poison is 1000. Since address in step no.1 is 8000, object moves
to 8000 as shown figure and increment is 8000-1000=7000. Object moves forward because
target address is larger than start address.
Remark
3- 4
Chapter 3 Before positioning
Object moves from current position as far as the address set in operation data. At this time, target
address is based on start address. Direction is determined by sign (+,-).
• In case Address is positive number: forward positioning (Direction increasing address)
• In case Address is negative number: reverse positioning (Direction decreasing address)
(a) Example
• It assumes that operation data is specified as shown table 3-2. (For how to set operation
parameter, refer to the Ch.3.3)
• In table 3-1, since coordinates is ‘INC’, control method is ‘POS’, step no. 1 is position control
by incremental coordinates.
• It assumes that current position is 5000. Since object moves as long as -7000, target stop at -
2000 (absolute coordinates) as shown figure 3-2. At this time, increment is -7000 pulse and
direction is reverse.
• Speed control means that object moves with steady speed (steady pulse string) until stop
command.
• In case of speed control, direction is determined by sign of Address set in operation data.
Forward : Address is positive number
Reverse : Address is negative number
In the speed control, direction is determined by sign of target address regardless of current
position and target position.
For example, current position is 100 and target position is 90, though target position is less than
current position, since sign is positive, it moves forward.
3- 5
Chapter 3 Before positioning
• In case of speed control, some items as figure below doesn’t affect the operation.
- If Control is specified as SPD, coordinates, pattern, method, M code, dwell time doesn’t affect the
operation.
- So in case of speed control, when object stops by STP command, it stops without dwell time and
M code doesn’t operate.
(1) Example
• It assumes that operation data is specified as shown table 3-3
• In table 3-3, since Control is ‘SPD’, step no. 1 is operation data of speed control.
• Since Address is positive number and Speed is 100, target moves forward with 100 pls/s speed
regardless of current position until stop command (DEC. stop or EMG stop).
• If object moves, flag (X axis: K4200, %KX6720, Y axis: K4300, %KX6880) is on. And if DEC.
stop command is executed, it stops after deceleration without dwell time and flag turns off
immediately.
• At this time, deceleration time conforms to that in operation data, not operand of instruction.
3- 6
Chapter 3 Before positioning
These items don’t affect the operation when changed into position
- First, object moves by speed control. If speed/position switching control is executed, target will
move by position control.
- At this time, position control is executed by absolute coordinates with initializing the current
position as 0. So coordinates item doesn’t affect the operation.
- Since control method also changes by speed/position switching, control method in the operation
data doesn’t affect the operation.
- In case of speed/position switching, object keeps its previous direction.
(1) Example
• It assumes that operation data is specified as shown table 3-4.
switching
occurrence flag
3- 7
Chapter 3 Before positioning
• If step no. 1 in table 3-4 starts, object moves forward by speed control because Control is SPD
and Address is positive number.
• If speed/position switching command (VTP instruction) is executed during speed control, current
position will be initialized as 0 and object moves by position control until 1000.
• If object reaches target position, complete flag and M code occurrence flag will be on after dwell
time. At this time, M code number 11 is displayed as set in operation data.
• Positioning complete flag will be on during one scan and M code occurrence flag keeps on
status, until it is turned off by off command.
Remark
- First, object moves by position control. If position/speed switching control is executed, object will
move by speed control. At this time, the current position is not initialized. Only control method
changes into speed control and it continues operation
- When control method changes, some items in operation data doesn’t affect the operation.
(1) Example
• It assumes that operation data is specified as shown table 3-5.
• If step no. 1 in table 3-5 starts, object moves by position control according to operation data in
table 3-5 because Control is POS.
• If position/speed switching command (VTP instruction) is executed during position control,
object moves by speed control until stop command.
• If object stops by stop command, it will stop without dwell time and positioning complete flag will
not be on.
3- 8
Chapter 3 Before positioning
Switching signal
Remark
• Object moves by linear interpolation control from start address to target address using two axes, X,
Y. There are two method in linear interpolation control, absolute coordinates and incremental
coordinates.
When linear interpolation control is executed, object moves based on the origin designated by
Home return.
Direction is determined by start address and target address for each axis.
In the linear interpolation control, since two axes operates concurrently, it needs attention
The following is notice when setting the operation data.
3- 9
Chapter 3 Before positioning
(b) Example
• It assumes that operation data is specified as shown table 3-6 and current position are
X=1000 , Y=4000.
Step Rep Address M A/D Speed
Coord. Pattern Control Method Dwell [㎳] Step no.
no. step [Pulse] Code No. [pls/s]
X 1 ABS END POS SIN 0 8000 0 0 500 100
Y 1 ABS KEEP POS REP 3 1000 0 0 2000 20
<Table 3-6 operation data example of linear interpolation control by absolute coordinates>
• If linear interpolation starts, main axis is determined automatically based on moving amount of X
and Y axis. In table 3-6, since moving amount of X axis is larger than Y axis X, X axis becomes
main axis.
• So operation pattern, speed, A/D number, dwell time of Y axis is ignored and it is specified
automatically according to operation data of X axis.
• Figure 3-7 indicates operation of linear interpolation control.
3- 10
Chapter 3 Before positioning
It executes the linear interpolation control based on current position by incremental coordinates.
At this time, Address of operation data means how long object moves from current position.
Direction is determined sign of Address.
(a) Example
• It assumes that operation data is specified as shown table 3-7 and current position are
X=1000 , Y=4000.
Step Metho Rep Address M A/D Speed
Coord. Pattern Control Dwell [㎳] Step no.
no. d step [Pulse] Code No. [pls/s]
X 1 INC END POS SIN 0 6000 0 0 500 100
Y 1 INC KEEP POS REP 3 -2000 0 0 2000 20
< Table 3-7 operation data example of linear interpolation control by absolute coordinates >
3- 11
Chapter 3 Before positioning
• If linear interpolation is executed, main axis is determined according to moving amount of X and
Y axis. In table 3-7, since moving amount of X axis is larger than Y, X axis becomes main axis.
• So subsidiary Y axis operation pattern, operation speed, ACC/DEC time, dwell time do not
affect the operation and recalculated according to operation data of main axis. For example, if
you execute the linear interpolation control with operation data such as table 3-7, subsidiary Y
axis starts as END, SINGLE operation and operates with automatically calculated ACC/DEC
speed and operation speed, as for Dwell time after stop, 100ms, dwell time of main axis X is
applied. not 20ms, setting value.
Remark
• A special attention should be paid that linear interpolation start operates on 2 axes
simultaneously.
• Pattern of main axis can specified as ‘END’, ‘KEEP’. If it is specified as ‘CONT’, object
moves as it is ‘KEEP’.
• Available commands during linear interpolation are DEC. STOP, EMG. STOP.
• During linear interpolation operation, position/speed switching control, speed override,
position override, speed override with position, If those are executed during liner
interpolation operation, it may cause error.
• Operation method, operation pattern, speed limit, dwell time is specified as that of main axis.
• Speed, acceleration/deceleration time, bias speed of subsidiary axis is calculated again
automatically.
• Backlash compensation amount, SW upper/lower limit is specified as it is for each axis.
• It starts each step for each axis concurrently by concurrent start control (SST instruction).
• If SST instruction is used, it can remove delay of start caused by scan time delay.
• SST instruction can be executed when two axes stop. If SST instruction is executed again after stop,
in case of incremental coordinates, the current position is initialized as 0.
3- 12
Chapter 3 Before positioning
•In sync control, position or speed of subsidiary axis is synchronized with that of main axis. There are
two types in sync control, speed sync control and position sync control.
Sync position
Start Position
sync
• Position sync control can be executed when origin of both axes is determined. When executing
the SSP instruction, if origin of main axis is not determined, error code 346 occurs and for
subsidiary axis, error code 344.
• When using SST instruction, specify the main axis to be different with subsidiary axis. If not, error
code 347 will occur.
• If synch control is executed, though pulse is not yielded until main axis goes to designated axis,
flag indicating whether subsidiary axis moves or not, turns on (X axis: K4200, %KX6720, Y axis:
K4300, %KX6880).
• After executing position sync control, if the user wants to cancel the execution of position sync
control, execute the STP instruction (stop command).
Sync
speed
Start sync
control
Start main
axis
3- 13
Chapter 3 Before positioning
• Home return is used to fine mechanical origin when starting machine. Home return is executed
according to home parameter for each axis. In home parameter, items affecting homing are as
follows. (For setting of each parameter, refer to Ch.3.2)
• When origin is determined by homing, though the user inputs homing signal and DOG signal,
those are ignored.
3- 14
Chapter 3 Before positioning
The operations by Home Return instruction using DOG and origin signal are as follows.
(a) If home return command (ORG instruction) is executed, it accelerates toward a preset home
return direction and with Home high speed.
(b) During operating with Home Return High speed, if rising edge of DOG signal occurs, it
operates with Home Return Low speed and monitors if there is falling edge of DOG signal. At
this time, though Origin signal is inputted while DOG signal is On, Origin is not determined.
(c) If first origin signal is entered after DOG signal changes from “On” to “Off”, it stops.
Remark
• While DOG signal is “On”, origin is not determined by origin signal. That is, origin may be
determined as soon as origin signal is inputted after DOG signal changes from “On” to “Off”.
3- 15
Chapter 3 Before positioning
Remark
• In speed-decreasing section, origin is not determined. Though DOG changed from “On” to
“Off” and Origin signal is inputted in speed-decreasing section, origin is not determined.
Origin is determined at first Origin signal after speed-decreasing section
.
• It operates as follows if it meets an external lower limit while waiting for origin entry after
DOG signal changes Off->On->Off. (The following figure is example when home direction
is backward)
(1) If object starts home return backward by homing command and meets rising edge of
DOG, it changes homing with slow speed and if it meets falling edge again , it waits to
determine the origin at the first origin signal.
(2) At this status, if external low limit input signal (B contact point) is entered, target
changes the direction and homing forward with high speed.
(3) At the moment when target meets rising edge of DOG again and falling edge, target
changes the direction to backward and repeats step (1), if origin signal is entered,
origin is determined.
※ During homing, if external input upper or lower limit is entered, object changes direction
promptly without deceleration section. When stepping motor is used, this may cause out of
operation. So be careful.
• If ‘On’ time of origin input signal is very short, XGB may not recognize the input signal. So
‘On’ time of origin should be larger than 0.2ms.
3- 16
Chapter 3 Before positioning
Operations by home return instruction using DOG and origin signal are as follows.
(a) If homing command(ORG instruction) is executed, it accelerates toward a set home direction
and operates at home high speed.
(b) At the moment, if an external entry, DOG signal is entered, it decelerates and operates at
home return low speed.
(c) Origin is determined and it stops if it meets an external entry, origin signal with DOG set “On”
while it operates at home return low speed.
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 backward direction.
3- 17
Chapter 3 Before positioning
(a) If homing command (ORG instruction) is executed, it accelerates to home direction set in
Home Parameter and it homes with high speed.
(The above figure is example when homing direction is forward)
(b) While target is homing with high speed, if rising edge of DOG occurs, target speed
decreases and change its direction.
(c) When it accelerates after changing direction, if rising edge of DOG occurs, it homes with low
speed.
(d) In the homing status with low speed, rising edge occurs of DOG third time, it stops and
determines the origin.
(e) When ‘On’ time of DOG signal is larger decreasing time, it changes the direction at the falling
edge of DOG and moves with low speed and stops at the rising edge of DOG and
determines the origin.
3- 18
Chapter 3 Before positioning
• Override means changing target address or speed without stop during positioning.
The XGB positioning provides three type of override, position override, speed override, speed
override with position.
(a) That is, if passing a position to change during operation, it decelerates, stops and keeps
positioning operation by the subsequent operation pattern; if not passing a position, it starts
positioning operation as taking a Incremental position as much as override set in the start point
of the step of position override instruction.
(Ex.) It assumes that current location is 20,000 and operation data is specified as table below.
(It assumes that position override amount is 15,000)
3- 19
Chapter 3 Before positioning
• Speed override command is available during acceleration, constant speed operation section and
executing speed override instruction in deceleration section during operation or dwell section may
cause Error 377 but the operation continues.
• Speed override setting ranges 1~100,000pps (setting unit: 1pps).
Remark
• Note that if a sudden difference between the current speed used for operation and a new
speed newly changed by speed override is excessive, it may cause a Step-over.
• During speed override, if target speed is smaller than bias speed. it will be operate by bias
speed.
• Positioning speed override instruction is available only in acceleration and regular speed
sections among operation patterns while the available operation modes are end operation,
continuous operation and sequential operation.
3- 20
Chapter 3 Before positioning
• Stop instructions and factors are summarized as follows and divided into individual stop and
concurrent stop.
Individual axis stop instructions or the stop factors affect the only axis (axes) of which stop instruction
is “On” or stop factor exists. However, interpolation control operation axis stops if an axis is with stop
instruction or stop factor during linear/circular interpolation.
Axis operation
Operation status Positioning M code ”On”
*1 Home *2 Jog operation status after stop
Stop factor Signal status
instruction *3
Forward
External upper Error status
Immediate stop immediate *6 No change
limit “On” (Error 492)
Stop by stop
external signal Backward
External lower Error status
Immediate stop immediate *6 No change
limit “On” (Error 493)
stop
Stop by
Dec. stop Immediate Immediate Error 322
monitoring Stopping No change
instruction stop stop (keep running)
package
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.
3- 21
Chapter 3 Before positioning
Remark
• In case of any immediate stop factor during decelerating stop, it processes as follow.
• Immediate stop factors: ①internal emergency stop, ②external input upper/lower limit, ③
Soft upper/lower limits
3- 22
Chapter 3 Before positioning
positioning operation after executing origin determination (Home Return, floating origin and the
current position preset) in case it is operated with absolute coordinate or in determined origin.
Remark
3- 23
Chapter 3 Before positioning
Positioning is subject to external input stroke limit (external input upper limit, external input lower limit)
and software stroke limit (software upper limit, software lower limit).
• 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.
Remark
• Software stroke upper/lower limits are not detected unless origin is determined.
3- 24
Chapter 3 Before positioning
• Regarding positioning completion output time, the completion signal(X axis: 4202, %KX6722, Y
axis: K4302, %KX6882) is on and it turns off after ‘on’ is maintained as much as 1 scan time after
positioning is completed during single operation, repeat operation, continuous operation, sequential
operation, linear interpolation operation, speed/position switching operation (with position indicated
during constant speed operation) and inching operation.
• In case operation pattern is KEEP or CONT, positioning completion signal is yielded when
operation pattern stops completely.
3- 25
Chapter 3 Before positioning
• Positioning parameter can be set more than V1.2 (high end type can be set more than XG5000
V2.2) and it has the following sequence. (This manual is described by using XG5000 V2.2.)
3- 26
Chapter 3 Before positioning
Bias speed Set the initial start speed for early operation.
S/W lower limit Set lower limit within a machine’s operation range
Backlash compensation Set compensation amount of tolerance in which a machine is not operated due
Home Return high speed Set high speed for home return
Home Return low speed Set low speed for home return
• If the user select ‘X Axis Data’ or ‘Y Axis Data’ tap on the positioning parameter setting window,
the user can set operation data of 30 steps as show below.
• Standard type can set up to 30 steps, high-end type can set up to 80 steps.
3- 28
Chapter 3 Before positioning
•After setting of positioning parameter and operation data per each axis, download them to PLC
•Selecting [Online] -> [Write], ‘Write’ dialog box is displayed.
In order to download parameter, select ‘Parameter’ and click ‘OK’.
Remark
• If XG5000 is not connected with PLC, ‘Write’ menu is not activated. In case of this, select
[Online] -> [Connect] to connect with PLC.
• When PLC is RUN mode, comment is available to download so only comment is displayed
in the ‘Write’ dialog box. At this time, change PLC’s mode to STOP and retry it.
3- 29
Chapter 3 Before positioning
XGB built-in positioning function executes the positioning control by using parameter and K area
dedicated for positioning. Here describes relationship between positioning parameter and K area.
Internal memory configuration related with XGB built-in positioning is as follows.
•XGB has a built-in parameter area to save operation data and parameter written in the XG5000 and
a dedicated K area for use of real positioning operation.
•If writing the embedded positioning parameter and operation data, the downloaded data is saved in
the built-in parameter area permanently. And in case of reading, it reads built-in parameter area.
•XGB executes the initialization by copying the parameter and operation data saved in the built-in
parameter area to K area dedicated for positioning.
(1) In case of restarting after power cut
(2) In case of changing PLC operation mode
(3) In case of restarting PLC by reset command
•XGB built-in positioning is executed by using data of K area and Flags that indicate the current
operation status and monitoring data are displayed in the K area. So the user can change operation
data easily by changing the K area data
•In order to preserve the current K area data, K area data should be applied to built-in parameter
area by using application command (WRT command)
•For detail list of K area, refer to A2.2.
Remark
•After changing K area and not using WRT instruction, if restarting after power cut or
changing PLC operation mode, K area is initialized.
•For more detail of WRT instruction, refer to 5.2.21.
3- 30
Chapter 3 Before positioning
It describes the range of setting basic parameters and special K area for positioning.
3- 31
Chapter 3 Before positioning
(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’.
• If setting it as ‘1:use’, though it doesn’t execute the instruction related with positioning, it is
controlled by positioning.
So in this case, though the user turns on this contact point by other application instruction, only
output image data of XG5000 monitoring window is on and real output contact point doesn’t turn
on.
Remark
3- 32
Chapter 3 Before positioning
•M code output mode set in the parameter is applied to all operation step of each axis.
•The user can select one M code output mode among three modes, NONE, WITH, AFTER.
According to each setting value, timing of M code output signal is as follows.
3- 33
Chapter 3 Before positioning
3- 34
Chapter 3 Before positioning
3- 35
Chapter 3 Before positioning
• Range of S/W upper limit and lower limit is checked when starting positioning and operating.
• 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’.
(No output status is displayed at K4205(%KX6725), for X axis and K4305(%KX6885) for Y axis.
• Backlash compensation outputs backlash compensation amount first and then, address of
positioning operation, inching operation and jog operation move to the target positions. (At this time,
output as many as backlash amount is not added to the current position address.)
3- 36
Chapter 3 Before positioning
Remark
• Once backlash compensation amount is set or changed, home return should be executed
otherwise there can be error at the current position by backlash compensation amount.
3- 37
Chapter 3 Before positioning
• In the case, S/W upper/lower limit detection is available as long as origin is set and the position
mark during constant speed operation is “Mark”
(11) Use of Upper/Lower Limits
• To use upper/lower limits during operation, it should be set as “Use”.
• Upper/Lower limit input contact point is fixed as the table below and it can be used as normally
closed contact point (B contact point).
• If ‘No use’ is set, it does not detect upper/lower limits and is available with general input contact.
Signal Input contact point number
Operation content Reference
name Standard High end
External Detects the X axis external lower limit
X axis P0000 P0008
low limit at the rising edge of input contact point
Acts as
signal Detects the Y axis external lower limit normally
(LimitL) Y axis P0002 P000A closed
at the rising edge of input contact point.
contact point
External Detects the X axis external upper limit (B contact
X axis P0001 P0009
upper limit at the rising edge of input contact point. point)
signal Detects the Y axis external upper limit
(LimitH) Y axis P0003 P0008
at the rising edge of input contact point.
Here describes setting range, method of origin/manual parameter for positioning, and special K area
for positioning corresponding to each item. They are summarized as the table below.
Dedicated
K area
Initial
Item Setting range X axis Y axis Data size
value
XBM/XBC XBM/XBC
XEC XEC
0 : origin detection after DOG off
Home Return 1 : origin detection after deceleration K4780-81 K5180-81
0 2 Bit
method when DOG is On %KX7648-49 %KX8288-89
2 : origin detection by DOG
Home Return K4782 K5182
0 : forward, 1 : backward 1 Bit
direction %KX7650 %KX8290
K469 K509
Origin address -2,147,483,648∼2,147,483,647[pulse] 0 Double word
%KD234 %KD254
Home Return high K471 K511
1 ∼ 100,000[pulse/s] 5,000 Double word
speed %KD235 %KD255
Home Return low K473 K513
1 ∼ 100,000[pulse/s] 500 Double word
speed %KD236 %KD256
Home Return ACC K475 K515
0 ~ 10,000[unit: ms] 1,000 Word
time %KW475 %KW515
Home Return DEC K476 K516
0 ~ 10,000[unit: ms] 1,000 Word
time %KW476 %KW516
K477 K517
Dwell time 0 ~ 50,000[unit: ms] 0 Word
%KW477 %KW517
K479 K519
Jog high speed 1 ∼ 100,000[pulse/s] 5,000 Double word
%KD239 %KD259
K481 K521
Jog low speed 1 ∼ 100,000[pulse/s] 1,000 Double word
%KD240 %KD260
K483 K523
Jog ACC time 0 ~ 10,000[unit: ms] 1,000 Word
%KW483 %KW523
K484 K524
Jog DEC time 0 ~ 10,000[unit :ms] 1,000 Word
%KW484 %KW524
K485 K525
Inching speed 1 ∼ 65,535[pulse/s] 100 Word
%KW485 %KW525
3- 38
Chapter 3 Before positioning
Remark
• When setting home return speed, it should be “speed limit ≥ home return high speed ≥ home
return low speed”.
• 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.
3- 39
Chapter 3 Before positioning
Remark
• When setting JOG high speed, it should be “Speed limit ≥ JOG high speed ≥ Bias speed”.
• When setting JOG low speed, it should be smaller than JOG high speed.
3- 40
Chapter 3 Before positioning
3- 41
Chapter 3 Before positioning
Remark
• The user can use variable of dedicated K area per each step easily by using Register U
Device. For detail of monitor registration of positioning, refer to XG5000 user manual.
(2) Coordinates
• Here sets the coordinates method of relevant operation step data.
• Coordinates methods selectable are absolute coordinate and Incremental coordinate.
• For more detail, refer to 3.1.2.
• In case Method is set as SIN, the next operation step become ‘current operation step + 1’. And in
case Method is set as REP, the next operation step become the step set in REP Step.
3- 42
Chapter 3 Before positioning
• Generally with END operation, position operation is executed according to pre-arranged speed and
position like above picture as ladder shape with accelerated, constant, and decelerated intervals.
However depending on position and speed settings, special shapes besides a ladder can be
witnessed as below.
1) In case target address is far less than speed, it can’t pass the acceleration - regular speed –
deceleration section. In this case, the positioning is complete without regular speed section.
2) In case operation speed is same with bias speed, target moves with regular speed (bias
speed) and it stops without deceleration section.
3- 43
Chapter 3 Before positioning
• In the above table, operation pattern is set as END, target moves once by once start command
and since Method is set as SIN, the next step becomes ‘current operation step + 1’.
• To operate the next step, one more start command is necessary.
1) By first start command, target moves to 10,000 pulse with 1,000pps speed and stops. At this
time, since Method is SIN, the next operation step becomes the no.2 step, current operation
step +1.
2) By second start command, target moves to 20,000 with 500pps and stops. At this time,
Method is REP, the next operation step becomes no.1 step set in REP Step, not no.3 step.
3) If third start command is inputted, target moves to 10,000 ABS coordinates with 1,000 pps.
4) Like this, no.1 step and no.2 step are repeated whenever start command is executed so no.3
step is not operated.
3- 44
Chapter 3 Before positioning
Remark
•If the operation mode is set as single, set the operating step number in the IST at 0, then the
step specified in the current step number (axis X: K426(%KW426), axis Y: K436 (%KW436))
in area K for positioning.
•If the operation mode is set as Repeat and the Repeat step is set at 0, the step stops operating
and the next step changes into 0.
In this case, the operating step gets out of the range of 1~30 (1~80 for the compact
standard/high-end type) and error code 512 comes out, so be careful of the repeating step
setting when you set at the repeating operation.
Coordina Operation Operation Repeatin Target position M Acc./Dec. Speed Dwell time
Step No. Control
tes pattern mode g step [Pulse] code No. [pls/s] [㎳]
1) Steps 1 and 2 are continued in the operation pattern and single in the operation mode, so they
operate at 1,000pps to the pulse of absolute coordinates 10,000 and then operates step 2, the
next step, without waiting for the next operation instruction when the dwell time passes. If the
dwell time passes after step 2, step 3 is operated.
2) Step 3, of which the operation pattern is end, operates up to absolute coordinates 30,000, and
then stops right away because the dwell time is 0, and the positioning completion bit turns on
for a scan.
3- 45
Chapter 3 Before positioning
3) Since the operation mode of step 3 is single, the next step is No. 4.
4) Step 4 has been set as end/repeat 1, it operates up to absolute coordinates 40,000 when step 4
operates by the second operation instruction, and stops without dwell time, and the next step
points at step 1 which has been designated as the Repeat step.
5) The operation pattern can be illustrated as follows.
Coordina Operation Operation Repeatin Target position M Acc./Dec. Speed Dwell time
Step No. Control
tes pattern mode g step [Pulse] code No. [pls/s] [㎳]
1) Since the operation pattern of step 1 has been set as continued, it operates up to the
incremental coordinates 10,000 pulse at 500pps by the first operation instruction, and changes
the operation speed to 1,000pps without deceleration or stop and continues to operate step 2.
2) Because the operation pattern of step 2 is end, it moves to incremental coordinates 20,000 and
the positioning ends after the dwell time.
Remark
• If the direction changes during the continued operation, error code 511 comes out and the
operation stops. If the direction has to change, change “Continuous” into “End” or “Keep”.
3- 46
Chapter 3 Before positioning
(6) M Code
• M code is for checking the current operation step or carrying out the auxiliary work such as tool
change, clamp, and drill rotation.
• In general, the output of M code divides into the ‘With’ mode, when M code is output with the step
operating, and the ‘After’ mode when M code is output after the step operation is completed.
For XGB built-in positioning, the standard type has only the After mode, and the advanced type has
all modes.
• For example, if M code output mode is set as the After mode, the positioning of the step is
completed and at the same time, the M code On signal (axis X: K4203(%KX6723), axis Y: K4303
(%KX6883)) is set and the M code number set in the M code item of the step operation data is
output in the M code output device (axis X: K428(%KW428), axis Y: K438(%KW438)).
• M code can be set differently for the operation steps of the positioning operation data. The setting
range is 1 ~ 65,535. If you don’t want to use M code function for the step, just set it at 0. If you don’t
want to use M code function for any step, set the M code output mode parameter as NONE.
• If there is the M code signal, you can reset it by using the M code Off instruction (MOF).
• If there is the M code signal, the operation differs depending on the current operation pattern.
(a) End: Stops with M code coming out. For operation of the next operation step, the M code should
be reset and the operation instruction should be executed.
(b) Continued: Enters the Stand-by status for operation of the next step with M code coming out.
For operation of the next operation step, if the M code is reset, the next operation step is
operated without additional operation instructions.
(c) Incessant: Does not stop and operates the next operation step although M code comes out. In
this case, M code Off instruction can be carried out even during operation.
• For example, the output timing of M code signals in case of After Mode can be illustrated as follows.
3- 47
Chapter 3 Before positioning
Remark
• With M code signal On, if you execute the next operation step number, error code 233 will
come out and the operation will not happen.
Therefore, for positioning of the next operation step number with M code signal “On,” you
must reset M code signal as M code Off instruction (MOF).
3- 48
Chapter 3 Before positioning
3.4 Positioning Status Monitoring and Area K for Input and Output
The XGB built-in positioning function controls positioning by using area K for positioning and the
parameters. This Chapter describes area K for positioning.
For the relations between the XGB built-in positioning parameters and area K, see 3.2.2.
XGB built-in positioning area K divides into the bit flag, word, and double word flag. The flag in turn
divides into the status monitoring flag area (for read only) and the flag for instruction and command (for
read and write).
This chapter describes the XGB built-in status monitoring flag for positioning (for read only).
The status monitoring flag divides into bit, word, and double word.
3- 49
Chapter 3 Before positioning
3- 50
Chapter 3 Before positioning
Error code K427 Word K437 Word Shows error code in case of an error
Shows M code number when M code
M code No. K428 Word K438 Word
is on
Error code %KW427 Word %KW437 Word Shows error code in case of an error
Shows M code number when M code is
M code No. %KW428 Word %KW438 Word
on
The flag for positioning instruction and command divides as follows. You can easily conduct
positioning operation without positioning instruction using the flag. If you change the flag for instruction
of area K, the scan ends and applies in the next scan.
Device Area
Variables Axis X Axis Y Status
Word Bit Address Word Bit Address
Start signal 0 K4290 0 K4390 Indirect start at rising edge
0: stop jog,
Normal direction jog 1 K4291 1 K4391
1: normal direction jog operation
Backward direction K429 K439 0: stop jog,,
2 K4292 2 K4392
jog 1: normal direction jog operation
0: jog low speed, 1: jog high
Jog high/low speed 3 K4293 3 K4393
speed
1 K4681 1 K5081
M code output mode K468 K508 0: NONE, 1: WITH, 2: AFTER
2 K4682 2 K5082
3- 51
Chapter 3 Before positioning
Upper/lower limit
detection of S/W
0: detection not allowed,
allowed during 4 K4684 4 K5084
1: detection allowed
constant speed
operation
0: approximate
Return-to-origin origin/origin(OFF)
0,1 K4780~1 1 K5180~1
method 1: approximate origin/origin (On)
K478 K518
2: approximate origin
Return-to-origin 0: normal direction, 1: backward
2 K4782 2 K5182
direction direction
Use for positioning 0 K4870 0 K5270 0: use, 1: no use
Pulse output level 1 K4871 1 K5271 0: low Active,1: high Active
K487 K527
Use of upper/lower
2 K4872 2 K5272 0: no use, 1: use
limit
Pulse output mode 3 K4873 3 K5273 0: CW/CCW, 1: PLS/DIR
Device area
Variables Axis X Axis Y Status
Address Addreess
Start signal %KX6864 %KX7024 Indirect start at rising edge
0: stop jog,
Normal direction jog %KX6865 %KX7025
1: normal direction jog operation
Backward direction 0: stop jog,,
%KX6866 %KX7026
jog 1: normal direction jog operation
Jog high/low speed %KX6867 %KX7027 0: jog low speed, 1: jog high speed
%KX7489 %KX8129
M code output mode 0: NONE, 1: WITH, 2: AFTER
%KX7490 %KX8130
Upper/lower limit
detection of S/W
0: detection not allowed,
allowed during %KX7492 %KX8132
1: detection allowed
constant speed
operation
0: approximate origin/origin(OFF)
Return-to-origin
%KX7648-49 %KX8288-89 1: approximate origin/origin (On)
method
2: approximate origin
Return-to-origin 0: normal direction, 1: backward
%KX7650 %KX8290
direction direction
Use for positioning %KX7792 %KX8432 0: use, 1: no use
Pulse output level %KX7793 %KX8433 0: low Active,1: high Active
Use of upper/lower
%KX7794 %KX8434 0: no use, 1: use
limit
Pulse output mode %KX7795 %KX8435 0: CW/CCW, 1: PLS/DIR
1) The starting signals conducts positioning operation according to the current operation step
number (axis X: K426(%KW426), axis Y: K436(%KW436)) without setting the step number unlike
indirect or direct starting.
2) Since the current operation step area is for read only, if you want to change the operation step
number, you need to use the starting step number change instruction (SNS, APM_SNS).
3) The following program is an example of the program that indirectly starts with the operation data
displayed in the current step number (K426) on axis X by setting the starting signal whenever
3- 52
Chapter 3 Before positioning
• The program above is an example of the program that indirectly starts with the operation data of
the current step number (K426 word) on axis X by setting the starting signal whenever the
external input starting switch (P000F) turns On.
• When the starting switch turns On, the starting commanding flag (K4290) is set and axis X starts,
and when the starting switch turns Off, the starting contact point is reset.
• Note that the set coil is used for axis X starting commanding flag (K4290) instead of ordinary coil
output.
For example, if a toggle switch is used for the starting switch, and if the starting commanding flag
(K4290) is not set but ordinary coil output is used, there might be the problem that it is
automatically restarted by the bit Off during operation when positioning is completed. To avoid this,
use a push button switch for the external input switch, and use a set coil and reset coil according
to the On/Off of the input switch for the starting commanding flag.
3- 53
Chapter 3 Before positioning
1) The following program is an example of the program that carries out the jog operation of axis X
by turning on/off the flag for commanding the normal/backward direction jog according to the
external input signal.
• The program above is an example of the program that carries out the jog operation in the
corresponding direction while the external input normal direction jog switch (P0008) or
backward direction jog switch (P0009) in On.
• Then the operation speed is jog high speed if the jog low/high speed external input (P000A) is
On, and high low if Off, and can be changed during jog operation, too.
• As the start and stop of jog operation is done by the level of the input signals, if the input signal
(P0008, P0009) is On, it operates, and if Off, it carries out jog stop.
• If both jog normal direction operation and backward direction operation are On, there is no error
code in XGB built-in positioning, but it stops if it is currently in operation.
Remark
3- 54
Chapter 3 Before positioning
Bias speed K0450 Double word K0490 Double word Sets bias speed.
Speed limit K0452 Double word K0492 Double word Sets maximum speed limit.
Acceleration time 1 K0454 Word K0494 Word Sets acceleration time 1.
Deceleration time 1 K0455 Word K0495 Word Sets deceleration time 1.
Acceleration time 2 K0456 Word K0496 Word Sets acceleration time 2.
Deceleration time 2 K0457 Word K0497 Word Sets deceleration time 2.
Acceleration time 3 K0458 Word K0498 Word Sets acceleration time 3.
Deceleration time 3 K0459 Word K0499 Word Sets deceleration time 3.
Acceleration time 4 K0460 Word K0500 Word Sets acceleration time 4.
Deceleration time 4 K0461 Word K0501 Word Sets deceleration time 1
Upper limit of Sets upper limit value of
K0462 Double word K0502 Double word
software software.
Lower limit of Sets lower limit value of
K0464 Double word K0504 Double word
software software.
Sets backlash correction
Backlash correction K0466 Word K0506 Word
value.
Sets origin address for origin
Origin address K0469 Double word K0509 Double word
return.
High speed of origin Sets high speed for origin
K0471 Double word K0511 Double word
return return.
Low speed of origin Sets low speed for origin
K0473 Double word K0513 Double word
return return.
Acceleration time for Sets acceleration time for
K0475 Word K0515 Word
origin return origin return
Deceleration time for Sets deceleration time for
K0476 Word K0516 Word
origin return origin return
Dwell time for origin Sets dwell time for origin
K0477 Word K0517 Word
return return
Sets high speed for jog
Jog high speed K0479 Double word K0519 Double word
operation.
Sets low speed for jog
Jog low speed K0481 Double word K0521 Double word
operation
Sets acceleration time for jog
Jog acceleration time K0483 Word K0523 Word
operation
Sets deceleration time for jog
Jog deceleration time K0484 Word K0524 Word
operation
Sets operation speed for
Inching speed K0485 Word K0525 Word
inching operation.
3- 55
Chapter 3 Before positioning
Bias speed %KD225 Double word %KD245 Double word Sets bias speed.
Speed limit %KD226 Double word %KD246 Double word Sets maximum speed limit.
Acceleration time 1 %KW454 Word %KW494 Word Sets acceleration time 1.
Deceleration time 1 %KW455 Word %KW495 Word Sets deceleration time 1.
Acceleration time 2 %KW456 Word %KW496 Word Sets acceleration time 2.
Deceleration time 2 %KW457 Word %KW497 Word Sets deceleration time 2.
Acceleration time 3 %KW458 Word %KW498 Word Sets acceleration time 3.
Deceleration time 3 %KW459 Word %KW499 Word Sets deceleration time 3.
Acceleration time 4 %KW460 Word %KW500 Word Sets acceleration time 4.
Deceleration time 4 %KW461 Word %KW501 Word Sets deceleration time 1
Upper limit of Sets upper limit value of
%KD231 Double word %KD251 Double word
software software.
Lower limit of Sets lower limit value of
%KD232 Double word %KD252 Double word
software software.
Sets backlash correction
Backlash correction %KW466 Word %KW506 Word
value.
Double word Double word Sets origin address for origin
Origin address %KD234 %KD254
return.
High speed of origin Double word Double word Sets high speed for origin
%KD235 %KD255
return return.
Low speed of origin Double word Double word
%KD236 %KD256 Sets low speed for origin return.
return
Acceleration time for Word Word Sets acceleration time for origin
%KW475 %KW515
origin return return
Deceleration time for Word Word Sets deceleration time for origin
%KW476 %KW516
origin return return
Dwell time for origin Word Word
%KW477 %KW517 Sets dwell time for origin return
return
Double word Double word Sets high speed for jog
Jog high speed %KD239 %KD259
operation.
Double word Double word Sets low speed for jog
Jog low speed %KD240 %KD260
operation
Sets acceleration time for jog
Jog acceleration time %KW483 Word %KW523 Word
operation
Sets deceleration time for jog
Jog deceleration time %KW484 Word %KW524 Word
operation
Sets operation speed for
Inching speed %KW485 Word %KW525 Word
inching operation.
3- 56
Chapter 3 Before positioning
Double
Step 01 target position K0530 K0830
word
Double
Step 01 operation speed K0534 K0834
word
3- 57
Chapter 3 Before positioning
Double
Step 01 target position %KD265 %KD415
word
Double
Step 01 operation speed %KD267 %KD417
word
• The table above shows the area K for positioning of the operation step #1. You can change the
operation data without setting the parameters by changing the value of the corresponding area K.
• If you want to permanently preserve the operation data of the changed area K, apply the data of
current area K to the built-in parameter area by using the applied instruction (WRT instruction,
APM_WRT instruction).
Remark
• Note that area K for positioning is initialized if you cut the power and re-supply power or if you
change the operation mode without executing the WRT instruction after changing the value of
area K.
• The variable of area K for each step can be used more conveniently by using the variable
registration function of XG5000. For the positioning monitor registration, see the manual of
XG5000.
3- 58
Chapter 4 Positioning Check
This is for checking whether the XGB positioning operation is normally performed by carrying out normal
and reverse direction jog operation. The sequence is as follows.
• If the device doesn’t work as described in the table above, there might be a problem with the LED or
the input hardware, so contact the customer center.
4- 1
Chapter 4 Positioning Check
• Turn on the normal direction switch(P0010) of axis X, with the reverse direction switch of the
jog set at Off.
• Check whether the XGB positioning function normally generates jog normal direction output.
1) Check of the output LED
- P0020 (%QX0.0.0) : flashes quickly
- P0022 (%QX0.0.2) : stays ON
2) Check of area K
- Check whether the current position address is increasing by checking the current
position address area (axis X: K422 double word) with XG5000.
• Turn Off the jog normal direction switch (P0010, %IX0.0.16) during jog normal direction
operation, and check whether the output LED (P0020, %QX0.0.0, P0022, %QX0.0.2) is Off,
the current position address area (axis X: K422, %KD211 double word) with XG5000, and
whether the current position address has stopped increasing.
• Turn on the axis X jog reverse direction switch (P0012, %IX0.0.18)), with the normal direction
switch of the jog Off.
• Check whether the XGB positioning function is generating jog reverse direction output
normally.
1) Output LED Check
- P0020(%QX0.0.0) : flashes quickly
- P0022(%QX0.0.2) : stays OFF
2) Check of area K
- Check whether the current position address is decreasing by checking the current
position address area (axis X: K422, %KD211 double word) with XG5000
• Turn Off the jog reverse direction switch (P0012, %IX0.0.18) during jog reverse direction
operation, and check whether the output LED (P0020, %QX0.0.0, P0022, %QX0.0.2) is Off,
the current position address area (axis X: K422, %KD211 double word) with XG5000, and
whether the current position address has stopped decreasing
(e) For compact standard type, there is not actual output P00040/P00044 and they are indicated by
LED.
4- 2
Chapter 4 Positioning Check
4- 3
Chapter 4 Positioning Check
4- 4
Chapter 5 Positioning Instructions
SSS Speed synchronization Slot, instruction axis, synchronization rate, delay time 5.2.11
POR Position override Slot, instruction axis, position 5.2.12
SOR Speed override Slot, instruction axis, speed 5.2.13
PSO Positioning speed override Slot, instruction axis, position, speed 5.2.14
INCH Inching starting Slot, instruction axis, inching amount 5.2.15
SNS Change starting step number Slot, instruction axis, step number 5.2.16
MOF Cancel M code Slot, instruction axis 5.2.17
PRS Preset current position Slot, instruction axis, position 5.2.18
EMG Emergency stop Slot, instruction axis 5.2.19
CLR Reset error, cancel output inhibition Slot, instruction axis, inhibit/allow pulse output 5.2.20
WRT Save parameter/operation data Slot, instruction axis, select the storage area 5.2.21
PWM Pulse width modulation Slot, instruction axis, output cycle, off duty rate 5.2.22
Remark
• XGB positioning instructions are activated at the rising edge. That is, when the execution contact point
is On, it carried out the instruction only once.
5 -1
Chapter 5 Positioning Instructions
ACC/DEC time
APM_IST Indirect starting Req, Base, Slot, Axis, step number 5.3.5
APM_LIN Linear interpolation starting Req, Base, Slot, Axis, step number 5.3.6
Save parameter/operation
APM_WRT Req, Base, Slot, Axis, Select area to save 5.3.22
data
APM_PWM Pulse width modulation Reg, Slot, Axis, output cycle, off duty rate 5.3.23
5 -2
Chapter 5 Positioning Instructions
• Origin return is sued to check the origin of the machine when power is supplied to the machine in
general. If the origin return instruction is given, it is executed depending on the setting of the origin
return parameter. (for setting of the origin return parameter, refer to 3.2.4.)
• In general, the origin return divides into two ways, one of which is using the DOG and the other is
not using it. In XGB positioning function, the following three ways can be used that use the DOG.
(for details of the origin return method, refer to 3.1.9.)
• The following diagram is an example of origin detection by DOG among the three ways of origin
return.
5 -3
Chapter 5 Positioning Instructions
COMMAND
ORG ORG sl ax
A
[Area seting]
Operand Description Setting range Data size
Slot number where positioning modules are
sl XGB is fixed at 0. WORD
mounted
ax The axis to give instructions 0(axis X) or 1(axis Y) WORD
[Flag Set]
Flag Description Device number
Error If the value of ax gets out of the range F110
(a) Function
• This instruction is for carrying out the origin return of the XGB built-in positioning function.
• It gives the origin return instruction to the axis designated as the ax of positioning built in XGB at the
rising edge of the input condition.
• When origin return is completed, the origin setting bit (axis X:K4204,axis Y:K4304) turns On and the
current address is preset at the address value set in the origin return parameter.
(s) Error
• If the value designated as ax (instruction axis) is other than 0 and 1, the error flag (F110) is set and
the instruction is not executed.
• This is an error of instruction execution, so the error flag (axis X:K4201,axis Y: K4301) of area K for
positioning does not turn On.
Parameter Area K
Data size
Item Setting range axis X axis Y Properties
0 : DOG/Home(Off)
K4780 K5180
origin return method 1 : DOG/Home(On) Read/write 2 bit
K4781 K5181
2 : DOG
origin return 0 : CW,
K4782 K5182 Read/write Double word
direction 1 : CCW
-2,147,483,648∼
Origin address K469 K509 Read/write Double word
2,147,483,647[pulse]
origin return high
1 ∼ 100,000[pps] K471 K511 Read/write Double word
speed
5 -4
Chapter 5 Positioning Instructions
Parameter Area K
Data size
Item Setting range Data size axis Y Properties
origin return low
1 ∼ 100,000[pps] K473 K513 Read/write Double word
speed
origin return
0 ~ 10,000[ms] K475 K515 Read/write Word
acceleration time
origin return
0 ~ 10,000[ms] K476 K516 Read/write Word
deceleration time
Dwell time 0 ~ 50,000[ms] K477 K517 Read/write Word
5 -5
Chapter 5 Positioning Instructions
Remark
• The DOG signal and origin signal are respectively fixed as the following contact points.
• If the contact points of the DOG and the origin input are used together as the external
preset input of the high speed counter, or together as the starting signal of the external
contact point task, the origin detection might be inaccurate.
• The current position address does not change during origin return.
5 -6
Chapter 5 Positioning Instructions
• Floating origin setting refers to setting the current position as the origin by force with the instruction
without carrying out the actually mechanical origin return.
[Area Setting]
Operand Description Setting range Data size
Slot number where positioning module is
sl XGB is fixed at 0 WORD
mounted
ax Axis to give instruction 0(axis X) or 1(axis Y) WORD
[Flag Set]
Flag Description Device number
Error If the value of ax gets out of the range F110
(a) Function
• This instruction is for setting the floating origin to the XGB built-in positioning.
• The instruction of setting the floating origin is given to the axis designated as ax of XGB positioning
at the rising edge of the input condition.
• If the instruction is carried out, the current position address becomes 0, and the origin determining
bit (axis X: K4204,axis Y:K4304) turns On.
(b) Error
• If the value designated as ax (instruction axis) is other than 0 and 1, the error flag (F110) is set and
the instruction is not executed
Remark
• Floating origin setting presets the current position at 0 and only fixs the origin, so you need to
note the following when you use the instruction of setting the floating origin.
Check whether there is an error before carrying out the floating origin setting instruction. If
there is an error, remove the cause of the error, reset the error (CLR instruction) and
terminate the output inhibition.
Now set the floating origin, change the step number to operate into the starting step change
instruction (SNS), and then get it started.
5 -7
Chapter 5 Positioning Instructions
Device Description
axis X floating origin instruction
M0000
signal
K4200 Signal during axis X operation
K4201 axis X error
5 -8
Chapter 5 Positioning Instructions
• Direct starting refers to designating the operation data of the target position and speed from the
positioning instruction (DST instruction) for operation without using the setting of the step set in the
positioning operation data.
[Flag Set]
Flag Description Device number
Error If the value of ax gets out of the range F110
(a) Function
• This instruction is for directly ordering the start to XGB built-in positioning.
• This instruction carries out direct starting of the axis designated as ax of XGB positioning at the
rising edge of input condition.
• If the instruction is executed, positioning operation is started by using the target position set in n1,
the target speed set in n2, the dwell time set in n3, and the M code number set in n4 instead of the
operation data set in the step number (axis X:K426, axis Y:K436 word) of area K.
• The absolute/Incremental coordinates, position/speed control and acceleration/deceleration
pattern number are fixed by the setting of each bit of the control word set as n5.
Bit
F E D C B A 9 8 7 6 5 4 3 2 1 0
number
5 -9
Chapter 5 Positioning Instructions
• The instruction only sets the item of the operation data, and the basic parameter items related to
the operation such as the bias speed and speed limit are fixed in the positioning basic parameters.
• If you use the DST instruction, the operation pattern is fixed as End operation, and the operation
method is fixed as the single operation. But if continued operation or repeated operation is needed,
use indirect starting (IST instruction).
(b) Error
• If the value designated as ax (instruction axis) is other than 0 and 1, the error flag (F110) is set
and the instruction is not executed.
• This case if an error of execution of the instruction, so the error of positioning area K flag (axis
X:K4201, axis Y: K4301) does not turn On.
5 - 10
Chapter 5 Positioning Instructions
1) If the DST instruction is executed, the positioning operation gets started as set in the operand
as follows.
- Since sl and ax are 0, built-in positioning axis X is started.
- The target position will be 100,000 pulse set as double word in D0002.
- The target speed will be 30,000 pps set as double word in D0002.
- After positioning is finished, the dwell time becomes 100ms set in D0004, and No.123
designated in D0005 will be output as the M code.
- Since the control word of D0006 is H`20, the acceleration/deceleration pattern will follow the
acceleration time 2 and deceleration time 2 of the basic parameter, and the positioning
operation will be done as the absolute coordinates. If the DST instruction is started, the
position control will be executed in the absolute coordinates, it will operate up to the
100,000 pulse at 30,000 pps, then stop, and after the dwell time of 100 ms passes, the
positioning is finished, and M code outputs 123.
2) If positioning is finished by direct starting, positioning finish signal (axis X:K4202) turns on for a
scan.
5 - 11
Chapter 5 Positioning Instructions
• Indirect starting refers to execution of the positioning operation by using the operation step data set in
the positioning operation data.
COMMAND
IST IST sl ax n1
[
[Area Setting]
Operand Description Setting range Data size
sl Slot No. of positioning module XGB is fixed at 0 WORD
ax Axis to give instruction 0 (axis X) or 1 (axis Y) WORD
n1 Step number to start 0~30(standard), 0~80(advanced) WORD
[Flag Set]
Flag Description Device number
Error If the value of ax gets out of the range F110
(a) Function
• This instruction is giving indirect starting instruction to XGB built-in positioning.
• The indirect starting is executed to the axis designated as ax of XGB positioning at the rising edge
of the input condition.
• If the instruction is executed, the positioning operation is carried out by the operation data set in
the step number of area K designated in n1. If n1 is set at 0, the operation step is executed which
is displayed in the step number of current positioning area K (axis X:K426, axis Y:K436 word).
• Various operation patterns such as end, continued, and incessant operation, and single and
repeated operation can be made and executed by using the indirect operation instruction.
(b) Error
• If the value designated as ax (instruction axis) is other than 0 and 1, the error flag (F110) is set
and the instruction is not executed.
• In this case, execution of instruction is error. so K area error ocurrence Flag(X axis:K4201, Y
axis:K4301) doesn't turn On
• If the set value of the starting step number gets out of the settable range, instruction Error
Flag(F110) is not set, the error flag of positioning area K (axis X:K4201, axis Y: K4301) turns On,
and the operation does not occur.
5 - 12
Chapter 5 Positioning Instructions
Repeat
Step coordin Operatio Control Operatio Target position M Acc./dec Operation Dwell time
ed
No. ates n pattern method n mode [Pulse] code . No. speed[pls/s] [㎳]
Step
Increm
3 end position single 0 7,000 0 1 100 10
ental
1) If the direct starting instruction (IST instruction) is executed, positioning operation starts as set
in the operand as follows.
- Since sl and ax are 0, built-in positioning axis X of the basic unit is started.
- Because the starting step number is set as 3, positioning operation is carried out by the
data of No. 3 step of the positioning operation data. That is, if the IST instruction is started,
positioning control is conducted in the Incremental coordinates as set in operation data No.
3 step, moves up to 7,000 pulse at 100pps, stops, and when the dwell time of 10ms passes,
positioning is finished.
5 - 13
Chapter 5 Positioning Instructions
2) Since M code is set at 0, it does not appear and as the operation pattern is End, the step
number (axis X:K426) of area K is changed into 4, which is step + 1.
Remark
• In addition to executing indirect operation by using the IST instruction, indirect starting can also
be started by using the starting signal instruction contact point (axis X:K4290, axis Y:K4390) of
area K.
If starting is done by using the starting signal instruction contact point, the operation step is
fixed at the current operation step number (axis X:K426, axis Y:K436).
Therefore if you want to change the operation step when starting by using the starting signal
instruction contact point, change the operation step by using the Starting step number
changing instruction and turn on the starting instruction contact point.
• For details, refer to 3.4.2.
5 - 14
Chapter 5 Positioning Instructions
• Straight interpolation starting refers to the operation so that the path of axes X and Y is straight from
the starting address (current stop location) to the target address (target address).
• Straight interpolation control divides into control by absolute coordinates and Incremental coordinates.
For details, refer to 3.1.2.
• When the instruction of straight interpolation starting is given, the axis where there is more movement
is designated as the main axis. If the movements are equal, axis X is the main axis.
• The speed of the auxiliary axis does not follow the setting of the operation data, but conducts
operation by calculating the operation speed, acceleration time, deceleration time, and bias speed
automatically by the following operations.
• The operation pattern that can use straight interpolation operation is limited to End and Continued
operation. If the main axis is set as Continued and the interpolation operation is started, no error is
issued in XGB built-in positioning but the operation pattern of the main axis is changed into
Continued. If the auxiliary axis is set as Continued, it does not affect the straight interpolation.
COMMAND
LIN LIN sl ax n1 n2
A
[Area Setting]
Operand Description Setting range Data size
[Flag Set]
Flag Description Device number
Error If the value of ax gets out of the range F110
5 - 15
Chapter 5 Positioning Instructions
(a) Function
• This instruction is giving the straight interpolation starting instruction to XGB built-in positioning.
• The two axes of XGB positioning conduct straight interpolation starting at the rising edge of input
condition.
• If the instruction is executed, the two axes of XGB positioning carried out the straight interpolation
operation according to the axis setting designated in n2. The step number to be operated is the
step number set in n1.
• In setting of the axis of n2, the axis to carry out the straight interpolation operation as follows.
Bit number 15 ~ 3 2 1 0
Setting Not used Axis Z (XGB is not axis Y axis X
used)
- Each bit refers to the axis to start the straight interpolation. In the case of XGB built-in positioning,
n2 should be fixed as 3 since only axis X and axis Y are available. Otherwise, error code 253 is
issued and it does not operate.
(b) Error
• If the value designated as ax (instruction axis) is other than 0 and 1, the error flag (F110) is set
and the instruction is not executed.
• Since this case if an error of execution of the instruction, the error in positioning area K error
flag(axis X:K4201, axis Y: K4301) does not turn On..
• If the set value of the starting step number gets out of the settable range, instruction Error
Flag(F110) is not set, the error flag of positioning area K (axis X:K4201, axis Y: K4301) turns On,
and the operation does not occur.
5 - 16
Chapter 5 Positioning Instructions
Repeat
Step coordi Operatio Control Operatio Target position M Acc./dec. Operation Dwell time
Axis ed
No. nates n pattern method n mode [Pulse] code No. speed[pls/s] [㎳]
Step
positio
X 10 Rel. End Single 0 7,000 0 1 100 10
n
positio
Y 10 Rel. End Single 0 2,000 0 2 300 10
n
1) If the straight interpolation instruction (LIN instruction) is executed, the straight interpolation
operation is started as set in operand.
2) Since sl is 0, built-in positioning of the basic unit operates straight interpolation.
- Because the starting step number is set as 3, positioning operation is carried out by the data of
No. 3 step of the positioning operation data. That is, if the IST instruction is started, positioning
control is conducted in the Incremental coordinates as set in operation data No. 3 step, moves
up to 7,000 pulse at 100pps, stops, and when the dwell time of 10ms passes, positioning is
finished.
3) As the ax is set at 0, the straight interpolation instruction for axis X is started. (For actual zero,
the main and auxiliary axes of axis X and axis Y are calculated according to the size of the
target position for starting, to the ax operand does not affect the operation)
4) Since the step number of n1 operation is set at 10, the main and auxiliary axes are
automatically selected by No. 10 operation data of axis X and axis Y. (In this example, because
the target position of axis X is larger, axis X is the main axis and axis Y is the auxiliary axis.)
5) The acceleration and deceleration time and speed of axis Y, which is the auxiliary axis, does not
follow the set value but automatically calculated for operation.
6) That is, axis X and axis Y are designated as the main and auxiliary axes respectively by starting
of the LIN instruction, it moves by (7000,2000) to the relative position and the operation ends.
5 - 17
Chapter 5 Positioning Instructions
• The simultaneous starting instruction (SST instruction) is for simultaneously starting the steps of the
axes set in the instruction. For details, refer to 3.1.7.
[Area Setting]
Operand Description Setting range Data size
sl Slot No. of positioning module XGB is fixed at 0 WORD
ax Axis to give instruction 0 (axis X) or 1 (axis Y) WORD
n1 axis X Step No. 0~30(standard), 0~80(advanced) WORD
n2 axis Y Step No. 0~30(standard), 0~80(advanced) WORD
n3 axis Z Step No. Not used WORD
n4 Axis setting XGB is set at 3 WORD
[Flag Set]
Flag Description Device number
Error If the value of ax gets out of the range F110
(a) Function
• This function is for giving the simultaneous starting instruction to XGB built-in positioning
simultaneous starting.
• The two axes of XGB positioning are simultaneously started at the rising edge of the input
condition. (For the difference between using the simultaneous starting instruction and starting the
two axes consecutively in the PLC ladder program, refer to 3.1.7.)
• When the instruction is executed, axis X and axis Y simultaneously start by using the operation
data of the step number set in n1 and n2 respectively. XGB built-in positioning does not have axis
Z, so the set value of n3 does not affect the operation.
• Axis setting of n4 sets the axis to carry out simultaneous starting by bit as follows.
Bit No. 15 ~ 3 2 1 0
Setting Not used Axis Z (XGB not used) axis Y axis X
- Each bit refers to the axis to start straight interpolation. In the case of XGB built-in positioning,
only axis X and axis Y are available, so n4 should be fixed at 3. Otherwise, error code 296 is
issued and operation does not occur.
(b) Error
• If the value designated as ax (instruction axis) is other than 0 and 1, the error flag (F110) is set
and the instruction is not executed.
• Since this case if an error of execution of the instruction, the error in positioning area K error
flag(axis X:K4201, axis Y: K4301) does not turn On..
• If the set value of the starting step number gets out of the settable range, instruction Error
Flag(F110) is not set, the error flag of positioning area K (axis X:K4201, axis Y: K4301) turns On,
and the operation does not occur.
5 - 18
Chapter 5 Positioning Instructions
Operat Repeat
Step coordin Operatio Control Target position M Acc./dec. Operation Dwell time
Axis ion ed
No. ates n pattern method [Pulse] code No. speed[pls/s] [㎳]
mode Step
Singl
X 1 Rel. End position 0 7,000 0 1 100 10
e
Singl
Y 2 Rel. End Position 0 2,000 0 2 300 10
e
5 - 19
Chapter 5 Positioning Instructions
[Flag Set]
Flag Description Device number
Error If the value of ax gets out of the range F110
(a) Function
• This instruction is giving the speed/position control switching instruction to XGB built-in positioning.
• The axis designated as ax at the rising edge in the input condition is switched from the speed
operation to position operation.
• The current position which was output during the previous speed control operation is initialized to
0 and operated to the target position by absolute coordinates method.
(b) Error
• If the value designated as ax (instruction axis) is other than 0 and 1, the error flag (F110) is set
and the instruction is not executed.
5 - 20
Chapter 5 Positioning Instructions
5 - 21
Chapter 5 Positioning Instructions
[
[Area Setting]
Operand Description Setting range Data size
sl Slot No. of positioning module XGB is fixed at 0 WORD
ax Axis to give instruction 0 (axis X) or 1 (axis Y) WORD
[Flag Set]
Flag Description Device number
Error If the value of ax gets out of the range F110
(a) Function
• This instruction is giving the position/speed control switching instruction to XGB built-in positioning.
• The axis designated as ax at the rising edge in the input condition is switched from the position
operation to speed operation.
• The current position which was output during the previous speed control operation is not initialized
to 0 and only the control method is switched to speed control with the operation continued.
(b) Error
• If the value designated as ax (instruction axis) is other than 0 and 1, the error flag (F110) is set
and the instruction is not executed.
5 - 22
Chapter 5 Positioning Instructions
5 - 23
Chapter 5 Positioning Instructions
• The currently operating axis is decelerated and stopped at the speed designated by the deceleration
stop instruction (STP instruction). For details, refer to 3.1.11.
[Area Setting]
Operand Description Setting range Data size
sl Slot No. of positioning module XGB is fixed at 0 WORD
ax Axis to give instruction 0 (axis X) or 1 (axis Y) WORD
n1 deceleration time 0~65535 WORD
[Flag Set]
Flag Description Device number
Error If the value of ax gets out of the range F110
(a) Function
• This instruction is giving the deceleration stop instruction to XGB built-in positioning.
• The axis designated as ax at the rising edge of the input condition conducts deceleration stop for
the deceleration time set in the corresponding operation step.
(b) Error
• If the value designated as ax (instruction axis) is other than 0 and 1, the error flag (F110) is set
and the instruction is not executed.
Remark
• If the deceleration time is set at 0, it stops right away without deceleration in XGB positioning. In
this case, note that there might be shock noise or damage to the motor.
• If the deceleration time of n1 is set at 0, it stops right away without deceleration. Otherwise, it
stops according to the operation data of the operation data and the acceleration/deceleration
number set in the DST instruction respectively in case of indirect starting and direct starting.
5 - 24
Chapter 5 Positioning Instructions
5 - 25
Chapter 5 Positioning Instructions
• As follows, this is the instruction for synchronous starting according to the current position of the
main axis with the axis set in the SSP being the auxiliary axis. For details, refer to 3.1.8.
[Area Setting]
Operand Description Setting range Data size
sl Slot No. of positioning module XGB is fixed at 0 WORD
ax Axis to give instruction 0 (axis X) or 1 (axis Y) WORD
Position value of the main axis
n1 position synchronous main -2,147,483,648 ~ 2,147,483,647 DINT
axis
Operation step number of
n2 0~30(standard), 0~80(advanced) WORD
auxiliary axis
Setting of the main axis of
n3 0 (axis X) or 1 (axis Y) WORD
position synchronous
[Flag Set]
Flag Description Device number
Error If the value of ax gets out of the range F110
(a) Function
• This instruction is executing main axis position synchronous starting for the XGB built-in
positioning.
• The main axis position synchronous instruction is executed with the axis set in the axis designated
as ax at the rising edge of the input condition auxiliary axis, n3 being the main axis.
5 - 26
Chapter 5 Positioning Instructions
• If the instruction is executed, the auxiliary axis stands by without generating actual pulse (the
operation status flag of the auxiliary axis (axis X:K4200, axis Y:K4300) turns On), and n2 step of
the auxiliary axis is started when n3 axis, which is the main axis, is positioned as set in n1.
• The position synchronous starting instruction can be executed only when the origins of both the
main axis and auxiliary axis are fixed. If the origin of the main axis is not decided when the main
axis position synchronous instruction (SSP) is started, error code 346 is issued, and if the origin of
the auxiliary axis is not decided when the main axis position synchronous instruction (SSP) is
started, error code 344 is issued.
• When you use the main axis position synchronous instruction, set the main axis and auxiliary axis
at different axes. If they are set at the same axis, error code 347 is issued.
• If you want to cancel the main axis position synchronous instruction after you executed it, execute
the stop instruction of the auxiliary axis (STP).
(b) Error
• If the value designated as ax (instruction axis) is other than 0 and 1, the error flag (F110) is set
and the instruction is not executed.
5 - 27
Chapter 5 Positioning Instructions
Remark
• When you use the main axis position synchronous instruction, if the axis set as the main axis
has already been started as the main axis position synchronous auxiliary axis, error code 349 is
issued and it is not executed. If the following example, axis Y becomes the auxiliary axis and
axis X becomes the main axis at the rising edge of M0001 and the main axis position
synchronous instruction is executed. If there is the rising edge of M0100, the position
synchronous instruction is issued with axis X being the auxiliary axis and axis Y being the main
axis. In this case, since axis Y used as the main axis, is already being started as the auxiliary
axis of the main axis position synchronous instruction, axis X generates error code 349 and is
not started.
5 - 28
Chapter 5 Positioning Instructions
• The speed synchronous instruction (SSS instruction) is for speed synchronization at the set
synchronous speed rate and operation when the main axis is started with the axis set in the
instruction being the auxiliary axis. For details, refer to 3.1.8.
[Area Setting]
Operand Description Setting range Data size
sl Slot No. of positioning module XGB is fixed at 0 WORD
ax Axis to give instruction 0 (axis X) or 1 (axis Y) WORD
n1 speed synchronous ratio 1 ~ 10,000(0.01% ~ 100.00%) WORD
n2 Delay time 1 ~ 10[㎳] WORD
n3 Speed delay main axis setting See 0 ~ 9 ‘(1) Function’ WORD
[Flag Set]
Flag Description Device number
Error If the value of ax gets out of the range F110
(a) Function
• This instruction is for executing the speed synchronous starting for synchronous starting.
• The axis set in the axis designated as ax at the rising edge of the input condition auxiliary axis, n3
becomes the main axis and the speed main axis position synchronous starting instruction is
executed.
• If the instruction is executed, the auxiliary axis stands by without generating actual pulse (the
operation status flag of the auxiliary axis (axis X:K4200, axis Y:K4300) turns On), and nn3 axis,
which is the main axis, it is started according to the speed synchronous ratio set in n1.
• The synchronous ratio settable in n1 is 0.01% ~ 100.00% (set value 1 ~ 10,000). If the set speed
ratio gets out of this range, error code 356 is issued.
• The delay time of n2 refers to the delay time it takes for speed of the auxiliary axis to reach the
current main axis speed. In XGB built-in positioning, when controlling the speed synchronization,
the speed of the current main axis is detected every 500 ㎲, and thereby the speed of the
auxiliary axis is adjusted. If the speed of the auxiliary axis is synchronized to the current main axis
speed without a delay time and immediately changed, there might be damage or shock noise to
the motor due to the sudden change of the auxiliary axis speed.
For example, assuming the speed ratio is 100.00% and the delay time is 5[ms], if the speed of the
main axis is 10,000[pps], the XGB built-in positioning adjusts the speed of the auxiliary axis
according to the speed of the main axis every 500[㎲] by adjusting the current speed for the
speed of the auxiliary axis to reach 10,000[pps].
The longer the delay time, the longer the delay time between the main axis and auxiliary axis, but
the output pulse is stably output. If there is likely to be step out of the motor, lengthen the delay
time.
5 - 29
Chapter 5 Positioning Instructions
• The delay time settable for n2 is 1 ~ 10[㎳]. If it gets out of the settable range, error code 357 is
issued.
• The main axis of n3 is settable between 0 and 9. If it gets out of the settable range, error code 355
is issued
• If you want to cancel the speed synchronous instruction after you execute it, execute the stop
instruction (STP) for the auxiliary axis.
• The speed synchronous control is executable even when the origin is not fixed.
• The speed synchronous control is synchronized to the speed of the main axis for operation of the
auxiliary axis, so even if the control method of the auxiliary axis is set as position control, starting
and stop are alternated by the operation of the main axis, with the rotation of the auxiliary axis
being in the same direction as the main axis.
• If the M code of the auxiliary axis is On when you execute the speed synchronous instruction, error
code 353 is issued.
(b) Error
• If the value designated as ax (instruction axis) is other than 0 and 1, the error flag (F110) is set
and the instruction is not executed.
5 - 30
Chapter 5 Positioning Instructions
5 - 31
Chapter 5 Positioning Instructions
• The position override instruction (POR) is for changing the target position of the axis being operated
for the current positioning into the target position set in the instruction. For details, refer to 3.1.10.
[Area Setting]
Operand Description Settable range Data size
sl Slot No. of positioning module XGB is fixed at 0 WORD
ax Axis to give instruction 0 (axis X) or 1 (axis Y) WORD
n1 Target position to change -2,147,483,648 ~ 2,147,483,647 DINT
[Flag Set]
Flag Description Device number
Error If the value of ax gets out of the range F110
(a) Function
• This instruction is giving the position override instruction to the XGB built-in positioning.
• This is changing the target position to the position set in n1 during the operation of the axis
designated as ax at the rising edge of the input condition.
• The position override instruction is available in the acceleration and deceleration sections and if
the position override is executed during dwell, error code 362 is issued.
(b) Error
• If the value designated as ax (instruction axis) is other than 0 and 1, the error flag (F110) is set
and the instruction is not executed.
5 - 32
Chapter 5 Positioning Instructions
5 - 33
Chapter 5 Positioning Instructions
• The speed override instruction (SOR) is for changing the operation speed of the axis during current
positioning operation into the speed set in the instruction. For details, refer to 3.1.10.
[Area Setting]
Operand Description Setting range Data size
sl Slot No. of positioning module XGB is fixed at 0 WORD
ax Axis to give instruction 0 (axis X) or 1 (axis Y) WORD
n1 Operation speed to change 0 ~ 100,000[pps] DWORD
[Flag Set]
Flag Description Device number
Error If the value of ax gets out of the range F110
(a) Function
• This instruction is giving the speed override instruction to XGB built-in positioning.
• This is for changing the operation speed into the speed set in n1 during the operation of the axis
designated as ax at the rising edge of the input condition.
• The speed override instructions available in the acceleration and constant speed sections and if
the speed override is executed during deceleration or dwell, error code 377 is issued and the
currently operating operation step continues.
(b) Error
• If the value designated as ax (instruction axis) is other than 0 and 1, the error flag (F110) is set
and the instruction is not executed.
5 - 34
Chapter 5 Positioning Instructions
5 - 35
Chapter 5 Positioning Instructions
[Area Setting]
Operand Description Setting range Data size
sl Slot No. of positioning module XGB is fixed at 0 WORD
ax Axis to give instruction 0 (axis X) or 1 (axis Y) WORD
n1 Position to change the speed -2,147,483,648 ~ 2,147,483,647 DINT
n2 Operation speed to change 0 ~ 100,000[pps] DWORD
[Flag Set]
Flag Description Device number
Error If the value of ax gets out of the range F110
(a) Function
• This instruction is giving the positioning speed override instruction to XGB built-in positioning.
• The positioning speed override is executed at the axis designated as ax at the rising edge of the
input condition, and if the current position reaches the position set in n1 during operation, the
current operation speed is overridden to the speed set in n2.
• The positioning speed override instruction is available in the deceleration and acceleration
sections and if the positioning speed override is executed during deceleration or dwell, no error
code is issued, but the instruction is not executed either.
(b) Error
• If the value designated as ax (instruction axis) is other than 0 and 1, the error flag (F110) is set
and the instruction is not executed.
5 - 36
Chapter 5 Positioning Instructions
5 - 37
Chapter 5 Positioning Instructions
• The inching starting instruction (INCH) is moving to the position set in the instruction at the inching
speed set in the origin/manual parameter. For details, refer to 3.1.12.
[Area Setting]
Operand Description Setting range 줄 Data size
sl Slot No. of positioning module XGB is fixed at 0 WORD
ax Axis to give instruction 0 (axis X) or 1 (axis Y) WORD
n1 Position to move by inching -2,147,483,648 ~ 2,147,483,647 DINT
[Flag Set]
Flag Description Device number
Error If the value of ax gets out of the range F110
(a) Function
• This instruction is giving the inching operation instruction to XGB built-in positioning.
• It moves to the position set in n1 at the inching speed set in the positioning parameter with respect
to the axis designated as ax at the rising edge of the input condition.
(b) Error
• If the value designated as ax (instruction axis) is other than 0 and 1, the error flag (F110) is set
and the instruction is not executed.
5 - 38
Chapter 5 Positioning Instructions
• The starting step number change instruction is for changing the number of the step to be operated
currently by force.
[Area Setting]
Operand Description Setting range Data size
sl Slot No. of positioning module XGB is fixed at 0 WORD
ax Axis to give instruction 0 (axis X) or 1 (axis Y) WORD
n1 Step number to change 1~30(standard), 1~80(advanced) WORD
[Flag Set]
Flag Description Device number
Error If the value of ax gets out of the range F110
(a) Function
• This instruction is giving the starting step instruction to XGB built-in positioning.
• The current step number of the axis designated as ax at the rising edge of the input condition
changes into the step set in n1.
• If the corresponding axis is operating when the starting step change instruction is executed, error
code 441 is issue and the instruction is not executed. If the set value of n1 gets out of the settable
range, error code 442 is issued and the instruction is not executed either.
(b) Error
• If the value designated as ax (instruction axis) is other than 0 and 1, the error flag (F110) is set
and the instruction is not executed.
5 - 39
Chapter 5 Positioning Instructions
• M code cancel instruction (MOF) is for cancelling the M code generated during operation. For details,
refer to 3.3.
[Area Setting]
Operand Description Setting range Data size
sl Slot No. of positioning module XGB is fixed at 0 WORD
ax Axis to cancel M code 0 (axis X) or 1 (axis Y) WORD
[Flag Set]
Flag Description Device number
Error If the value of ax gets out of the range F110
(a) Function
• This instruction is giving the instruction of cancelling the M code to XGB built-in positioning.
• The M code On signal (axis X: K4203, axis Y: K4303 bit) of the axis designated as ax at the rising
edge of the input condition and M code number (axis X : K428, axis Y:K438 word) are
simultaneously cancelled.
(b) Error
• If the value designated as ax (instruction axis) is other than 0 and 1, the error flag (F110) is set
and the instruction is not executed.
5 - 40
Chapter 5 Positioning Instructions
• The current position preset instruction (PRS instruction) is for changing the current position by force.
[Area Setting]
Operand Description Setting range Data size
sl Slot No. of positioning module XGB is fixed at 0 WORD
ax Axis to give instruction 0 (axis X) or 1 (axis Y) WORD
Current position value to
n1 -2,147,483,648 ~ 2,147,483,647 DINT
change
[Flag Set]
Flag Description Device number
Error If the value of ax gets out of the range F110
(a) Function
• This instruction is giving the instruction of changing the current position to XGB built-in positioning.
• The current position of the axis designated as ax at the rising edge of the input condition is
changed to the position set in n1 of the instruction by force.
• If the origin is not fixed, the origin fixed status (axis X:K4202, axis Y:K4304) turns On and the
origin is fixed.
• If the current position preset instruction is executed, and if the axis is currently operating, error
code 451 is issued and the instruction is not executed.
(b) Error
• If the value designated as ax (instruction axis) is other than 0 and 1, the error flag (F110) is set
and the instruction is not executed.
5 - 41
Chapter 5 Positioning Instructions
• The emergency stop instruction is immediately stopping the current positioning operation and the
output. For details, refer to 3.1.11.
[Area Setting]
Operand Description Setting range Data size
sl Slot No. of positioning module XGB is fixed at 0 WORD
ax Axis to give instruction 0 (axis X) or 1 (axis Y) WORD
[Flag Set]
Flag Description Device number
Error If the value of ax gets out of the range F110
(a) Function
• This is for giving the emergency stop instruction to XGB built-in positioning.
• With respect to the positioning of the axis designated as ax at the rising edge of the input condition,
the output immediately stops, the output stop status flag (axis X : K4205, axis Y:K4305) turns On,
and error code 481 is issued.
• If the emergency stop instruction is executed, output is inhibited and the origin gets undecided, so
in order to resume operation, set the origin return or floating origin or preset the current position to
decide the origin.
(b) Error
• If the value designated as ax (instruction axis) is other than 0 and 1, the error flag (F110) is set
and the instruction is not executed.
5 - 42
Chapter 5 Positioning Instructions
• The error reset instruction is resetting the current error and terminating the output inhibition.
[Area Setting]
Operand Description Setting range Data size
sl Slot No. of positioning module XGB is fixed at 0 WORD
ax Axis to give instruction 0 (axis X) or 1 (axis Y) WORD
Whether output inhibition is
n1 0 ~ 65,535 WORD
terminated
[Flag Set]
Flag Description Device number
Error If the value of ax gets out of the range F110
(a) Function
• This instruction is giving the error reset instruction to XGB built-in positioning.
• At the rising edge of the input condition, the error code generated in the axis designated as ax is
cancelled, and if the value set in n1 is 0, only the error code is cancelled, with the output inhibition
maintained. If the value set in n1 is other than 0, the output inhibition is also cancelled.
(b) Error
• If the value designated as ax (instruction axis) is other than 0 and 1, the error flag (F110) is set
and the instruction is not executed.
5 - 43
Chapter 5 Positioning Instructions
5 - 44
Chapter 5 Positioning Instructions
• The parameter save instruction (WRT) is permanently preserving the operation data of positioning
area K changed during operation in the XGB built-in flash memory. For the relations between
positioning area K and the positioning parameter, refer to 3.2.2.
[Area Setting]
Operand Description Setting range Data size
sl Slot No. of positioning module XGB is fixed at 0 WORD
ax Not used in XGB 0 ~ 1(Dummy Operand) WORD
n1 Set the parameter to save 0~2 WORD
[Flag Set]
Flag Description Device number
Error If the value of ax gets out of the range F110
(a) Function
• The instruction is for permanently preserving the operation data of positioning area K in the XGB
built-in flash memory.
• The operation data of positioning area K are permanently preserved in the XGB built-in flash
memory according to the setting of n1 at the rising edge as follows.
Set value 0 1 2
Area k to be
permanently Positioning data High speed counter data PID control function data
preserved
• If n1 has been set at 0, the current operation data of area K of axis X and axis Y for positioning are
permanently preserved as the positioning parameter. If set at 1, the data of area K of all the
channels of the high speed counter are permanently preserved as the positioning parameter. If
set at 2, the data set in area K of 16 loop of the built-in PID are permanently preserved as the PID
parameter.
• Although the value set as ax is the operand that does not affect the execution of WRT instruction,
if it gets out of the setting range, instruction execution error flag (F110) turns On and the
instruction is not executed.
(b) Error
• If the value designated as ax (instruction axis) is other than 0 and 1, the error flag (F110) is set
and the instruction is not executed.
5 - 45
Chapter 5 Positioning Instructions
Remark
• If WRT instruction is executed, the previously saved positioning parameter is deleted and the
parameter is changed to the operation data of the current area K.
• Be careful that if WRT instruction is executed, the scan time of the scan where the instruction
has been executed because the previous positioning parameter of the flash memory is deleted
and the operation data of area K is written.
5 - 46
Chapter 5 Positioning Instructions
• Pulse Width Modulation is to operate On/Off output in designated Off duty rate and Output cycle.
[Area Setting]
Operand Description Setting range Data size
sl Slot No. of positioning module XGB is fixed at 0 WORD
ax Axis to give instruction 0 (axis X) or 1 (axis Y) WORD
n1 Output Cycle 1~20,000(ms) WORD
n2 Off duty rate 0~100(%) WORD
[Flag Set]
Flag Description Device number
Error If the value of ax gets out of the range F110
(a) Function
• This instruction is for PWM output.
• While the input condition is On state, XGB postioning outputs pulse train in designated cycle time
in n1 and designated Off duty rate in n2 at designated axis in ax
• During PWM output, current address don’t change. Constant speed bit(X axis: K0420D, Y axis:
K0430S) and Operation bit(X axis: K04200 Y axis: K4300) set On.
(b) Error
• If the value designated as ax (instruction axis) is other than 0 and 1, the error flag (F110) is set
and the instruction is not executed.
Remark
• If PWM instruction is executed, other instruction do not operate. And upper/lower limit does not
work
• If PWM instruction is executed, STP, EMG instruction doesn’t operate. To stop output, Off the
Start-up contact
5 - 47
Chapter 5 Positioning Instructions
Device 설 명
5 - 48
Chapter 5 Positioning Instructions
3 Slot No. exceeded setting range Set the slot No. to “0” for internal positioning.
Adjust the axis No. within the allowable range of the
6 Axis range No. exceeded setting range
function block (0: X-axis, 1: Y-axis)
A new function block was executed
Modify the program so that a new function block can be
10 while the previous instruction has not
executed after completion of the previous instruction.
been completed
Set-up auxiliary input value exceeded
11 Adjust the value within the allowable range.
allowable range
5 - 49
Chapter 5 Positioning Instructions
•Return to Origin instruction is usually used to confirm the Origin of machine when applying power.
This instruction is executed in accordance with the set-up parameters shown below (see 3.2.4 for
setting-up of the return-to-Origin parameters).
Form Description
•This instruction is for the execution of the Origin return of the XEC-DN**H internal
positioning function.
•At the ascending edge of the input condition, the return to Origin instruction is given
to the axis defined to be the axis of the internal positioning decision.
•After completing Origin return, the Origin determination bit (X-axis: %KX6724,Y-
axis: %KX6884) turns on and the present address is preset to the address setup with
the Origin return parameter.
5 - 50
Chapter 5 Positioning Instructions
Origin address 0
Origin return at
high speed 50,000 [pps]
Origin return at
500 [pps]
low speed
Origin return
100[㎳]
accelerating time
Origin return
100[㎳]
decelerating time
Dwell time 100[㎳]
5 - 51
Chapter 5 Positioning Instructions
DOG
(%IX0.0.12)
Home
(%IX0.0.13)
Start Homing
(%MX0)
Homing
(%KX6741)
Origin Fix
(%KX6724)
Note
•The DOG signal and Origin signal are fixed to the contact points shown below.
XEC-DNxxH
DOG Origin point
X-axis %IX0.0.12 %IX0.0.13
Y-axis %IX0.0.14 %IX0.0.15
•Take care that, if both the DOG and Origin input contact are used as the external preset
inputs of the high speed counter or as the start up signals for the external contact, the
Origin detection may become incorrect.
•During returning to Origin, the present position address is not changed.
5 - 52
Chapter 5 Positioning Instructions
•In floating Origin setting, the present position is set up as the Origin by instruction, without executing
mechanical operation of Origin return.
Form Description
Note
•For floating Origin setting, the present position is preset to 0 and only Origin is determined.
Therefore, following cautions should be taken for this instruction.
Before executing this instruction, check it an error has been occurred. If occurred, correct the
cause of the error and reset the error with APM_RST instruction to lift the output interruption.
Then, set up the floating Origin and change the step No. for operation to the start-up step
change instruction (APM_SNS) and start-up.
5 - 53
Chapter 5 Positioning Instructions
Device Description
Floating Origin X-axis floating reference instruction
Instruction signal
%KX6720 X-axis in-operation signal
%KX6721 X-axis error state
5 - 54
Chapter 5 Positioning Instructions
•In direct start-up, the operation data such as target position or velocity is specified in the exclusive
positioning instruction (APM_DST instruction), not using the setting for operation steps set up in the
positioning operation data.
Data
Form Variable Description
Type
Operation velocity
SPEED UDINT ● Setting range: 0 ~ 100,000
Dwell time
DWELL DINT ● Setting range: 0 ~ 50,000
M Code No.
MCODE UINT
● Setting range: 0 ~ 65,635
5 - 55
Chapter 5 Positioning Instructions
5 - 56
Chapter 5 Positioning Instructions
1) When the direct start-up instruction (APM_DST instruction) is executed, positioning operation is
started as set up in the operand as shown below.
- Because the BASE, SLOT and AXIS are 0, the built-in positioning X-axis of the
base unit is started.
- The target position is the 100,000 pulse set up in ADDR as DINT.
- The target velocity is 30,000 pps set up in SPEED as UDINT.
- After the positioning, the dwell time is 100ms set up in the DWEELL, and as for M code, the
123 stored in the MCODE is stored in the %KW428.
- Because POS_SPD and ABS_INC are 0, positioning control operation is based on absolute
coordinates. Since TIME_SEL is 0, the acceleration/deceleration pattern follows 1 which is
the acceleration time in the basic parameters.
In particular, when the APM_DST instruction is started, positioning is controlled in absolute
coordinates, operated at 30,000 pps up to 100,000 pulse position and stopped, and
positioning is completed after 100ms of dwell time and the M code outputs 123.
2) When the position has been determined by direct start-up, the position determination completion
signal (X-axis: %KX6722) turns on for one scan.
5 - 57
Chapter 5 Positioning Instructions
•In the indirect start-up, position determination operation is performed with the operation step data set
up in the position determination operation data.
Data
Form Variable Description
Type
(a) Function
•This instruction provides an indirect start-up reference to the XGB built-in positioning.
•At the rising edge of input condition, indirect start-up is executed in the axis defined to be the axis
of XGB positioning.
•When the instruction is executed, positioning is performed using the operation data in the K area
according to the step No. designated to the STEP. If the STEP is 0, the operation step indicated at
the step No. (X-axis: %KW426, Y-axis: %KW436 word) in the exclusive K area is executed.
•With indirect operation instruction, diversified composition and execution of operation patterns can
be implemented, such as termination, continue, continuous, single, or repeated operation, etc.
5 - 58
Chapter 5 Positioning Instructions
5 - 59
Chapter 5 Positioning Instructions
Step Coordi Op. Contro Op. Rep. Target M Accl/de Op. Speed Dwell
No. nate Pattern l Type Type Step Pos. [Pulse] Code c. No. [pls/s] Time [㎳]
3 Rel. Term. Pos. Sing. 0 7,000 0 1 100 10
IndirectStart
(%MX321)
Dwell
(%KX6735)
Complete
(%KX6722)
Note
•In addition to using indirect start instruction, indirect start can be done using the start signal
reference contact (X-axis: %KX6864, Y-axis: %KX7024) in the K area.
In the start-up using the start signal reference contact, the operation step is
fixed to the present operation step number which is X-axis: %KW426, Y-
axis: %KW436.
Therefore, to change operation step in starting –up using start signal reference contact,
change the operation step with starting step number change instruction (APM_SNS) and
then turn the start reference contact ON.
•For the details of the starting method using starting signal reference, see 3.4.2.
5 - 60
Chapter 5 Positioning Instructions
•In linear interpolation start-up, both X and Y axes are used in the manner that the movement paths of
the 2 axes, from the start address (present stationary position) to the target address (position), is
linear.
•This method can be classified into absolute coordinates control and Incremental coordinates control.
For details, see 3.1.2.
•At the linear interpolation start-up instruction, the axis having greater movement for positioning
becomes the main axis automatically. If the 2 axes move the same distance, X-axis is set up as the
main axis.
•Here, the velocity of the subsidiary axis does not follow the setting of the operation data. The
operation velocity, accelerating and decelerating times, and bias velocity are calculated automatically
with the formula below to perform the operation.
•The operation patterns available for linear interpolation are termination and continuous operation only.
If the interpolation operation is started when the main axis is set up to be continuous, the XGB
internal positioning does not trigger error and performs the operation of the main axis by changing it
to be continuous. If the sub-axis is set to be continuous, it does not affect linear interpolation.
5 - 61
Chapter 5 Positioning Instructions
Contr
Step Coord Op. Op. Rep. Target M Accl/de Op. Speed Dwell
Axis ol
No. inate Pattern Type Step Pos. [Pulse] Code c. No. [pls/s] Time [㎳]
Type
X 10 Rel. Term. Pos. Sing. 0 7,000 0 1 100 10
Y 10 Rel. Term. Pos. Sing. 0 2,000 0 2 300 10
5 - 62
Chapter 5 Positioning Instructions
5 - 63
Chapter 5 Positioning Instructions
•Simultaneous start-up instruction (APM_SST) starts the steps of the 2 axes designated in the
instruction simultaneously. For details, see 3.1.7.
Data
Form Variable Description
Type
(a) Function
•This instruction gives simultaneous start-up reference to the XGB internal positioning.
•At the rising edge of the input condition, the 2 axes of the XGB positioning are started up
simultaneously. See 3.1.7 for the difference between using simultaneous start up instruction and
continuous start up of 2 axes continuously with PLC ladder programming.
•When this instruction is executed, of the XGB’s positioning axes, X and Y axes are simultaneously
started up using the operation data set up at X_STEP and Y_STEP for X-axis and Y-axis,
respectively. Here, since the XGB internal positioning has no Z-axis, the set value of Z_STEP does
not have influence on the operation.
5 - 64
Chapter 5 Positioning Instructions
Contr
Step Coord Op. Op. Rep. Target M Accl/de Op. Speed Dwell
Axis ol
No. inate Pattern Type Step Pos. [Pulse] Code c. No. [pls/s] Time [㎳]
Type
X 1 Coor. Term. Pos. Sing. 0 7,000 0 1 100 10
Y 2 Coor. Term. Pos. Sing. 0 2,000 0 2 300 10
Form Description
5 - 66
Chapter 5 Positioning Instructions
5 - 67
Chapter 5 Positioning Instructions
5 - 68
Chapter 5 Positioning Instructions
5 - 69
Chapter 5 Positioning Instructions
•This APM_STP instruction decelerates a running axis at the rate specified in the instruction to stop it.
For the details of the stop function in positioning operation including deceleration stop, see 3.1.11.
Deceleration time
DEC_TIME UINT
● Setting range: 0 ~ 65,535
[
(a) Function
•This instruction executes deceleration stop to XGB internal positioning.
•At the rising edge of the input condition, the axis designated to be the AXIS decelerates and stops
at the deceleration time set up in the respective operation step.
Note
•It the deceleration time setting is 0, the XGB positioning stops immediately without waiting the
time for deceleration. In this case, the motor may make impact sound by shock, which requires
caution.
•If the DEC_TIME setting is 0, the positioning stops immediately without deceleration process. For
other setting values, it stops according to the acceleration/deceleration number set up in the
operation data of the respective operation step or in the APM_DST instruction, in case of
indirect start-up or direct start-up, respectively.
5 - 70
Chapter 5 Positioning Instructions
5 - 71
Chapter 5 Positioning Instructions
5 - 72
Chapter 5 Positioning Instructions
•As shown below, this is a synchronous start-up instruction with the axis set up by the position
synchronization instruction (APM_SSP) as the sub-axis according to the present position of the main
axis. For details, see 3.1.8.
(a) Function
•This instruction executes position synchronization start-up to the XGB internal
positioning.
•At the rising edge of the input condition, synchronized start-up instruction is executed, where, the
axis designated as AXIS is the sub-axis and that designated in the MST_AXIS is the main axis.
5 - 73
Chapter 5 Positioning Instructions
•When the instruction is executed, the sub-axis does not out real pulses (at this time, the in-
operation-state flag (X-axis: %KX6720, Y-axis: %KX6880) of the sub-axis is ON), and the STEP
of the sub-axis starts up when the main axis MST_AXIS is at the position set up in the
MST_ADDR.
•The position synchronization instruction can be executed only when the Origins for both of the
main axis and sub-axis have been determined. if the Origin of the main axis or sub-axis has not
been determined at the start of the APM_SSP instruction, error code 346 or 344, respectively, will
be outputted to STAT.
•When using this instruction, set up the main axis and sub-axis with different axis. Otherwise, error
code 347 will be outputted to STAT.
•To cancel the execution of position synchronization instruction after it is given, execute the stop
instruction (APM_STP) to the sub-axis.
5 - 74
Chapter 5 Positioning Instructions
5 - 75
Chapter 5 Positioning Instructions
Note
•If the axis set up as the main axis has been started up as the sub-axis of position
synchronization, error code 349 is outputted to STAT and the position synchronization
instruction is not executed.
In the example shown below, at the rising edge of the ‘Y-axis position synchronization,’ position
synchronization instruction is executed with the Y-axis as the sub-axis and the X-axis as the
main axis. In this state, if a rising edge of the ‘X-axis position synchronization’ signal occur, the
position synchronization instruction reference is generated with the X-axis as the sub-axis and
the Y-axis as the main axis. In this case, because the Y-axis which is used as the main axis has
already been started up as the sub-axis of the position synchronization instruction, the X-axis
outputs error code 349 to the STAT1 and is not started.
5 - 76
Chapter 5 Positioning Instructions
•This instruction (APM_SSSB) is for the operation at synchronized speed at the preset rate with the
axis set up in the instruction as the sub-axis when the main axis is started up. For details of speed
synchronization function, see 3.1.8.
(a) Function
•This is the instruction for executing speed synchronized start-up to the XGB internal positioning.
•At the rising edge of the input condition, speed position synchronized start-up instruction is
executed with the AXIS as the sub-axis and the axis designated in the MST_AXIS as the main
axis.
•When the instruction is executed, the sub-axis does not output real pulse (at this time, the in-
operation-state flag (X-axis: %KX6720, Y-axis: %KX6880) of the sub-axis is ON), and when the
main axis MST_AXI starts, the sub-axis starts at the speed synchronization ratio set up in the
AXIS.
•The synchronization ratio which can be set up in the SLV_RAT is 0.01% ~ 100.00% (setting value
1 ~ 10,000). If the setting exceeds this range, error code 356 is created.
•The DELAY time is the time required for the speed of the sub-axis to reach the present speed of
the main axis. In the XGB internal positioning function, for speed synchronization control, the
present speed of the main axis is detected at every 500 ㎲ to control the speed of the sub-axis.
Here, if the speed of the sub-axis is synchronized to that of the main axis without delay time, the
motor and drive may receive excessive impact.
For example, when the speed synchronization ratio is 100.00% and delay time is 5[ms], and if the
present speed of the main axis is 10,000[pps], XGB internal positioning adjusts the speed of the
sub-axis so that it’s speed is the same as that of the main axis after 5[㎳] at every 500[㎲].
When the delay time is longer, the synchronization time delay between the main and sub-axes is
longer but the output pulse is more stable. If there is the possibility that the motor may lose
synchronism, set the delay time longer.
•The range of the delay time that can be set up in DELAY n2 is 1 ~ 10[㎳]. If this range is exceeded,
error code 357 is generated.
5 - 77
Chapter 5 Positioning Instructions
•The range of the main axis setting of MST_AXIS is 0 ~ 9 as shown below. If this range is exceeded,
error code 355 is generated.
•To cancel the execution of speed synchronization instruction, run the stop instruction (APM_STP)
for the sub-axis.
•Speed synchronization control can be executed even when the Origin of the sub-axis has not be
determined.
•In speed synchronization, the sub-axis is synchronized to the main axis. Therefore, even if the
control mode of the sub-axis is set up position control, it repeats start and stop according to the
operation of the main axis, and the direction of rotation of the sub-axis is the same as that of the
main axis.
•If the M code of the sub-axis is ON at the execution of the speed synchronization instruction, error
code 353 is outputted to STAT.
5 - 78
Chapter 5 Positioning Instructions
5 - 79
Chapter 5 Positioning Instructions
•The position override instruction (APM_POR) changes the target position of the axis which is
presently in positioning operation to the target position set up in the instruction. For details, see
3.1.10.
POR_ Position
DINT
ADDR ● Setting range: -2,147,483,648 ~ 2,147,483,647
(a) Function
•This instruction provides position override reference to the XGB internal positioning.
•At the rising edge of the input condition, the axis designated as AXIS changes its target position to
the position set up in the POR_ADDR during operation.
•Position override instruction is available for the acceleration, constant speed, and deceleration
sections of operation patterns. If position override instruction is executed during dwelling, error
code 362 is outputted to STAT.
5 - 80
Chapter 5 Positioning Instructions
5 - 81
Chapter 5 Positioning Instructions
•Speed override instruction (APM_SOR) changes the operating speed of the axis presently in
positioning operation to the speed set up in the instruction line. For the details of speed override
function, see 3.1.10.
(a) Function
•This instruction provides speed override reference to the XGB internal positioning.
•At the rising edge of the input condition, the axis designated to be AXIS changes its operating
speed to the speed set up in SOR_SPD.
•Speed override instruction is available for the acceleration, constant speed, and deceleration
sections of operation patterns. If speed override instruction is executed during deceleration or
dwelling, error code 377 is outputted to STAT, and the present operating step does not stop and
continues running.
5 - 82
Chapter 5 Positioning Instructions
5 - 83
Chapter 5 Positioning Instructions
Target position
PSO_ADDR DINT
● Setting range: -2,147,483,648 ~ 2,147,483,647
Operating Speed
PSO_SPD UDINT
● Setting range: 1~100,000
(a) Function
•This instruction provides positioning speed override reference to the XGB internal positioning.
•At the rising edge of the input condition, the axis designate as the AXIS executes positioning speed
override. When the present position reaches the points set up in the PSO_ADDR during
operation, present speed is overridden by the speed set up by the PSO_SPD.
•This instruction is available in the acceleration and constant speed sections of the operation
patterns. If this override is executed during deceleration or dwelling, no error code is generated
but the instruction is not executed.
5 - 84
Chapter 5 Positioning Instructions
5 - 85
Chapter 5 Positioning Instructions
•This instruction (APM_INC) is for the movement at the inching speed set up by the positioning
Origin/manual parameter in the instruction. For details about inching operation, see 3.1.12.
Inching Distance
INCH_VAL DINT
● Setting range: -2,147,483,648 ~ 2,147,483,647
(a) Function
•This instruction provides inching operation reference to the XGB internal positioning.
•At the rising edge of the input condition, the axis designated as AXIS moves by the distance and
speed set up by the INCH_VAL and positioning parameter, respectively.
5 - 86
Chapter 5 Positioning Instructions
(a) Function
•This instruction provides start step change reference to the XGB internal positioning.
•At the rising edge of the input condition, the present step number of the axis designated to be AXIS
is changed to the step set up in the STEP.
•If the axis has been in operation when this instruction is given, error code 441 is generated and the
instruction is not executed. If the setting value in the STEP exceeds allowable range, error code
442 is generated and the instruction is not executed.
5 - 87
Chapter 5 Positioning Instructions
Form Description
•This instruction provides M code release reference to the XGB internal positioning.
•At the rising edge of the input condition, the M code On signal (X-axis: %KX6723, Y-
axis: %KX6883) and the M code number (X-axis: %KW428, Y-axis: %KW438) of
the axis designated as AXIS are cancelled.
5 - 88
Chapter 5 Positioning Instructions
Preset Value
PRS_ADDR DINT
● Setting range: -2,147,483,648 ~ 2,147,483,647
(a) Function
•This instruction provides position change reference to the XGB internal positioning.
•At the rising edge of the input condition, the present position of the axis designated to be AXIS is
changed to the position set up at the PRS_ADDR in the instruction line.
•At this time, if the Origin has not been defined, the Origin determination status (X-axis: %KX6724,
Y-axis: %KX6884) becomes ON.
•It the axis has been in operation when this instruction is given, error code 451 is outputted to STAT
and the instruction is not executed.
5 - 89
Chapter 5 Positioning Instructions
•Emergency stop instruction immediately stops present operation and cuts off output.
For details of this function, see 3.1.11.
5 - 90
Chapter 5 Positioning Instructions
(a) Function
•This instruction provides error reset reference to the XGB internal positioning.
•At the rising edge of the input condition, the error code applied to the axis designated as the AXIS
is released. At this time, if the setting value of the INH_OFF is 0, only the error code is released
but the output cut-off is maintained, and it the value is 1. output cut-off is released too.
5 - 91
Chapter 5 Positioning Instructions
5 - 92
Chapter 5 Positioning Instructions
•Parameter Write instruction (APM_WRT) writes the operation data, which is changed during operation,
of the positioning exclusive K area permanently in the built-in flash memory of the XGB. For the
relation between the positioning exclusive K area and the positioning parameter, see 3.2.2.
•At this time, although the value set up with AXIS is the
operand which does not have influence on the execution of
the APM_WRT instruction, however, be careful that, if it
exceeds the setting range (0 ~ 1), 11 is outputted to STAT
and the instruction is not executed.
5 - 93
Chapter 5 Positioning Instructions
Note
•Take care that, when the APM_WRT instruction is executed, the positioning parameters
previously stored are replaced with the operation data of the exclusive K area.
•Take care that when APM_WRT instruction is executed, the existing positioning parameters in
the flash memory are replaced with the operation data in the exclusive K area, therefore, the
scan time of the scan in which the instruction has been executed becomes longer.
5 - 94
Chapter 5 Positioning Instructions
5.3.23 Pulse Width Modulation
• Pulse Width Modulation is to operate On/Off output in designated Off duty rate and Output cycle.
Output cycle
FREQ WORD
● Setting rage: 1~20,000(ms)
(a) Fuction
• This instruction is for PWM output.
• While the input condition is On state, XGB postioning outputs pulse train in designated cycle time
in FREQ and designated Off duty rate in DUTY at designated axis in AXIS
• During PWM output, current address don’t change. Constant speed bit(X-axis: %K%6733, Y-
axis: %KX6893) and Operation bit(X- axis: %KX6720, Y- axis:%KX6880) set On.
5 - 95
Chapter 5 Positioning Instructions
Device 설 명
Remark
• If APM_PWM instruction is executed, other instruction do not operate. And upper/lower limit
does not work
• If APM_PWM instruction is executed, STP, EMG instruction doesn’t operate. To stop output, Off
the Start-up contact
5 - 96
Chapter 6 Positioning Monitoring Package
• When you want to carry out the positioning monitoring package, double click on the positioning
module or select the positioning module, and then click on the ‘Monitoring’ button at the bottom. And
the positioning monitoring package is started as follows.
6-1
Chapter 6 Positioning Monitoring Package
• The menu and function of the positioning monitoring package are as follows.
6-2
Chapter 6 Positioning Monitoring Package
Direct start with the operation step set in the monitoring window IST 5.2.4
Indirect start
APM_IST 5.3.5
Error reset Resets the error code and output inhibition in case of an error CLR 5.2.20
APM_RST 5.3.21
M code OFF Cancels the M code On signal and M code number MOF 5.2.17
APM_MOF 5.3.18
Dec. stop Carries out deceleration stop in the set deceleration time STP 5.2.9
APM_STP 5.3.10
EMG stop Stops the operation of the axis and inhibits pulse output EMG 5.2.19
APM_EMG 5.3.20
6-3
Chapter 6 Positioning Monitoring Package
Spd override Overrides the speed at the set speed value SOR 5.2.13
APM_SOR 5.3.14
Pos override Overrides the position at the set position value POR 5.2.12
APM_POR 5.3.13
Spd override with Changes the operation speed at the speed value set in the set PSO 5.2.14
position position APM_PSO. 5.3.15
Conducts home return as the home return method set in the ORG 5.2.1
Home return
positioning parameter APM_ORG 5.3.2
Position preset Presets the current position with the set value PRS 5.2.18
APM_PRS 5.3.19
Start step No. Changes the start step with the set step SNS 5.2.16
APM_SNS 5.3.17
Conducts inching operation to the set position (inching amount) at INCH 5.2.15
Inching
the inching speed set in the positioning parameter APM_INC 5.3.16
Jog
Reverse Reverse Jog stop Normal low Normal
high speed low speed speed high
speed
Spd position Changes from speed control to position control VTP 5.2.7
conversion APM_VTP 5.3.8
Position spd Changes from position control to speed control PTV 5.2.8
conversion APM_PTV 5.3.9
Spd synchronous Speed synchronous operation at the set main axis, speed ration SSS 5.2.11
operation and delay time APM_SSS 5.3.12
Position Speed synchronous operation at the set main axis, step and SSP 5.2.10
synchronous position APM_SSP 5.3.11
operation
Simultaneous start Simultaneous start with the operation step set for each axis SST 5.2.6
APM_SST 5.3.7
Straight Straight interpolation operation for axes X and Y with the set LIN 5.2.5
interpolation operation step APM_LIN 5.3.6
operation
6-4
Chapter 6 Positioning Monitoring Package
Remark
• Note that the positioning command through the XGB positioning monitoring package is executed
regardless of the operation mode of PLC.
• If the PLC operation mode is Run mode, the positioning command is executed in the positioning
monitoring package, and if a different command is executed in the instruction of the program, XGB
PLC executes them both.
Therefore, in such a case, it might operate differently from the intent of the user or an error might
occur.
Note that if you use the positioning monitoring package, positioning by the instruction in the program is
not executed.
Step No. Currently operating step of each axis K426 K436 WORD
Error code Error code in case of an error of the axis K427 K437 WORD
Positioning Whether the positioning has been completed for the axis K4202 K4302
BIT
complete
M code On M code On/Off of the currently operating step K4203 K4303 BIT
Origin fix Whether the origin has been fixed K4204 K4304 BIT
The operation status of each axis (acc., dec., constant K420C~ K430C~
Operation status BIT
speed, and dwell) K420F K430F
Related flag
Item Displays Remark
Axis X Axis Y
Home return Whether home return is being conducted K4215 K4315 BIT
Position Sync Whether position synchronization is being conducted K4216 K4316 BIT
Jog high speed Whether jog high speed operation is being conducted K4219 K4319 BIT
Jog low speed Whether jog low speed operation is being conducted K4218 K4318 BIT
Step No. Currently operating step of each axis %KW426 %KW436 WORD
Error code Error code in case of an error of the axis %KW427 %KW437 WORD
Positioning Whether the positioning has been completed for the axis %KX6722 %KX6882
BIT
complete
M code On M code On/Off of the currently operating step %KX6723 %KX6883 BIT
Origin fix Whether the origin has been fixed %KX6724 %KX6884 BIT
%KX6732 %KX6892
The operation status of each axis (acc., dec., constant
Operation status ~ ~ BIT
speed, and dwell)
%KX6735 %KX6895
%KX6736 %KX6896
Operation control pattern of each axis (position, speed,
Control pattern ~ ~ BIT
interpolation)
%KX6738 %KX6898
6-6
Chapter 6 Positioning Monitoring Package
Related flag
Item Displays Remark
Axis X Axis Y
Home return Whether home return is being conducted %KX6741 %KX6901 BIT
Position Sync Whether position synchronization is being conducted %KX6742 %KX6902 BIT
Jog high speed Whether jog high speed operation is being conducted %KX6744 %KX6904 BIT
Jog low speed Whether jog low speed operation is being conducted %KX6745 %KX6905 BIT
Contact No.
Item Displays Type Remark
Axis X Axis Y
XBM P00001 P00003
Upper
External upper limit signal status of the axes XBC P00009 P0000B
limit signal
XEC %IX0.0.9 %IX0.0.11
Origin signal Origin signal status of the axes XBC P0000D P0000F
6-7
Chapter 6 Positioning Monitoring Package
• To change the parameter, first of all, change the parameter value to change, and select ‘Write PLC’.
Then the changed parameter is transferred to PLC, the position parameter saved in PLC is changed,
and the parameter and operation data that have been changed are applied when the next operation
step is started.
Remark
• If you execute ‘Write PLC,’ the position parameter set in the positioning monitoring package and
the operation data of each axis are all transferred to XGB.
• The parameter and operation data displayed when the positioning monitoring package is executed
are not the data read from XGB but the parameter and operation data currently saved in XG5000.
Therefore if you change the parameter or operation data in the positioning monitoring package
and save them in the XGB PLC, be sure to press the ‘Save Project’ button to save them in the
XG5000 project. Otherwise the settings of XG5000 might be different from XGB.
6-8
Chapter 6 Positioning Monitoring Package
• You can change the operation data of each axis during operation by using the positioning monitoring
package. Note that the change of the operation data is applied when the next operation is started after
the currently operating step ends.
• If you select the ‘axis X data’ or ‘axis Y data’ tabs in the positioning monitoring package, the window is
invoked where you can set the operation data of each axis as follows along with the operation data
saved in XG5000.
• To change the operation data, first of all, change the operation data value to change, and select ‘Write
PLC’. Then the changed operation data is transferred to PLC, the operation data saved in PLC is
changed, and the parameter and operation data that have been changed are applied when the next
operation step is started
Remark
• If you execute ‘Write PLC,’ the position parameter set in the positioning monitoring package and
the operation data of each axis are all transferred to XGB.
• The parameter and operation data displayed when the positioning monitoring package is executed
are not the data read from XGB but the parameter and operation data currently saved in XG5000.
Therefore if you change the parameter or operation data in the positioning monitoring package
and save them in the XGB PLC, be sure to press the ‘Save Project’ button to save them in the
XG5000 project. Otherwise the settings of XG5000 might be different from XGB.
• For details, refer to 3.2. and 3.3.
6-9
Chapter 7 Program Examples of Positioning
Remark
• Be sure to set the basic parameter positioning as ‘1:Use’ when you use the positioning
function.
7 -1
Chapter 7 Program Examples of Positioning
Servo motor
Servo driver
7 -2
Chapter 7 Program Examples of Positioning
• The example program of the single operation after the floating origin setting by using the XGB
positioning function is as follows.
(1) XBM/XBC
(2) XEC
7 -3
Chapter 7 Program Examples of Positioning
Abso Position
1 End Single 0 10,000 0 1 1000 100
lute control
Abso Position
2 End Single 0 20,000 0 1 1500 100
lute control
Abso Position
3 End Single 0 30,000 0 1 2000 100
lute control
7 -4
Chapter 7 Program Examples of Positioning
• The example program of the straight interpolation operation after the floating origin is set is as follows.
(1) XBM/XBC
7 -5
Chapter 7 Program Examples of Positioning
(2) XEC
7 -6
Chapter 7 Program Examples of Positioning
Position
X 1 Absolute End Single 0 10,000 0 1 1000 100
control
Position
Y 1 Absolute End Single 0 5,000 0 1 1000 100
control
7 -7
Chapter 7 Program Examples of Positioning
7 -8
Chapter 7 Program Examples of Positioning
(1) XEC
7 -9
Chapter 7 Program Examples of Positioning
• The example program of conducting the single operation by setting the operation step is as follows.
(1) XBM/XBC
7 - 10
Chapter 7 Program Examples of Positioning
(2) XEC
7 - 11
Chapter 7 Program Examples of Positioning
Abs Position
10 End Single 0 50,000 0 1 1,000 100
olute control
Abs Position
11 End Single 0 60,000 0 1 1,500 100
olute control
Abs Position
12 End Single 0 70,000 0 1 2,000 100
olute control
• The program example of conducting speed control by setting the operation step is as follows.
(1) XBM/XBC
7 - 12
Chapter 7 Program Examples of Positioning
(2) XEC
7 - 13
Chapter 7 Program Examples of Positioning
Abs Speed
10 End Single 0 50,000 0 1 1,000 100
olute control
Abs Position
11 End Single 0 60,000 0 1 1,500 100
olute control
Abs Position
12 End Single 0 70,000 0 1 2,000 100
olute control
7 - 14
Chapter 7 Program Examples of Positioning
(1) XBM/XBC
7 - 15
Chapter 7 Program Examples of Positioning
(2) XEC
7 - 16
Chapter 7 Program Examples of Positioning
Absolu Position
X 1 End Single 0 10,000 0 1 1000 100
te control
Absolu Position
Y 2 End Single 0 20,000 0 1 2000 100
te control
(1) XBM/XBC
7 - 17
Chapter 7 Program Examples of Positioning
(2) XEC
7 - 18
Chapter 7 Program Examples of Positioning
Absolu Position
X 1 End Single 0 10,000 0 1 1000 100
te control
Absolu Position
Y 1 End Single 0 20,000 0 1 2000 100
te control
7 - 19
Chapter 7 Program Examples of Positioning
(1) XBM/XBC
7 - 20
Chapter 7 Program Examples of Positioning
(2) XEC
7 - 21
Chapter 7 Program Examples of Positioning
7 - 22
Chapter 7 Program Examples of Positioning
(1) XBM/XBC
7 - 23
Chapter 7 Program Examples of Positioning
(2) XEC
7 - 24
Chapter 7 Program Examples of Positioning
Absolut Speed
1 End Single 0 10000 0 1 1000 100
e control
(1) XBM/XBC
7 - 25
Chapter 7 Program Examples of Positioning
(2) XEC
7 - 26
Chapter 7 Program Examples of Positioning
(1) XBM/XBC
7 - 27
Chapter 7 Program Examples of Positioning
(2) XEC
7 - 28
Chapter 7 Program Examples of Positioning
Absolut Position
1 End Single 0 100000 0 1 5000 100
e control
7 - 29
Chapter 7 Program Examples of Positioning
(2) XEC
7 - 30
Chapter 7 Program Examples of Positioning
Absolut Position
1 End Single 0 100000 0 1 5000 100
e control
7 - 31
Chapter 7 Program Examples of Positioning
(1) XBM/XBC
7 - 32
Chapter 7 Program Examples of Positioning
(2) XEC
7 - 33
Chapter 7 Program Examples of Positioning
Absolut Position
1 End Single 0 100000 0 1 10000 100
e control
• The program example of teaching of speed, position, and operation parameter is as follows
(1) XBM/XBC
7 - 34
Chapter 7 Program Examples of Positioning
(2) XEC
7 - 35
Chapter 7 Program Examples of Positioning
7 - 36
Chapter 7 Program Examples of Positioning
Position
1 Relative End Repeat 1 10,000 0 1 1000 100
control
7 - 37
Chapter 7 Program Examples of Positioning
Remark
• Permanent Storage of Teaching Data
- If you have changed the operation data and parameter by using the DMOV instruction, you need
to use the WRT instruction to save the changed value in the flash memory. Otherwise, it is
initialized to the value saved in the previous flash memory when the power is off or the mode is
changed.
7 - 38
Chapter 8 Troubleshooting Procedure
8 -1
Chapter 8 Troubleshooting Procedure
• Rated voltage is normally supplied to • The power supply is normal, so check whether
On
XGB. there is another cause.
• One of the following might be the • Check the voltage and current of the power
cause. supply.
- Rated voltage/current set for the • Remove the input and output lines, re-supply
Flashing
XGB is not being supplied. power and check again.
- Problem with the PLC hardware - If there still is the same problem, contact the
- Problem with external lines A/S office or customer center.
8 -2
Chapter 8 Troubleshooting Procedure
Quick
• Serious trouble that makes
flashing
operation impossible
(0.1 sec) • Access XGB with XG5000, execute ‘Online’ Æ
Flashing ‘PLC error/warning’, check the error and
Slow warning, and remove the cause.`
• A minor problem with
flashing
operation continuing
(0.5 sec)
Contact
Signal LED status Error and actions to take
point
8 -3
Chapter 8 Troubleshooting Procedure
Contact LED
Signal Output level Error and actions to take
point status
• Direction signals are being output in the normal
Low Active
direction (normal).
CW CCW
Signal contact contact Error and actions to take
point point
Flashing
• The pulse is being abnormally output.
Flashing
Æ Contact an A/S office or customer center.
Remark
• If PWR, RUN, and ERR LED are all off, there is a problem with the internal operation system of
XGB. In such a case, XGB PLC cannot normally operate, so inquire of the customer center.
8 -4
Chapter 8 Troubleshooting Procedure
(b) Select ‘Monitor’ Æ ‘Special Module Monitor’ Æ ‘Positioning Module,’ the following monitoring
package is executed. Select ‘Start Monitor’ at the left bottom, you can check the error code.
8 -5
Chapter 8 Troubleshooting Procedure
• Check whether the lines between XGB and servo motor driver are connected rightly.
• For the specifications of the input and output of XGB, refer to Chapter 2.
• For examples of wiring between XGB and the motor driver, refer to Appendix 3.
• If you use a motor driver that is not addressed in this manual, refer to the manual of that motor driver.
• If there is no problem with the wiring, check whether the input pulse of the motor driver is the same as
that of the XGB.
• XGB only supports the open collector type. Check whether the motor driver you are using can
accommodate the type, and check the setting of the motor driver.
• If no problem is found as a result of the procedure above, check whether pulse is actually supplied to
the motor driver by using the oscilloscope. If the motor driver isn’t working despite the pulse actually
being supplied, refer to the manual of the motor driver and check whether there is an error of the
driver.
8 -6
Appendix 1 List of Error Codes
LED Detected
Code Cause Action to take Type
status during
There is a problem with the 0.5 second
23 Re-download and run the project Minor RUN
program to run Flicker
Reset
0.5 second
24 Over I/O parameter Minor RUN mode
Check the preservation by reading I/O parameter or basic Flicker conversion
parameter according to the error code type. If there is a
problem, correct it to Write with PLC and check the operation.
Reset
If the problem still goes on, replace the basic unit. 0.5 second
25 Over basic parameter Minor RUN mode
Flicker conversion
Number of additionally mounted No more than 7 layer can be added, remove the excessively 0.1 second
38 Serious Every scan
modules exceeded added modules and restart. Flicker
PLC CPU operation overload or 1) If repeated when resupply power, call A/S. 0.1 second
39 Serious Any time
failure due to noise or hardware 2) Carry out noise action. Flicker
Operation error during sequence Check the step where the operation error took place, remove 0.5 second Program
41 Minor running
program the cause and restart. Flicker
Modify the timer index program, write the program and 0.5 second
44 Timer index use error Minor Scan end
restart. Flicker
500 Data memory backup error Re-supply power. (converted to STOP mode in remote mode) Warning 1 second Flicker Power On
APP.1- 1
Appendix 1 List of Error Codes
105 Setting non use dedicated positioning at parameter Stop Setting dedicate positioning.
APP.1- 2
Appendix 1 List of Error Codes
Error
Description Operation Countermeasures
code
Home return ACC time setting error
136 Stop Re-adjust home return ACC time lower than 10,000
• Home return ACC time > 10,000
Home return DEC time setting error
137 Stop R-adjust home return Dec time lower than 10,000.
• Home return DEC time > 10,000
151 Operation speed ‘0’ setting error of operation data Stop Set operation speed over ‘0’.
Operation speed of operation data exceeding the max
152 Stop Re-adjust to be max speed ≥ operation speed.
speed
Operation speed of operation data set lower than bias
153 Stop Re-adjust to be operation speed ≥ bias speed.
speed.
154 Exceeding dwell time setting range of operation data Stop Set dwell time lower than 50000.
Exceeding end/continuous/sequential setting range of Re-set operation pattern of operation data as one of 0:end,
155 Stop
operation data 1:continuous or 2:sequential
Check whether command axis was not operating at the time of
201 Home return command is unavailable during operation Stop
home return command.
Home return command is unavailable in case of ‘no output’ Check whether command axis was not in ‘no output’ status at the
202 Stop
status. time of home return command.
Floating origin setting command is unavailable during Check whether command axis was not operating at the time of
211 Stop
operation. floating origin setting command.
Check whether command axis was not operating at the time of
221 Direct start command is unavailable during operation. Stop
direct start command
APP.1- 3
Appendix 1 List of Error Codes
Error
Description Operation Countermeasures
code
Direct start command is unavailable in case of ‘no output ’ Check whether command axis was not in ‘no output’ status at the
222 Stop
status. time of direct start command.
Check whether M code of command axis was not On at the time
223 Direct start command is unavailable in case of M code On Stop
of direct start command.
Absolute coordinate operation is not available without origin set.
Direct start command is unavailable without origin set in
224 Stop Check whether operation data to operate and the current origin
absolute coordinate.
set.
Check whether command axis was not operating at the time of
231 Indirect start command is unavailable during operation Operation
indirect start command.
Indirect start command is unavailable in case of ‘no Check whether command axis was not in ‘no output’ status at the
232 Stop
output’ status. time of indirect command.
Indirect start command is unavailable in case of M code Check whether M code signal of command axis was not On at the
233 Stop
On. time of indirect start command.
Absolute coordinate operation is not available without origin set.
Indirect start command is unavailable without origin set in
234 Stop Check whether operation data to operate and the current origin
absolute coordinate.
set.
Continuous operation of indirect start is unavailable in Re-set single or continuous operation if operation data control
236 Stop
speed control. method is speed
Linear interpolation start is unavailable when main axis of Check whether main axis was not operating at the time of linear
241 Operation
linear interpolation s operating. interpolation command.
Linear interpolation start is unavailable when sub axis of Check whether sub axis was not operating at the time of linear
242 Operation
linear interpolation is operating. interpolation command.
Linear interpolation start is unavailable when main axis of Check whether main axis was not in ‘Output disabled’ status at
244 Stop
linear interpolation is in ‘Output disabled’ status. the time of linear interpolation command.
Linear interpolation start is unavailable when sub axis of Check whether a sub axis was not in ‘Output disabled’ status at
245 Stop
linear interpolation is in ‘Output disabled’ status. the time of linear interpolation command.
Linear interpolation start is unavailable when the M code Check whether M code signal of main axis was not On at the time
247 Stop
signal of linear interpolation’s main axis is On. of linear interpolation command.
Linear interpolation start is unavailable when M code Check whether M code signal of sub axis was not On at the time
248 Stop
signal of linear interpolation’s sub axis is On. of linear interpolation.
Absolute coordinate operation is not available without origin set.
Absolute coordinate positioning operation is unavailable
250 Stop Check whether operation data to operate and the current origin
when the origin of linear interpolation sub axis is not set.
set.
Absolute coordinate operation is not available without origin set.
Absolute positioning operation is unavailable when the
251 Stop Check whether operation data to operate and the current origin
origin of linear interpolation’s sub axis is not set.
set.
Main axis and sub axis of linear interpolation are set
253 Stop Re-set the axis date as 3 of linear interpolation command.
incorrectly.
Check whether the target position of operation data of a step for
Linear interpolation is not available when the target
257 Stop linear interpolation was not the present status in case of absolute
position of main axis does not have a target position.
coordinate or set to ‘0’ in case of Incremental coordinate.
Check whether the control method of main axis operation data
Linear interpolation is unavailable when main axis is
258 Stop step for linear interpolation operation was not set by speed
controlling speed.
control.
APP.1- 4
Appendix 1 List of Error Codes
Error
Description Operation Countermeasures
code
Linear interpolation is unavailable when sub axis is Check whether the control method of sub axis operation data step
259 Stop
controlling speed. for linear interpolation was not set by speed control.
Check whether an axis with error was not contained in concurrent
291 Concurrent start command is unavailable during operation. Operation start command and whether there wasn’t any operating axis at
the time of the command
Check whether an axis with error was not contained in concurrent
Concurrent start command is unavailable in ‘no output’
292 Stop start command and whether it was not in ‘no output’ status at the
status.
time of the command.
Check whether an axis with error was not contained in concurrent
293 Concurrent start command is not available with M code On Stop start command and whether M code signal was not On at the time
of the command.
294 Concurrent start command is unavailable without origin set Stop Concurrent start command with origin set
296 When concurrent start command axis is incorrectly set. Stop Re-set the axis date as 3 of concurrent start command
Speed/position switching command is unavailable while not Check whether an axis did not stop at the time of speed/position
301 Stop
operating. switching command.
Speed/position switching command is unavailable while not Check whether an axis was not in speed control status at the time
302 Stop
controlling speed. of speed/position switching command.
Speed/position switching command is unavailable without Check whether operation had a move(amount) at the time of
304 Stop
target position. speed/position switching command.
Position/speed switching command is unavailable while not Check whether an axis did not stop at the time of position/speed
311 Stop
operating. switching command.
Position/speed switching command is unavailable On a sub Check whether an axis was operating as a synchronic operation
312 Stop
axis of synchronic operation. sub axis at the time of position/speed switching command.
Position/speed switching command is unavailable during Check whether an axis was not in linear interpolation operation at
314 Operation
linear operation. the time of position/speed switching command.
Check whether it was not operating at the time of DEC stop
321 DEC stop command is unavailable while not operating. Stop
command.
Check whether it was not jog-operating at the time of DEC stop
322 DEC stop command is not available during jog operation. Operation
command.
Position synchronic command is not available during Check whether an axis was not in operating at the time of position
341 Operation
operation synchronic command
Position synchronic command is unavailable in ‘no output’ Check whether an axis was not in ‘no output’ status at the time of
342 Stop
status. position synchronic command.
Position synchronic command is unavailable with M code Check whether M code signal of an axis was not On at the time of
343 Stop
On. position synchronic command.
Absolute coordinate operation is not available without origin set.
Position synchronic command is unavailable without origin
344 Stop Check whether operation data to operate and the current origin
set.
set.
APP.1- 5
Appendix 1 List of Error Codes
Error
Description Operation Countermeasures
code
Position synchronic command is unavailable without origin Check whether main axis was without origin set at the time of
346 Stop
of main axis set. position synchronic command.
There is an error of setting main/sub axis of position Check whether main axis of position synchronic command was not
347 Stop
synchronic command. set equally with command axis.
Speed synchronic command is unavailable during Check whether an axis was not operating at the time of speed
351 Operation
operation. synchronic command.
Speed synchronic command is unavailable in ‘no output’ Check whether an axis was not in ‘no output’ status at the time of
352 Stop
status. speed synchronic command.
Check whether M code signal of an axis was not On at the time of
353 Speed synchronic command is unavailable with M code On Stop
speed synchronic command.
There is an error of main/sub axis setting of speed
synchronic command. Check whether the main axis of speed synchronic command was
355 Stop
1) main/ sub axis were set equally not set equally with command axis.
2) set of main axis >5
There is an error of synchronization ratio setting of speed Check whether the synchronization ratio of speed synchronic
356 Stop
synchronic command command was not set between 0~10,000.
357 Delay time setting error Stop Check whether delay time was set between 1 ~ 10ms.
Position override command is unavailable in any other Check whether an axis did not stop at the time of position override
361 Stop
status but ‘busy’ command.
Check whether an axis was not dwelling at the time of position
362 Position override command is unavailable during dwelling Stop
override command.
Position override command is unavailable in any other Check whether an axis was not operating by position control at the
363 Operation
status but positioning operation. time of position override command.
Position override command is unavailable for an axis of Check whether an axis was not in linear-interpolation operation at
364 Operation
linear interpolation operation. the time of position override command.
Position override command is unavailable for a synchronic Check whether an axis was not operating as a sub axis of
366 Operation
operation sub axis. synchronic operation at the time of position override command.
Speed override command is unavailable in any other status Check whether an axis did not stop at the time of speed override
371 Stop
but ‘busy’. command.
Re-set the speed of speed override command equal to or lower
372 Out-of speed override range error Stop
than the max speed set in the basic parameter.
Speed override command is unavailable to an sub axis of Check whether an axis was not operating as a sub axis of linear
373 Operation
linear interpolation operation. interpolation at the time of speed override command.
Speed override command is unavailable to an sub axis of Check whether an axis was not operating as a sub axis of
375 Operation
synchronic operation synchronic operation at the time of speed override command.
Check whether an axis was not decelerating for stoppage at the
377 Speed override command is unavailable in a DEC section Operation
time of speed override command.
Positioning speed override command is unavailable in any Check whether an axis did not stop at the time of positioning speed
381 Stop
other status but ‘operation’. override command.
Positioning speed override command is unavailable in any Check whether an axis was not in speed control operation at the
382 Stop
other operation but ‘positioning operation’ time of positioning speed override.
Out of speed override range error of positioning sped Check whether the speed of positioning speed override command
383 Stop
override command was not equal to or lower than the max speed set in parameter.
APP.1- 6
Appendix 1 List of Error Codes
Error
Description Operation Countermeasures
code
Positioning speed override command is unavailable to an Check whether an axis was not operating as a sub axis of linear
384 Operation
sub axis of linear interpolation operation. interpolation at the time of positioning speed override command.
Check whether an axis was not operating as a sub axis of
Positioning speed override command is unavailable to an
386 Operation synchronic operation at the time of positioning speed override
sub axis of synchronic operation.
command.
Check whether an axis was not operating at the time of inching
401 Inching command is unavailable during operation. Operation
command.
Check whether an axis was not in ‘no output’ status at the time of
402 Inching command is unavailable in ‘no output’ status. Stop
inching command.
Check whether an axis was not operating at the time of jog start
411 Jog start command is unavailable during operation. Operation
command.
Check whether an axis was not in ‘no output’ status at the time of
412 Jog start command is unavailable in ‘no output’ status. Stop
jog start command.
Start step number change/repeat operation start step
Check whether an axis was not operating at the time of start step
441 number designation command is unavailable during Operation
number change command.
operation.
Start step number change/repeat operation start step Check whether the step number of start step number change
number command is unavailable during operation. command or repeat operation start step number designation
442 Stop
1) Step = 0 command is equal to or higher than 1 and lower and 30(80 for
2) Step > 30(80 for high end) high end) or within the range.
Present position preset command is unavailable during Check whether an axis was not operating at the time of present
451 Operation
operation. position present command.
Sub position data may not be set exceeding soft
Check whether the position of present position present command
452 upper/lower limits at the time of present position preset Stop
was within the soft upper/lower limits.
command.
Remove emergency stop causes and clear the error by executing
481 emergency stop error Stop
CLR command.
Remove emergency stop causes and clear the error with CLR
491 External emergency stop error Stop
command.
Escape from external upper signal range by using jog command
492 Hard upper limit error Stop
and clear the error with CLR command.
Escape from external upper signal range by using jog command
493 Hard lower limit error Stop
and clear the error with CLR command.
Escape from soft upper limit range by using jog command and
501 Soft upper limit error Stop
clear the error with CLR command.\
Escape from soft lower limit range by using jog command and
502 Soft lower limit error Stop
clear the error with CLR command.
511 Direction turning error during sequential operation Stop Check whether the direction are turned during sequential operation.
A step over 30 was set in a command. Re-set step number
512 Step number error during indirect start. Stop
between 1 ~ 30.
Check whether it repetitively operates a step of which address is ‘0’
513 Address error during indirect start. Stop
during indirection start.
APP.1- 7
Appendix 2 Positioning Instruction and K area List
LIN Linear interpolation starting Slot, command axis, step no., axis information
SST Simultaneous starting Slot, command axis, X step, Y step, Z step, axis information
SSP Position synchronization Slot, command axis, step no., main axis position, main axis setting
SSS Speed synchronization Slot, command axis, synchronization rate, delay time
PSO Speed override with position Slot, command axis, position, speed
SNS starting step no. change Slot, command axis, step no.
CLR Error reset, output inhabit cancel Slot, command axis, pulse output inhabit/allowed
WRT Parameter/operation data saving Slot, command axis, storage area selection
Remark
• XGB positioning dedicated instruction is operated at rising edge. Namely, When starting point is on, it
is executed only one time.
App. 2 - 1
Appendix 2 Positioning Instruction and K area List
App. 2 - 2
Appendix 2 Positioning Instruction and K area List
App. 2 - 3
Appendix 2 Positioning Instruction and K area List
K5486~87 K8486~87
A/D No. 0 : No.1, 1 : No.2, 2 : No.3, 3 : No.4 0 Bit
%KX8774~75 %KX13574~75
K544 K844
Speed 1 ∼ 100,000[pulse/s] 0 Double word
%KD272 %KD422
K546 K846
Dwell 0 ~ 50,000[unit:㎳] 0 Word
%KW546 %KW846
K5486~87 K8486~87
A/D No. 0 : No.1, 1 : No.2, 2 : No.3, 3 : No.4 0 Bit
%KX8774~75 %KX13574~75
K544 K844
Speed 1 ∼ 100,000[pulse/s] 0 Double word
%KD272 %KD422
K546 K846
Dwell 0 ~ 50,000[unit:㎳] 0 Word
%KW546 %KW846
App. 2 - 4
Appendix 2 Positioning Instruction and K area List
K5586~87 K8586~87
A/D No. 0 : No.1, 1 : No.2, 2 : No.3, 3 : No.4 0 Bit
%KX8934~35 %KX13734~35
K554 K854
Speed 1 ∼ 100,000[pulse/s] 0 Double word
%KD277 %KD427
K556 K856
Dwell 0 ~ 50,000[unit:㎳] 0 Word
%KW556 %KW856
K5686~87 K8686~87
A/D No. 0 : No.1, 1 : No.2, 2 : No.3, 3 : No.4 0 Bit
%KX9094~95 %KX13894~95
K564 K864
Speed 1 ∼ 100,000[pulse/s] 0 Double word
%KD282 %KD432
K566 K866
Dwell 0 ~ 50,000[unit:㎳] 0 Word
%KW566 %KW866
App. 2 - 5
Appendix 2 Positioning Instruction and K area List
K5786~87 K8786~87
A/D No. 0 : No.1, 1 : No.2, 2 : No.3, 3 : No.4 0 Bit
%KX9254~55 %KX14054~55
K574 K874
Speed 1 ∼ 100,000[pulse/s] 0 Double word
%KD287 %KD437
K576 K876
Dwell 0 ~ 50,000[unit:㎳] 0 Word
%KW576 %KW876
K5886~87 K8886~87
A/D No. 0 : No.1, 1 : No.2, 2 : No.3, 3 : No.4 0 Bit
%KX9414~15 %KX14214~15
K584 K884
Speed 1 ∼ 100,000[pulse/s] 0 Double word
%KD292 %KD442
K586 K886
Dwell 0 ~ 50,000[unit:㎳] 0 Word
%KW586 %KW886
App. 2 - 6
Appendix 2 Positioning Instruction and K area List
K5986~87 K8986~87
A/D No. 0 : No.1, 1 : No.2, 2 : No.3, 3 : No.4 0 Bit
%KX9574~75 %KX14374~75
K594 K894
Speed 1 ∼ 100,000[pulse/s] 0 Double word
%KD297 %KD447
K596 K896
Dwell 0 ~ 50,000[unit:㎳] 0 Word
%KW596 %KW896
App. 2 - 7
Appendix 2 Positioning Instruction and K area List
K6286~87 K9286~87
A/D No. 0 : No.1, 1 : No.2, 2 : No.3, 3 : No.4 0 Bit
%KX10054~55 %KX14854~55
K624 K924
Speed 1 ∼ 100,000[pulse/s] 0 Double word
%KD312 %KD462
K626 K926
Dwell 0 ~ 50,000[unit:㎳] 0 Word
%KW626 %KW926
App. 2 - 8
Appendix 2 Positioning Instruction and K area List
K6486~87 K9486~87
A/D No. 0 : No.1, 1 : No.2, 2 : No.3, 3 : No.4 0 Bit
%KX10374~75 %KX15174~75
K644 K944
Speed 1 ∼ 100,000[pulse/s] 0 Double word
%KD322 %KD472
K646 K946
Dwell 0 ~ 50,000[unit:㎳] 0 Word
%KW646 %KW946
App. 2 - 9
Appendix 2 Positioning Instruction and K area List
App. 2 - 10
Appendix 2 Positioning Instruction and K area List
App. 2 - 11
Appendix 2 Positioning Instruction and K area List
App. 2 - 12
Appendix 2 Positioning Instruction and K area List
App. 2 - 13
Appendix 2 Positioning Instruction and K area List
App. 2 - 14
Appendix 2 Positioning Instruction and K area List
App. 2 - 15
Appendix 2 Positioning Instruction and K area List
App. 2 - 16
Appendix 2 Positioning Instruction and K area List
App. 2 - 17
Appendix 2 Positioning Instruction and K area List
App. 2 - 18
Appendix 2 Positioning Instruction and K area List
• Operation step 31~80 is available for only high end type (H type).
App. 2 - 19
Appendix 2 Positioning Instruction and K area List
App. 2 - 20
Appendix 2 Positioning Instruction and K area List
App. 2 - 21
Appendix 2 Positioning Instruction and K area List
App. 2 - 22
Appendix 2 Positioning Instruction and K area List
App. 2 - 23
Appendix 2 Positioning Instruction and K area List
App. 2 - 24
Appendix 2 Positioning Instruction and K area List
App. 2 - 25
Appendix 2 Positioning Instruction and K area List
App. 2 - 26
Appendix 2 Positioning Instruction and K area List
App. 2 - 27
Appendix 2 Positioning Instruction and K area List
App. 2 - 28
Appendix 2 Positioning Instruction and K area List
App. 2 - 29
Appendix 2 Positioning Instruction and K area List
App. 2 - 30
Appendix 2 Positioning Instruction and K area List
App. 2 - 31
Appendix 2 Positioning Instruction and K area List
App. 2 - 32
Appendix 2 Positioning Instruction and K area List
App. 2 - 33
Appendix 2 Positioning Instruction and K area List
App. 2 - 34
Appendix 2 Positioning Instruction and K area List
App. 2 - 35
Appendix 2 Positioning Instruction and K area List
App. 2 - 36
Appendix 2 Positioning Instruction and K area List
App. 2 - 37
Appendix 2 Positioning Instruction and K area List
App. 2 - 38
Appendix 2 Positioning Instruction and K area List
App. 2 - 39
Appendix 2 Positioning Instruction and K area List
App. 2 - 40
Appendix 2 Positioning Instruction and K area List
App. 2 - 41
Appendix 2 Positioning Instruction and K area List
App. 2 - 42
Appendix 2 Positioning Instruction and K area List
App. 2 - 43
Appendix 3 Motor Wiring Example
(Note5)
(Note 1) TIMING
DOG P04 P06
Origin P05 P07 COM
Low limit P00 P02
Upper limit P01 P03
(Note3) Emg. Stop Input
DC24V
Common COM0(input
(Note5) (Note1)
DOG P04 P06 TIMING
Origin P05 P07 COM
Low limit P00 P02
High limit P01 P03
(Note3) Emg. stop Input
DC24V
Common COM0(Input
(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 system’s 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) In case of XGB standard type, since only pulse + direction mode is available, change input mode of stepping
motor driver to 1 phase input mode.
(Note 5) The above figure is example of XGB standard type. For high-end type, Origin, DOG, upper/lower limit input
contact point is different with standard type.
App.3 - 1
Appendix 3 Motor Wiring Example
CN2
(Note
DOG P05 P07 1) OP 14
Origin P04 P06 LG 1
CN3
Low limit P00 P02 SD Plate RD
(Note 12 TxD
High limit P01 P03 2 RxD SD
Emg stop Input 1 LG GND
Personal
11 LG GND computer
DC24V
Common COM0(Input 5 LG RS
15 LG CS
CN1E DR
External Emg. stop
EMG 15 ER
Servo On
SOn 5
Reset
RES 14 Monitor output
Proportional control
PC 8 4 GND A
Torque limit 10k Max. 10mA
TL 9 3 RS
*3 Operation limit
LSP 16 14 CS A
*3 Reverse operation limit 10k
LSN 17 13 DR
SG 10 Plate ER
SG 20 Less than 2m
VDD 3
COM 13
RA1
ALM 18
Error RA2
ZSP 19
Zero speed detection RA3
In torque limit TLC 6
P15R 11
Analog torque limit
+10V/Max. limit TLA 12
LG 1
SD Plate
Less than 2m
(Note1) The rating of XGB origin input is DC24V. Make sure to connect the open collector output of a driver.
(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) In case of XGB standard type, since only pulse + direction mode is available, change input mode of servo
motor driver to 1 phase input mode.
(Note4) The above figure is example of XGB standard type. For high-end type, Origin, DOG, upper/lower limit input
contact point is different with standard type.
App.3 - 2
Appendix 3 Motor Wiring Example
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 servo motor driver into 1 phase input mode prior to use.
App.3 - 3
Appendix 3 Motor Wiring Example
Servo motor
Power AC
Input Common
Lower limit
Upper limit
Input contact
Emergency stop
Origin Note1
Note2
DOG
External power
input terminal
Pulse
Direction
Output Common
(Note1) The rating of Origin input for XGB stand type is 24VDC. If it is line driver output, contact can’t be 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) The above wiring is applied when P07-01=27(positioning mode)
(Note4) Since only pulse + direction mode is available for XGB standard type, make sure to change the input mode of a
servo motor driver into pulse + direction mode prior to use
(Note5) In the above wiring, Axis X of XGB standard built-in positioning is used.
App.3 - 4
Appendix 3 Motor Wiring Example
Servo motor
Power AC
Input Common
Lower limit
Note2 P0008 (%IX0.0.8)
Upper limit
P0009 (%IX0.0.9)
Emergency Stop
Origin
P000D (%IX0.0.13) Note1
DOG
P000C (%IX0.0.12)
External DC24V
Input terminal
(Note1) The rating of Origin input for XGB stand type is 24VDC. If it is line driver output, contact can’t be 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) The above wiring is applied when P07-01=27(positioning mode)
(Note4) Since pulse + direction mode and CW/CCW mode are available for XGB high-end type, make sure to change the
input mode of a servo motor driver according to output mode of positioning module
(Note5) In the above wiring, Axis X of XGB high-end type built-in positioning is used.
App.3 - 5
Appendix 3 Motor Wiring Example
※ This picture is based on 1-axis. For more information about 2-axis wiring, refer to
pin information.
(Note1) Input Signal DI1~DIA, Output Signal DO1~DO5 is assigned initial signal from factory shipment
(Note2) ** Not assigned Signal. Allocation can be changed by setting servo parameter
App.3 - 6
Appendix 3 Motor Wiring Example
※This picture is based on 1-axis. For more information about 2-axis wiring, refer to
pin information.
(Note1) Input Signal DI1~DIA, Output Signal DO1~DO5 is assigned initial signal from factory shipment
(Note2) ** Not assigned Signal. Allocation can be changed by setting servo parameter
App.3 - 7
Appendix 4 Dimension
XBM-DN16S
PWR
RUN
ERR
RS-232C
RUN
P00~07 P20~27
-. XBM-DR16S
XBM-DR16S
PWR
RUN
ERR
RS-232C
RUN
P00~07 P20~27
App. 4 1
Appendix 4 Dimension
- XBC-DR/DN/DP40SU: 161 x 90 x 64
- XBC-DR/DN/DP60SU: 210 x 90 x 64
App. 4 2
Appendix 4 Dimension
-. XBC-DR32H/ XE C-DR32H
App. 4 3
Appendix 4 Dimension
-. XBC-DR64H/ XE C-DR64H
App. 4 4
Appendix 4 Dimension
B A
20
19
18
17
16
15
14
13
12
11
10
09
08
07
06
05
04
03
02
01
-. XBE-RY16A
App. 4 5
Appendix 4 Dimension
-. XBE-DR16A, XBE-RY08A
App. 4 6
Appendix 4 Dimension
-. XBL-EMTA
App. 4 7
Appendix 4 Dimension
-. XBF-AD04A
-. XBF-DV04A
App. 4 8
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
LSIS considers the environmental LSIS’ PLC unit is designed to protect the
preservation as the preferential management environment. For the disposal, separate
subject and every staff of LSIS use the aluminum, iron and synthetic resin (cover)
reasonable endeavors for the pleasurably from the product as they are reusable.
environmental preservation of the earth.
LSIS values every single customers.
Quality and service come first at LSIS.
Always at your service, standing for our customers.
http://eng.lsis.biz
10310000927