
COOLMAY EX3G PLC/HMI All in one Programming manual
35
Operand Description: All use 32-bit registers.
S1. indicates the pulse frequency, that is, the speed of the interpolation motion.
S2. indicates the X-axis target address.
S2.+2 indicates the Y-axis target address.
In the center mode: S2.+4 and S2.+6 indicates the
Center coordinates
.
In radius mode: S2.+4 indicates the radius length, and S2.+6 ignores and unused.
S2.+4 positive value: the path is a small circle;
S2.+4 negative value: the path is a big circle.
S2.+8 is the control register.
D.: Specify the Y number with pulse output
(currently only Y0 is supported)
, and the default Y1 is another
axis.
In continuous interpolation mode, M8432~M8435 are determined by the 5
th
parameter (ie S.+10).
The function description of each bit of the 32-bit register S2.+8 is as follows:
32bit
position
b31~b28 b27~b24 b23~b20 b19~b16 b15~b12 b11~b8
b7~b4
b3~b0
Function
Continuous interpolation
execution and stop
Flag position
Position
mode
Interpolati
on
direction
Interpolati
on mode
When S2.+8 is used, it is expressed in hexadecimal. The bit values of each group are as below shown :
b3~b0
=1
:
relative position
=2
:
absolute position
b7~b4
=0
:
clockwise rotation
=1
:
counterclockwise rotation
b11~b8
=1
:
linear mode interpolation
=2
:
center mode interpolation
=3
:
radius mode interpolation
b31~b12
=00000
:
continuous interpolation execution
=AAAAA
:
continuous interpolation stop
PS: When using linear mode interpolation, b7~b4 is ignored and can be set to any value from 2~F.
S1. and S2. may be set discontinuous. For example, S1.=D100, S2.=D120.
S2. Must be consecutive with the next four 32-bit registers. For example, it must be set to D102, D104,
D106, D108, D110.
For example: draw a line and two arcs, as shown below: