XCM Manual
XCM Manual
User manual
Catalog
Foreword
XCM ————————————————————
Appendix 4
————————————————————
Precautions Please follow the precautions. If not, it may lead the control system
incorrect or abnormal, even cause fortune lose.
The models could only be used according to the manual, and an only be
Correct
used along with the peripheral equipments recognized or recommended
Application
by Xinje Electronic. They could only work normally in the condition of
be transported, kept and installed correctly, also please operate and
maintain them according to the recommendation.
Duty Declare
We have checked the manual, its content fits the hardware and software of the products.As mistakes are
unavoidable, we couldn’t promise all correct. However, we would check the data in the manual frequently,
and in the next edition, we will correct the necessary information. Your recommendation would be highly
appreciated
20008.06
CATALOG
FOREWORD ........................................................................................................................................... 8
2-1.POWER SPECIFICATION............................................................................................................... 27
2-3.INPUT SPECIFICATION................................................................................................................. 29
3-9.APPLICATION ............................................................................................................................. 74
4.APPENDIX ...................................................................................................................................... 83
4-6.FREQUENCY MEASUREMENT...................................................................................................... 94
Foreword
Features of XCM motion controller
The PLC integrate motion control function and ordinary PLC function in one
XCM motion controller not only supports proprietary function, but also majority functions
of ordinary PLC, including high speed pulse, high speed count, interruption, PID control,
etc.
Support at most 10-axis pulse output function
XCM series contains 3/4/10-axis pulse output, meet users control demands.
Predominant motion control capability
It can make 2-axis linkage motion, support basic motion control instructions such as
circular, linear interpolation, etc.
Plane transformation
Support PLAN instruction, can transform among plane X-Y, Y-Z, X-Z etc.
Can expand XC series digital, analog module and BD board
Similar to XC series, XCM series also support module and BD board expansion, including
digital I/O, temperature control and analog module, etc.
Tracking control function
XCM-32T-E-3PLS has tracking control function, which is suitable for continuous
processing. It can realize fixed-length and fixed-scale working.
Supplement explanation:
The instruction noted in this manual is motion control function instructions, other instructions
such as sequence control, application or special function instructions, please refer to XC series
PLC user manual.
Notes:
(1) XCM-60T-E can expand BD board, but cannot expand modules.
(2) XCM-60T-E cannot support motion control instructions.
Remark
XCM motion controller summarize
The chapter focus on XCM series product general specifications, appearance and dimension,
terminal arrangement and the definition of each communication pin.
1-1.Internal specification
1-3.Terminal arrangement
1-1.Internal specification
instrument、inverters etc.
5024 words
Data Register(D)
High speed dispose High speed count, pulse output, external interrupt
Setting of time scan space 0~99mS
Password protection 6 bits ASCII
Self diagnose function Power on self-diagnose, Monitor timer, grammar checking
Note: the “user program capacity 128KB” should choose password download mode.
Power specification, I/O specification, external layout
Appearance
& (Unit: mm)
Dimension
139
131 73.3
0 1 2 3 4 5
X
PWR
XCM-32RT-E RUN
PORT1 PORT2 Y
ERR
0 1 2 3 4 5
6 7
3.5
207.4
199.4 73.3
COM X1 X3 X5 X7 X11 X13 X15 X17 X21 X23 X25 X27 X31 X33
COM X0 X2 X4 X6 X10 X12 X14 X16 X20 X22 X24 X26 X30 X32
0 1 2 3 4 5 6 7
Xinje Electronic Co.,Ltd
SN:0067032266
DATE:20060410
TYPE:XCM-60RT-E
102
94
X PWR
XCM-60RT-E RUN
PORT1 PORT2 ERR
Y
0 1 2 3 4 5 6 7
0V CAN+ CAN- Y0 Y1 Y2 Y3 Y4 COM5 Y7 Y10 Y12 COM7 Y15 Y17 Y20 Y22
24V A B COM0 COM1 COM2 COM3 COM4 Y5 Y6 COM6 Y11 Y13 Y14 Y16 COM8 Y21 Y23
Power specification, I/O specification, external layout
1-3.Terminal arrangement
Main units
1
12
2 19
3 13
FG COM
COM
X0
X1
X2
X3
X4
X5
X6
X7
X10
X11
X12
X13
X14
X15
X16
X17
X20
X21 C0
VO0
AO0 C1
VO1
AO1
18
0 1 2 3 4 5
6 7
14
4 PORT1 PORT2
X
XC3-32R-E
Y
PWR
RUN
ERR
AO
AI
PWR
5 0 1 2 3 4 5
6 7
0V A COM0 COM1 COM2 Y3 Y5 Y6 Y10 COM4 Y13 Y15 VI0 C1 AI1 VI2 C3 AI3 17
6
24V B Y0 Y1 Y2 Y4 COM3 Y7 Y11 Y12 Y14 C0 AI0 VI1 C2 AI2 VI3
7
8 9
10 15 16
11
① : input terminal, power supply 11: mounting hole
② : input label 12: screw
③ : expansion BD port 13: input LED
④ : COM2 14: LED
⑤ : COM1 PWR: power supply
⑥ : cover RUN: program run
⑦ : output label ERR: error
⑧ : output terminal, 24V output 15: expansion cable
⑨ : output LED 16: output terminals
⑩ : expansion module port 17: PWR: power LED
18: expansion module port
19: input terminal, power input
COM X1 X3 X5 X7 X11 X13 X15 X17 X21 X23 X25 X27 X31 X33 X35 X37 X41 X43
COM X0 X2 X4 X6 X10 X12 X14 X16 X20 X22 X24 X26 X30 X32 X34 X36 X40 X42
0V Y0 Y1 Y2 COM3 Y5 Y6 COM5 Y11 Y12 COM7 Y15 Y17 Y20 Y22 COM9 Y25 Y27
24V A B COM0 COM1 COM2 Y3 Y4 COM4 Y7 Y10 COM6 Y13 Y14 Y16 COM8 Y21 Y23 Y24 Y26
Power specification, I/O specification, external layout
COM 1
Pin of COM 1:
2: PRG
1 2 4: RXD
3 4 5 5: TXD
6 8 6: VCC
7
8: GND
COM 2
Pin of COM 2:
1 2 4: RXD
3 4 5 5: TXD
6 8 8: GND
7
Program cable
5 1
2 1
5 43
8 6
7
9 6
Mini Din 8core socket (pin) DB 9 pin (hole)
Power specification, I/O specification, external layout
This chapter focus on the power composing, internal signal circuit composing, output circuit composing and external
layout method.
2-1.Power specification
2-3.Input specification
2-1.Power specification
For the power specification of XCM motion controller basic units, please see the following table:
To avoid voltage decrease, please use the power cable above 2mm2
Even power off within 10ms, PLC still can work. But if power off
for long time or abnormal power voltage decreasing, PLC will stop
working, output will be in OFF status, when the power on again, the
PLC will auto-run.
Connect the ground terminals of basic units and expansion modules
together, and then ground.
Wiring
2-3.Input specification
Basic Units
Model XCM-32T/XCM-60T
Input signal voltage DC24V±10%
Input signal current 7mA/DC24V
Input ON current Above 4.5mA
Input OFF current Below 1.5mA
Input response time About 10ms
Input signal format Contactor input or NPN
open collector transistor
Circuit insulation Optical-coupled insulation
Input action display LED lights when input ON
Expansions
Model XCM-32T/XCM-48T
Input signal voltage DC24V±10%
Input signal current 7mA/DC24V
Input ON current Above 4.5mA
Input OFF current Below 1.5mA
Input response time About 10ms
Input signal’s format Contactor input or NPN
open collector transistor
Circuit insulation Optical-coupled insulation
Input action display LED lights when input
ON.
29
Power circuit specification, input/output specification, external layout
DC input signal
Input terminal
When connect input terminal and COM terminal with no-voltage contactor or NPN
open collector transistor, if input is ON,LED lamp lights. There are many COM
changing of input ON→OFF, OFF→ON, in the PLC, the response time delays about
30
Power circuit specification, input/output specification, external layout
Exterior The input current of XCM is supplied by inside 24V power. If use
circuit for the external power to drive sensor or optical-electricity switch, the voltage
sensors should be DC 24V±4V, please use NPN open collector transistor for
sensor output.
Input Connection
31
Power circuit specification, input/output specification, external layout
The output terminals of XCM are all transistor type which can be divided into high-speed pulse output
and normal transistor output.
Notes:
(1) For XCM-32T-E-3PLS, Y0 and X7 (high speed counter input) cannot use at the same
time.
(2) Y1 cannot work with expansion BD board at the same time.
32
Power circuit specification, input/output specification, external layout
Output terminal
The transistor output of basic unit has 1~4 common output.
External power supply
Please use DC5~30V power supply to drive the load.
Circuit insulation
Use the photo-electricity-coupling to insulate the PLC internal circuit and output transistor.
Beside, each public block is separated.
Action display
When driving the optical-coupling, LED lights, output transistor is ON.
Response time
From photo-electricity coupling device driving (or cut) to transistor ON (or OFF), the time is
below 0.2ms.
Output current
The current is 0.5A per point. But as restrict of temperature rising, the current is 0.8A every
four points.
Open circuit current
Below 0.1mA.
33
Power circuit specification, input/output specification, external layout
光
Optical Load
负载
耦
coupling Y*5
驱
drive Load
负载
动
circuit Y*6
电
路
负载
Load
Y*7
(Note: For XCM-60T-E, when connect the optical coupling output to the load, please use output
terminal Y12~Y23).
34
Connect with servo driver
The following is the wiring diagram of RT type PLC and servo driver.
2KΩ
PUL-
Y0
脉冲
Pulse
PUL+
DC24V
2KΩ
DIR-
Y4
方向
Direction
DIR+
DC24V
(If external power supply is DC5V, there is no need to connect 2KΩ resistance.)
35
3.Motion control instruction, parameter, special data register and
auxiliary relay
The chapter introduces XCM motion control instruction function, motion control parameter, special data register
and auxiliary relay. In the end of the chapter, we select two examples for reference.
3-9.Application case
36
37
3-1.Soft element ID list
Range Points
Mark Name
32 points 60 points 32 points 60 points
M0~M2999【M3000~M7999】 8000
M Internal relay
Special use M8000~M8767 768
S0~S511
S Flow 1024
【S512~S1023】
T100~T199:100ms accumulation
T500~T599:1ms accumulation
D0~D2999
D Data register 4000
【D4000~D4999】
38
Special use D8000~D9023 1024
FD0~FD63 64
FlashROM
FD
register
Special use FD8000~FD8349, FD8890~FD8999 460
Expansion
ED internal ED0~ED36863 36864
register
NOTE:
※1. The area in 【 】 is the defaulted power failure retentive area. The retentive area of D,
M, S, T, C can be changed. For the details, please see the following table.
※2. Flash ROM register does not have to set power failure retentive area; its data won’t lose
※3. The address of input coil, output relay are octal data, other No. are all decimal data.
※4. The I/O which does not connect to external device can be used as internal relay.
System Power-off
Name Area Function
default value retentive range
Start denotation of D
D FD8202 4000 D4000~D4999
power-off retentive area
Start denotation of M
M FD8203 3000 M3000~M7999
power-off retentive area
Start denotation of T
T FD8204 620 Not set
power-off retentive area
Start denotation of C
C FD8205 320 C320~C635
power-off retentive area
Start denotation of S
S FD8206 512 S512~S1023
power-off retentive area
Start denotation of ED
ED FD8207 0 ED0~ED36863
power-off retentive area
39
3-2.Motion control instruction list (Special for XCM series)
40
3-3.How to read the instructions
1
2
4
Notes:
1. Instruction name
2. 16 bits instruction and 32 bits instruction
3. Ladder chart illustration
4. Applicable models
5. S· It denotes that the operand doesn't change with the instruction, called source operand.
D· It denotes that the operand changes with the instruction, called target operand.
6. Successively explain the instruction's basic movement, use method, application example,
expansion function, notice point, etc.
41
3-4. Output terminal arrangement table
There are rules for XCM output terminal function and related operation axis:
XCM-32T-E
Output Y0 Y1 Y2 Y3 Y4 Y5 Y6 Y7
Function Pulse output Direction output
Operation axis K0 K1 K2 K3 K0 K1 K2 K3
Axis X Y Z U X Y Z U
XCM-32T-E-3PLS
Output Y0 Y1 Y2 Y3 Y4 Y5
Function Pulse output Direction output
Operation axis K0 K1 K2 K0 K1 K2
Axis X Y Z X Y Z
42
3-5.Motion Control Instructions
S1 S2
M0
PLAN K0 K1
Function: select axis X and Y for operation which is XY plane. It defines the operation axis of all
the following motion instructions.
S1· : define the first operation axis; the following instructions will recognize this axis as the first
operation axis.
S2· : define the second operation axis; the following instructions will recognize this axis as the
Example
43
plane
,
plane
, plane
,
S1 S2
M0
SETP K1000 K100
Function: set the coordinate, define the plane by PLAN instruction (such as the up diagram, the
new coordinate is K1000, K100).
S1· Set the new coordinate of the first operation axis
Notes: The new coordinate will instead of the old one when this instruction is executed. Besides,
the value in machine zero and electric zero registers have not changed, so in fact the position of
the machine zero and electric zero have changed.
Example
Such as the following diagram, in the original coordinate system, the current register value is (200,
200), machine zero register value is (50, 50), electric zero register value is (150, 100); after
implementation of the instruction SETP K100 K100, the reference frame has changed, but the
register value has not changed, at last the position has changed.
44
250
Current value
200
Such as: current value is (200, 200) (absolute coordinates), after implementation of the instruction
SETP K100 K100, the zero has changed as the following:
After executing ABS instruction, coordinates (X, Y) will be recognized as the absolute value
of zero (0, 0).
45
The displacement value of arc center (I, J) and radius (r) will be recognized as incremental
value.
If the address isn’t defined, it will be recognized as absolute value.
Notes: ABS is corresponding to INC, once the ABS instruction is executed; it will be effective
until the INC instruction is executed.
Example
Y
300
250 (100,250)
ABS
200
150
LIN K200 K0
100
50 ( 200,0)
After ABS instruction, the LIN instruction will do linear interpolation according to the absolute
coordinates.
INC
46
executed.
Example
INC
LIN K200 K0
Y
300
( 100,250) ( 300,250)
250
200
150
100
50
After executing INC instruction, LIN instruction will do linear interpolation according to the
incremental address relatives to the current position.
In the up diagram, same coordinates produce different results by using ABS and INC instructions.
M0
SET R
47
The current position will be stored into the electric zero register, the original zero will be
replaced.
Example
After executing SETR instruction, the current coordinates (100, 250) will be stored into electric
zero register. For actual applications, this instruction can simplify the coordinate system.
Y
300
(100,250 )
250
Electric zero
200
150
100
50
M0
DRVR
The machine will return to the electric zero at high-speed and do servo end checking.
The acceleration time is up to FD8910, deceleration time is up to FD8912, operation speed is
up to FD8908.
In actual applications, DRVR makes the coordinate system clear and simplifies the operation,
decreases the error.
48
DRVZ: return to machine zero
Suitable type:
16-bit instruction:-- 32-bit instruction:-- XCM-32
Mode 1: there is no close-point switch setting. The machine decides the target position coordinates
according to the parameter 16 to 19 when returning to the machine zero, and decides the direction
of return to machine zero according to bit 0 to 3 of parameter 26, return speed depends on
parameter 20.
Mode 2: there is close-point switch setting. During the machine is returning to the machine zero,
when the machine arrives the close-point switch, the speed will decrease from the value of
parameter 20 (setting speed) to parameter 21 (crawling speed). The machine will stop according to
the counting zero (Z-phase) pulse signal of parameter 22 and 23. Please see the following
49
diagram:
X0
DRVZ
Function: the machine will return to machine zero at the highest speed.
PLC will select which axis to return according to the current plane, it will also decide
whether to return to the machine zero according to the value of M8261~M8264 (sign bit of
return to machine zero forbidden).
M8265~M8268 (returning to zero sign bit of axis X, Y, Z) will be ON after returning to the
zero.
Two axes will return to machine zero at the same time. If need one return after another, set
ON sign bit of return to machine zero forbidden.
Please refer to chapter 3-5 and 3-7 for sign bits and parameters.
Program example
Return to the zero of axis-X, and then return to the zero of Y-axis.
SET M8262 forbid the Y-axis to return to zero
DRVZ the X-axis returns to machine zero
RST M8262 permit the Y-axis to return to zero
SET M8261 forbid the X-axis to return to zero
DRVZ the Y-axis returns to machine zero
RST M8261 permit the X-axis to return to zero
50
Notes: If M8261 and M8262 are all ON, DRVZ will not be executed.
● X-axis and Y-axis high speed positioning with the maximum speed:
The instruction specifies the travel to the target coordinates with independent settings for the
X and Y-axes. This instruction doesn’t realize interpolation function.
Each axis maximum speed is specified by parameter register FD8908;
acceleration/deceleration speed is determined by acceleration time parameter FD8910 and
deceleration parameter FD8912.
51
Whether the position is incremental (distance from the zero point) or absolute (distance from
the zero point) is specified by instruction ABS, INC.
When the target position, operate speed are specified by indirect registers, the system default
them as double words.
Program Example
3000 (2000,3000)
IN C
2500
2000
DRV K 1000 K 2000 1500
1000
(1000,1000)
500
S1 S2· S3 S4
M0
LIN k1000 k100 k0 k1000
Function: The first and second axes do linear interpolated positioning at appointed speed; the
plane will be defined by PLAN.
52
S2· Second axis target position coordinates. Operand: K, TD, CD, D, FD
S3· Third axis target position coordinates. Operand: K, TD, CD, D, FD
(Notes: three axes motion control is not open, it is not useful to set the parameter here, but
these bits must be reserved.)
S4 The speed of linear interpolated positioning. Operand: K, TD, CD, D, FD.
(The highest speeds can up to 80 kHz for LIN and CW/CCW instructions)
If there is no appointed speed for the first and second axes, the PLC will do linear interpolated
positioning at the highest speed.
S· D·
M0
LIN k1000 k1000
This instruction uses two axes to move the machine to target position through beeline
INC and ABS will define whether the target position is incremental or absolute value
The default operation is double words when the target position and speed are appointed by
registers.
Program example
Y
2500
1500
1000
LIN K1000 K2000 K0 K5000 this instruction moves the machine to the target position
(1000, 2000) with linear interpolated positioning at the
speed of 5 KHz.
53
CW/CCW:Circular interpolation
Applicable model
XCM-32
16 digit instructions-- 32 digit instructions:The following
S1 S2 S3 S4 S5· S6
M0
CW k100 k100 k100 k100 k100 k100
Function: run circular interpolation at certain speed according to the center position and target
position of first and second axes.
S1· The first axis target position coordinates, operands: K, TD, CD, D, FD.
S2· The second axis target position coordinates, operands: K, TD, CD, D, FD.
S3 Arc center position coordinates of the first axis, operands: K, TD, CD, D, FD.
S4
S1·
Arc center position coordinates of the second axis, operands:K, TD, CD, D, FD.
If the peripheral speed is not defined, the system will default to the highest speed:
S1 S2 S3 S4
M0
CW k100 k100 k100 k100
The center coordinates of first and second axes will be seemed as incremental address
based on starting point.
54
Acceleration/deceleration time of the peripheral speed is set individually in FD8910 and
FD8912.
INC and ABS will define whether the target position is incremental or absolute value.
It is default to double words operation when the target position or speed is defined by
registers.
If the start position and the target position is the same, the trajectory is a full circle.
Program example
ABS
CW K1000 K500 K200 K0 K5000
Define the drive method is absolute address, move along the arc whose center incremental address is
(200, 0) at the speed of 5 kHz, start from A(600,500) to B(1000,500).
55
CHK:Servo end check
Applicable models
XCM-32
16-bit instructions:-- 32-bit instructions:--
Function: the machine runs servo end checking after finishing the interpolation, then runs another
operation. If there is no servo end checking, the machine will run without pause when interpolating,
the turning point will become smooth curve.
Please note the following points when using motion control instructions:
(1) If insert CHK between 2 motion control instructions, the trajectory will pause for a while when
gets to appointed point, then continue running the next instruction. Otherwise, the trajectory is a
smooth curve.
(2) When continuous use PLAN, please add CHK before the second PLAN, otherwise the
trajectory will deviate.
The coil can be contained in CHK. The coil can stand for the positioning completion signal of the
servo driver. The machine will pause when running CHK. The machine will run the next instruction
when the coil is ON. If the coil is always ON, the function is the same as CHK without coil. If the
coil is always OFF, the machine will stop and never go to the next instruction.
S1
CHK M100
Example 1
The machine moves from A to B to C. If inserts CHK between LIN, the trajectory is like solid line.
If no CHK, the trajectory is like dotted line.
56
250
B(200,250)
INC
LIN K150 K200 K0 K5000 200
CHK
150
LIN K50 K-150 K0 K5000 (250,100)
100
50
A (50,50) C
(0,0)50 100 150 200 250
Example 2
The machine moves from A to B to C to D to E to A. Please see the solid line in the following
diagram.
In the program, select the XY plane at first. Select absolute drive mode, set the coordinate system to
(K0, K0). At this time, select incremental drive mode in order to measure the coordinate system.
After completion of the first linear interpolation instruction, run CHK M0 to cause pause which
avoid smooth curve. It runs the next LIN instruction when M0 is ON.
PLAN K0 K1
ABS (100,200)
SETP K0 K0 250 (200,200)
INC
LIN K100 K0 K0 K100
200 C D
CHK M0 150
LIN K0 K200 K0 K100 100
CHK M1
50
CW K100 K0 K50 K0 K0 K100 B E (200,0)
CHK
LIN K0 K-200 K0 K100
A
(0,0)50 100 150 200 250
CHK
LIN K-200 K0 K0 K100
57
Example(3)
When there are many plane conversions in the program, select XY plane and do circular
interpolations in incremental mode, then insert CHK, and select YZ plane.
PLAN K0 K1
INC
CW K0 K0 K15000 K0 K0 D2
CHK
PLAN K1 K2
INC
LIN K0 K10000 K0 D2
, Plane
, Plane
, Plane
TIM: Delay
Applicable models
16-bit instruction:-- 32-bit instruction: remarks XCM-32
S1
Function & Action X0
TIM K1000
58
Time
TIM
Example
X0
PLAN K0 K1
ABS
SETP K0 K0
INC
TIM K1000
As the ladder chart, delay 1s after the completion of linear interpolation, then run the second linear
interpolation instruction. Please see the following instructions:
LD X0
PLAN K0 K1
ABS
SETP K0 K0
INC
LIN K1500 K0 K0 K1000
TIM
LIN K0 K2000 K0 K1000
59
FOLLOW:Following instruction
Applicable models
XCM-32
16-bit instruction:-- 32-bit instruction:As follows
Following instruction can output 4 or 1 time of the high-speed counter signal. The
output frequency will change as the input frequency, the pulse quantity is calculated
by multiply/divide coefficient.
The meaning of following is: geometric magnify or minify the high-speed counter
signal, then add pulse forward or backward via phase checking, finally output the
pulse in the mode of pulse+direction.
The output pulse quantity depends on C630. The pulse quantity is 4 times of 1-time
pulse input mode when selecting 4-time pulse input mode.
This instruction is used to adjust the digital control system. Control the back/forward
of the operation table by manual pulse generator. It also can be applied in some cases
need precise synchronization.
60
FOLLOW instruction diagram: (take Y0 as an example)
Feed forward
Following
Pulse Frequency High-speed compensation
coefficient
multiplication counter coefficient
m/n(multiply/
input factor FD8241 C630 range
divide)
(0-100%)
Following
fine tuning
value D8502
(-100~+100)
X-axis Following
Position
position pulse quantity
register Calculation D8500 Pulse output Y0
D8482
61
3-6.Motion control parameter
The motion control parameter can be set in special FLASH register. Each parameter and
corresponding XCM register address is as following:
62
FD8924
17 Machine zero (Y-axis) 0
FD8925
FD8926
18 Machine zero (Z-axis) 0
FD8927
FD8928
19 Machine zero (U-axis) 0
FD8929
FD8930 The speed of return to machine
20 0
FD8931 zero
External input X2
(X-axis)
FD8932 Interruption trigger: return to
21 0
FD8933 machine zero at crawling speed External input X10
(Y-axis)
FD8936
24 - - 0
25 FD8937 - - 0
PARA.2, PARA.3, PARA.4: set the Y-axis, Z-axis, U-axis pulse number per revolution add to the
driver unit. The basic settings are the same as PARA.1.
63
PARA.5: Feed rate
Set the trip of the machine per rotation of the motor
PARA.6, PAARA.7, PARA.8 set motor per rotation trip of Y-axis, Z-axis, U-axis. The basic settings
are the same as PARA.1.
PARA.13, PARA.14, PARA.15 set the electric zero absolute address of Y-axis, Z-axis, U-axis. The
basic setting is the same as PARA.12.
PARA.17, PARA.18, PARA.19 set the machine zero address of Y-axis, Z-axis, U-axis. The basic
setting is the same as PARA. 16.
64
PARA.21: crawling speed returning to the machine zero
The low speed after the near-point DOG signal (external input X2 of X-axis, external input X10 of
Y-axis) is turn on.
Setting range: 10 to 50000 Hz
PARA.22: zero point (Z phase) pulse number of crawling speed which needs to be count
After near-point DOG signal is triggered, the external input X5 of X-axis and external input X11 of
Y-axis receive the encoder zero-point signal. If this signal is equal to the appointed zero point pulse
number, the machine will stop.
Setting range: 0 to 2147483647
PARA.23: zero point (Z phase) pulse number of Y-axis crawling speed which needs to be count.
The basic setting is the same as PARA.22.
65
8 bit 9 bit 10 bit 11 bit
X-axis proximity Y-axis proximity Z-axis proximity U-axis proximity
switch state (0: switch state (0: switch state (0: switch state (0:
normal open 1: normal open 1: normal open 1: normal open 1:
normal close) normal close) normal close) normal close)
66
Current pulse
D8500 The pulse number output by FOLLOW
6 number of
D8501 instruction
following
Special Default
NO. Function Explanation
auxiliary relay value
1 M8260 Flow control bit See note[1] 0
Forbid X-axis 0
When this bit is ON, the return to zero
2 M8261 return to machine
instruction of this axis will not work.
zero bit
Forbid Y-axis 0
When this bit is ON, the return to zero
3 M8262 return to machine
instruction of this axis will not work.
zero bit
Forbid Z-axis 0
When this bit is ON, the return to zero
4 M8263 return to machine
instruction of this axis will not work.
zero bit
Forbid U-axis 0
When this bit is ON, the return to zero
5 M8264 return to machine
instruction of this axis will not work.
zero bit
X-axis return to When running DRVZ, this bit will from 0
6 M8265 machine zero end ON to OFF, when machine reach the zero
bit point, this bit become ON, see Note [2].
Y-axis return to When running DRVZ, this bit will from 0
7 M8266 machine zero end ON to OFF, when machine reach the zero
bit point, this bit become ON.
Z-axis return to When running DRVZ, this bit will from 0
8 M8267 machine zero end ON to OFF, when machine reach the zero
bit point, this bit become ON.
U-axis return to When running DRVZ, this bit will from 0
9 M8268 machine zero end ON to OFF, when machine reach the zero
bit point, this bit become ON.
67
Note[1]:
When scanning the ladder chart in PLC, implement one after another. But motion control is
based on process control, only when one instruction is completed, the next one will be executed.
So, uses a special M register (M8260) to show the state of the last positioning instruction.
When running, set ONM8260; when completed, set it OFF. The next instruction starts to run when
receiving the M8260 falling edge signal. When running, set ON M8260 again; when completed,
set it OFF. Repeat as this way, the program will run in order.
Note[2]:
When running DRVZ instruction, M8265 turns from ON to OFF. When machine reaches
machine zero point, M8265 turns to ON again.
run
Bit register:
Pulse
Address Function Explanation
number
M8170 Pulse output ON when pulse output
32-bit pulse output
M8171 ON when overflow PULSE_1
overflow
M8172 Direction 1 is positive direction, related direction output ON
M8173 Pulse output ON when pulse output
32-bit pulse output
M8174 ON when overflow PULSE_2
overflow
M8175 Direction 1 is positive direction, related direction output ON
M8176 Pulse output ON when pulse output
32-bit pulse output
M8177 ON when overflow PULSE_3
overflow
M8178 Direction 1 is positive direction, related direction output ON
M8179 Pulse output ON when pulse output
32-bit pulse output PULSE_4
M8180 ON when overflow
overflow
68
M8181 Direction 1 is positive direction, related direction output ON
M8730 Pulse output ON when pulse output
32-bit pulse output
M8731 ON when overflow PULSE_5
overflow
M8732 Direction 1 is positive direction, related direction output ON
M8733 Pulse output ON when pulse output
32-bit pulse output
M8734 ON when overflow PULSE_6
overflow
M8735 Direction 1 is positive direction, related direction output ON
M8736 Pulse output ON when pulse output
32-bit pulse output
M8737 ON when overflow PULSE_7
overflow
M8738 Direction 1 is positive direction, related direction output ON
M8739 Pulse output ON when pulse output
32-bit pulse output
M8740 ON when overflow PULSE_8
overflow
M8741 Direction 1 is positive direction, related direction output ON
M8742 Pulse output ON when pulse output
32-bit pulse output
M8743 ON when overflow PULSE_9
overflow
M8744 Direction 1 is positive direction, related direction output ON
M8745 Pulse output ON when pulse output
32-bit pulse output
M8746 ON when overflow PULSE_10
overflow
M8747 Direction 1 is positive direction, related direction output ON
69
Whether to ignore the
M8217 1 is stop output when alarm
alarm
pulse alarm (frequency
M8750 1 is alarm, 0 is correct
change suddenly)
PULSE_5
Whether to ignore the
M8751 1 is stop output when alarm
alarm
pulse alarm (frequency
M8752 1 is alarm, 0 is correct
change suddenly)
PULSE_6
Whether to ignore the
M8753 1 is stop output when alarm
alarm
pulse alarm (frequency
M8754 1 is alarm, 0 is correct
change suddenly)
PULSE_7
Whether to ignore the
M8755 1 is stop output when alarm
alarm
pulse alarm (frequency
M8756 1 is alarm, 0 is correct
change suddenly)
PULSE_8
Whether to ignore the
M8757 1 is stop output when alarm
alarm
pulse alarm (frequency
M8758 1 is alarm, 0 is correct
change suddenly)
PULSE_9
Whether to ignore the
M8759 1 is stop output when alarm
alarm
pulse alarm (frequency
M8760 1 is alarm, 0 is correct
change suddenly)
PULSE_10
Whether to ignore the
M8761 1 is stop output when alarm
alarm
Words register:
Address Function Explanation Pulse number
D8170 Low 16-bit accumulative pulse quantity Latched
D8171 High 16-bit accumulative pulse quantity PULSE_1
D8172 Current segment (No. n segment)
D8173 Low 16-bit accumulative pulse quantity Latched
D8174 High 16-bit accumulative pulse quantity PULSE_2
D8175 Current segment (No. n segment)
D8176 Low 16-bit accumulative pulse quantity Latched
D8177 High 16-bit accumulative pulse quantity PULSE_3
D8178 Current segment (No. n segment)
D8179 Low 16-bit accumulative pulse quantity Latched
D8180 High 16-bit accumulative pulse quantity PULSE_4
D8181 Current segment (No. n segment)
70
D8730 Low 16-bit accumulative pulse quantity Latched
D8731 High 16-bit accumulative pulse quantity PULSE_5
D8732 Current segment (No. n segment)
D8733 Low 16-bit accumulative pulse quantity Latched
D8734 High 16-bit accumulative pulse quantity PULSE_6
D8735 Current segment (No. n segment)
D8736 Low 16-bit accumulative pulse quantity Latched
D8737 High 16-bit accumulative pulse quantity PULSE_7
D8738 Current segment (No. n segment)
D8739 Low 16-bit accumulative pulse quantity Latched
D8740 High 16-bit accumulative pulse quantity PULSE_8
D8741 Current segment (No. n segment)
D8742 Low 16-bit accumulative pulse quantity Latched
D8743 High 16-bit accumulative pulse quantity PULSE_9
D8744 Current segment (No. n segment)
D8745 Low 16-bit accumulative pulse quantity Latched
D8746 High 16-bit accumulative pulse quantity PULSE_10
D8747 Current segment (No. n segment)
1 means ×10,
2 means ×100
71
D8758 Error segment no. PULSE_9
72
D8796 Rising time of absolute/relative positioning instruction (Y7)
PULSE_8
D8797 Falling time of origin returning instruction (Y7)
D8798 Rising time of absolute/relative positioning instruction (Y10)
PULSE_9
D8799 Falling time of origin returning instruction (Y10)
D8800 Rising time of absolute/relative positioning instruction (Y11)
PULSE_10
D8801 Falling time of origin returning instruction (Y11)
73
Motion control instruction, parameter, special register and auxiliary relay explanation
3-9.Application
1. Model system
XCM controls the worktable position via controlling the servo motor.
Ball screw
Worktable
Electronic device
CMX/CDV Servo motor
Locating device Reducer
Servo amplifier M
XCM
PB 5mm
Pf: 8192[pls/rev] Encoder
2. Parameter settings
The rated speed of servo motor is 3000[r/min], the feedback pulse of encoder is 8192
[pls/rev]. As the characteristic of servo motor, at certain rotation speed, command pulse frequency
f0 is equal to the feedback pulse frequency PB, and then you will obtain the following equation:
f0: Command pulse frequency (Hz) (Output from the XCM)
CMX: The numerator of servo driver command pulse amplification (electronic gear)
CDV: The denominator of servo driver command pulse amplification (electronic gear)
When the servo motor reaches the rated rotation speed, XCM needs to output the maximum
command pulse frequency, here we select 200 KHz. The result is as below:
CMX N0 1 256
Pf
CDV 60 f 0 125
74
Motion control instruction, parameter, special register and auxiliary relay explanation
1.Pulse rate means the pulse quantity of servo motor rotating a circle, it can calculate pulse
1
A Pf
CMX
CDV
Substitute the previous value (CMX:256 CDV:125) into the formula, then you will get the
pulse rate.
1
Pulse rate: A 8192 pls / rev 4000 pls / rev
256
125
2.Feed rate means the motion quantity of the work piece when servo motor rotates one circle.
When ball screw finishes one screw pitch PB, motor rotates N2 circles, and the transmission ratio
between motor and ball screw is N1.
1
Feed rate B N1 PB
N2
N1: machine transmission ratio
N2: rotate circle quantity
PB: screw pitch of the ball screw
Below is calculating process:
1 1
Feed rate B 5mm 5mm / rev
1 1rev
Machine quantity
Pulse quantity = × pulse quantity of every motor rotation
Motor feed rate per rotation
We need the work piece to move 200mm, then convert it to pulse quantity:
Pulse quantity
So if the work piece moves 200mm, XCM need to output 160000 pulses.
75
Motion control instruction, parameter, special register and auxiliary relay explanation
If the work piece moves at the speed of 30cm/min, then convert it to pulse frequency:
Pulse quantity:
So if the work piece moves at 30cm/min, XCM should output pulse frequency of 4000Hz.
3. Program explanation
ⅰ:When positioning device receives starting command, it will move as current quantity.
● Motion diagram
Speed
Move distance
X axis start input turn-on Output Y10
● Procedure
76
Motion control instruction, parameter, special register and auxiliary relay explanation
X0
SET M0
RST Y10
M0
INC Set to incremental address mode
SETR Set the current location to electrical zero
DRV K10000 K0 Position at coordinate (10000, 0)
M8260
SET Y10 When positioning ends, sets on Y10
Y10
RST M0
● Operate steps
(1) Only the first time work piece returns to zero via starting command.
(2) The electromagnet Y0 turns on which moves down the work piece. When lower limit switch
(3) After 1.5s, move-down electromagnet Y0 turns off, work piece moves up.
(4) When upper limit switch X1 turns on, work piece moves right.
(5) When positioning device arrives at right side of the worktable (2000, 0), move-down
electromagnet Y0 turns on, work piece starts to move down. When lower limit switch X0 turns on,
clamping electromagnet Y1 turns off, the clamp loose to put down the work piece.
(6) After 1.5s, move-down electromagnet Y0 turns off, positioning device moves up.
(7) When upper limit switch X1 turns on, work piece goes back to the left side of worktable.
● Running diagram
77
Motion control instruction, parameter, special register and auxiliary relay explanation
● Program
Ladder chart:
78
Motion control instruction, parameter, special register and auxiliary relay explanation
79
Motion control instruction, parameter, special register and auxiliary relay explanation
Instruction:
LDP M0
OUT C0 K1 count the starting times
LDP C0 when starting at the first time, set on process S0
SET S0
STL S0
LD S0
OUT T201 K5
LD T201
RST M10
RST M11
ABS
DRVZ go back to electrical zero
DRV K0 K0 fast position to (0, 0)
SETR set the current position to electrical zero
LDP X1
RST S0
STLE
LDP M0 not start M0 at the first time
80
Motion control instruction, parameter, special register and auxiliary relay explanation
81
Motion control instruction, parameter, special register and auxiliary relay explanation
LD S1
OUT T200 K5
LD T200
ABS
DRV K0 K0
LDP M0
RST S1
STLE
82
Appendix
4.Appendix
The chapter introduces the basic and applied instructions of PLC, motion control instructions
and parameters of motion controller.
4-6.Frequency measurement
83
Appendix
84
Appendix
85
Appendix
86
Appendix
Application instruction kinds and corresponding kinds of each series showed as below:
Data
AND= AND activates if(S1)=(S2)
Compare
87
Appendix
88
Appendix
89
Appendix
90
Appendix
XCM-32T-E
Interruption √ √ √ √
X000 U U A
X001 Dir B
X002
X003 U
XCM-32T-E-3PLS
Interruption √ √ √ √
X000 U U A
X001 Dir B
X002
X003 U U A
X004 Dir B
X005
X006 U
X007 U
Notes: X7 cannot work with Y0 at the same time.
91
Appendix
XCM-60T-E
Incremental mode Pulse + direction mode AB phase mode
C600C602 C604C606 C608C610 C612C614 C616C618 C620 C622C624 C626C628 C630 C632C634
Max
80K 10K 10K 10K 80K 10K 10K
frequency
4-time
√ √ √
frequency
Interruption √ √ √
X000 U A
X001 U B
X002
X003
X004
X005
X006 U A
X007 B
X010 U A
X011 B
92
Appendix
XCM-32T-E:
Pointer
Disable
Input Rising Falling
interruption
interruption interruption
X2 I0000 I0001 M8050
X5 I0100 I0101 M8051
X10 I0200 I0201 M8052
X11 I0300 I0301 M8053
X12 I0400 I0401 M8054
X13 I0500 I0501 M8055
XCM-32T-E-3PLS:
Pointer
Disable
Input Rising Falling
interruption
interruption interruption
X2 I0000 I0001 M8050
X5 I0100 I0101 M8051
X10 I0200 I0201 M8052
XCM-60T-E:
Pointer
Disable
Input Rising Falling
interruption
interruption interruption
X2 I0000 I0001 M8050
X3 I0100 I0101 M8051
X4 I0200 I0201 M8052
X5 I0300 I0301 M8053
93
Appendix
4-6.Frequency measurement
Type Input
XCM-32T-E X3
XCM-32T-E-3PLS X6, X7
XCM-60T-E X1
94
Xinje Electronic Co., Ltd.
Province 214072
Tel: (510)85134136
Fax: (510)85111290
www.xinje.com