0% found this document useful (0 votes)
219 views171 pages

CNC and PLC Interface

The document outlines the PLC interface for CNC and machine tool products, detailing various control bits (C bits) that manage machine operations such as starting, pausing, and moving axes. Each C bit is associated with specific functions, including manual control, emergency stop, and program execution behaviors. The document serves as a technical reference for users to understand and implement PLC commands effectively in CNC operations.

Uploaded by

kfs589711
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
219 views171 pages

CNC and PLC Interface

The document outlines the PLC interface for CNC and machine tool products, detailing various control bits (C bits) that manage machine operations such as starting, pausing, and moving axes. Each C bit is associated with specific functions, including manual control, emergency stop, and program execution behaviors. The document serves as a technical reference for users to understand and implement PLC commands effectively in CNC operations.

Uploaded by

kfs589711
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 171

PLC Interface.

匯出日期:2024-06-27
修改日期:2024-06-26
机床产品/Machine Tool Products

PLC Interface.

1 CNC and PLC Interface


1.1 C Bit Interface (From PLC To CNC)
No Title Description

C000 Cycle Under auto mode, when this bit ON CNC will start to execute the NC program.
Start

C001 Feed During machining, when this flag ON, CNC will pause the execution of the NC program.
Hold

C002

C003

C004

C005

C006® X Axis Under JOG MODE, when this flag ON, machine will move in X+ direction.
JOG+

C007® X Axis (As above)


JOG -

C008® Y Axis (As above)R


JOG +

C009® Y Axis (As above)


JOG -

C010® Z Axis (As above)


JOG+

C011® Z Axis (As above)


JOG -

C012® C(6th) (As above)


Axis
JOG +

CNC and PLC Interface – 2


机床产品/Machine Tool Products

PLC Interface.

No Title Description

C013® C(6th) (As above)


Axis
JOG -

C014

C015 M30 This Bit is valid only when Pr732 is set to 1. When this Bit is ON, main program does not
support execute Reset after M30 is executed. Instead, like M99 returns to the program initial
progra position, then continues executing machining.
m
Notifications(While Pr732 set to 1):
rewind
1. When M30 is executed, M code content description is updated in R1/R616/R620/
R624.
a. If C15 ON and Pr3804 part count M code number is 30, only when M30 is
executed, each path will update the M code content to 30 in R1/R616/R620/
R624 respectively.
b. If C15 OFF, regardless of the Pr3804 part count M code number, when M30 is
executed, each path will update the M code content to 30 in R1/R616/R620/
R624 respectively.
2. Effective vision:10.116.54, 10.117.54

C016 X Axis Select MPG to control X axis, when this FLAG is ON, controller will input as MPG and drive
MPG the X-axis to move relative displacement.
Selectio
n

C017 Y Axis (As above)


MPG
Selectio
n

C018 Z Axis (As above)


MPG
Selectio
n

C019 C(6th) (As above)


Axis
MPG
Selectio
n

CNC and PLC Interface – 3


机床产品/Machine Tool Products

PLC Interface.

No Title Description

C020 MPG 1. In auto mode (Auto or MDI), when this Bit ON and cycle start, the machine axial
Simulati moving speed determined by the MPG rotation speed and the current G01
on override. The faster MPG is rotated, the faster the machine moves; when MPG stops,
the machine also stopped. It is suitable for trial machining.
2. As mentioned above, "determined by current G01 override" means that even when
the MPG is rotated under rapid traverse G00 block, and the rapid
traverse feedrate (R18) is zero, machine will still move.
3. When using MPG simulation at G00 or G53 block, the maximum feedrate will be
limited to the last G00 moving speed multiplied by 37.5% of the G01 override.
4. When using MPG simulation, the number of lines/single blocks to be reversed is
limited. As for the number of lines/single blocks can be reversed, it depends on how
the NC code is written.

C021 Tool When this function is triggered, the system will automatically pause (Feedhold). After the
Withdra machine stops, the tool will retract according to the tool retraction position set by G10.6
w and feedrate override.

C022

C023 Rapid Press this button under CON JOG mode, the machine movement speed changes from the
Travers JOG SPEED to RAPID SPEED(G00) , and enable the panel RAPID OVERRIDE.
e

C024

C025 Set X To set the axial machine coordinates, the set value is determined by R38.
Axis
Restrictions:
Machine
Position Do not use C025~ and C230~ to set machine position when machining.
Compatibility:
Version 10.118.70E, 10.118.74 or befoe
Can use C025~and C230~ to set machine position when machining.
Version 10.118.70F, 10.118.75 or later
Using C025~ and C230~ to set machine position when machining, OP-033 alarm will be
issued.

C026 Set Y (As above)


Axis
Machine
Position

CNC and PLC Interface – 4


机床产品/Machine Tool Products

PLC Interface.

No Title Description

C027 Set Z (As above)


Axis
Machine
Position

C028 Set (As above)


C(6th)
Axis
Machine

Position

C029

C030

C031 X Axis The axial trips from control mode and enters feedback monitoring mode. At this moment,
MANUA controller can no longer send commands to the axis. If the axis moves due to external force,
L the HMI displayed coordinates will also be updated.
CONTR
Serial axis, if you need to SERVO_OFF certain axis, you can use this Cbit to SERVO OFF the
OL
serial axis.
Notification:
When the axis is switched back to the control mode from the feedback monitoring mode, if
machine is still moving, will cause zero speed check fails (Pr901~), system will issue
MOT-020/MOT-021 alarm, and at this moment axial needs to re-do homing.

C032 Y Axis (As above)


MANUA
L
CONTR
OL

C033 Z Axis (As above)


MANUA
L
CONTR
OL

CNC and PLC Interface – 5


机床产品/Machine Tool Products

PLC Interface.

No Title Description

C034 C(6th) (As above)


Axis
MANUA
L
CONTR
OL

C035 Absolut If any manual displacement (by Jog, MPG, PLC axis...) requires to be preserved during
e Feedhold state, upper edge trigger this C-BIT before the program started. In this case, the
Position amount of displacement of all axis will be synchronized to MPG offset, the program
Sync. coordinates will resume to state before feedhold. And once program starts, the machining
path will always retain this amount of displacement.
Restrictions:
This function is invalid when BIT triggered during machining, tool retract function executing
or O888801 executing.
Compatibility: Version 10.114.50G ~ 10.116.12 or later
Between Version 10.114.50G~10.116.12, when using upper edge triggers this BIT, the main
system path will perform a coordinate synchronization. This BIT has no effect in earlier
versions.

C036 Emerge When the Emergency Stop button is pressed, LADDER should triggers this FLAG and CNC
ncy stops all the movement of the machine and enters NOT READY state. Until the E-stop button
Stop is released, this FLAG is disabled and CNC generate the REST command and return to the
READY state.

C037 External • Send the RESET command to the CNC from external device.
Reset • In 10.118.40 and later version, when Pr741 is set to 1, the reset range is not including
the axis group of independent operation.

C038 M.S.T When LADEER executes M, S, T CODE, CNC will wait for this FLAG ON to start the execution
Finish of the next BLOCK. Therefore, after LADDER executed M, S, T CODE, this FLAG needs to be
ON.

C039 Part • When this BIT is ON, the part count M-code of the main program will be paused (B-
count STOP).
M-code • If the part count M-code of the main program is M99, CNC will only be paused (M-99)
stop when the M99 with the smallest path number is read.
request • 10.118.29Z, 10.118.40F, 10.118.44 and later: The request is invalid in MDI mode.
Relative reference: Parameter3804, S35

CNC and PLC Interface – 6


机床产品/Machine Tool Products

PLC Interface.

No Title Description

C040 Single When the machining program is executed under this FLAG ON, a block will be executed and
Block then enter the single block stop. It is necessary to Cycle Start again before executing the
next single block (Block).
(Please turn ON C40 before machining. If you turn ON C40 during machining, it may requires
several blocks to decelerate to zero before block stop. If it is required to check the program
during machining, it is recommended to stop with the MPG simulation C20 or M00.

C041 Optiona When the machining program is executed while this FLAG ON, if the jump character '/' is
l Skip written in the program, the line will be skipped and the next block will be executed directly.
(This function cannot support partial syntax. When an unsupported syntax is encountered,
a COM alarm will be issued.)

C042 Dry Run When this FLAG is ON, the execution of G CODE is performed at an dry run speed.
G01 dry run speed is up to 500% of the feedrate command in the program. The dry run
speed is limited by Pr405 and Pr621~. Under this mode, G01 override is valid.
G00 dry run speed is 100% of the original G00 speed.

C043 Machine When this FLAG is ON, and program is executed, the program will run but the machine will
Lock not move. It is usually used for program check.
Note: Version 10.114.45, 10.115.46B, 10.115.48 and after C43 function is cancelled.
This function enables (C43 ON) first, and sends a command to the axis, i.e. : G91G00X100.,
then axis does not move, and the remaining distance and program coordinates are
displayed normally, but the machine coordinates are not changed. The system will
synchronize the machine coordinates to the program coordinates until this function is
turned off.
If the function is enabled (C43 ON) during axial movement, the axis will not move and the
remaining distance and program coordinates will be displayed normally, but the machine
coordinates will stop when the function is activated. The system will synchronize the
machine coordinates to the program coordinates until this function is turned off.

C044 Optiona When this FLAG is ON and M01 is executed, controller will enter the FEEDHOLD state.
l Stop
When this FLAG is OFF and M01 is executed, controller will ignore M01 and continue to
execute the next BLOCK.

CNC and PLC Interface – 7


机床产品/Machine Tool Products

PLC Interface.

No Title Description

C045 Z Axis When this FLAG is ON, and program is executed, the program will run but the machine will
Lock not move. It is usually used for program check.
This function enables (C45 ON) first, and sends a command to the Z axis, i.e. : G91G00Z100.,
then Z axis does not move, and the remaining distance and program coordinates are
displayed normally, but the machine coordinates are not changed. The system will
synchronize the machine coordinates to the program coordinates until this function is
turned off.
If the function is enabled (C45 ON) during axial movement, the Z axis will not move and the
remaining distance and program coordinates will be displayed normally, but the machine
coordinates will stop when the function is activated. The system will synchronize the
machine coordinates to the program coordinates until this function is turned off.

C046 Axis The first set of axis coupling state switches, when Pr3825 is set to non-mechanical coupling,
Couplin the actual coupling state is determined by this bit.
g When this FLAG is ON, the coupling axis enters the coupling state.
Request When this FLAG is OFF, the coupling state is disabled.
In the coupling state, when the master axis moves, the slave axis moves according to the set
ratio.

C047 Inhibit When this FLAG is ON, the system is prohibited from storing persistent data. However, the
Persist system will force to synchronize once this FLAG turns from OFF to ON.
State
Flush

C048 Wait When this C bit is positive-edge triggered, all main system axis group will skip the WAIT()
Functio command that is already interpreted by the system, and continues the look ahead in the
n Skip following machining program.
Signal

C049 Macro Interrupt signal of interrupted subprogram function. When this C Bit On, the program that
Interrup was originally executed stops immediately and calls the interrupt subprogram.
tion
Request

C050 Over The X-axis machine hardware limit, when this FLAG ON controller will automatically enter
Travel Feedhold state. Meanwhile, it will not accept the JOG command or MPG command in this
X+ direction, and can be retracted only in the opposite direction.

C051 Over (As above)


Travel
X-

CNC and PLC Interface – 8


机床产品/Machine Tool Products

PLC Interface.

No Title Description

C052 Over (As above)


Travel
Y+

C053 Over (As above)


Travel
Y-

C054 Over (As above)


Travel
Z+

C055 Over (As above)


Travel
Z-

C056 Over (As above)


Travel
C(6th)+

C057 Over (As above)


Travel
C(6th)-

C058

C059

C060 Spindle When C60 ON, the spindle running speed will be forced to run at the spindle positioning
JOG drifting speed set by Pr1721. This function is usually used for milling machine spindle tool
Mode change, calibration or automatic lathe machine tending.
C60 only affects and designate the speed of the spindle, which does not activate the
spindle rotation; therefore, it still needs to be used with C64. The spindle is originally under
C64, and follow S code command; under C64+C60, follow the Pr1721 command.

CNC and PLC Interface – 9


机床产品/Machine Tool Products

PLC Interface.

No Title Description

C061 Spindle When C61 is ON, the spindle positioning function is executed. This function must be
Orientat equipped with position encoder on the spindle side or the gear ratio is 1:1. C61 can be
ion Stop disabled only when positioning completed; during positioning, press Reset (C37 ON) will
not interrupt the positioning action.
General Spindle
1. Pr1741 sets the speed of spindle positioning. After the spindle reaches the positioning
speed, it starts to detect the signal. Pr1751 sets the spindle positioning offset angle.
This angle is the offset angle in respect to the index signal. After replacing the motor,
encoder, or belt, this parameter must be re-calibrated; Pr1761 sets the spindle
positioning time; S61 is the spindle positioning completion signal. When C61 is ON, the
spindle will stop first and then start positioning from stationary.
2. Pr1771 is invalid after version 10.116.26A, 10.116.36I.
3. Spindle positioning angle description:

General Serial Spindle


1. Pr1791= 1~2, the positioning action is same as general spindle.
2. Pr1791= 3, the first positioning actin is same as general spindle. After the second time,
the positioning can be reached within one revolution by using the acceleration of
Pr1801 / Pr1831 / Pr1841. The positioning angle is Pr1751. Since the whole process is
position control, the controller can directly position the spindle to the set value even if
the spindle is running at high speed.
3. When the positioning is completed, S61 is ON, and the spindle angle is displayed as the
setting of "Pr1751"
4. spindle positioning angle description: same as the general spindle
Syntec Serial Spindle
1. Use the built-in spindle quick positioning function in the driver.
2. The spindle positioning angle is determined by Pr1771.
3. Syntec M2 Pr1771 will be synchronized with the driver P6-20. The rules are as follows:
a. Power on, the P6-20 of the driver is synchronized to Pr1771~Pr1776 for the first
time,

CNC and PLC Interface – 10


机床产品/Machine Tool Products

PLC Interface.

No Title Description

b. Afterwards, no matter modifying the controller parameters (Pr1771~Pr1776) or


the driver parameters (P6-20), it will be synchronized in both sides.
c. Syntec M3 has no P6-20 parameters, so there will be no such synchronous
action.
4. Pr1751 is invalid and must be set to 0, otherwise system issue SPD-026 alarm.
5. After positioning is completed, the spindle angle is displayed as 0 degrees.
6. Spindle positioning angle description:

Any point high speed positioning function


1. G10 L20 P0 R_ can be used to modify the positioning angle dynamically and display it
synchronously at #1610.
2. M19 C_ : The standard arbitrary point positioning function provided by the controller. It
needs to register M0019 as Macro to use. (ex. Pr3601 set as 19).
3. The actual specifications of M0019 are as follows:
a. Read the C argument and set the spindle positioning angle through G10 L20 P0
R#3. (G10 L20 detailed usage please see the development manual)
b. As above, if there is no C argument, the default angle is set by Pr1751~Pr1756,
that is, in a. #3 will be replaced by Pr1751~Pr1756.
c. After the positioning angle is determined, issue M19 to PLC for triggering C61 ON
to perform positioning. (PLC needs to cooperate with C61 ON)
4. Support positioning when the spindle is rotating clockwise (counterclockwise), that is,
directly position when C64 (C65) is ON.
5. The positioning speed and acceleration are controlled by the driver and are not
affected by the controller parameter setting.
6. After positioning is executed, the positioning angle is restored to the angle set by the
parameter.
7. For Syntec M2 spindle, the driver firmware must be updated to version 1.4.2 and above.
Operating restrictions
1. In the tapping mode, this C Bit is invalid.

CNC and PLC Interface – 11


机床产品/Machine Tool Products

PLC Interface.

No Title Description

2. Because the controller will synchronize the coordinates when C63 is switched, it is
recommended to use this function in the case of C63 OFF. Otherwise, the error
coordinate synchronization may cause, and the machining action is not as expected
after the positioning is completed.
Version compatibility description
1. Refer to the page "Spindle Application - Spindle Positioning (C61)".

C062® Skip When C62 is ON, the measurement escape command G31 will be recording the current
Signal mechanical position and interrupt the G31 action, then jump directly to the next block to
State continue execution. If there are multiple G31 to be triggered in the program, it is
recommended that C62 is upper triggered, preventing multiple G31 from being tripped
within the same C62_ON.

C063 Spindle For non-inverter spindle type (Pr1791~≠0, 5, 6, 7), this C BIT ON means that the spindle is
OFF switched to the position control mode. Now controller will perform mechanical coordinate
synchronization (motor feedback synchronize back to the mechanical coordinate); but
when C BIT is OFF, it means to switch back to the spindle speed control mode, and its
clockwise and counterclockwise rotation control is determined by C64/C65.
Compatibility change:
1. Version 10.116 and before, when using M Code to switch the spindle C/S axis conversion,
it is recommended that C38 in the PLC wait for S63 to ensure the correctness of the position
control mode.
2. Version 9.x and before, the position control mode can be switched without using C63, but
should follow the behavior of #1820 first turn on then turn off later to synchronize the
coordinates, in order to ensure the correctness of the mechanical coordinates.
Operating restrictions:
In tapping mode, this C Bit is invalid.

C064 Rotatin For non-inverter spindle type (Pr1791~≠0, 5, 7), this signal is the spindle clockwise rotation
g the command.
spindle
In order to correctly use the spindle speed arrival check function Pr1991~, even if it is a
clockwi
variable frequency spindle, this C Bit must be triggered to notify the system spindle to enter
se
the running state.
Operating restrictions:
In the tapping mode, this C Bit is invalid.

CNC and PLC Interface – 12


机床产品/Machine Tool Products

PLC Interface.

No Title Description

C065 Rotatin For non-inverter spindle type (Pr1791~≠0, 5, 7), this signal is the spindle counterclockwise
g the rotation command.
spindle
In order to correctly use the spindle speed arrival check function Pr1991~, even if it is a
counter
variable frequency spindle, this C Bit must be triggered to notify the system spindle to enter
clockwi
the running state.
se
Operating restrictions:
In the tapping mode, this C Bit is invalid.

C066® X axis 1. When this signal is ON, the PLC axis movement is executed. The movement
controll command of the NC program does consider the movement of the PLC axis, that is,
ed by the coordinate synchronization between the NC axis and the PLC axis, but the
PLC movement speed of the PLC axis at this time will not be added to display on HMI.
2. When this signal is OFF, the PLC axis movement is executed. The movement
command of the NC program does not consider the movement of the PLC axis, but
the movement speed of the PLC axis will be added to display on HMI.
3. Following item 2, since this signal is OFF, the axis is not declared as PLC control.
Therefore, when mode switches, the specific axis' PLC movement will be
interrupted.
4. When NC program and the PLC axis simultaneously command the same axis, the
axial command will have an additive effect, user should pay extra attention on this.
5. This signal can only be used in position control mode. If the axis is spindle, you need
to switch to position control mode to perform PLC axis, otherwise alram MOT-094
Current axial application do not support switching PLC axes.

C067® Y axis (As above)


controll
ed by
PLC

C068® Z axis (As above)


controll
ed by
PLC

C069® C (As above)


axis(6th
)
controll
ed by
PLC

C070

CNC and PLC Interface – 13


机床产品/Machine Tool Products

PLC Interface.

No Title Description

C071 Enable Under non-MPG mode, this signal is enabled (ON), and the input of the No. 1 MPG is used as
MPG an axial position command to move the corresponding axis.
No1
※ Under MPG mode, the default MPG channel is enabled, so this signal is disabled (OFF),
and the MPG signal cannot be blocked as the axial position command input.
※The channel signal can be turned off by setting the parameter Pr2021 to 0.

C072 Enable (As above)


MPG
No2

C073 Enable (As above)


MPG
No3

C074

C075

C076

C077

C078

C079 X HOME When HOME DOG signal is read from IO board, this C BIT needs to be ON, so need to add this
DOG C BIT in LADDER.

C080 Y HOME (As above)


DOG

C081 Z HOME (As above)


DOG

C082 C(6th) (As above)


HOME
DOG

CNC and PLC Interface – 14


机床产品/Machine Tool Products

PLC Interface.

No Title Description

C083 The The third software stroke limit switch. Off: protection disabled; On: protection enabled.
third Please refer to parameters 2441~2480 for further explanation. (Version 10.116.x and after it
softwar is renamed to the third software stroke limit)
e stroke
limit
switch

C084 Relieve When the controller is powered off, and axial movement exceeds the setting range of
the Pr1021~1040 which R940 is triggered, this can be relieved by this C Bit.
excessiv
e
amount
of
movem
ent
while
power-
off FLAG
.

C085

CNC and PLC Interface – 15


机床产品/Machine Tool Products

PLC Interface.

No Title Description

C086 CHPST Enabled Chopping function, relative parameter:Pr3951~3956,safety cautions as below;


1. Valid version: 10.118.19(Include) and before.
2. Cannot be mixed with the first path G81.1.
3. When C86 Off → On, it means the Chopping function is enabled. Chopping axis
image will move to the reference point first, and then move back and forth between
up and down vertex.
4. When C86 On → Off, it means the Chopping function is , and the Chopping axis will
move to the lower vertex first and then back to the R point.
5. If the emergency stop (C36) is pushed during the Chopping process, the Chopping
axis will stop immediately.
6. If the controller is reset (C37) during Chopping, the Chopping axis will move back to
the specified R point coordinates before stopping.
7. When the controller has an alarm, the Chopping axis will act according to the alarm
urgency level:
a. The alarm that makes system enter Not Ready State (Servo Off), the
Chopping axis will stop immediately.
b. The alarm that stop the system from machining cycle, the Chopping axis will
move back to the specified R point coordinates before stopping.
c. The alarm does not stop the system from machining cycle, the Chopping axis
will work normally.
8. Chopping cannot be used at the RTCP mode, otherwise COR-342 alarm is issued.
9. When Chopping is in progress, the Chopping axis can no longer input other
movement commands, otherwise COR-339 alarm is issued.
a. Movement commands such as: G0, G1, G2/G3, G31, G53, and etc.
10. When Chopping is in process, the Chopping axis cannot change the coordinate data,
otherwise COR-340 alarm is issued.
a. Coordinate data such as: G54 P1~G54 P100, G92/G92.1, G10 L2, G10 L1300,
G68/G68.2/G68.3, #value(#1880~#1933, #20001~#20658), external coordinate
offset, MPG offset.
11. When the Chopping axis is in the PLC axis execution state, or as spindle, or it has
been specified by other path as the Chopping axis, COR-341 alarm will be issued.
12. Chopping axial does not support mirroring.

CNC and PLC Interface – 16


机床产品/Machine Tool Products

PLC Interface.

No Title Description

C087 CHLD Chopping Feedhold function


Valid version: 10.118.19 (include) and before.
When C87 On → Off while in movement, the Chopping axis will stop and return to the R
point; when C87 goes from Off → On, the Chopping axis action will activate again.
While feedhold, you may change the upper and lower vertex's coordinates. There can be
different actions when you change in different timings. Below are four possible situations:
• When the upper vertex coordinates are modified, during the axial movement from the
upper vertex to the lower vertex, the axis first moves to the lower vertex and then to the
new upper vertex coordinates.
When the axis moves to the lower vertex coordinates, the servo lag compensation
function will also be canceled at the same time. When the new upper vertex is reached,
the compensation will be activated again.

• When the lower vertex coordinates are modified during the axial movement from the
upper vertex to the lower vertex, the axis first moves to the upper vertex and then to the
new lower vertex coordinates.
When the axis moves to the upper vertex coordinates, the servo lag compensation
function will also be canceled at the same time. When the new lower vertex is reached,
the compensation will be activated again.

CNC and PLC Interface – 17


机床产品/Machine Tool Products

PLC Interface.

No Title Description

• When the upper vertex coordinates are modified during the axial movement from the
lower vertex to the upper vertex, the axis moves to the upper vertex first, then to the
lower vertex and the new upper vertex coordinates.
When the axis moves to the lower vertex coordinates, the servo lag compensation
function will also be canceled at the same time. When the new upper vertex is reached,
the compensation will be activated again.

• When the lower vertex coordinates are modified during the axial movement from the
lower vertex to the upper vertex, the axis moves directly to the new lower vertex
coordinates after moving to the upper vertex coordinates.
When the axis moves to the upper vertex coordinates, the servo lag compensation
function will also be canceled at the same time. When the new lower vertex is reached,
the compensation will be activated again.

C088 Disable Disable the screen saver after screen saver is already activatd by on this bit. The
Screen recommended igniting time is 500ms at least.(Only available on CE and EL system)
Saver Valid version: 10.114.53, 10.115.55, 10.114.50C

C089 Edit Prohibit edit program mode (Including MDI edit) 0: Allow program editing 1: Prohibit
inhibitio program edition.
n

C090 Progra Switch to program edit screen.


m Edit
Screen

C091 Graph Switch to graphical dialog screen.


Dialog
Screen

CNC and PLC Interface – 18


机床产品/Machine Tool Products

PLC Interface.

No Title Description

C092 Monitor Switch to program processing monitor screen.


Screen

C093 Position Switch to Position Monitor screen


Screen

C094 Tool Switch to Tool Offset screen


Offset
Screen

C095

C096 File Switch to File Management screen


Manage
ment
Screen

C097

C098

C099

C100

C101~ Macro Mapping to the macro system variables (#6001~#6032)


C132 mappin
g
variable

C133 Axis First path switch function


Exchang
Enable axis exchange status of two axis assigned by Pr3721 & Pr3722.
e
Request
1

C134 Axis Second path switch function


Exchang
Enable axis exchange of two axis assigned by Pr3726 & Pr3727.
e
Request
2

CNC and PLC Interface – 19


机床产品/Machine Tool Products

PLC Interface.

No Title Description

C135 Axis Third path switch function


Exchang
Enable axis exchange of two axis assigned by Pr3731 & Pr3732.
e
Request
3

C136 Axis Fourth path switch function


Exchang
Enable axis exchange of two axis assigned by Pr3736 & Pr3737.
e
Request
4

C137 1st Tensi Two axis designated by Pr2901、Pr2902 will enter tension control state.
on
Control
Switch

C138 2nd Ten Two axis designated by Pr2903、Pr2904 will enter tension control state.
sion
Control
Switch

C139

C140 4th Axis The 4th axis machine positive hardware limit, when this FLAG ON controller will
OT + automatically enters Feedhold state. Meanwhile, it will not accept the JOG command or
MPG command in this direction, and can be retracted only in the opposite direction.

C141 4th Axis (As above)


OT -

C142 5th Axis (As above)


OT +

C143 5th Axis (As above)


OT -

C144 7th Axis (As above)


OT +

CNC and PLC Interface – 20


机床产品/Machine Tool Products

PLC Interface.

No Title Description

C145 7th Axis (As above)


OT -

C146 8th Axis (As above)


OT +

C147 8th Axis (As above)


OT -

C148 9th Axis (As above)


OT +

C149 9th Axis (As above)


OT -

C150 10th Axis (As above)


OT +

C151 10th Axis (As above)


OT -

C152 11th Axis (As above)


OT +

C153 11th Axis (As above)


OT -

C154 12th Axis (As above)


OT +

C155 12th Axis (As above)


OT -

C156 13th Axis (As above)


OT +

C157 13th Axis (As above)


OT -

CNC and PLC Interface – 21


机床产品/Machine Tool Products

PLC Interface.

No Title Description

C158 14th Axis (As above)


OT +

C159 14th Axis (As above)


OT -

C160 15th Axis (As above)


OT +

C161 15th Axis (As above)


OT -

C162 16th Axis (As above)


OT +

C163 16th Axis (As above)


OT -

C164 17th (As above)


Axis OT
+

C165 17th (As above)


Axis OT
-

C166 18th (As above)


Axis OT
+

C167 18th (As above)


Axis OT
-

C168

C169

C170® 4th Axis User JOG MODE, press the 4th Axis JOG+ button on the panel. When this FLAG is ON in the
JOG + LADDER, controller will move along this direction.

CNC and PLC Interface – 22


机床产品/Machine Tool Products

PLC Interface.

No Title Description

C171® 4th Axis (As above)


JOG -

C172® 5th Axis (As above)


JOG +

C173® 5th Axis (As above)


JOG -

C174® 7th Axis (As above)


JOG +

C175® 7th Axis (As above)


JOG -

C176® 8th Axis (As above)


JOG +

C177® 8th Axis (As above)


JOG -

C178® 9th Axis (As above)


JOG +

C179® 9th JOG (As above)


-

C180® 10th Axis (As above)


JOG +

C181® 10th Axis (As above)


JOG -

C182® 11th Axis (As above)


JOG +

C183® 11th Axis (As above)


JOG -

CNC and PLC Interface – 23


机床产品/Machine Tool Products

PLC Interface.

No Title Description

C184® 12th Axis (As above)


JOG +

C185® 12th Axis (As above)


JOG -

C186® 13th Axis (As above)


JOG +

C187® 13th Axis (As above)


JOG -

C188® 14th Axis (As above)


JOG +

C189® 14th Axis (As above)


JOG -

C190® 15th Axis (As above)


JOG +

C191® 15th Axis (As above)


JOG -

C192® 16th Axis (As above)


JOG +

C193® 16th Axis (As above)


JOG -

C194 17th (As above)


Axis
JOG +

C195 17th (As above)


Axis
JOG -

CNC and PLC Interface – 24


机床产品/Machine Tool Products

PLC Interface.

No Title Description

C196 18th (As above)


Axis
JOG +

C197 18th (As above)


Axis
JOG -

C198

C199

C200 4th Axis When HOME DOG is read from IO board, LADDER needs to trigger this C BIT.
Home
Dog

C201 5th Axis (As above)


Home
Dog

C202 7th Axis (As above)


Home
Dog

C203 8th Axis (As above)


Home
Dog

C204 9th Axis (As above)


Home
Dog

C205 10th Axis (As above)


Home
Dog

C206 11th Axis (As above)


Home
Dog

CNC and PLC Interface – 25


机床产品/Machine Tool Products

PLC Interface.

No Title Description

C207 12th Axis (As above)


Home
Dog

C208 13th Axis (As above)


Home
Dog

C209 14th Axis (As above)


Home
Dog

C210 15th Axis (As above)


Home
Dog

C211 16th Axis (As above)


Home
Dog

C212 17th Axis (As above)


Home
Dog

C213 18th (As above)


Axis
Home
Dog

C214

C215 4th Axis The 4th axis' axial MPG selection. When this FLAG is ON, controller will input pulse of the
MPG MPG and drive the 4th axis to move in relative displacement.
Selectio
n

C216 5th Axis (As above)


MPG
Selectio
n

CNC and PLC Interface – 26


机床产品/Machine Tool Products

PLC Interface.

No Title Description

C217 7th Axis (As above)


MPG
Selectio
n

C218 8th Axis (As above)


MPG
Selectio
n

C219 9th Axis (As above)


MPG
Selectio
n

C220 10th Axis (As above)


MPG
Selectio
n

C221 11th Axis (As above)


MPG
Selectio
n

C222 12th Axis (As above)


MPG
Selectio
n

C223 13th Axis (As above)


MPG
Selectio
n

C224 14th Axis (As above)


MPG
Selectio
n

CNC and PLC Interface – 27


机床产品/Machine Tool Products

PLC Interface.

No Title Description

C225 15th Axis (As above)


MPG
Selectio
n

C226 16th Axis (As above)


MPG
Selectio
n

C227 17th Axis (As above)


MPG
Selectio
n

C228 18th Axis (As above)


MPG
Selectio
n

C229

C230 Set 4th Set the axial machine coordinates, the content filled is determined by R38.
Axis Restrictions:
Machin
e Do not use C025~ and C230~ to set machine position when machining.
Position Compatibility:
Version 10.118.70E or befoe
Can use C025~and C230~ to set machine position when machining.
Version 10.118.70F or later
Using C025~ and C230~ to set machine position when machining, OP-033 alarm will be
issued.

C231 Set 5th (As above)


Axis
Machin
e
Position

CNC and PLC Interface – 28


机床产品/Machine Tool Products

PLC Interface.

No Title Description

C232 Set 7th (As above)


Axis
Machin
e
Position

C233 Set 8th (As above)


Axis
Machin
e
Position

C234 Set 9th (As above)


Axis
Machin
e
Position

C235 Set 10th (As above)


Axis
Machin
e
Position

C236 Set 11th (As above)


Axis
Machin
e
Position

C237 Set 12th (As above)


Axis
Machin
e
Position

C238 Set 13th (As above)


Axis
Machin
e
Position

CNC and PLC Interface – 29


机床产品/Machine Tool Products

PLC Interface.

No Title Description

C239 Set 14th (As above)


Axis
Machin
e
Position

C240 Set 15th (As above)


Axis
Machin
e
Position

C241 Set 16th (As above)


Axis
Machin
e
Position

C242 Set 17th (As above)


Axis
Machine
Position

C243 Set 18th (As above)


Axis
Machine
Position

C244

C245 4th Axis When axial trips from control mode, and enters the feedback monitoring mode. Now
MANUA controller can no longer send commands to the axis. If the axis moves due to external force,
L the coordinates on MHI will also be updated.
CONTR Remark:
OL When the axis is switched back to the control mode from the feedback monitoring mode, if
the machine is still moving, will cause zero speed check fails (Pr901~), the system will issue
a MOT-020/MOT-021 alarm, and the axis needs to redo homing.

C246 5th Axis (As above)


MANUA
L
CONTR
OL

CNC and PLC Interface – 30


机床产品/Machine Tool Products

PLC Interface.

No Title Description

C247 7th Axis (As above)


MANUA
L
CONTR
OL

C248 8th Axis (As above)


MANUA
L
CONTR
OL

C249 9th Axis (As above)


MANUA
L
CONTR
OL

C250 10th Axis (As above)


MANUA
L
CONTR
OL

C251 11th Axis (As above)


MANUA
L
CONTR
OL

C252 12th Axis (As above)


MANUA
L
CONTR
OL

C253 13th Axis (As above)


MANUA
L
CONTR
OL

CNC and PLC Interface – 31


机床产品/Machine Tool Products

PLC Interface.

No Title Description

C254 14th Axis (As above)


MANUA
L
CONTR
OL

C255 15th Axis (As above)


MANUA
L
CONTR
OL

C256 16th Axis (As above)


MANUA
L
CONTR
OL

C257 17th Axis (As above)


MANUA
L
CONTR
OL

C258 18th Axis (As above)


MANUA
L
CONTR
OL

C259

CNC and PLC Interface – 32


机床产品/Machine Tool Products

PLC Interface.

No Title Description

C260® 4th axis 1. When this signal is ON, the PLC axis movement is executed. The movement
controll command of the NC program does consider the movement of the PLC axis, that is,
ed by the coordinate synchronization between the NC axis and the PLC axis, but the
PLC movement speed of the PLC axis at this time will not be added to display on HMI.
2. When this signal is OFF, the PLC axis movement is executed. The movement
command of the NC program does not consider the movement of the PLC axis, but
the movement speed of the PLC axis will be added to display on HMI.
3. Following item 2, since this signal is OFF, the axis is not declared as PLC control.
Therefore, when mode switches, the specific axis' PLC movement will be
interrupted.
4. When NC program and the PLC axis simultaneously command the same axis, the
axial command will have an additive effect, user should pay extra attention on this.
5. This signal can only be used in position control mode. If the axis is spindle, you need
to switch to position control mode to perform PLC axis, otherwise alram MOT-094
Current axial application do not support switching PLC axes.

C261® 5th axis (As above)


controll
ed by
PLC

C262® 7th axis (As above)


controll
ed by
PLC

C263® 8th axis (As above)


controll
ed by
PLC

C264® 9th axis (As above)


controll
ed by
PLC

C265® 10th axis (As above)


controll
ed by
PLC

CNC and PLC Interface – 33


机床产品/Machine Tool Products

PLC Interface.

No Title Description

C266® 11th axis (As above)


controll
ed by
PLC

C267® 12th axis (As above)


controll
ed by
PLC

C268® 13th axis (As above)


controll
ed by
PLC

C269® 14th axis (As above)


controll
ed by
PLC

C270® 15th axis (As above)


controll
ed by
PLC

C271® 16th axis (As above)


controll
ed by
PLC

C272 17th axis (As above)


controll
ed by
PLC

C273 18th axis (As above)


controll
ed by
PLC

CNC and PLC Interface – 34


机床产品/Machine Tool Products

PLC Interface.

No Title Description

C274 Enable Under non-MPG mode, this signal is enabled (ON), and the input of the No. 4 MPG is used as
MPG an axial position command to move the corresponding axis.
No4
※ Under MPG mode, the default MPG channel is enabled, so this signal is disabled (OFF),
and the MPG signal cannot be blocked as the axial position command input.
※The channel signal can be turned off by setting the parameter Pr2024 to 0.

C275 Enable (As above)


MPG
No5

C276 Enable (As above)


MPG
No6

C277 Enable (As above)


MPG
No7

C278

C279

C280

C281

C282

C283

C284

C285

C286

C287

C288

CNC and PLC Interface – 35


机床产品/Machine Tool Products

PLC Interface.

No Title Description

C289

C290

C291

C292

C293

C294

C295

C296

C297

C298

C299

C300 Reload The Reload ECam insertion point is modified in the R value. (For electronic cam function)
ECam

C301 Enable Enable the first group of electronic cams. When this Bit ON, the first group of electronic cam
1st will start executing, and the S Bit with same number will be ON; when this Bit is OFF, the
ECam ECam function will only be terminated until all curve paths are finished.

C302 Enable (As above)


2nd ECa
m

C303 Enable (As above)


3rd ECa
m

CNC and PLC Interface – 36


机床产品/Machine Tool Products

PLC Interface.

No Title Description

C304 Enable (As above)


4th
ECam

C305 Enable (As above)


5th ECa
m

C306 Enable (As above)


6th
ECam

C307 Enable (As above)


7th ECa
m

C308 Enable (As above)


8th
ECam

C309

C310

C311

C312

C313

C314

C315

C316

C317~
C319

CNC and PLC Interface – 37


机床产品/Machine Tool Products

PLC Interface.

No Title Description

C320~ For Robot kernel usage area (not customizable area)


C350 robot
kernel

C351~
C400

C401~ Standar Mapping to the standard PC keyboard scan code 1~88


C488 d
keyboar
d Scan
Code

C489 OEM Application self-defined extension keys 89-111 are user defined by individual applications.
extende
d key
Mapping to PC keyboard ALT-1

C490 Mapping to PC keyboard ALT-2

C491 Mapping to PC keyboard ALT-3

C492 Mapping to PC keyboard ALT-4

C493 Mapping to PC keyboard ALT-5

C494 Mapping to PC keyboard ALT-6

C495 Mapping to PC keyboard ALT-7

C496 Mapping to PC keyboard ALT-8

C497 Mapping to PC keyboard ALT-9

C498 Mapping to PC keyboard ALT-0

C499 Mapping to PC keyboard ALT-B

C500 Mapping to PC keyboard ALT-V

CNC and PLC Interface – 38


机床产品/Machine Tool Products

PLC Interface.

No Title Description

C501 Mapping to PC keyboard ALT-E

C502 Mapping to PC keyboard ALT-F

C503 Mapping to PC keyboard ALT-I

C504 Mapping to PC keyboard ALT-J

C505 Mapping to PC keyboard ALT-K

C506 Mapping to PC keyboard ALT-L

C507 Mapping to PC keyboard ALT-W

C508 Mapping to PC keyboard ALT-N

C509 Mapping to PC keyboard ALT-S

C510 Mapping to PC keyboard ALT-T

C511 Mapping to PC keyboard ALT-U

All the C bits will be read simultaneously and only the C bit with ® mark is processed at real time. Other signals will
be send to the stack after being read, then run by sequence non-simultaneously.

1.2 S Bit Interface (From CNC To PLC)


No Title Description

S000 Cycle Start During machining (BUSY status), this FLAG will be ON.
Light

S001 Feed Hold Pause Machining (FEEDHOLD status),this FLAG will be ON.
Light

S002 Block stop During single block stop (BLOCK STOP status),this FLAG will be ON.

S003 Feedhold When this FLAG is ON,it indicates that feedhold status is prohibited now.
inhibit

CNC and PLC Interface – 39


机床产品/Machine Tool Products

PLC Interface.

No Title Description

S004 Rigid First spindle is on rigid tapping mode.


Tapping

S005

S006 X Axis Busy When this FLAG is ON, it indicates that the X-axis manual function (MPG/JOG/
Homing/PLC axis) is being executed, and the new manual command cannot be
accepted. When this FLAG is OFF, the X-axis is in the Idle state and is allowed to
accept new manual command.

S007 Y Axis Busy (As above)

S008 Z Axis Busy (As above)

S009 C(6th) Axis (As above)


Busy

S010

S011 2nd of When Pr3810 (activating the same block M code simultaneous execution function) is
Multiple M set to 1, and the controller executes the second M code in the same block, this FLAG
code read will be ON, and inform LADDER to execute M code, the content of M code is stored in
R2051. After the controller issues this FLAG, it will wait until the C BIT FLAG ON of M
code FIN, then starting to execute the next BLOCK.

S012 3rd of (As above, and M mode content is stored in R2052)


Multiple M
code read

S013 4th of (As above, and M mode content is stored in R2053)


Multiple M
code read

S014 5th of (As above, and M mode content is stored in R2054)


Multiple M
code read

S015

CNC and PLC Interface – 40


机床产品/Machine Tool Products

PLC Interface.

No Title Description

S016 X Axis Home X Homing OK, X axis HOME process finished, and this FLAG will be ON. The software
OK stroke limit protection will be activated after homing completed. Therefore, in the
case that this S BIT FLAG is not ON, LADDER should write not allowed to cycle start
and give homing not complete alarm.

S017 Y Axis Home (As above)


OK

S018 Z Axis Home (As above)


OK

S019 C(6th) Axis (As above)


Home OK

S020

S021 During Tool After entering the tool retract function and leaving the original machining path, this
Withdraw FLAG will be ON; until the tool returned and repositioned to the original machining
program path, and this FLAG will be OFF.

S022 Tool deviates When system status is FeedHold or BlockStop, this FLAG will be ON after the tool
from deviates from the original path. After the tool reposition is done and return to the
reposition original path, then the FLAG will be set to OFF.
point

S023 Servo Not • Description


Ready • When all the axes(except axes in spindle mode or watch mode) of CNC
system are in servo-on state, this S bit will be off.
• When NOT all the axes(except axes in spindle mode or watch mode) of
CNC system are in servo-on state, this S bit will be on.
• Attention note
• Valid version: 10.118.24A, 10.118.25A, 10.118.28N, 10.118.37 and later.
• In 10.118.40 and later version, when Pr741 is set to 1, this status is not
including the axis of axis group of independent operation.

S024

S025

S026

CNC and PLC Interface – 41


机床产品/Machine Tool Products

PLC Interface.

No Title Description

S027

S028

S029 M Code Read When CNC executes M CODE, this FLAG will be ON, and tell LADDER to execute M
CODE. The content of M CODE is saved in R1. After CNC issues this FLAG, it has to wait
until M CODE FIN's C BIT FLAG ON, then executes the next BLOCK.

CNC and PLC Interface – 42


机床产品/Machine Tool Products

PLC Interface.

No Title Description

S030 Distribution After G code has finished moving command in single block, system will send
End DEN(distribution end) signal, usually used when G and M codes move simultaneously
and need to wait for the completion of the movement command.
Example: G01 X100. M9 // G and M codes are on the same line
When X axis really reaches 100.(G code command in this block has been finished), S30
will be ON, M9 can know that G01 command is finished by S30 and finish M code
action.
Ladder diagram writing example
Assuming that the M9 command is to turn off the cutting water, and it needs to wait
for the completion of the movement command, it is necessary to check S30 first.

Assuming that the M8 command is to turn on the work light, there is no need to wait
for the completion of the movement command, and there is no need to check S30.

After that, the combined judgment result of A109 and A108 will be updated to A38 as
the judgment of whether the M code is completed.

And wait for the M, S, T codes to be completed before turning C38 ON. If one of them
has not been completed, C38 remains OFF.

Precautions
1. If the PLC turns off C38 when it reads the M code, no matter the GM code is in the
same line or only the M code, the system will check whether the NC has been
distribution end or not, and after the NC has been distribution end, set S30 to ON.
2. If the PLC turns C38 ON, no matter the line is the same line as GM or only the M
code, the system will set S30 to OFF and start to execute the next line of
instructions.
If the M code instruction does not need to wait for the completion of the
movement instruction, there is no need to check S30.

CNC and PLC Interface – 43


机床产品/Machine Tool Products

PLC Interface.

No Title Description

S031 Alarm • When an alarm appears in CNC or driver, and makes the system must stop or
feedhold, and this flag will be ON.
• In 10.118.40 and later version, when Pr741 is set to 1, this flag is not including
the axis group of independent operation has alarm.
Controller alarm:
CNC: COR alarm, MOT alarm, SPD alarm, OP alarm, COM alarm;
ROT: ROT alarm;
SPLC: SERIALPLCAXIS alarm;
SRI: SRI alarm;
Laser marking: LaserCtrl alarm.

S032 Reset 1. When press RESET on the panel, this FLAG will send a ONE SHOT signal.
2. When _Reset Action is triggered, this FLAG will send a ONE SHOT signal.

S033 NC Ready • After the boot is completed and the system is normal, NC READY FLAG will be
ON.
• In 10.118.40 and later version, when Pr741 is set to 1, this status is nothing to
do with the axis group of independent operation.

S034 Require Part When the required workpieces number is reached, this S FLAG will be ON, and when
Count Cycle Start or Reset, this FLAG will be OFF.
Reached

S035 The Part When main program reads a part count M code (default as M99), this FLAG sends out
Count M- a ON/OFF one shot signal.
code in Main
Relative information: Parameter3804, C39
Program

S036 In Guidance When CNCis under Guidance Function mode, this BITwill be ON.
Mode

S037 Loss data When the user data (Registry.dat) is lost, this Bit will be ON.

S038 MACRO WAIT When system enters waiting mode (MACRO function WAIT() is read)

S039

S040

CNC and PLC Interface – 44


机床产品/Machine Tool Products

PLC Interface.

No Title Description

S041 PLC Alarm When the PLC has an alarm, this flag will be ON, and when the PLC alarm disappears,
the flag will be OFF.
• 10.118.40D, 10.118.42 and version before:
The first 16 bits (R4x.0~R4x.15) of R40~R49 are PLC alarm messages, and the
last 16 bits are PLC warning message. The last 16 bits will not trigger S41.
• 10.118.40E, 10.118.43 and version after:
The first 16 bits (R4x.0~R4x.15) of R40~R49 are PLC alarm messages, and the
last 16 bits are can be either alarm or warning depended on the setting of
Pr3249.
When the last 16 bits are alarm messages, the S41 can be triggered.

S042 CNC Warning • When the controller or driver has an warning, this flag will be ON, and when all
Warnings disappear, the flag will be OFF.
• In 10.118.40 and later version, when Pr741 is set to 1, this flag is not including
the axis group of independent operation has warning.

S043 PLC Warning When PLC has an alarm, this flag ON, and when all alarms disappear, the flag OFF.
• 10.118.40D, 10.118.42 and version before:
The first 16 bits (R4x.0~R4x.15) of R40~R49 are PLC alarm messages, and the
last 16 bits are PLC warning message. The last 16 bits will trigger S43.
• 10.118.40E, 10.118.43 and version after:
The first 16 bits (R4x.0~R4x.15) of R40~R49 are PLC alarm messages, and the
last 16 bits can be either alarms or warnings depended on the setting of
Pr3249.
When the last 16 bits are warning messages, the S43 can be triggered.

S044

S045

S046

S047

S048

S049

S050

CNC and PLC Interface – 45


机床产品/Machine Tool Products

PLC Interface.

No Title Description

S051

S052

S053 B Code Read This function is enabled by Pr3806.


When CNC executes to B CODE, this FLAG will be ON, and LADDER will be told to
execute B CODE, the content of B CODE will be placed in R5. After the CNC sends this
FLAG, it will wait until the B CODE FINISH (C38)'s C BIT FLAG ON, then start executing
the next BLOCK.
Only the first MST channel supports thePLC B CODE execution (refer to Pr721~Pr730)

S054 S Code Read When CNC executes to S CODE, this FLAG will be ON, and LADDER will be told to
execute S CODE, the content of S CODE will be placed in R2. After CNC issues this
FLAG, it will wait until the S CODE FINISH (C38)'s C BIT FLAG ON, then start executing
the next BLOCK.

S055

S056

S057

S058

CNC and PLC Interface – 46


机床产品/Machine Tool Products

PLC Interface.

No Title Description

S059 Spindle Spindle Speed Arrival when Threading.


Threading
Speed Arrival Spindle CW/CCW Signal (C64/ Spindle Speed Arrival Condition
C65, R583.x/R584.x)

On The speed difference of spindle feedback Fbk


and spindle command Cmd is less than the
command speed Cmd multiplies a speed
arrival check range percentage (Pr1992 or
Pr1993).。

i.e. | Fdbk - Cmd | < Cmd * Pr1993 * 0.01

Off Spindle feedback less than 50 RPM.

i.e. Fdbk < 50 (RPM)

When the spindle is not equipped with an encoder (Pr1711~ = 0), the spindle speed
arrival determined with following conditions.

Spindle Type Spindle Speed Arrival Condition

Serial Bus Spindle Directly reflects the spindle speed arrival


information provided by driver.
(In serial communication, it can be known from
the V_CMP bit in the status of the driver packet,
S59 reacts to this bit, and the PLC can be used.)

Pulse Train Spindle Controller side considers spindle speed arrived


S59 On. (CNC's S59 is always On)
If you want to check the spindle speed arrival, you
can send an O bit to the TB16IN through the
driver, PLC can get this information, and check the
speed arrival in PLC.

S060 1st Set 1st set spindle superimposition completion signal.


Spindle
Superimposi
tion Finish

CNC and PLC Interface – 47


机床产品/Machine Tool Products

PLC Interface.

No Title Description

S061 Spindle Spindle positioning completion signal


Orientation
Stop Finish

S062 1st Set 1st set spindle speed/angle synchronization is completed.


Spindle
Synchronizat
ion Finish

S063 Spindle axis When this S BIT is ON, it indicates that the spindle is in the position control mode;
mode when this S BIT is OFF, it indicates that the spindle is in the spindle speed control
mode.

CNC and PLC Interface – 48


机床产品/Machine Tool Products

PLC Interface.

No Title Description

S064 Spindle Spindle speed arrival signal while cutting.


Cutting
Speed Arrival Spindle CW/CCW Signal: C64/ Spindle Speed Arrival Criteria
C65, R583.x/R584.x

On The speed difference of spindle feedback Fbk


and spindle command Cmd is less than the
command speed Cmd multiplies a speed
arrival check range percentage (Pr1992 or
Pr1993).。

i.e. | Fbk - Cmd | < Cmd * Pr1992 * 0.01

Off Spindle speed feedback < 50RPM

i.e. Fbk < 50 (RPM)

When the spindle is not equipped with an encoder (Pr1711~ = 0), the spindle speed
arrival determined with following conditions.

Spindle Type Spindle Speed Arrival Criteria

Serial Bus Spindle Directly reflects the spindle speed arrival


information provided by driver.
(In serial communication, it can be known from
the V_CMP bit in the status of the driver packet,
S59 reacts to this bit, and the PLC can be used.)

Pulse Train Spindle Controller side considers spindle speed arrived


S64 On. (CNC's S64 is always On)
If you want to check the spindle speed arrival, you
can send an O bit to the TB16IN through the
driver, PLC can get this information, and check the
speed arrival in PLC.

S065

S066

S067

CNC and PLC Interface – 49


机床产品/Machine Tool Products

PLC Interface.

No Title Description

S068

S069 T Code Read When the controller executes to T CODE, this flag will be ON, and inform ladder to
execute T CODE, the content of T CODE will be stored in R3.
After the controller issues this flag, it will wait until C38 ON, then start to execute the
next block.

S070 At start point • When this flag is ON, it indicates it's not in processing status. When it's
processing, S70 will be OFF.
• S70 will be ON after receiving process finish signal, like Reset or M30.
• This flag can monitor the status of single axis group which is specified by R21.
• When R21 = 0, it corresponds to 1st axis group.
• When R21 = N, it corresponds to Nth axis group.

S071 At end point • When this flag is ON, it indicates it's not in processing status or the processing
is completed.
• S71 will be OFF when it's processing, and be ON when the processing is
completed.
• This flag can monitor the status of single axis group which is specified by R21.
• When R21 = 0, it corresponds to 1st axis group.
• When R21 = N, it corresponds to Nth axis group.

S072 2nd Set 2nd set spindle speed/angle synchronization is completed.


Spindle
Synchronizat
ion Finish

S073 3rd Set 3rd set spindle speed/angle synchronization is completed.


Spindle
Synchronizat
ion Finish

S074

S075

S076

S077

S078

CNC and PLC Interface – 50


机床产品/Machine Tool Products

PLC Interface.

No Title Description

S079

S080 M00 Signal M00 is read flag. This flag is automatically enabled after the M code is read until the
system reset (Reset) or M Code Finish (C38 On).
Note:
1. Valid version: 10.114.56U, 10.116.0R, 10.116.10C, 10.116.13
2. Only support the first MST channel.
3. To ensure that the system properly enables this flag, it is recommended that in PLC
applications the C38 is off until the kernel enables this flag.

S081 M01 Signal M01 is read flag. When the optional stop function (C44) is activated, this flag will be
automatically enabled after the M code is read until the system reset (Reset) or M
Code Finish (C38 On).
Note: Same as S080.

S082 M02 Signal M02 is read flag. this flag will be automatically enabled after the M code is read until
the system reset (Reset) or M Code Finish (C38 On).
Note: Same as S080.

S083 M30 Signal M30 is read flag. this flag will be automatically enabled after the M code is read until
the system reset (Reset) or M Code Finish (C38 On).
Note1: Same as S080.
Note2: If below conditions both fulfilled, M30 will enable the program return function
(Valid version: 10.116.41, 10.117.41 and after). M30 will not be placed in R1 for
LADDER to read, and S083 is not supported at this time.
1. Pr732 * Multi-program MST channel, set to 1
2. C015 ON

S084

S085

S086

S087

S088 Screen Saver Screen saver mode enabled. (Only in CE and EL system)

S089

CNC and PLC Interface – 51


机床产品/Machine Tool Products

PLC Interface.

No Title Description

S090

S091

S092

S093

S094

S095

S096

S097 Exe File CRC When this signal is ON, it indicates that system's specific file encounters CRC check
error error. This condition usually occurs. It may be that the system is infected with the
virus and cannot be recovered. The relevant records will be stored in C:
\CRC_Chk.log.
Compatibility change:
Valid version starts from 10.114.52.

S098 OCAPI Server Whether OCAPIServer is activated. When OCAPIServer is activated, this Bit is set to
is Running True; and when OCAPIServer is deactivated, this Bit is set to False.

S099 Dipole Whether Dipole connection is in progress. When any remote program is connected to
connection the kernel, this Bit is set to 1; and when no remote program is connected, this Bit is
in use set to False.

S100 DOS USB in on: DOS USB in use; off: DOS USB not in use.
use

S101~ Mapping macro system variable (#6001~#6032)


S132

S133 Axis First set of axis exchange successfully flag.


Exchange
The axis exchange is completed inside the system, and this state changes.
Status 1

S134 Axis Second set of axis exchange successfully flag.


Exchange
The axis exchange is completed inside the system, and this state changes.
Status 2

CNC and PLC Interface – 52


机床产品/Machine Tool Products

PLC Interface.

No Title Description

S135 Axis Third set of axis exchange successfully flag.


Exchange
The axis exchange is completed inside the system, and this state changes.
Status 3

S136 Axis Fourth set of axis exchange successfully flag.


Exchange
The axis exchange is completed inside the system, and this state changes.
Status 4

S137

S138

S139

S140 4th Axis 4th axis Homing OK, 4th axis axis HOME process finished, and this FLAG will be ON.
Home OK The software stroke limit protection will be activated after homing completed.
Therefore, in the case that this S BIT FLAG is not ON, LADDER should write not
allowed to cycle start and give homing not complete alarm.

S141 5th Axis (As above)


Home OK

S142 7th Axis (As above)


Home OK

S143 8th Axis (As above)


Home OK

S144 9th Axis (As above)


Home OK

S145 10th Axis (As above)


Home OK

S146 11th Axis (As above)


Home OK

S147 12th Axis (As above)


Home OK

CNC and PLC Interface – 53


机床产品/Machine Tool Products

PLC Interface.

No Title Description

S148 13th Axis (As above)


Home OK

S149 14th Axis (As above)


Home OK

S150 15th Axis (As above)


Home OK

S151 16th Axis (As above)


Home OK

S152 17th Axis (As above)


Home OK

S153 18th Axis (As above)


Home OK

S154

S155 4th Axis Busy When this FLAG is ON, it indicates that the fourth axis is being executed, and a new
command cannot be accepted. When this FLAG is OFF, the fourth axis is in the Idle
state, allowing new commands to be accepted.

S156 5th Axis Busy (As above)

S157 7th Axis Busy (As above)

S158 8th Axis Busy (As above)

S159 9th Axis Busy (As above)

S160 10th Axis (As above)


Busy

S161 11th Axis (As above)


Busy

CNC and PLC Interface – 54


机床产品/Machine Tool Products

PLC Interface.

No Title Description

S162 12th Axis (As above)


Busy

S163 13th Axis (As above)


Busy

S164 14th Axis (As above)


Busy

S165 15th Axis (As above)


Busy

S166 16th Axis (As above)


Busy

S167 17th Axis (As above)


Busy

S168 18th Axis (As above)


Busy

S169

S170

CNC and PLC Interface – 55


机床产品/Machine Tool Products

PLC Interface.

No Title Description

S171~ Servo Alarm Alarm state for the port of motion card.
S186 State
Pulse Train Drives: This S bit will be activated when motion card does not receive
alarm signal.
Serial Bus Drives: This S bit will be activated when Servo Drive sens out a alarm
signal.
system reserved S171: Pulse Train Drive- Alarm state for the port 1; Serial Bus Drive-
The station number 1 drive.
S172: Pulse Train Drive- Alarm state for the port 2; Serial Bus Drive- The station
number 2 drive.

S186: Pulse Train Drive- Alarm state for the port 16; Serial Bus Drive- The station
number 16 drive.
Note:
This function does not support Servo6.

Operation Restriction:
1. The slot chassis type Servo6 axis card does not support this feature.
2. This function is only supported by pulse train type and M2 type.
3. Following from item 2, when using other communication types, please use
S31 and S42.
Pulse Train type:Indicates the signal status of the servo alarm contact
This S-Bit only reflects the status of the servo alarm contact corresponding to the axis
card port. When there is signal input, this S-Bit OFF; when there is no signal input, this
S-Bit ON. According to the parameter "Pr10 servo alarm contact type", the system will
trigger the corresponding axial "MOT-9 driver alarm" when this S-Bit ON/OFF is
triggered.

Servo Alarm Contact Port Alarm Signal S-17x System Alarm


Type

Pr10 = 0 ( A contact ) No ON No

Yes OFF MOT-9

Pr10 = 1 ( B contact ) No ON MOT-9

Yes OFF No

S171:Corresponding to the 1st axis card port.


S172:Corresponding to the 2nd axis card port

S186:Corresponding to the 16th axis card port

CNC and PLC Interface – 56


机床产品/Machine Tool Products

PLC Interface.

No Title Description

M2 Serial:Indicates the driver alarm state


If an M2 serial driver is used, the corresponding S-bit On will occur when a driver
alarm occurs.
S171:Corresponding to the driver station no. which is set to be 1.
S172:Corresponding to the driver station no. which is set to be 2.

S186:Corresponding to the driver station no. which is set to be 16.
i.e.:In the M2 serial environment, when the driver station number which set as 3
gives alarm, S173 will be On.

S190~ (System reserved area)


S290

S291 Axis Gantry The gantry calibration complete signal of the first group of gantry set. The system has
Calibration completed the calibration, then this state will be changed.
Status 1

S292 Axis Gantry The gantry calibration complete signal of the second group of gantry set. The system
Calibration has completed the calibration, then this state will be changed.
Status 2

S293 Axis Gantry The gantry calibration complete signal of the third group of gantry set. The system
Calibration has completed the calibration, then this state will be changed.
Status 3

S294 Axis Gantry The gantry calibration complete signal of the fourth group of gantry set. The system
Calibration has completed the calibration, then this state will be changed.
Status 4

S295 (System reserved area)



S299

S300 ECam Reload Reload the ECam insertion point R value. When this Bit is On, it means that reload is
Status completed and the electronic cam can be activated; when this Bit is Off, Reloading.

S301 1st ECam The first group of electronic cams is busy. When this Bit is On, it means that the first
Busy group of electronic cams are working; when this Bit Off, the cam relationship motion
between the master and slave axis is canceled.

CNC and PLC Interface – 57


机床产品/Machine Tool Products

PLC Interface.

No Title Description

S302 2nd ECam (As above) When this Bit On is on, it indicates that the first group of electronic cams
Busy are in use; when this Bit is off, the master and slave axis are not working according to
cam relationship.

S303 3rd ECam (As above)


Busy

S304 4th ECam (As above)


Busy

S305 5th ECam (As above)


Busy

S306 6th ECam (As above)


Busy

S307 7th ECam (As above)


Busy

S308 8th ECam (As above)


Busy

S309~
S319

S321~ For robot Robot kernel usage area (non-product customization area).
S250 kernel

S351~ Keyboard S Bit mapping to keyboard scan code, and now only S355~S374 are open.
S400 Sbit

S401~ Keyboard Mapping to the keyboard scan code 1~88.


488 Scan Code

~S511 Reserved for System reserved area.


CNC

CNC and PLC Interface – 58


机床产品/Machine Tool Products

PLC Interface.

1.3 PC Keyboard C/S Mapping

1.3.1 Basic Key Area


Esc F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 F11 F12
401 458 460 461 462 463 464 465 466 467 468 469 470

` 1 2 3 4 5 6 7 8 9 0 - = \ Back
441 402 403 404 405 406 407 408 409 410 411 412 413 443 414

Tab Q W E R T Y U I O P [ ] Enter
415 416 417 418 419 420 421 422 423 424 425 426 427 428

Cap A S D F G H J K L ; ‘
s
430 431 432 433 434 435 436 437 438 439 440
458

Shif Z X C V B N M , . / Shift
t
444 445 446 447 448 449 450 451 452 453 454

Ctrl Alt Space Alt Ctrl


429 456 457 456 429

1.3.2 Extension Key Area


Print Scroll Pause Num / * _
470 469 453 455 474

Insert Home Up 7 Home 8↑ 9 Up +


482 471 473 471 472 473 478

Delete End Down 4← 5 6→


483 479 481 475 476 477

↑ 1 End 2↓ 3 Down Enter


472 479 480 481 428

CNC and PLC Interface – 59


机床产品/Machine Tool Products

PLC Interface.

← ↓ → 0 .
475 480 477 482 483

1.4 R Register Interface

1.4.1 Resources Distribution Table


Number Instructions Reading/ Bit Permane
Writing Stora nt
Regulations ge Preservat
(HMI、PLC、 ion
MACRO)

R0~R39 CNCSystem Interface Defined Yes No


according to
the charts
below

R40~R49 PLC Alarm Message

R50~R80 User-defined Read/Write Yes No

R81~R100 Correspond to system parameters 3401~3420 Read Only Yes Yes

R101~R102 Tool Status (save in FRAM) Read/Write Yes Yes

R103~R192 Correspond to milling machine tool data Read/Write Yes Yes


T1~T90 (saved in FRAM)
User-defined (non milling machine)

R193~R255 User-defined (save in FRAM)

R256~R511 User-defined No

R512~R639 CNCSystem Interface Defined Yes No


according to
the charts
R640~R1023 No
below

R1000 Part Count Read/Write No Yes

CNC and PLC Interface – 60


机床产品/Machine Tool Products

PLC Interface.

Number Instructions Reading/ Bit Permane


Writing Stora nt
Regulations ge Preservat
(HMI、PLC、 ion
MACRO)

R1002 Required Part Count Read/Write

R1004 Total Part Count Read/Write

R1005~R1007 Controller ASCIICode Read Only

R1009~R1019 CNC system machining time/up time, please Read Only


refer to the descriptions of each R value.

R1024~R1032 Milling Machine: Occupied by the milling Read/Write No No


machine auto middle function/auto tool
presetting and measuring function.
Lathe: User-Defined

R1033~R2049 User-defined Read/Write No No

R2050~R2090 Pr3810=0:User-defined Read/Write No No

Pr3810=1: Occupied by the concurrent


multiple M codes executing function

R2091~R2099 User-defined Read/Write No No

R2100~R3100 Pr3228=0: User-defined Read/Write No No

Pr3228=1: Occupied by the tool managing Yes


function

R3101~R4095 User-defined Read/Write No No

R4096~R5999 CNC System Interface Defined No No


according to
the charts
below

R6000~R7999 User-defined (save in FRAM) Read/Write No Yes

CNC and PLC Interface – 61


机床产品/Machine Tool Products

PLC Interface.

Number Instructions Reading/ Bit Permane


Writing Stora nt
Regulations ge Preservat
(HMI、PLC、 ion
MACRO)

R8000~R8500 Correspond to system parameters 5001~5500 Read Only No No

R8501~R8999 CNC System Interface Read Only No No

R9000~R9999 Robot Kernel Operating Area (Not Customized Read/Write No No


Area)

R10000~R10999 CNC system value adding applications Read/Write No Yes


memory area

R11000~R14999 CNC System Interface Read Only No No

R15000~R19909 CNCsystem value adding applications non- Read/Write No No


memory area

R20000~R65535 User-defined Read/Write No No

NOTE:
1. The permanent storage of R6000~R7999 is in Fram. If using PIO3, simulator, or controller using PIO5 and
Pr5's setting is 9 (Virtual I/O Card), system will not be able to make permanent preservation.
2. DOS system only supports R0~R7999.
3. The part of this table about the macro program is only suitable for read and write R values using G10 L1000
P_ R_; if you use the @ method to read and write R values in the macro program, please refer to the Macro变
数规格.

1.4.2 Interface Instructions


No Title & Range Function Description Read/
Write
Princip
le

R0 Marking Records the special edition version of the controller installation Read
special package. only
edition
(ISSUE-ID + 2
version
codes)

CNC and PLC Interface – 62


机床产品/Machine Tool Products

PLC Interface.

R1 M Code When the CNC executes M CODE, it stores the contents of the M CODE Read
here for the LADDER to read. only

R2 S Code When the CNC executes S CODE, it stores the contents of the S CODE Read
here for the LADDER to read. only

R3 T Code When the CNC executes T CODE, it stores the contents of the T CODE Read
here for the LADDER to read. only

R4 Synthesis feedrate command value. Unit: LIU/min

R5 B Code The function can be enabled by Pr 3806 Read


only
When CNC executes B CODE, it stores the contents of the B CODE here
for the LADDER to read.

Only the 1stMST channel supports the execution of B CODE on PLC.


(Refer to Pr721~Pr730)

R6~R12 Reserved for System Reserved Area


CNC

R13® Mode Machining mode selection Write


Selection only
0: Not Select
1: Edit
2: Auto
3: MDI
4: JOG
5:INCJOG
6: MPG
7: HOME

CNC and PLC Interface – 63


机床产品/Machine Tool Products

PLC Interface.

R14 Increment Incremental JOG mode and MPG mode segments settings, this R value Write
Feed will not be affected by Pr3207. only
INCJOG Mode:
1: x1 LIU
2: x10 LIU
3: x100 LIU
4: x1000 LIU

MPG Mode:
1: x1 LIU
2: x10 LIU
3: x100 LIU
4: The magnified rate is set in Pr2001
Note: Please refer to Pr17 for the definition of LIU.

R15 Spindle Spindle segment setting (Maximum value is 200%) Write


Override only
1. If Pr3207=1, R15 is the percentage of spindle override, i.e.
R15=5 means spindle override is 5%.
2. If Pr3207=2, override segment defined as below:
R15=1, spindle override is 50%
R15=2, spindle override is 60%
……
R15=8, spindle override is 120%
3. The actual spindle override is R15*R851~, which the unit of
R851~ is defined as percentage, it does not affected by Pr3207~

R16 Feedrate G01,G02,G03 segment setup Write


Override only
1. If Pr3207=1, R16 is the percentage of spindle override, e.g.
R16=5 means spindle override is 5%.
2. If Pr3207=2, R16 definition as below:
R16=1, spindle override is 10%
R16=2, spindle override is 20%
……
R16=20, spindle override is 200%

CNC and PLC Interface – 64


机床产品/Machine Tool Products

PLC Interface.

R17 JOG Override JOG segment setup Write


only
1. If Pr3207=1, R17 is the percentage of jog override, e.g. R17=5
means spindle override is 5%.
2. If Pr3207=2, R17 definition as below:
R17=1, spindle override is 10%.
R17=2, spindle override is 20%,
……
R17=20, spindle override is 200%.
3. The JOG Override will be 0% if R17 is set to be a negative value;
there is no upper limit for R17, but the speed of axis is limited
by Pr461~

R18 Rapid G00 segment setup Write


Traverse only
1. If Pr3207=1, R18 is the percentage of spindle override, e.g.
Override
R18=1 means spindle override is 1%.
2. If Pr3207=2, R18 definition as below:
R18=1, spindle override is F0.
R18=2, spindle override is 25%.
R18=3, spindle override is 50%.
R18=4, spindle override is 100%.

R19 Chopping Chopping feedrate segments settings Write


Feedrate only
1. If Pr3207=1, the feeding percentage equals to the content of
Override
R19.
e.g. R19=5 means the feedrate override is 5%.
2. If Pr3207=2, the R19 definition as below:
R19=1 represents 10%
R19=2 represents 20%
……
R19=15 represents 150%

R20 Servo Axis Servo Axis Enabled Read


Enabled only
Bit 0 reserved, not using.

Bit1 represents the 1stAxis (X) enabled.

Bit 2 represents the 2ndAxis (Y) enabled.


……

Bit18 represents the 18thAxis enabled.

CNC and PLC Interface – 65


机床产品/Machine Tool Products

PLC Interface.

R21 Active Session Multi-Path CNC main system executing mode: Read
ID only
0: Execute the Multi-Path program or run the general non-Multi-Path
program in the 1stpath.
1: Only execute the $1 program or general non-Multi-Path program in
the 1stpath.
2: Only execute the $2 program or general non-Multi-Path program in
the 2ndpath.
3: Only execute the $3 program or general non-Multi-Path program in
the 3rdpath.
4: Only execute the $4 program or general non-Multi-Path program in
the 4thpath.

Function expansions from 10.116.34, 10.117.34.


If R21.11 is OFF, the specifications remain the same as above; if R21.11
is ON, change the specifications as below:
Bit 0, 12-31 reserved, not using
Bit 1: execute the $1 program or general non-Multi-Path program in
the 1st path.

Bit 2: execute the $2 program in the 2nd path.

Bit 3: execute the $3 program in the 3rd path.

Bit 4: execute the $4 program in the 4th path.


Bit 5-10: not using, only reserved for the possibility of future expansion
to 10 axis.
Bit 11: R21 definition switch.

R21 expansion function (R21.11 on) remarks;


• R21.1~R21.4 OFF: All the paths won’t CycleStart when activated
C0, suggest the developing personnel to provide proper
protection for the action in PLC.
• Pr731=3 (The 1/2/3 path is the main system path), if R21.1, 2,
R21.4are ON, only the 1stand 2ndpaths CycleStart when
activated C0.
• Switching R21 during machining/pause/block stop does not
effect to the actual machining paths and HMI display, suggest
the developing personnel to provide proper protection for the
action in PLC.

CNC and PLC Interface – 66


机床产品/Machine Tool Products

PLC Interface.

R22 MPG: The 2nd MPG segment selection Write


1: x1 only
2: x10
3: x100
4: Base on
Pr2001.

R23 MPG: The 3rd MPG segment selection Write


1: x1 only
2: x10
3: x100
4: Base on
Pr2001.

R24 Spindle Gear Spindle gear shifting settings: Write


Selection only

1 represents the 1st gear

2 represents the 2nd gear

3 represents the 3rd gear


9 represents the blank gear.

R25 Actual
Feedrate

R26 Program X axis program coordinate position,the unit is the minimum input Read
Coordinate X unit,LIU. only
When control precision is micro meter, its value would be:
0.01 mm
0.01 deg,
0.0001 inch

R27 Program (As above) Read


Coordinate Y only

R28 Program (As above) Read


Coordinate Z only

R29 Program (As above) Read


Coordinate only
C(6th)

CNC and PLC Interface – 67


机床产品/Machine Tool Products

PLC Interface.

R30 IO Signal of R30.1~R30.18 correspond to the 1stAxis~ 18thAxis driver IO signal. Read
1st Driver Set only
Note 1: Supporting 10.116.20, 10.117.21 or above version, that is
supporting the torque arrival signal.
Note 2: Torque arrival signal is only supported by;
1. YASKAWA M2/M3
2. SYNTEC M2/M3
3. EtherCAT, for brands and version info refer to EtherCAT Driver
Application Manual
Note 3: To activate the function, set the driver parameters first to
enable the torque limitation function and restart the driver.
Note 4:
R30 was preset to monitor the torque arrival signal, via Pr3266~Pr3267
Select the drive signal to be monitored (External 1 signal or Brake
signal)
Pr3266 = 1, R30.1~R30.18 corresponds to the torque arrival signal of
the 1st~16thaxis, the Bit becomes 1 when the torque arrives the limit
value.
Pr3266 = 2, R30.1~R30.18 corresponds to the EXT1 signal of the
1st~16thaxis, the Bit becomes 1 when the driver receives the EXT1 input
signal.
Pr3266 = 3, R30.1~R30.18 corresponds to the Brake signal of the
1st~16thaxis, the Bit becomes 1 when the driver activates the brake.
Supporting 10.116.36Y, 10.116.51, 10.117.51 and above version.
Note 5: Only YASKAWA M2/M3 supports the External 1 signal and the
Brake signal.
Note 6: torque arrival definition for Syntec (any of the below
mentioned):
• With torque limit(Pn-002) enabled, torque load reaches torque
limit (R5171~).
• Torque load reaches motor maximum torque(Pn-70A).

R31 Machine X axis machine coordinate position,the unit is the minimum length Read
Coordinate X input unit: LIU, same as the length unit of system parameters. only

R32 Machine (As above) Read


Coordinate Y only

R33 Machine (As above) Read


Coordinate Z only

CNC and PLC Interface – 68


机床产品/Machine Tool Products

PLC Interface.

R34 Machine (As above) Read


Coordinate only
C(6th)

R35 Spindle Spindle machine position. Unit: 0.001 degree. Read


Machine only
Position

R36 1st Spindle Current 1st spindle speed according to the feedback value or the Read
Speed command value if there is no encoder. If the 1st spindle is not only
activated, the value is fixed to 0 RPM. Unit: RPM.

R37 Movement Movement direction of tool relative to current working plan, unit is Read
direction 0.001 degree. only
relative to
current
working plane

R38 Argument one Argument one,the meaning is defined by the C Bit function that uses Write
this argument. Only

R39 Relay 2 A/D Relay2 A/D converter value Read


value only

R40 PLC Alarm System default alarm area, corresponds to alarm number 1 to 16, Write
Message #1 ~ please refer to the mechanical logic control alarm list for definitions. Only
#16
Bit 0~15 #1 ~ #16 PLC Alarm Message, save to history.
#251 ~ #266
Bit16~31 #251 ~ #266 PLC Waring Message, no save to history.

R41 PLC Alarm System default alarm area, corresponds to alarm number 17 to 32, Write
Message #17 ~ please refer to the mechanical logic control alarm list for definitions. Only
#32
Bit 0~15 #17 ~ #32 PLC Alarm Message, save to history.
#267 ~ #282
Bit16~31 #267 ~ #282 PLC Warning Message, no save to history.

R42 PLC Alarm System default alarm area, corresponds to alarm number 33 to 48, Write
Message #33 ~ please refer to the mechanical logic control alarm list for definitions. Only
#48
Bit 0~15 #33~ #48 PLC Alarm Message, save to history.
#283 ~ #298
Bit16~31 #283 ~ #298 PLC Warning Message, no save to history.

CNC and PLC Interface – 69


机床产品/Machine Tool Products

PLC Interface.

R43 PLC Alarm System default alarm area, corresponds to alarm number 49 to 64, Write
Message #49 ~ please refer to the mechanical logic control alarm list for definitions. Only
#64
Bit 0~15 #49 ~ #64 PLC Alarm Message, save to history.
#299 ~ #314
Bit16~31 #299 ~ #314 PLC Warning Message, no save to history.

R44 PLC Alarm User define alarm message, corresponds to alarm number 65 to 80. Write
Message #65 ~ Only
Bit 0~15 #65 ~ #80 PLC Alarm Message, save to history.
#80
#315 ~ #330 Bit16~31 #315 ~ #330. Depending on Pr3249, this area can be PLC
Alarm Message or PLC Waring Message.
PLC Alarm Message will be saved to alarm history but PLC Warning
Message will not be saved.

R45 PLC Alarm User define alarm message, corresponds to alarm number 81 to 96. Write
Message #81 ~ Only
Bit 0~15 #81 ~ #96 PLC Alarm Message, save to history.
#96
#331 ~ #346 Bit16~31 #331 ~ #346. Depending on Pr3249, this area can be PLC
Alarm Message or PLC Waring Message.
PLC Alarm Message will be saved to alarm history but PLC Warning
Message will not be saved.

R46 PLC Alarm User define alarm message, corresponds to alarm number 97 to 112. Write
Message #97 ~ Only
Bit 0~15 #97 ~ #112 PLC Alarm Message, save to history.
#112
#347 ~ #362 Bit16~31 #347 ~ #362. Depending on Pr3249, this area can be PLC
Alarm Message or PLC Waring Message.
PLC Alarm Message will be saved to alarm history but PLC Warning
Message will not be saved.

R47 PLC Alarm User define alarm message, corresponds to alarm number 113 to 128. Write
Message #113 Only
Bit 0~15 #113 ~ #128 PLC Alarm Message, save to history.
~ #128
#363 ~ #378 Bit16~31 #363 ~ #378. Depending on Pr3249, this area can be PLC
Alarm Message or PLC Waring Message.
PLC Alarm Message will be saved to alarm history but PLC Warning
Message will not be saved.

R48 PLC Alarm User define alarm message, corresponds to alarm number 129 to 144. Write
Message #129 Only
Bit 0~15 #129 ~ #144 PLC Alarm Message, save to history.
~ #144
#379 ~ #394 Bit16~31 #379 ~ #394. Depending on Pr3249, this area can be PLC
Alarm Message or PLC Waring Message.
PLC Alarm Message will be saved to alarm history but PLC Warning
Message will not be saved.

CNC and PLC Interface – 70


机床产品/Machine Tool Products

PLC Interface.

R49 PLC Alarm User define alarm message, corresponds to alarm number 145 to 160. Write
Message #145 Only
Bit 0~15 #145 ~ #160 PLC Alarm Message, save to history.
~ #160
#395 ~ #410 Bit16~31 #395 ~ #410. Depending on Pr3249, this area can be PLC
Alarm Message or PLC Waring Message.
PLC Alarm Message will be saved to alarm history but PLC Warning
Message will not be saved.

R50~R80 User define User-defined Read/


Write

R81~R10 MLC System Apply MLC system parameter No.3401~No3420 to build a LADDER Read
0 Parameter which is adaptable to various machines, such as tool changing and etc. Only

R101 Tool Tool Magazine position status Read/


Magazine Write
Position

R102 Current Current Spindle Tool Number Read/


Spindle Tool Write
Used in the HMI display of T code in single program system (Pr731=1);
Number
please refer to R525 for multi-program system.

R103~R1 Mill Tool Data Correspond to milling machine tool data T1~T90 (saved in FRAM) Read/
92 Write
User-defined (non milling machine)

R193~R2 User define User-define (saved in FRAM) Read/


55 Write

R256~R5 User define User-define Read/


11 Write

R512 Net Ready Net PLC Function, when the corresponding bit is ON, means the Read
station in network is READY. All the shared data are the latest. Only
Bit 0: Reserved.
Bit 1: Station 1 ready
Bit 2: Station 2 ready
.....
Please check Pr3236~Pr3238 for Net PLC setups.

CNC and PLC Interface – 71


机床产品/Machine Tool Products

PLC Interface.

R513 Net Timeout Net PLC Function. Read


Only
The network should have been timeout when the corresponding Bit
shows ON. It’s an exception if just started up the system, but if not
receiving any updates of the station within 100ms after the
connection, then it’ll be a timeout. The information update frequency
is decided by the PLC scanning time.
Bit 0: Reserved.
Bit 1: Station 1 timeout.
Bit 2: Station 2 timeout.
....

R514 Pending Pending alarm module ID of current PLC display.


alarm module
Updates the pending alarm module information to PLC every 3
ID
seconds by HMI.
For alarm module ID, please refer to Alarm Class Table.
For alarm information about serial servo drives, please also refer to to
S171~186.

R515 Pending Pending alarm ID of current PLC display.


alarm ID
Updates the pending alarm information to PLC every 3 seconds by
HMI.

R516 Pending Pending alarm Axis ID of current PLC display.


alarm Axis ID
Updates the pending alarm information to PLC every 3 seconds by
HMI.

R517 Pending Pending alarm Spindle ID of current PLC display.


alarm Spindle
Updates the pending alarm information to PLC every 3 seconds by
ID
HMI.

R518 Manual Define the coordinate system referring to when giving manual
Coordinate (5 commands (MPG、JOG、INCJOG)
Axis RTCP)
0: Machine Coordinate
1: Program Coordinate (G92 Coordinate)
2: Tool Coordinate (Only effective in five-axis machine.)

R519 Manual RTCP Manual RTCP

Set R519 to 1 and execute G43.4 to enable RTCP.

CNC and PLC Interface – 72


机床产品/Machine Tool Products

PLC Interface.

R520~ First Axis The R value in this area is the control interface of the first axis group,
R529 Group Control which can be used to give commands to the first axis group and
Registers monitor the status of the first axis group.

Definition and description of each R value

Definition Description Notifications

R5 Command • The user can • If the multi-


20 Register order the axis group
axis group independent
through this function is not
R value. enabled (ie
• The R value Pr732 is not 2),
is a bit value, the main
each bit system axis
represents group can only
different axis be controlled
group through the
commands. interface of the
See the table first axis group
below for (ie R520~R529),
details. and the control
interfaces of
the other main
system axis
groups will be
invalid.

R5 State • The user can -


21 Register monitor the
status of the
axis group
through this
R value.
• The R value
is a bit value,
each bit
represents
different axis
group
commands.
See the table
below for
details.

CNC and PLC Interface – 73


机床产品/Machine Tool Products

PLC Interface.

R5 Program • Used to • When this axis


22 No. specify the group is the
file name of main system
the axis group:
processing • If R522
program. is non-
For example: zero,
R522 = ABCD, the file
it means that name is
the determi
processing ned by
program R522.
with the file Triggeri
name ng
"OABCD" is R520.0
assigned to will
the first axis execute
group. the
• Valid value process
range: ing
[0~999,999] progra
m
specifie
d by
R522.
• If R522
is zero,
the file
name
will be
selecte
d by the
man-
machin
e, and
triggeri
ng
R520.0
will be
equival
ent to
triggeri
ng C0.

CNC and PLC Interface – 74


机床产品/Machine Tool Products

PLC Interface.

• The
progra
m
specifie
d by
R522
allows
the use
of $1,
$2,
which is
a multi-
axis
group
progra
m.
• When the axis
group is a non-
main system
axis group:
• If R522
is non-
zero,
triggeri
ng
R520.0
will
execute
the
process
ing
progra
m
specifie
d by
R522.
• If R522
is zero
and
R520.0
is
triggere
d, the
axis
group
will not
have
any
action.

CNC and PLC Interface – 75


机床产品/Machine Tool Products

PLC Interface.

• R522 does not


support to
assign multi-
path profiles
large than 60
KB.

CNC and PLC Interface – 76


机床产品/Machine Tool Products

PLC Interface.

R5 Feedrate • It is used to • multi-axis


23 Override control the group
G01/G02/ independent
G03 feed function is not
percentage enabled( Pr732
of the axis is 0,1 ):
group. • The
• Valid value R5X3
range( Level interfac
): [-20~20] e of the
• Valid value main
range( Perce system
ntage ): axis
[-500~500] group
will be
invalid,
and the
cutting
feedrat
e
overrid
e is
uniform
ly
controll
ed by
R16.
• Enable multi-
axis group
independent
function( Pr732
is 2 ):
• The
cutting
feedrat
e
overrid
e of the
first
system
axis
group is
controll
ed by
R16.

CNC and PLC Interface – 77


机床产品/Machine Tool Products

PLC Interface.

• The
cutting
feedrat
e
overrid
e of the
second/
third/
fourth
system
axis
group is
determi
ned by
R533/
R543/
R553
respecti
vely.
• Whethe
r the
main
system
axis
group
controll
ed by
level or
percent
age is
determi
ned by
Pr3207.
• The non-main
system axis
groups is fixed
to percentage
control.
• The interface
of the first axis
group (ie R523)
is actually
invalid, and
only the
interface of the
second to
fourth axis
group (ie R533,
R543, R553) is
valid.

CNC and PLC Interface – 78


机床产品/Machine Tool Products

PLC Interface.

R5 Rapid • G00 feed • multi-axis


24 Travel percentage group
Override used to independent
control the function is not
axis group. enabled( Pr732
• Valid value is not 0,1 ):
range( Level • The
): [1~4] R5X4
• Valid value interfac
range( Perce e of the
ntage ): main
[-100~100] system
axis
group
will be
invalid,
and the
rapid
travel
overrid
e is
uniform
ly
controll
ed by
R18.
• Enable multi-
axis group
independent
function( Pr732
is 2 ):
• The
rapid
travel
overrid
e of the
first
system
axis
group is
controll
ed by
R18.

CNC and PLC Interface – 79


机床产品/Machine Tool Products

PLC Interface.

• The
rapid
travel
overrid
e of the
second/
third/
fourth
system
axis
group is
determi
ned by
R534/
R544/
R554
respecti
vely.
• Whethe
r the
main
system
axis
group
controll
ed by
level or
percent
age is
determi
ned by
Pr3207.
• The non-main
system axis
groups is fixed
to percentage
control.
• The interface
of the first axis
group (ie R524)
is actually
invalid, and
only the
interface of the
second to
fourth axis
group (ie R534,
R544, R554) is
valid.

CNC and PLC Interface – 80


机床产品/Machine Tool Products

PLC Interface.

R5 Target Tool • For multi- -


25 Number. program
system
(Pr731≠1),
display the T
code of the
first main
system axis
group on the
man-
machine
screen; for
single
program
system,
please refer
to R102.

R5 Remaining Display the -


26 block remaining distance
distance of the running block
of the axis group,
read only and
always greater than
zero, the unit is
BLU.

R5 CNC Mode The switching • The interface


27 interface of of the first axis
processing mode is group (ie R527)
the same as R13. is actually
invalid, and
only the
interface of the
second to
fourth axis
group (ie R537,
R547, R557) is
valid.

R5 (Reserved) - -
28

R5 (Reserved) - -
29

CNC and PLC Interface – 81


机床产品/Machine Tool Products

PLC Interface.

Command Register Guideline (the bit out of below description No. is


reserved):

No. Comman Description Attention note


d

R520.0 Cycle The axis group Please refer to the


Start execute specified program numbers
program. above for the
designation of
executing program.

R520.1 Feedhold Feedhold the axis


group movement.

CNC and PLC Interface – 82


机床产品/Machine Tool Products

PLC Interface.

No. Comman Description Attention note


d

R520.2 Reset/ • Pr741 is 0 • Please refer


Abort • Only to Pr741
rese *The rule of
t the non-primary
inter axis group
nal for setting of
stat axis group of
us independent
of operation.
axis • Pr741 can be
grou set to 1, only
p. if the system
• Pr741 is 1 is 10.118.40
• if it and later
is version.
the
axis
grou
p of
inde
pen
dent
oper
atio
n,
then
rese
t for
axis
and
spin
dle
und
er
axis
grou
p,
and
clea
r
alar
m.

CNC and PLC Interface – 83


机床产品/Machine Tool Products

PLC Interface.

No. Comman Description Attention note


d

• Oth
erwi
se,
only
rese
t the
inter
nal
stat
us
of
axis
grou
p.

R520.3 MPG
Simulatio
n

R520.4 Block Block optional skip


Optional is not compatible
Skip with all G code
format, a COM
alarm will appear
when the
unsupported format
detected.

CNC and PLC Interface – 84


机床产品/Machine Tool Products

PLC Interface.

No. Comman Description Attention note


d

R520.5 Emergenc • Pr741 is 0 • Please refer


y Stop • Not to Pr741
sup *The rule of
port non-primary
. axis group
• Pr741 is 1 for setting of
• The axis group of
bit independent
is operation.
sup • Pr741 can be
port set to 1, only
ed if the system
only is 10.118.40
for and later
axis version.
grou
p of
inde
pen
dent
oper
atio
n.

CNC and PLC Interface – 85


机床产品/Machine Tool Products

PLC Interface.

No. Comman Description Attention note


d

• Whe
n
C36
is
on,
the
axis
grou
p
stat
e
will
be
not
read
y.
And
whe
n
C36
is
off,
the
axis
grou
p
use
this
bit
to
furt
her
sele
ct
read
y/
not
read
y
stat
e.

CNC and PLC Interface – 86


机床产品/Machine Tool Products

PLC Interface.

No. Comman Description Attention note


d

R520.6 M30 Turning this bit to • The interface


Support ON, when the of the first
Program machining axis group
Rewind program is (ie R520.6) is
executed to M30, it actually
will not be reset, invalid, and
but it will return to only the
the starting interface of
position of the the second
program like M99 to fourth axis
and re-execute the group (ie
machining. R530.6,
R540.6,
R550.6) is
valid.

CNC and PLC Interface – 87


机床产品/Machine Tool Products

PLC Interface.

No. Comman Description Attention note


d

R520.7 Single Turning this bit to • This bit is


Block ON, the axis group only valid
Pause will enter the when Pr732
single-block pause is set to 2.
state every time a • The interface
block is executed of the first
when the axis group
machining (ie R520.7) is
program is actually
executed. Start invalid, and
machining again only the
(Cycle Start), the interface of
axis group will the second
execute the next to fourth axis
block. group (ie
R530.7,
R540.7,
R550.7) is
valid.
• This bit only
supports the
main system
axis group.

CNC and PLC Interface – 88


机床产品/Machine Tool Products

PLC Interface.

No. Comman Description Attention note


d

• Please
switch this
bit to ON
before
processing.
If the switch
is performed
during
processing,
it may
execute
several more
blocks to
enter the
single block
pause. If the
user needs
to check the
processing
program
during
processing,
it is
recommend
ed to use the
handwheel
to simulate
R5X0.3 or
M00 pause.

CNC and PLC Interface – 89


机床产品/Machine Tool Products

PLC Interface.

No. Comman Description Attention note


d

R520.8 Optional • Turn this • This bit is


Stop bit to ON, only valid
and when when Pr732
the is set to 2.
machining • The interface
program is of the first
executed to axis group
M01, the (ie R520.8) is
axis group actually
will enter invalid, and
the pause only the
state. interface of
• Turn this the second
bit to OFF, to fourth axis
and when group (ie
the R530.8,
processing R540.8,
program is R550.8) is
executed to valid.
M01, M01 • This bit only
will be supports the
ignored main system
and axis group.
continue to
execute on
the next
block.

CNC and PLC Interface – 90


机床产品/Machine Tool Products

PLC Interface.

No. Comman Description Attention note


d

R520.11 Block • R520.11 • Only support


~R520.1 Optional Block 10.114.20
9 Skip #, '/#' Optional and later
Skip 1, '/1' version.
• R520.12 • Block
Block optional skip
Optional is not
Skip 2, '/2' compatible
• R520.13 with all G
Block code format,
Optional a COM alarm
Skip 3, '/3' will appear
• R520.14 when the
Block unsupported
Optional format
Skip 4, '/4' detected.
• R520.15
Block
Optional
Skip 5, '/5'
• R520.16
Block
Optional
Skip 6, '/6'
• R520.17
Block
Optional
Skip 7, '/7'
• R520.18
Block
Optional
Skip 8, '/8'
• R520.19
Block
Optional
Skip 9, '/9'

State Registers guideline (the bit out of below description No. is


reserved):

No. State Description Attention note

R521 Busy When the system is


.0 busy, this bit will be on.

CNC and PLC Interface – 91


机床产品/Machine Tool Products

PLC Interface.

No. State Description Attention note

R521 Feedhold When the system is


.1 feedhold, this bit will
be on.

R521 Work When a system is busy(


.2 S0, R521.0 on ),
feedhold( S1, R521.1
on ) or block stop( S2
on ), this bit will be on.

CNC and PLC Interface – 92


机床产品/Machine Tool Products

PLC Interface.

No. State Description Attention note

R521 NC Ready • Pr741 is 0 • Only


.3 • When support
there are 10.118.40
"C36 on" and later
or version.
"system • Please
in refer to
critical Pr741
alarm", *The rule
this bit of non-
will be primary
off. axis group
• When for setting
there are of axis
"C36 off" group of
and independ
"system ent
no operation
critical .
alarm", • Pr741 can
this bit be set to
will be 1, only if
represen the
ted for system is
the all 10.118.40
axis and later
under version.
axis • A critical
group alarm is
whether an alarm
are all that puts
servo on. the
• Pr741 is 1 system
unready.

CNC and PLC Interface – 93


机床产品/Machine Tool Products

PLC Interface.

No. State Description Attention note

• Only for
axis
group of
indepen
dent
operatio
n to
extend
rule, and
others
axis
group
remain
original
rule the
same as
Pr741 is
set to 0.
• W
h
e
n
t
h
e
r
e
a
r
e
"
C
3
6
o
n
",
"I
n
d
e
p
e
n
d
e
n
t
a
xi

CNC and PLC Interface – 94


机床产品/Machine Tool Products

PLC Interface.

No. State Description Attention note

s
g
r
o
u
p
in
cr
it
ic
al
al
a
r
m
"
o
r
"
R
5
2
0.
5
o
n
",
t
hi
s
bi
t
w
ill
b
e
o
ff
.
• W
h
e
n
t
h
e
r
e
a
r

CNC and PLC Interface – 95


机床产品/Machine Tool Products

PLC Interface.

No. State Description Attention note

e
"
C
3
6
o
ff
",
"I
n
d
e
p
e
n
d
e
n
t
a
xi
s
g
r
o
u
p
n
o
cr
it
ic
al
al
a
r
m
"
a
n
d
"
R
5
2
0.
5
o
ff
",

CNC and PLC Interface – 96


机床产品/Machine Tool Products

PLC Interface.

No. State Description Attention note

t
hi
s
bi
t
w
ill
b
e
r
e
p
r
e
s
e
n
t
e
d
f
o
r
t
h
e
al
l
a
xi
s
u
n
d
e
r
a
xi
s
g
r
o
u
p
w
h
e
t
h
e

CNC and PLC Interface – 97


机床产品/Machine Tool Products

PLC Interface.

No. State Description Attention note

r
a
r
e
al
l
s
e
rv
o
o
n.

R521 Servo Not It represents that Only support


.4 Ready whether there is any 10.118.40 and
servo not ready under later version.
the axis group.

CNC and PLC Interface – 98


机床产品/Machine Tool Products

PLC Interface.

No. State Description Attention note

R521 System • ON indicates • Only


.5 Alarm that there support
exist(s) alarm(s) 10.118.40
in the axis and later
group. version.
• OFF indicates • Please
that there is NO refer to
alarm in the axis Pr741
group. *The rule
• This bit is only of non-
supported for primary
main axis axis group
groups and and Pr732
independent *MST
subordinate channel
axis groups. rules of
• If Pr732 is not multi-
set to 2, this bit programs
is supported for setting
only in the first of axis
axis group for group of
the entire main independ
axis groups. ent
operation
.
R521 System • ON indicates
• Pr741 can
.6 Warning that there
be set to
exist(s)
1, only if
warning(s) in
the
the axis group.
system is
• OFF indicates
10.118.40
that there is NO
and later
warning in the
version.
axis group.
• This bit is only
supported for
main axis
groups and
independent
subordinate
axis groups.
• If Pr732 is not
set to 2, this bit
is supported
only in the first
axis group for
the entire main
axis groups.

CNC and PLC Interface – 99


机床产品/Machine Tool Products

PLC Interface.

No. State Description Attention note

R521 Block stop During single block • Only


.7 stop( BLOCK STOP support
status ), this bit will be 10.118.29
on. W,
10.118.40
C,
10.118.42
and later
version.

R521 The • When this bit is • This bit is


.8 number of ON, it indicates only valid
required that the number when
workpieces of required Pr732 is
arrives workpieces of set to 2.
the axis group • This bit
has reached. only
• When Cycle supports
Start or Reset is the main
triggered, this system
bit will be axis
turned OFF. group.

CNC and PLC Interface – 100


机床产品/Machine Tool Products

PLC Interface.

R530~ Second Axis The R value in this area is the control interface of the second axis
R539 Group Control group, which can be used to command and monitor the status of the
Registers second axis group.
The definition of each R value is the same as R520~R529, and will not
be listed one by one. Please refer to the description of R520~R529 for
details.

Note:
1. When the axis group independent function is not enabled
(Pr732 is not 2) and the second axis group is the main system
axis group, the second axis group will be controlled by the main
system axis group uniformly, and the control interface in this
area will be invalid.
The effectiveness of the control interface is as follows:
2nd Axis Group 2nd Axis Group
Belongs to Main Axis Belongs to
Groups Secondary Axis
Groups

Pr732 ≠2 Ineffective (Unified Partially Effective


control by the main
system axis group)

Pr732 =2 Effective Partially Effective

2. More Information in the 轴群独立功能应用手册

CNC and PLC Interface – 101


机床产品/Machine Tool Products

PLC Interface.

R540~ Third Axis The R value in this area is the control interface of the third axis group,
R549 Group Control which can be used to command and monitor the status of the third
Registers axis group.
The definition of each R value is the same as R520~R529, and will not
be listed one by one. Please refer to the description of R520~R529 for
details.

Note:
1. When the axis group independent function is not enabled
(Pr732 is not 2) and the third axis group is the main system axis
group, the third axis group will be controlled by the main
system axis group uniformly, and the control interface in this
area will be invalid.
The effectiveness of the control interface is as follows:
3rd Axis Group 3rd Axis Group
Belongs to Main Axis Belongs to
Groups Secondary Axis
Groups

Pr732 ≠2 Ineffective (Unified Partially Effective


control by the main
system axis group)

Pr732 =2 Effective Partially Effective

2. More Information in the 轴群独立功能应用手册

CNC and PLC Interface – 102


机床产品/Machine Tool Products

PLC Interface.

R550~ Fourth Axis The R value in this area is the control interface of the fourth axis group,
R559 Group Control which can be used to command and monitor the status of the fourth
Registers axis group.
The definition of each R value is the same as R520~R529, and will not
be listed one by one. Please refer to the description of R520~R529 for
details.

Note:
1. When the axis group independent function is not enabled
(Pr732 is not 2) and the fourth axis group is the main system
axis group, the fourth axis group will be controlled by the main
system axis group uniformly, and the control interface in this
area will be invalid.
The effectiveness of the control interface is as follows:
4th Axis Group 4th Axis Group
Belongs to Main Axis Belongs to
Groups Secondary Axis
Groups

Pr732 ≠2 Ineffective (Unified Partially Effective


control by the main
system axis group)

Pr732 =2 Effective Partially Effective

2. More Information in the 轴群独立功能应用手册

R560~ Reserved for Reserved for 1st Axis Group


R564 CNC

R565~R5 Machining R565:Part Count R/W


69 Info of 2nd R566:Required Part Count
Axis Group R567:Total Part Count
R568:Cycle Time
R569:Accumulated Machining Time

R570~R5 Machining R570:Part Count R/W


74 Info of 3rd R571:Required Part Count
Axis Group R572:Total Part Count
R573:Cycle Time
R574:Accumulated Machining Time

CNC and PLC Interface – 103


机床产品/Machine Tool Products

PLC Interface.

R575~R5 Machining R575:Part Count R/W


79 Info of 4th R576:Required Part Count
Axis Group R577:Total Part Count
R578:Cycle Time
R579:Accumulated Machining Time

R580 Spindle PLC Spindle PLC Control Mode


Control Mode
Under this mode, the spindle command will be controlled by PLC and
decided by R941~R950 (Correspond to the 1st~10thspindle).
It represents the PLC control mode when the corresponding Bit is 1;
general CNC control mode when the corresponding Bit is 0.
Bit 0, 11-31 → Reserved
Bit 1 → 1st spindle controlled by PLC
Bit 2 → 2nd spindle controlled by PLC
....
Bit 10 → 10th spindle controlled by PLC

R581 Spindle OFF Spindle Mode Command Write


Only
The corresponding Bit (R581.x) only works when the parameter 179x
sets up the spindle motor type to servo motor.
When the corresponding bit is 1, the logic axis switches to position
orientation control mode;
when the corresponding bit is 0, the logic axis switches back to spindle
control mode, the clockwise/counterclockwise rotation control is
defined by R583/R584.

Bit 0, 1, 11-31 → Reserved


Bit 2 → 2nd spindle mode command.
Bit 3 → 3rd spindle mode command.
...
Bit 10 → 10th spindle mode command.
Note:
- 1st spindle mode command is controlled by C63.
- When using M code to operate the Spindle CS axis exchange, the
action is directly done by the kernel (not with C38).

CNC and PLC Interface – 104


机床产品/Machine Tool Products

PLC Interface.

R582 Spindle axis Spindle current axis mode Read


mode Only
When the corresponding bit is 1, the spindle is under position
orientation control mode;
when the corresponding bit is 0, the spindle is under spindle speed
control mode.
Bit 0, 11-31 → Reserved
Bit 1 → 1st spindle axis control mode
Bit 2 → 2nd spindle axis control mode
...
Bit 10 → 10th spindle axis control mode

R583 Rotating the Spindle clockwise rotation Write


spindle Only
Bit 0, 1, 11-31 → Reserved
clockwise
Bit 2 → 2nd spindle clockwise rotation.
Bit 3 → 3rd spindle clockwise rotation.
...
Bit 10 → 10th spindle clockwise rotation.
Note:
1. 1st spindle clockwise rotation is controlled by C64.
2. To use the spindle rotating speed arrival check function
correctly (parameter 1991~), it is necessary to activate the R bit
to switch the system spindle into operating mode even it is a
VFD spindle.

R584 Rotating the Spindle counterclockwise rotation Write


spindle Only
Bit0,1, 11-31 → Reserved
counterclock
Bit 2 → 2nd spindle counterclockwise rotation.
wise
Bit 3 → 3rd spindle counterclockwise rotation.
...
Bit 10 → 10th spindle counterclockwise rotation.
Note:
1. 1st spindle counterclockwise is controlled by C65.
2. To check spindle speed arrival, this bit must be triggered even if
it is a inverter spindle.
3. To use the spindle rotating speed arrival check function
correctly (parameter 1991~), it is necessary to activate the R bit
to switch the system spindle into operating mode even it is a
VFD spindle.

CNC and PLC Interface – 105


机床产品/Machine Tool Products

PLC Interface.

R585 Spindle JOG Spindle JOG Mode Command Write


Mode Only
When the corresponding bit is 1, it forces the spindle to rotate with the
spindle JOG speed set by parameter 172x.
The function is usually used on spindle tool change and modeling of
Milling machine or auto feed of Lathe.
Bit 0, 1, 11-31 → Reserved
Bit 2 → 2nd spindle JOG mode
Bit 3 → 3rd spindle JOG mode
...
Bit 10 → 10th spindle JOG mode.
Note: 1st spindle JOG mode is controlled by C60.

R586 Spindle Spindle Orientation Mode Command Write


Orientation Only
When the corresponding bit is 1, it runs the spindle orientation
Stop
function.
The function only works with an encoder installed on the spindle and
the corresponding bit remains ON.
Parameter 174x: Modify the spindle orientation speed.
Parameter 175x: Modify the spindle orientation angle, the angle
is the synchronization signal position relative to the encoder.
Therefore, the parameter must be readjusted every time after
changing a motor, encoder or belt.
Parameter 176x: Modify the spindle orientation time.
R587: Show the complete signal of the spindle orientation
function.

Bit 0, 1, 11-31 → Reserved


Bit 2 → 2nd spindle orientation mode.
Bit 3 → 3rd spindle orientation mode.
...
Bit 10 → 10th spindle orientation mode.
Note: 1st spindle Orientation is controlled by C61

R587 Spindle Spindle Orientation finish flag Read


Orientation Only
Bit 0, 1, 11-31 → Reserved
Stop Finish
Bit 1 → 1st spindle orientation finish
Bit 2 → 2nd spindle orientation finish
Bit 3 → 3rd spindle orientation finish
...
Bit 10 → 10th spindle orientation finish
Note: S61 & R587.1 both are flags of 1st spindle.

CNC and PLC Interface – 106


机床产品/Machine Tool Products

PLC Interface.

R588 Rigid Tapping Spindle rigid tapping mode


Mode
Bit 1 → 1st spindle is in rigid tapping mode
Bit 2 → 2nd spindle is in rigid tapping mode
Bit 3 → 3rd spindle is in rigid tapping mode
...
Bit 10 → 10th spindle is in rigid tapping mode

R589 Multiple Axis This Registry stores M/S/T information triggered by S29/S54/S69, and
Group MST the information will be contained until next M/S/T command is read.
associated
[ Bit 1 ~ 4, M/S/T Command Path Information ]
information
R589.1 The current M/S/T is being sent by $1 (1st path).
R589.2 The current M/S/T is being sent by $2 (2nd path).
...
[Bit 11 ~ 20 Spindle Information]
R589.11, The current M/S/T is being sent by $x, its main spindle is the
first spindle.
R589.12, The current M/S/T is being sent by $x, its main spindle is the
second spindle.
...
R589.20, The current M/S/T is being sent by $x, its main spindle is the
tenth spindle.

CNC and PLC Interface – 107


机床产品/Machine Tool Products

PLC Interface.

R590~ PLC User-defined PLC Hint(Alarm) Message Area, each bit triggers one hint.
R599 Hint(Alarm) There are 32 bits in one register, and a total 319 messages can be used.
Message
Depending on Pr3249, bit 0~31 can be PLC Hint or PLC Alarm Message.
If the PLC Hint is treated as a PLC Alarm, the MLCHint 1~319 would be
mapped to MLC 501~819.
R590.0 Reserved
R590.1 for MLCHint 1, for MLC 501 if the PLC Hint is treated as a PLC
Alarm
R590.2 for MLCHint 2, for MLC 502 if the PLC Hint is treated as a PLC
Alarm
..
R590.31 for MLCHint 31, for MLC 531 if the PLC Hint is treated as a PLC
Alarm
R591.0 for MLCHint 32, for MLC 532 if the PLC Hint is treated as a PLC
Alarm
..
R592.0 for MLCHint 64, for MLC 564 if the PLC Hint is treated as a PLC
Alarm
..
R593.0 for MLCHint 96, for MLC 596 if the PLC Hint is treated as a PLC
Alarm
..
Hint message is defined from string list 23001. That is, 23001 is the
content of MLCHint 1 or MLC 501, 23002 is the content of MLCHint 2 or
MLC 502, so on and so forth.

R600 Machine Lock Machine Lock Write


Bit 0 Reserved Only
Bit 1 for 1st axis (X) lock
Bit 2 for 2nd axis (Y) lock
...
Bit 18 for 18th axis lock

• The axis won’t be moving if the command (e.g. G91G00X100) is
sent under this function being activated (R600.X ON), both the
remaining distance and the program coordinate will show
normally, but the machine coordinate will be fixed till the
function being turned off, then the system will synchronize the
machine coordinate with the program coordinate.
• If this function being activated (R600.X.ON) during axial
movements, the axis won’t be moving and both the remaining
distance and the program coordinate will show normally, but
the machine coordinate will be fixed right after the function
being activated till the function being turned off, then the
system will synchronize the machine coordinate with the
program coordinate.

CNC and PLC Interface – 108


机床产品/Machine Tool Products

PLC Interface.

R601 Axis MPG Under the PLC Axis program, if the corresponding flag bit is 1, the
simulation feedrate speed of the PLC axis is decided by the rotating speed of MPG.
The machine moves faster when the MPG rotates faster; the machine
moves backwards when the MPG is rotating reversely; the machine
stops when the MPG stops. It is suitable for trial machining.
Bit 0 Reserved.
Bit 1 for 1st axis (X) MPG simulation
Bit 2 for 2nd axis (Y) MPG simulation
...
Bit 18 for 18th axis MPG simulation

R602 Spindle Y- Spindle Y-Delta request mode, the switching speed is set by parameter
Delta Request 1841~1850.
Mode
If the corresponding bit is 0 means Y connect; 1 means Delta connect.
Bit 0 Reserved.
Bit 1 is 1st axis Y-Delta connect Mode.
Bit 2 is 2nd axis Y-Delta connect Mode.

Bit 10 is 10th axis Y-Delta connect Mode.

R603 Inhibit Axis Inhibit specific axis moving command.


Command
When the Inhibit Axis command is ON, the running program turns into
Feedhold state. R841~R844 will show the feedhlold reason.
(Versions after 10.116.38B, 10.116.52E, 10.116.54, 10.117.54 turn into
Feedhold state, previous versions turn into Block Stop state)
Bit 0: Reserved.
Bit 1: Inhibit 1st Axis Motion Command.
Bit 2: Inhibit 2nd Axis Motion Command.

Bit 18: Inhibit 18th Axis Motion Command.

CNC and PLC Interface – 109


机床产品/Machine Tool Products

PLC Interface.

R604 Teach In Teach In Command Area


command
Bit 0 Rapid orientation endpoint teaching
Bit 1 Straight cutting endpoint teaching
Bit 2 Arc cutting teaching. Frist trigger is the arc middle point input,
second trigger is the arc endpoint input.
Bit 3 Point coordinate teaching.
Bit 7 Designate the arc teaching plane to be G17, and add G17 in front
of G codes when generating.
Bit 8 Designate the arc teaching plane to be G18, and add G18 in front
of G codes when generating.
Bit 9 Designate the arc teaching plane to be G19 and add G19 in front
of G codes when generating.
Bit 15 Edit Overwrite Mode. On: Overwrite the line where cursor at; Off:
insert line.
<Note> R604.x Teach In Command is only allowed to be used in F2
Program Edit -> F6 Teaching Page

R605 Tool Offset Tool Length Measurement Write In Command


Write
Bit 0 Tool Length Measuring Function activated.
Bit 1: Z+ contacting surface write in request.
Bit 2: Z- contacting surface write in request.
Bit 3: X+ contacting surface write in request.
Bit 4: X- contacting surface write in request.

R606 MPG Shift MPG Shift Enable Commad Write


Only
1. R606=0 Disable MPG Shift
R606=1 Enable MPG Shift
2. Caution: When MPPG shift enabled, with C16~ to assign MPG
axis, the axis can be moved by MPG under 「AUTO」and
「MDI」mode. Please be extra careful!

CNC and PLC Interface – 110


机床产品/Machine Tool Products

PLC Interface.

R607 Spindle Spindle Speed Arrival Signal, identical to S64/S59. Read


Speed Arrival Only
Bits 0, 1, 11, 21-31 Reserved.
1. Under cutting G01/G02/G03
R607.2 means 2nd Spinde speed arrival
R607.3 means 3rd Spinde speed arrival
...
R607.10 means 10th Spinde speed arrival
2. Under threading
R607.12 means 2nd Spinde speed arrival
R607.13 means 3rd Spinde speed arrival
...
R607.20 means 10th Spinde speed arrival

R608 Modbus PLC R608.0 Trigger this Bit to show that the master is ready for Modbus
Communicati communication. ( R608.10, R608.31, and error code R5039 will be
on cleared when the PLC Modbus component is triggered . )
R608.1 (Read Only) Transmitting Status.
R608.2 (Read Only) Waiting to Receive.
R608.3 (Read Only) Receiving.
R608.10 (Read Only) Reception finished correctly.
R608.31 (Read Only) Error Flag . ON indicates that error(s) occurred
and the error code will be displayed at R5039.
Note: All MODBUS read, write, and custom
components share R608. It is recommended to
stagger the use timing of different components to
know which component the corresponding status is
for.
For example, wait for the previous component to
complete the transmission (R608.10 or R608.31 on)
before executing the next component.

R609 Axis Coupling Axis Coupling Status


Status
When coupling type (Pr3825/Pr3865/Pr3875/Pr3885) ≠1 (non-
mechanical coupling type), the Register displays coupling status. If the
coupling status is changed by C46/R614, this Register will update after
system finishes mode switch.
Bit 1: 1st set of axis is coupling.
Bit 2: 2nd set of axis is coupling.
Bit 3: 3rd set of axis is coupling.
Bit 4: 4th set of axis is coupling.
Note : C046/R614 and the Gantry Tuning Function can affect the
coupling state R609.

CNC and PLC Interface – 111


机床产品/Machine Tool Products

PLC Interface.

R610 Skip Position PLC Axes that executing G31 or G28.1 skip command touch the skip Read
of PLC axis signal and record the position. Only
Latched
Bit 0: Reserved
Bit 1: 1st axis (X) skip occur
Bit 2: 2nd axis (Y) skip occur
...
Bit 18: 18th axis skip occur

R611 Axis Display each axis movement status, according to the feedback value,
Movement failing the Zero Speed Check means the axis is moving. Zero Speed
Flag Check parameters are Pr901-920.
Bit 0 Reserved
Bit 1 : 1st axis (X) is moving
Bit 2 : 2nd axis (Y) is moving
...
Bit 18 : 18th axis is moving

R612 Machine Machine Positive Direction Lock.


Positive
Bit 0 Reserved
Direction
Bit 1 : 1st axis (X) positive direction lock.
Lock
Bit 2 : 2nd axis (Y) positive direction lock.
...
Bit 18 : 18th axis positive direction lock.
• The axis won’t be moving if the command (e.g. G91G00X100) is
sent under the function being activated (R612.xx ON), and both
the program and the machine coordinate will be fixed.
• If the function being activated (R612.x ON) during axial
movements, the axis will stop moving immediately, and both
the program and the machine coordinate will be fixed right
after the function being activated.

R613 Machine Machine Negative Direction Lock.


Negiaive
Bit 0 Reserved
Direction
Bit 1 : 1st axis (X) negative direction lock.
Lock
Bit 2 : 2nd axis (Y) negative direction lock.
...
Bit 18 : 18th axis negative direction lock.
• The axis won’t be moving if the command (e.g. G91G00X100) is
sent under the function being activated (R612.xx ON), and both
the program and the machine coordinate will be fixed.
• If the function being activated (R612.x ON) during axial
movements, the axis will stop moving immediately, and both
the program and the machine coordinate will be fixed right
after the function being activated.

CNC and PLC Interface – 112


机床产品/Machine Tool Products

PLC Interface.

R614 Axis Coupling Axis coupling status switch.


Request
If Coupling Type (Pr3865/Pr3875/Pr3885) ≠1 (non-mechanical
coupling), the actual coupling mode is decided by this Register. When
FLAG ON, the coupling axis direction turns into coupling status; when
FLAG OFF, the coupling axis direction leaves coupling status. Under
coupling status, the slave axis moves with the set ratio when the
spindle moves.
Bit 0, 1 Reserved
Bit 2 → 2nd set of axis coupling command
Bit 3 → 3rd set of axis coupling command
Bit 4 → 4th set of axis coupling command
Note:

• The 1st set of axis coupling command is activated by C46.


• Please refer to R609 Axis Coupling Status for axis coupling
status.

CNC and PLC Interface – 113


机床产品/Machine Tool Products

PLC Interface.

R615~ Second M/S/T Second M/S/T Execution Channel


R618 Execution
Channel R615 command and status
R616 M code
R617 S code
R618 T code

R615.0 MST code finish (PLC→CNC)


R615.1 DEN moving command finish (CNC→PLC)
R615.2 M code read (CNC→PLC)
R615.3 S code read (CNC→PLC)
R615.4 T code read (CNC→PLC)

R615.8 M/S/T code is executed by 1st path ($1)
R615.9 M/S/T code is executed by 2nd path ($2)
R615.10 M/S/T code is executed by 3rd path ($3)
R615.11 M/S/T code is executed by 4th path ($4)
R615.12 M00 Read Flag
R615.13 M01 Read Flag; need to activate the optional stop function
(C44).
R615.14 M02 Read Flag
R615.15 M30 Read Flag
Note:
1. Valid version: 116.41, 10.117.41
2. The flag only works when the parameter of “Pr732 * multi-
program MST channel rules” is set to 1.
3. The flag will activate automatically after reading the M code till
system reset (Reset) or M Code Finish (R615.0 On).
4. To ensure the system activates the flag correctly, R615.0 should
be OFF before the flag being activated by the kernel in PLC
applications.
R615.16 The current M/S/T is being sent by $x, its main spindle is the
1st spindle.
R615.17 The current M/S/T is being sent by $x, its main spindle is the
2nd spindle.

R615.23 The current M/S/T is being sent by $x, its main spindle is the
8th spindle.
R615.29…The current M/S/T is being sent by $x, its main spindle is the
9th spindle.
R615.30…The current M/S/T is being sent by $x, its main spindle is the
10th spindle.
(When parameter 3810 activates the Single Block multi-M code
execution function)
R615.24 1st M code execution request

CNC and PLC Interface – 114


机床产品/Machine Tool Products

PLC Interface.

R615.25 2nd M code execution request


R615.26 3rd M code execution request
R615.27 4th M code execution request
R615.28 5th M code execution request

R619~ Third M/S/T Third M/S/T Execution Channel


R622 Execution
R619 Control and Status Register
Channel
R620 M Code
R621 S Code
R622 T Code
For related functions, please refer to the description of R615~R618.

R623~ Fourth M/S/T Fourth M/S/T Execution Channel


R626 Execution
R623 Control and Status Register
Channel
R624 M Code
R625 S Code
R626 T Code
For related functions, please refer to the description of R615~R618.

R627 Axis Torque The axis switch to torque control under the mode, the corresponding Write
Mode commands are R880~R895. Only
When the corresponding bit is 1 means the axis is switched to torque
control mode; when the corresponding bit is 0 means the axis is
position control mode.
R627.0 Reserved, not using.

R627.1 represents the 1staxis torque control mode

R627.2 represents the 2ndaxis torque control mode


...

R627.18 represents the 18thaxis torque control mode

Note 1: The interface only works for serial bus communication.


Note 2: The control interface only supports version 10.118.10 and
below.

CNC and PLC Interface – 115


机床产品/Machine Tool Products

PLC Interface.

R628 Spindle CSS Display the current spindle cutting speed mode. Read
Mode Only
When the corresponding Bit is ON, the spindle is in the constant
surface cutting speed control mode (G96); when the corresponding Bit
is OFF, the spindle is in the rotating speed control mode (G97).
Bit 0, 5-31 Reserved

Bit 1 → machining spindle of the 1st path

Bit 2 → machining spindle of the 2nd path

Bit 3→ machining spindle of the 3rd path

Bit 4 → machining spindle of the 4th path

R629 Axis M code The register provides the PLC axis M code request signal. When axis Read
executes to M codes, the corresponding Bit ON and request new M Only
code from PLC program, M code contents are stored in the R618~R696.
After the controller send the request, only until M code completion
signal (R630) On, then next block start executing.
Bit 0 Reserved

Bit 1 → 1st axis (X) M code request

Bit 2 → 2nd axis (Y) M code request


...

Bit 18 → 18th axis M code request

R630 M Code Completion Signal (Please refer to R629) Write


Only
Bit 0 Reserved, not using

Bit 1 represents the 1staxis (X) M code completion.

Bit 2 represents the 2ndaxis (Y) M code completion.


...

Bit 18 represents the 18thaxis M codes completion.

R631 The target Each spindle Y-Delta target state


winding of Y- When the corresponding bit is 0, the spindle is Y connection; 1 means
Delta of each Delta connection.
spindle. Bit 0 reserved
Bit 1: 1st spindle Y-Delta target state.
Bit 2: 2nd spindle Y-Delta target state.
...
Bit 10: 10th spindle Y-Delta target state.

CNC and PLC Interface – 116


机床产品/Machine Tool Products

PLC Interface.

R632 The adopted Each spindle Y-Delta adopted winring


winring of Y- When the corresponding bit is 0, the spindle is Y connection; 1 means
Delta of each Delta connection.
spindle. Bit 0 reserved
Bit 1: 1st spindle Y-Delta target state.
Bit 2: 2nd spindle Y-Delta target state.
...
Bit 10: 10th spindle Y-Delta target state.

R633~R6 1st~4th refere The arrival flag for 1st~4th reference point (machine coordinate), will Read
36 nce point be updated at each PLC scan time. Only
(machine
coordinate) • R633: Represent arrival status of each axis for 1st reference
arrival flag point (machine origin).
• R634: Represent arrival status of each axis for 2nd reference
point (corresponding to Pr2801~).
• R635: Represent arrival status of each axis for 3rd reference
point (corresponding to Pr2821~).
• R636: Represent arrival status of each axis for 4th reference
point (corresponding to Pr2841~).
Bit 0 reserved, not used.

Bit 1 represents reference point arrival flag for 1st axis (X). If the axis
has arrived then flag is 1 (On), otherwise 0 (Off).

Bit 2 represents reference point arrival flag for 2nd axis (Y). If the axis
has arrived then flag is 1 (On), otherwise 0 (Off).
...

Bit 18 represents reference point arrival flag for 18th axis. If the axis has
arrived then flag is 1 (On), otherwise 0 (Off).
• To determine whether the arrival flag is on or not, the following
conditions must be confirmed simultaneously.
a. The homing process has finished (S Bit of Axis Home OK
should be on) and the axis is not used as spindle.
b. The axis has arrived at target machine position.
c. The position error between servo command and motor
feedback should be less or equals to Pr481~Pr500 Axial
rapid travel in-position window.

R637~R6 Reserved for System Reserved Area


39 CNC

CNC and PLC Interface – 117


机床产品/Machine Tool Products

PLC Interface.

R641~ Axis MPG Set the manual ratio of each axis; set the manual multiplier ratio of the Write
R658 command MPG JOG axis. Only
multiplier
ratio R641: multiplier ratio of the 1st axis.

R642: multiplier ratio of the 2nd axis.


so on and so forth...
The actual affective ratio is equal to the MPG segment (defined by R14,
R22, R23) multiplied the multiplier ratio of the register.
Register=1000 means the ratio is 1.0
Register=1 means the ratio is 0.001, but when Register=0 ratio is
default as 1.0.
Note: The R value only valid when the MPG corresponding coordinate
is set up to be controlled by MLC (Ref. Parameter 2031~2040).

R661~ PLC axis Set the feedrate range of each axis PLC program -200~200, Default Write
R678 program G00/ value 100. Only
G01 feedrate
override R661 → feedrate range of the 1st axis PLC program

R662 → feedrate range of the 2nd axis PLC program


so on and so forth...

R681~ PLC axis M (please refer to R629) Read


R698 code value Only

R700 Actual Actual compound feedrate command of the first main system axis
compound group, unit: LIU/min (PLC axis doesn’t count in compound feedrate
feedrate calculation)
Always regarded as linear axis, for the rotary axis is in Imperial units,
the value should be magnified 10 times.

i.e. Pr17=2, under Imperial units, the 3rd axis is rotary axis feedrate
F100.
R700 = 100 (IU/min) * (10000 LIU/IU)
LIU: 0.0001 inch, IU = inch
R703 = 100 (IU/min) * (1000 BLU/IU)
BLU: 0.001 deg, IU = deg
Thus, R700 is 10 times to R703.

CNC and PLC Interface – 118


机床产品/Machine Tool Products

PLC Interface.

R701~ Axis Velocity Velocity of each axis, Servo On mode: according to command value; Read
R718 Servo Off mode: according to feedback value, unit : BLU/min. Only

R701 → single axis speed of the 1st axis

R702 → single axis speed of the 2nd axis


so on and so forth...

R721~ Program Axis program coordinate position,unit: minimum input unit (LIU). Read
R738 Coordinate Only
R721 → 1st axis program coordinate position

R722 → 2nd axis program coordinate position


so on and so forth...

When control precision is micro meter and the value:


0.01 mm
0.01 deg,
0.0001 inch

R741~ Machine Axis machine coordinate position, unit: minimum input unit (LIU). Read
R758 Coordinate Only
R741 → 1st axis machine coordinate position

R742 → 2nd axis machine coordinate position


so on and so forth...

R761~ Spindle Display the machine position of the corresponding spindle, unit: 0.001 Read
R770 Machine deg. Only
Position
R761 → 1st spindle machine position
R762 → 2nd spindle machine position
so on and so forth...

R771~ Spindle Current Spindle Speed according to the feedback value, if there’s no Read
R780 Speed encoder then refer to the command value. If the spindle is not Only
activated, the value should be fixed to 0. Unit: RPM.

R771 → 1st spindle speed.


R772 → 2nd spindle speed.
so on and so forth...

CNC and PLC Interface – 119


机床产品/Machine Tool Products

PLC Interface.

R781 Axis group This register is used to determine which axis group information will be R/W
switching processed by the HMI.
interface of
R781=1: The HMI will display the processing information of the 1st axis
HMI
group, and the settings made by the HMI will be set to the 1st axis
group.
R781=2: The HMI will display the processing information of the 2nd
axis group, and the settings made by the HMI will be set to the 2nd axis
group.
R781=3: The HMI will display the processing information of the 3rd axis
group, and the settings made by the HMI will be set to the 3rd axis
group.
R781=4: The HMI will display the processing information of the 4th axis
group, and the settings made by the HMI will be set to the 4th axis
group.
If R781 is set to other values, the HMI will always process the
processing information of the 1st axis group.
Example: R781 is set to 2. then:
1. The HMI will display the information of the 2nd axis group.
2. Set the number of workpieces to be processed through the HMI, and
it will be set to the 2nd axis group.

R782~R7 Spindle Gear Spindle Gear setting : Write


90 Selection 1 → 1st Gear Only
2 → 2nd Gear
3 → 3rd Gear
9 → Neutral
R782 → 2nd spindle gear position
R783 → 3rd spindle gear position
so on and so forth...
Note: 1st spindle gear position is controlled by R24 setting.

CNC and PLC Interface – 120


机床产品/Machine Tool Products

PLC Interface.

R791~R7 Effective The machining spindle under multi-axis applications is selected by the Write
94 Spindle content of the register, value definition: Only
Selection
1. the 1st spindle is the machining spindle
2. the 2nd spindle is the machining spindle
3. the 3rd spindle is the machining spindle
4. the 4th spindle is the machining spindle
so on and so forth...
R791 → machining spindle of 1st path
R792 → machining spindle of 2nd path
R793 → machining spindle of 3rd path
R794 → machining spindle of 4th path
When the spindle of the path is selected, the S command given to the
path ($1, $2) will be directly send to the corresponding affective
spindle. e.g. R791 = 1, R792 = 2,

$1 S1000 → 1000 RPM is assigned to 1st spindle


$2 S1500 → 1500 RPM is assigned to 2nd spindle
Note: Before switching the machining spindle (R791~), if the current
spindle is in the tapping state, must first cancel with G80 to avoid
unexpected subsequent machining actions.

R801~R8 MLC System System parameter No.3421 ~ No.3450 of MLC parameter (Extension Read
30 Parameter Parameter), for which one LADDER can be applicable to various Only
machines, i.e. tool change…

R831~R8 MLC System System parameter No.3451 ~ No.3460 of MLC parameter (Extension
40 Parameter Parameter), for which one LADDER can be applicable to various
machines, i.e. tool change…
** These parameters don't need to Login and can be edit by user.

R841~R8 Cause of Cause of block stop.


44 Block Stop
0: Normal. Stop by M00/M01 or Feedhold by user.
1: axis motion prohibited command, system automatically enter
Feedhold status.

R841 Cause of 1st path block stop.


R842 Cause of 2nd path block stop.
R843 Cause of 3rd path block stop.
R844 Cause of 4th path block stop.

~R850 Reserved for System reserved area


CNC

CNC and PLC Interface – 121


机床产品/Machine Tool Products

PLC Interface.

R851~ Spindle Override % of an individual spindle. R15 is the common override of all
R860 Override spindles, the actual override is R15*R851~. The unit of R851~ is %, and
does not affected by Pr3207 setting.

R851 1st Spindle override


R852 2nd Spindle override
....
R856 10 th Spindle override

R861~ Break point Machine coordinate position where machining stops. Unit is BLU, and
R870 machine the Registries support up to 10 axes.
position
Machining Break Point Machine Position, unit: minimum length unit
(BLU), same as the length parameter of system parameters. Registries
support up to 10 axis.

R871~ Spindle Spindle effective speed command, unit: RPM. Read


R879 Effective Effective RPM means the actual speed command after calculation with Only
Speed spindle override or constant surface speed.
Command
The Effective Command is the final effective speed command value
calculated after the spindle override command, constant surface
speed cutting (G96/G97) and all other related factors.

R871 1st Spindle Effective Speed Command


R871 2nd Spindle Effective Speed Command
...

R879 9th Spindle Effective Speed Command

Note: Please refer to R930 for the 10thspindle.

CNC and PLC Interface – 122


机床产品/Machine Tool Products

PLC Interface.

R880~R8 Reference Write/


Control Mode Machine Model Descriptions
95 Value for D/A Read
of Servo Card
or Torque Servo card D/A EZ, 10A R881 is active as D/A
Command command (range: command only if all the
± 10000mV), axis and spindle have
effective version: not been defined as
10.116.5 voltage control mode
(i.e., Pr381~ ≠ 1, Pr1791~
≠ 0/2).

10B/11B R881 is active as D/A


command only if all the
axis and spindle which
are linked to P5~P8 have
not been defined as
voltage control mode
(i.e., Pr381~ ≠ 1, Pr1791~
≠ 0/2)

Super-servo4 R880~R883 are active as


servo card D/A
command only if all the
axis and spindle of the
servo card have not
been defined as voltage
control mode (i.e.,
Pr381~ ≠ 1, Pr1791~ ≠
0/2)
R880 → 1st servo card D/
A command.
R881 → 2nd servo
card D/A command.
R882 → 3rd servo card D/
A command
R883 → 4th servo card D/
A command

Super-servo6 R880 → 1st servo card D/


A command
R881 → 2nd servo
card D/A command
R882 → 3rd servo card D/
A command
R883 → 4th servo card D/
A command

CNC and PLC Interface – 123


机床产品/Machine Tool Products

PLC Interface.

Control Mode Machine Model Descriptions

60A Pre-defined zone for


DAC value, reserve 16
channels.
ps: Except Servo-6/60A,
all other models needs
to activate at least 1 axis
to use this function.

Servo Card 1st D/A 3, 6, 11, 21, eHMC Have 2 sets of DA (DA1 &
& 2nd D/A series DA2).
command (Range (effective version: 1. When DA is not
± 10000mV), 10.114.56R, occupied by any
10.116.0O, spindle or axis,
10.116.6G, Registries can
10.116.10A) control DA
voltage.
2. Under condition
FC-
1, it’s able to
B, FC-60WA, FC-6
control DA1
0CB and 60DB
output with R880;
(Valid DA2 output with
version: 10.118.1 R884.
2R,
10.118.22)

71SA, 710SA Have 2 sets of D/A (DA1 &


DA2)
(Valid
version: 10.118.1 1. When the DA is
2R, not occupied by
any spindle or
10.118.22)
axis, Registries
can control DA
voltage.
2. Under condition
1, it’s able to
control DA1
output with R880;
DA2 output with
R884.
3. The DA output of
FC-LSMK laser
source is
controlled by
R881.

CNC and PLC Interface – 124


机床产品/Machine Tool Products

PLC Interface.

Control Mode Machine Model Descriptions

70SB The DA output of the


laser source is
(Valid version:
controlled by R881.
10.118.12R,
10.118.22)

Expansion D/A Multi-Axis Servo When Pr3261~Pr3263


Card on Multi- Drive Embedded =n004 (n: card station
Axis Servo Drive Controller number), R880/R884/
Embedded R888/R892 represents
(Valid version:
Controller the 1st~4th DA port on
10.116.36I, 10.11
expansion card.
(Range:±10000, 6.41, 10.117.41)
unit: mV)

Rated Torque 6MD, 20, 21, 200 Serial controllers


Reference series support torque control.
Command (Unit: Use R627 to enable/
(Valid
Rated torque/ disable torque control
version: 10.114.5
1000) mode. When axis under
6, 10.116.0)
R627 torque control
mode, these
registers are torque
reference command,
with positive value
means positive output,
negative value means
negative output.
R880 → 1st axis torque
command.
R881 → 2nd axis torque
command.
...
R895 → 16th axis torque
command
Note1: Not Support the
17th & 18thaxis.
Note2: The control
interface only supports
version 10.118.10 and
below.

CNC and PLC Interface – 125


机床产品/Machine Tool Products

PLC Interface.

Control Mode Machine Model Descriptions

D/A port output 730BA D/A:


PWM port output 720BA R880 1st port D/A
parameter output,range:
±10000,unit: mV
R884 2nd port D/A
output,range:
±10000,unit: mV
R888 3rd port D/A
output,range:
±10000,unit: mV
R892 4th port D/A
output,range:
±10000,unit: mV
PWM:
R881 1st port PWM
output basic unit(B),
range: 0~65535,unit: ns
R882 1st port PWM
output period(T),
range: 0~65535,unit:
times for basic unit
R883 1st port PWM
output duty cycle(t),
range: 0~65535,unit:
times for basic unit

CNC and PLC Interface – 126


机床产品/Machine Tool Products

PLC Interface.

Control Mode Machine Model Descriptions

D/A port output 730SA D/A:


PWM port output 720SA R880 1st port D/A
parameter output,range:
±10000,unit: mV
R884 2nd port D/A
output,range:
±10000,unit: mV
R888 3rd port D/A
output,range:
±10000,unit: mV
PWM:
R881 1st port PWM
output basic unit(B),
range: 0~65535,unit: ns
R882 1st port PWM
output period(T),
range: 0~65535,unit:
times for basic unit
R883 1st port PWM
output duty cycle(t),
range: 0~65535,unit:
times for basic unit

CNC and PLC Interface – 127


机床产品/Machine Tool Products

PLC Interface.

R896~R8 A/D value (1) A/D converter value, 2 channel per servo 6 board. Read
99 (2 ) Pre-defined zone for ADC value, reserve 4 channels. Only

Control Mode Machine Model Descriptions

A/D port input 730BA R896 1st port A/D


input,unit: mV
720BA
R897 2nd port A/D
73BA
input,unit: mV
72BA

A/D port input 730SA R896 1st port A/D


input,unit: mV
720SA
R897 2nd port A/D
input,unit: mV
R898 3rd port A/D
input,unit: mV
R899 4th port A/D
input,unit: mV

R900 Data A/D converter value, 2 channel per servo 6 board (DOS only) Write
Acquisition Only
DOS system:
Trigger (On
DOS System) When this R value is On, the oscilloscope will activate the
capture function.
Ballbar Adjust
Trigger (On WinCE system:
WinCE)
When this R value is On, start executing ballbar tuning.
When this R value is Off, stop executing ballbar tuning.

R901~R9 Axis Temperature Compensation Amount, unit: BLU Write


18 temperature Only
compensatio R901 1st axis temperature compensation amount
n amount R902 2ndaxis temperature compensation amount

R918 18thaxis temperature compensation amount

R919 Laser D/A Laser D/A output. Range: ±10000. Unit: mV.
output
Supported on 720SA, 730SA.

CNC and PLC Interface – 128


机床产品/Machine Tool Products

PLC Interface.

R920 EDM EDM discharge enabled. (0: Disable, 1: Enable) Write


discharge Only
enable.

R921 EDM control EDM discharge control mode. Write


mode 0: Fixed Frequency. suitable for laser machine. Only
1: Fixed Energy. suitable for EDM.

R922 EDM normal EDM normal ON time level, unit: Discharge resolution set by Pr3831. Write
ON time Only
(When PR3261~Pr3263= n004, this parameter means the setting for
PWM on Expandable Card of Servo Drive Embedded Controller. Valid
version 10.116.36I, 10.116.41, 10.117.41)

R923 EDM normal EDM normal OFF time level, unit: Discharge resolution set by Pr3831. Write
OFF time Only
(When PR3261~Pr3263= n004, this parameter means the setting for
PWM on Expandable Card of Servo Drive Embedded Controller. Valid
version 10.116.36I, 10.116.41, 10.117.41)

R924 EDM arc ON EDM arc ON time level, unit: Discharge resolution set by Pr3831. Write
time Only

R925 EDM arc OFF EDM arc OFF time level, unit: Discharge resolution set by Pr3831. Write
time Only

R926 Reserved Reserved for system.

R927 Total Constant energy machining, total discharge count. Read


Discharge Only
Count

R928 Normal Constant energy machining, total normal discharge count. Read
Discharge Only
Count

R929 Abnormal Constant energy machining, total abnormal discharge count. Read
Discharge Only
Count

R930 Spindle The effective speed command of the 10thspindle, unit: RPM.
Effective
Speed The Effective Command is the final effective speed command value of
Command spindle commend calculation result from percentage, constant linear
velocity control on surface (G96/G97), and all related factors.

CNC and PLC Interface – 129


机床产品/Machine Tool Products

PLC Interface.

R934 MPG: 4th MPG override selection. Write


only
1: x1
2: x10
3: x100
4: x magnified
based on
Pr2001
setting.

R935 MPG: 5th MPG override selection. Write


only
1: x1
2: x10
3: x100
4: x magnified
based on
Pr2001
setting.

R936 MPG: 6th MPG override selection. Write


only
1: x1
2: x10
3: x100
4: x magnified
based on
Pr2001
setting.

R937 MPG: 7th MPG override selection. Write


only
1: x1
2: x10
3: x100
4: x magnified
based on
Pr2001
setting.

CNC and PLC Interface – 130


机床产品/Machine Tool Products

PLC Interface.

R938 Start program Start program No. of "auxiliary program function before and after Read/
No. of machining" Write
"auxiliary
1. When value = or <0, auxiliary program will not be executed.
program
2. Auxiliary program needs to start with letter "O". (O####)
function
3. If value is less than 4 digit, system recognizes it as a 4 digit
before and
program No.; if less than 6 digit, system recognizes a 6 digits.
after
Example:
machining"
• R938 = 12 → Program No. O0012
• R938 = 1234 → Program No. O1234
• R938 = 12345 → Program No. O012345
• R938 = 123456 → Program No. O123456

R939 End program End program No. of "auxiliary program function before and after Read/
No. of machining" Write
"auxiliary
1. When value = or <0, auxiliary program will not be executed.
program
2. Auxiliary program needs to start with letter "O". (O####)
function
3. If value is less than 4 digit, system recognizes it as a 4 digit
before and
program No.; if less than 6 digit, system recognizes a 6 digits.
after
i.e.:
machining"
• R939 = 12 → Program No. O0012
• R939 = 1234 → Program No. O1234
• R939 = 12345 → Program No. O012345
• R939 = 123456 → Program No. O123456

R940 Excessive In absolute system, when CNC axis position displacement exceeds the Read
Displacement range set in Pr1021~1040 during power off, the Bit of corresponding R Only
During Power value will be On. When C84 ON this R value is cleared to 0.
Off
If needs the Bit value to send MLC alarms of corresponding axis, it can
be processed by filling the value into R44~R49.

Bit 0: 1st axis excess displacement during power off


Bit 1: 2nd axis excess displacement during power off
...
Bit 18: 18th axis excess displacement during power off
Note:
Due to the limitation of ladder file format, the R value that can be
accessed on the ladder edit is only till R639. Therefore, when using this
R value, better choose a user-defined section and an accessible R
value then write the ladder as the example shows below (take R50 for
example).

CNC and PLC Interface – 131


机床产品/Machine Tool Products

PLC Interface.

R941~ PLC Spindle PLC Spindle Command, unit: RPM. This function enabled by R580. Read/
R950 Command R941 → 1st spindle Write
R942 → 2nd spindle
...
R950 → 10th spindle

R951~R9 Current Current interpolation mode, possible value: 1/2/3/4/33/34/35 Read


54 interpolation Only
mode R951 current interpolation mode of 1st path.
R952 current interpolation mode of 2nd path.
R953 current interpolation mode of 3rd path.
R954 current interpolation mode of 4th path.

R956~R9 Extended Switch & Operation Status of extended stroke limit Read/
59 Stroke Limit Write
The extended limit switch is defined by the Bit value, Bit =1 means
activated; =0 means de-activated.

R956 .0~.31 : 01~32 set of extended stroke limit switch.


R957 .0~.31 : 01~32 set of extended stroke limit operation status.
R958 .0~.31: 33~64 set of extended stroke limit switch.
R959 .0~.31: 33~64 set of extended stroke limit operation status.
Notification:
1. Due to the limitation of ladder file format, the R value that can be
accessed on the ladder edit is only till R639. Therefore, when using
this R value, better choose a user-defined section and an
accessible R value then write the ladder as the example shows
below (take R50 for example).

2. The supported models are listed below.


81RG / HC-8A / HC-10A/ HC-7C / HC-8C / HC-10C / HC-15C / HC-8E /
HC-10E / HC-15E / HC-8S / FC-A / FC-B / FC-C

R961~R9 Home Dog The shift (offset) from Home Dog signal to motor index. Unit for rotary
78 Shift encoder: 0.01 rev; for linear encoder: 0.01 mm. (Equivalent to System
Data 56~59)

R961 is the home dog shift limit of the 1st axis

R962 is the home dog shift limit of 2nd axis


so on and so forth……

CNC and PLC Interface – 132


机床产品/Machine Tool Products

PLC Interface.

R981~R9 Axis Feedback The absolute position feedback of each axis, which is the axial motor Read
98 Position encoder feedback. For axis with dual feedback control, the Registry Only
displays feedback from 2nd (external) encoder. Unit: BLU.

R981, the position sensor value of the 1st axis

R982, the position sensor value of the 2nd axis


so on and so forth……

R1000 Part count Part count Read/


Write

R1002 Required part Required part count Read/


count Write

R1004 Total part Total part count Read/


count Write

R1005~R Controller S/ 4 bytes as one set, uses “little endian” display method; below is an Read
1007 N ASCII Code example with M9A0001: only

Number Hexadecimal Decimal (Controller


Display)

R1005 0x30 0x41 0x39 0x4 809580877


D
0 A 9 M

R1006 0x31 0x30 0x30 3223600


1 0 0

R1007 0 0

R1007 is reserved for “controller serial number” expansion.


Situation Applied:
If customers have encryption demands for “machine MACRO”, usually
check the controller serial numbers with CHKSN ("Serial Number")
inside the MACRO. But if customer wants to protect the serial number
again with the encryption logic designed by themselves, then
will decrypt inside the MACRO to compare the controller serial
"number", and R1005~R1007 can provide customers to perform this
checkup.
Note: For “little endian” method, the least significant bit is in front of
the most significant bit.

CNC and PLC Interface – 133


机床产品/Machine Tool Products

PLC Interface.

R1009 Motion Motion interpolation times after power-on, refer to System Data No. 4, Read
interpolation multiply the 2 factors can get the run time after power-on. only
times after
power-on
i.e. R1009=1000, and System Data No. 4=3000, means that the
controller has been powered-on for 3 seconds.

R1010 Cutting time Machining time per cycle, unit: second. Not retained after power-off. Read
per cycle only

R1011 Accumulate Accumulating machining time, unit: second. Value reserved when Read
cutting time power off, value can be reset to 0 by user on HMI manually. only

R1012 Power-on Power-on time, unit: second. Value not-reserved after power off. Read
time_1 only

R1013 Accumulate Accumulated power-on time, unit: second. Value reserved after power- Read
power-on off. only
time

R1014 Installation Installation cutting time for total, unit: hour. Value reserved after Read
cutting time power-off, can only be cleared at the 1st installation. only

R1015 Power-on Power-on time, unit: hour. Value not-reserved after power-off. Read
time_2 only

R1016 System date YYYYMMDD Read


YYYY: Year; MM: Month; DD: Day only

R1017 System time HHMMSS Read


HH: Hour; MM: Minute; SS: Second only

R1018 Cutting time Cutting time of last machining part, update after a part (program) is Read
per cycle finished, unit: ms. value not-reserved after power-off. only

R1019 PLC Version PLC Version, format is ##,##. Read/


Write
R1019=101 means V1,01
R1019=1020 means V10.20.

CNC and PLC Interface – 134


机床产品/Machine Tool Products

PLC Interface.

R1020~10 PLC File R1020 allowed file number of PLC file system. Write
23 System only
R1021 set store data width, unit is number of register.
R1022 set store data height, unit row number.
R1023 set the starting address of file system.
Control format as follow:

R1024~R User define/ Mill: Used for auto tool center & tool height measure function; Read/
1032 System use Write
X Axis: R1024~R1026
Y Axis: R1027~R1029
Z Axis: R1030~R1032
Lathe: User-Defined Registers

R2050~R User define/ When Pr3810 is set to 0, these registers are user defined; when Pr3810 Read
2090 System use is set to 1, these registers are used by system. only
For details, please refer to Pr3810 *Paralleled executing multiple M
code in one block.

R2091~R User define User defined Read/


2099 Write

R2100~R User define/ When Pr3228 'Enable tool manager' =0, these registers are user- Read/
3100 System use defined; Write
when Pr3228=1, registers are used by HMI, and HMI system will auto
load or save to Registry Table 2100~3100.

R3101~R User define User defined Read/


4095 Write

CNC and PLC Interface – 135


机床产品/Machine Tool Products

PLC Interface.

R4096~R Accumulate G01, G02, G03 look-ahead accumulated length ( unit : mm ) (Effective
4099 look-ahead version: 10.118.12 and above )
length
R4096 : 1st path accumulated length

R4097 : 2nd path accumulated length

R4098 : 3rd path accumulated length

R4099 : 4th path accumulated length

Note 1 : Maximum Accumulated length is 2147483647 (unit: mm)


Note 2 : Stop to accumulate length under Feedhold
and Emergency stop.
Note 3 : After reset and Emergency stop, clear the accumulator.
Note 4 : M30 will clear the accumulator
Note 5 : When executing the M Code of Workpiece Counter( Pr3804 ),
clear clear the accumulator of all paths.
Note 6 : Using M99 to repeat cycleing, the accumulated length will not
be clear. Unless Pr3804 is 99 ( Note 5 ).
Note 7 : Special Situation ( Insert Program、Tool break retract、
Feedhold Point Retract 、Tool Retraction )
1. Insert Program : Continue to accumulate when executing sub-
program.
2. Tool break retract : Accumulator only starts on the middle of
the program, user can use #1048, #1052 to evaluate remain
time.
3. Feedhold Point Retract : Stop to accumulate under Feedhold.
Restart to accumulate after cycling start. The length of tool
back will not accumulate.
4. Tool Retraction : Tool Retraction ( that is, the moment between
Tool retract and recover ) will not accumulate length.

R4100~R Reserved for System reserved area


5000 CNC

R5001~R Axis Following R5001: 1st axis following error. Read


5018 Error only
R5002: 2nd axis following error.
so on and so forth..

CNC and PLC Interface – 136


机床产品/Machine Tool Products

PLC Interface.

R5021~R Spindle Max Spindle maximum cutting speed Read


5024 Cutting Speed only
R5021 is the spindle of 1st path.
R5022 is the spindle of 2nd path.
R5023 is the spindle of 3rd path.
R5024 is the spindle of 4th path.

R5025~R Reserved for System reserved area


5028 CNC

R5029 Modbus Slave Modbus Slave Error Code. When the slave is controller, this error code Read
Error Code can be used for troubleshooting. only
For Modbus TCP slave, it can use R5303 for more information.
0:Slave (Server) activate success
1:Slave (Server) activate failure
2:Invalid Port
3:Invalid Station ID
4:Incorrect packet length
5:Incorrect packet content
6:Data confirmation error (CRC error)
7:Machining file upload abort command not received
8:Machining file read error
9:Response return failure

CNC and PLC Interface – 137


机床产品/Machine Tool Products

PLC Interface.

R5030 Modbus When R5030.0 is set to disabled, PLC Modbus component Write/
Protocol communication use the set value of Pr39xx (COM2: Pr3941~Pr3950, Read
Setup COM3: Pr3961~ Pr3970)

b0 Enable Modbus protocol Disable: 0


setting Enabled: 1

b1 Data length 7 bit: 0


8 bit: 1

b3b2 Polarity Bit No: 00


Odd Corresponding: 01
Even Corresponding: 11

b4 Stop Bit 1 bit: 0


2 bit: 1

b8b7b6b5 Baud Rate 2400 bps:0000


4800 bps:0001
9600 bps:0010
19200 bps:0011
38400 bps:0100
57600 bps:0101
115200 bps:0110
230400 bps:0111
460800 bps:1000
912600 bps:1001

b9~b31 System reserved area (do not use)

Communication Format R5030 setting example:


Baud Rate "9600"/Stop bit "1"/Polarity Bit "None"/Data length "8"/
Enable "1"
b8b7b6b5=0010 / b4 =0 / b3b2 =00 / b1 =1 / b0 =1
R5030=001000011(2) → Binary format should be converted to decimal
format, R5030=67(10)

CNC and PLC Interface – 138


机床产品/Machine Tool Products

PLC Interface.

R5031 1st Serial Absolute value of Serial MPG Pulse Count, corresponds to M3 IO Read
MPG Pulse 1st station MPG pulse feedback signal. Only
Count
After software version 10.118.13, when activating the customized IO
chart (Pr5 *I_O board type=100), it’s able to modify the corresponding
initial point R at the I/O chart page and not using R5031~R5033.

R5032 2nd Serial As above, corresponds to MPG pulse feedback signal of M3 IO Read
MPG Pulse 2nd station. Only
Count

R5033 3rd Serial As above, corresponds to MPG pulse feedback signal of M3 IO 3rd Read
MPG Pulse station. Only
Count

R5034~R Reserved for Serial MPG Function Reserved Area


5038 Serial MPG

CNC and PLC Interface – 139


机床产品/Machine Tool Products

PLC Interface.

R5039 Modbus Error When the master is controller, this error code can be used for
Code troubleshooting.
Modbus Error Code Instruction

R5039 Detail

0 Success

1 Function Code error

2 Address error

3 Data Value error - Data value is defined invalid by


Slave

4 Slave Device error

5 Confirm Acknowledge (ACK), when Slave defined


longer process time is needed, then return ACK
to prevent timeout.

6 Slave Device Busy

8 Memory Parity error

10 Gateway Path Unavailable

11 Gateway target Device failed to Respond

245 Non-supported Function Code

246 Modbus Packet format error

247 The COM Port assigned by R5040 is incorrect.

248 Server busy, halt communication command.

249 Data confirmation error (CRC error)

250 TimeOut error

CNC and PLC Interface – 140


机床产品/Machine Tool Products

PLC Interface.

R5039 Detail

251 Read COM Port error

252 Write COM Port error

253 Open COM Port error

254 Unknown error

R5040 Modbus COM Modbus COM Port is used to set up the actual wirings.
Port If the hardware is SUPER/10/20/200, the COM Port is 3 (R5040=3);
If it is ARM series controller (exclude 81R series), the COM Port is 2
(R5040=2).
If it is 81R series controller, it does not support this function.
COM Port is Modbus TCP when set to 9, it would be able to transmit
data through the Internet (LAN), the specifications are the same as
Modbus RS485, and differences are:
1. Controller client (Master) and the connecting device server
(Slave) should be under the same domain.
2. The station ID of the connecting device server (Slave) should
set to be the same as the 4thdigit of IP.
i.e. If the IP is 192.168.1.5, the station ID should set to be 5.
3. Can connect at most 2 server (Slave) devices.
4. The communication error timeout can be set in Pr 3971.

R5041~R Reserved for Syntec Reserved Area


5060 CNC

R5061~R A/D value When Pr3261~Pr3263 =n004 (n: card station number), R5061~R5066 Read
5080 mapping to 1st~6th DA port on expansion card of Syntec Servo Drive only
Embedded Controller.
(Effective version: 10.116.36I, 10.116.41, 10.117.41)

R5081~R Thermal Pre-defined zone for Thermal value, reserve 20 channels Read
5100 value only

R5101~R Axis Index R5101: 1st axis index counter Read


5118 Counter R5102: 2nd axis index counter only
so on and so forth...

CNC and PLC Interface – 141


机床产品/Machine Tool Products

PLC Interface.

R5121~R Accumulated Axis corresponding register value +1 whenever an index signal is read. Read
5138 Total Index only
Signal Counts R5121: 1staxis total index counts

R5122: 2ndaxis total index counts


so on and so forth...

R5139~R Reserved for Reserved for system


5140 CNC

R5141~R Spindle Spindle Torque Load: actual torque output of motor, unit % of rated Read
5150 Torque Load torque. only

R5141: 1st spindle torque load


R5142: 2nd spindle torque load
...
R5150: 10th spindle torque load
Note 1: The function only works for serial bus communication.
Note 2: Supporting Version 10.116.9 and above.
Note 3: For the supporting versions and brands of EtherCAT
serial, Refer to EtherCAT驱动器应用手册#主轴与轴向负载率.
Note 4: For Panasonic RTEX (A6N) set driver parameter Pr7.34=18,
supporting versions refer to RTEX驱动器应用手册.
Note 5: When spindle type is inverter spindle (Pr1791~ = 0, 5), this
value will be 0.

R5151~R Axial Torque Axial Torque Load: actual torque output of motor, unit % of rated Read
5168 Load torque.

R5151: 1st axis (X) torque load


R5152: 2nd axis (Y) torque load
so on and so forth...
Note 1: The function only works for serial bus communication.
Note 2: Supporting Version 10.116.15 and above.
Note 3: Please refer to EtherCat driver application manual for the
supporting versions and brands of EtherCat serial PLC.
Note 4: For Panasonic RTEX (A6N) set driver parameter Pr7.34=18,
supporting versions refer to RTEX驱动器应用手册

CNC and PLC Interface – 142


机床产品/Machine Tool Products

PLC Interface.

R5171~R Axial Rated Torque limit ratio, unit thousands (1/1000) of rated torque. The Write/
5188 Torque Limit Registers =0 means the axis is under maximum torque for position Read
Permille control.

R5171: 1st axis (X) torque limit ratio


R5172: 2nd axis (Y) torque limit ratio
so on and so forth..
Note 1: The function only supports
1. YASKAWAM2/M3
2. SYNTECM3
3. EtherCAT serial supporting versions and brand, ref. EtherCAT驱
动器应用手册
Note 2:To activate the function, enable the torque limitation function
by setting driver parameters and restart the driver.
Note 3: If R5171~5188 are not 0, both Pulse and Serial System do not
protect the loss pulse and tracking error.
Note4: Supporting version: 10.116.20, 10.117.21 and above
Note5: Current supporting modes are NC Axis Position Mode, Spindle
Orientation Mode (C61), Spindle Speed Mode (C64), Spindle C Axis
Mode (C63)

R5189~R Reserved for Reserved for system


5190 CNC

R5191~R Velocity Velocity FeedForward under Axis Position Mode, unit: um/sec. Read/
5208 FeedForward Write
under Axis R5191 is the 1st axis Velocity FeedForward under Axis Position Mode.
Position R5192 is the 2nd axis Velocity FeedForward under Axis Position Mode.
Mode
so on and so forth…...
Note1: The function only supports YASKAWA M3 and Panasonic RTEX.
Note2: Loss pulse and tracking error won’t be protected when using
this function.
Note3: YASKAWA M3 supporting version should be 10.116.51, 10.117.51
and above.
Note4: Panasonic RTEX supporting version should be 10.118.12I,
10.118.17 and above, please refer to RTEX Driver Application
Manual(CHT) for related parameters settings of RTEX velocity
feedforward.

R5211 Unbalance- Read


Induced Only
Acceleration
of Spindle

CNC and PLC Interface – 143


机床产品/Machine Tool Products

PLC Interface.

R5212 Unbalance- Read


Induced Only
Velocity of
Spindle

R5213 Unbalance- Read


Induced Only
Displacement
of Spindle

R5214~R Reserved for System Reserved Area


5220 CNC

R5221~R Axis feedback Axis index position, Unit: BLU. Read


5238 index position Only
For axis with dual feedback control, the Registry displays feedback
from 2nd (external) encoder.

R5101: 1st axis index counter

R5102: 2nd axis index counter


so on and so forth...

R5239~R Reserved for System Reserved Area


5290 CNC

R5291 2nd Driver IO It’s able to monitor other driver signals (Torque Limit or Brake signal) Read
Signal, by Pr3266~Pr3267 Select the first set of driver signal to be monitored. Only
default as Pr3267 = 1, R5291.1~R5291.18 corresponds to the torque arrival signal
external latch
of the 1st ~18th axis, the Bit becomes 1 when the torque arrives the
signal
limit value.
(External
latch 1 input) Pr3267 = 2, R5291.1~R5291.18 corresponds to the EXT1 signal of the 1st
~18th axis, the Bit becomes 1 when the driver receives the EXT1 input
signal.。
Pr3267 = 3,R5291.1~R5291.18corresponds to the Brake signal of the
1st~18th axis, the Bit becomes 1 when the driver activates the brake..
When applying high speed function G31, it would be able to monitor
the signal with R value and adjust it more easily if the signal resource
of G31 is set up to come from driver EXT1.
Note1: Supporting Version 10.116.36Y, 10.116.51, 10.117.51 and above
Note2: Please refer to R30 for the signal state supported by drivers
from each brand.

CNC and PLC Interface – 144


机床产品/Machine Tool Products

PLC Interface.

R5292~R Reserved for System Reserved Area


5300 CNC

CNC and PLC Interface – 145


机床产品/Machine Tool Products

PLC Interface.

R5301~R Modbus TCP • Supporting Version:10.118.46F, 10.118.48Q, 10.118.52K,


5305 Slave 10.118.56E, 10.118.60, and above
connection • Modbus TCP Slave connection diagnosis function for using CNC
diagnosis as Modbus TCP Slave
function for
the first client R function describtion Reading/
Writing
Regulation
s
(HMI、PLC
、MACRO)

R5301 The Forth • must in read/write


Number of range of
Modbus TCP 1~254,
Master IP otherwise
it will not
be valid
• R5302~R53
03 will be
valid after
setting
R5301

CNC and PLC Interface – 146


机床产品/Machine Tool Products

PLC Interface.

R function describtion Reading/


Writing
Regulation
s
(HMI、PLC
、MACRO)

R5302 Modbus TCP • When the read/write


Master Idle idle time
Time of Modbus
TCP
Master out
of the
value of
R5302,
CNC will
disconnect
with client
automatic
ally
• must in
range of
1~65535,
unit:
second
• if
the
inp
ut
val
ue
of
R53
02
is
sm
alle
r
tha
n
1,
the
n
R53
02
will
be
set
by
1

CNC and PLC Interface – 147


机床产品/Machine Tool Products

PLC Interface.

R function describtion Reading/


Writing
Regulation
s
(HMI、PLC
、MACRO)

• if
the
inp
ut
val
ue
of
R53
02
is
ove
r
655
35

the
n
R53
02
will
be
set
by
655
35

CNC and PLC Interface – 148


机床产品/Machine Tool Products

PLC Interface.

R function describtion Reading/


Writing
Regulation
s
(HMI、PLC
、MACRO)

R5303 Modbus TCP • Display only read


Master the
Connection connectio
State n state of
Modbus
TCP
Master
• bit
0:
con
nec
tio
n
stat
e
OF
F:
dis
con
nec
t、
ON:
con
nec
t
• bit
1~3
1:
res
erv
ed,
set
by
OF
F

R5304~ reserved
R5305

R5306~R Reserved for Modbus TCP Slave


5350

CNC and PLC Interface – 149


机床产品/Machine Tool Products

PLC Interface.

R5351~R Reserved for System Reserved Area


5879 CNC

R5880 Cruise Axis Switch between Positioning Control Mode and Gap Control Mode
Control
0: Switch back to Positioning Control Mode
Switch
1: Switch the 1st axis to Gap Control Mode

2: Switch the 2nd axis to Gap Control Mode


...
so on and so forth.

R5881 Target Cruise Control Mode Target Capacitance (count: 0~500,000)


Capacitance

R5882 Tracing Slope Cruise Control Mode Tracing Slope (pulse/count: -500,000~500,000)

R5883 Check ~10.118.28M, 10.118.36: Cruise Control Mode Position Check Window
Window / Max (BLU: 0~10,000)
Capacitance
10.118.28N, 10.118.37 and above: Max
Capacitance(count: -32,768~32,767), 1 Unit equals 1000 Units of R5881;
Drive version must be 2.15.0, 2.14.105, 3.0.0 and above.

R5884 Capacitance ~10.118.28M, 10.118.36:Capacitance Threshold Value (count:


Threshold / 0~500,000)
Min Capacitan
10.118.28N, 10.118.37 and above: Min
ce
Capacitance(count: -32,768~32,767), 1 Unit equals 1000 Units of R5881;
Drive version must be 2.15.0, 2.14.105, 3.0.0 and above.

R5885 Cruise Cruise Control Axial Status


Control
0: Not In Cruise Control Mode
Status
1: In Cruise Control Mode

R5886 Cruise in Cruise Control Status


Position
0: Cruise control unfinished/not support
1: Cruise control finished

R5887 Increment Increment Position Limit (BLU: -999,999~999,999)


Position Limit

R5888~R Reserved for System Reserved Area


5890 CNC

CNC and PLC Interface – 150


机床产品/Machine Tool Products

PLC Interface.

R5891~R Coordinate Combined feedrate FEEDBACK of axis group, unit LIU/min. Read
5894 Feedrate
Feedback R5891: Combined feedrate of the 1st path
R5892: Combined feedrate of the 2nd path
R5893: Combined feedrate of the 3rd path
R5894: Combined feedrate of the 4th path

R5895~R Reserved for Reserved for system


5900 CNC

R5901~R Coordinate Combined feedrate COMMAND of axis group, unit: LIU/min. Read
5904 Feedrate
Command R5901: Combined feedrate of the 1st path
R5902: Combined feedrate of the 2nd path
R5903: Combined feedrate of the 3rd path
R5904: Combined feedrate of the 4th path

R5905~R Reserved for System Reserved Area


5910 CNC

R5911~R Robot Robot Path Actual Speed Command Value, unit: LIU/s Read
5930 Coordinate
R5911: Shows the maximum single axis speed percentage the internal
Feedrate
Command axis of the 1st path can reach (unit: 0.001%)

R5912: Shows the linear direction feeding speed of the 1st path end
point.

R5913: Shows the rotary direction feeding speed of the 1st path end
point.
R5914: Shows the maximum single axis speed percentage the external
axis of the 1st path can reach (unit: 0.001%).
R5915: Reserved.
Each path provides 5 R values, and so on to R5930.

R5931~R Axis dual The dual absolute position feedback of each axis. Unit: BLU.
5948 feedback
R5931, the dual position sensor value of the 1st axis
position
R5932, the dual position sensor value of the 2nd axis
so on and so forth……

R5949~R Reserved for System Reserved Area


5950 CNC

CNC and PLC Interface – 151


机床产品/Machine Tool Products

PLC Interface.

R5951~R Accumulated Axis corresponding register value +1 whenever an dual encoder index
5968 total dual signal is read.
feedback
index signal R5121: 1staxis total dual encoder index counts
counts R5122: 2ndaxis total dual encoder index counts
so on and so forth...

R5969~59 Reserved for System Reserved Area


96 CNC

R5997 Preview 9: Syntec customer service staff Read


Manager 99: Machine Manufacturer
Classfication 100: End-User Manager
101: End-User Operator
999: Not Logged In
Effective version 10.116.10 and above

R5998 Background Register for PLC customized Image ACTION Read/


Action Write

R5999 Tapping Max. Z axis to spindle following error under rigid/rapid tapping Read
Maximum
Tracking Error

R6000~R F-RAM F-RAM memory for user self defined Read/


7999 memory for Write
user define

R8000~R MLC System R8001~R8500 correspond to System parameter No.5001 ~ No.5500. Read
8500 Parameter

R8500~R Reserved for Reserved for system


8999 CNC

R9000~R For robot Robot Kernel Operating Area (Not Customized Area) Read
9999 kernel /
Writ
e

R10000~ Reserved for Reserved for Vision system, ref. 3.7 system variables (R/L) instructions Read
R10499 Vision
Memory

CNC and PLC Interface – 152


机床产品/Machine Tool Products

PLC Interface.

R10500~ Reserved for Reserved for system


R14999 CNC

R15000~ Reserved for Reserved for Vision system, ref. 3.7 system variables (R/L) instructions
R15199 Vision
Processing

R15200~ Reserved for Reserved for Robot HMI


R15499 Robot HMI

R15500~ Reserved for Reserved for Vision system, ref. 3.7 system variables (R/L) instructions
R15999 Vision

R16000 Trigger The register represents _CycleStart action on software panel. Read
Software
When user triggers _CycleStart on software panel, this register = 1.
Panel _Cycl
eStart Actio
n

R16001 Disable If this Register = 0, triggering _CycleStart on software panel will start Writ
Direct Cycle running program; e/
Start by Read
if this Register≠ 0, system will not start when triggering _CycleStart.
Software
Panel

R16002 Trigger The register represents _FeedHold action on software panel. Read
Software
When user triggers _FeedHold on software panel, this register = 1.
Panel
_FeedHold
Action

R16003 Disable If this Register = 0, triggering _FeedHold on software panel will pause Writ
Direct Feed running program; e/
Hold by Read
if this Register≠ 0, system will not pause when triggering _FeedHold.
Software
Panel

R16004 Trigger The register represents _Jog+Axis_1, _StopJog+Axis_1 action on Read


Software software panel.
Panel
When user triggers _Jog+Axis_1 on software panel, this register = 1.
_Jog+Axis_
When user triggers _StopJog+Axis_1 on software panel, this register = 0.
1,
_StopJog+A
xis_1 Action

CNC and PLC Interface – 153


机床产品/Machine Tool Products

PLC Interface.

R16005 Disable If this Register = 0, triggering _Jog+Axis_1 on software panel, system will Writ
Direct X Axis do X Axis JOG + ; e/
JOG + by Read
if this Register≠ 0, system will not do X Axis JOG + when triggering
Software
_Jog+Axis_1.
Panel

R16006 Trigger The register represents _Jog-Axis_1, _StopJog-Axis_1 action on software Read
Software panel.
Panel
When user triggers _Jog-Axis_1 on software panel, this register = 1.
_Jog-
When user triggers _StopJog-Axis_1 on software panel, this register = 0.
Axis_1,
_StopJog-
Axis_1 Actio
n

R16007 Disable If this Register = 0, triggering _Jog-Axis_1 on software panel, system will Writ
Direct X Axis do X Axis JOG - ; e/
JOG - by Read
if this Register≠ 0, system will not do X Axis JOG - when triggering _Jog-
Software
Axis_1.
Panel

R16008 Trigger The register represents _Jog+Axis_2, _StopJog+Axis_2 action on Read


Software software panel.
Panel
When user triggers _Jog+Axis_2 on software panel, this register = 1.
_Jog+Axis_
When user triggers _StopJog+Axis_2 on software panel, this register = 0.
2,
_StopJog+
Axis_2 Actio
n

R16009 Disable If this Register = 0, triggering _Jog+Axis_2 on software panel, system will Writ
Direct Y Axis do Y Axis JOG + ; e/
JOG + by Read
if this Register≠ 0, system will not do Y Axis JOG + when triggering
Software
_Jog+Axis_2.
Panel

R16010 Trigger The register represents _Jog-Axis_2, _StopJog-Axis_2 action on software Read
Software panel.
Panel
When user triggers _Jog-Axis_2 on software panel, this register = 1.
_Jog-
When user triggers _StopJog-Axis_2 on software panel, this register = 0.
Axis_2 ,
_StopJog-
Axis_2
Action

CNC and PLC Interface – 154


机床产品/Machine Tool Products

PLC Interface.

R16011 Disable If this Register = 0, triggering _Jog-Axis_2 on software panel, system will Writ
Direct Y Axis do Y Axis JOG - ; e/
JOG - by Read
if this Register≠ 0, system will not do Y Axis JOG - when triggering _Jog-
Software
Axis_2.
Panel

R16012 Trigger The register represents _Jog+Axis_3, _StopJog+Axis_3 action on Read


Software software panel.
Panel
When user triggers _Jog+Axis_3 on software panel, this register = 1.
_Jog+Axis_
When user triggers _StopJog+Axis_3 on software panel, this register = 0.
3,
_StopJog+A
xis_3 Action

R16013 Disable If this Register = 0, triggering _Jog+Axis_3 on software panel, system will Writ
Direct Z Axis do Z Axis JOG + ; e/
JOG + by Read
if this Register≠ 0, system will not do Z Axis JOG + when triggering
Software
_Jog+Axis_3.
Panel

R16014 Trigger The register represents _Jog-Axis_3, _StopJog-Axis_3 action on software Read
Software panel.
Panel
When user triggers _Jog-Axis_3 on software panel, this register = 1.
_Jog-
When user triggers _StopJog-Axis_3 on software panel, this register = 0.
Axis_3 ,
_StopJog-
Axis_3
Action

R16015 Disable If this Register = 0, triggering _Jog-Axis_3 on software panel, system will Writ
Direct Z Axis do Z Axis JOG - ; e/
JOG - by Read
if this Register≠ 0, system will not do Z Axis JOG - when triggering _Jog-
Software
Axis_3.
Panel

R16016~ Trigger Same as above Read


R16067 Software
Panel
_Jog+/-
Axis_4~16 ,
_StopJog+/-
Axis_4~16
Action

CNC and PLC Interface – 155


机床产品/Machine Tool Products

PLC Interface.

Disable Writ
Direct 4th~1 e/
6th Axis Read
JOG + / - by
Software
Panel

R16068 Trigger The register represents _MPGSimuOn, _MPGSimuOff action on software Read
Software panel.
Panel
When user triggers _MPGSimuOn on software panel, this register = 1.
_MPGSimu
When user triggers _MPGSimuOff on software panel, this register = 0.
On ,
_MPGSimu
Off Action

R16069 Disable If this Register = 0, triggering _MPGSimuOn on software panel, system Writ
Direct MPG will enable MPG Simulation ; e/
Simulation Read
if this Register≠ 0, system will not enable MPG Simulation when
by Software
triggering _MPGSimuOn.
Panel

R16070 Trigger The register represents _SetMachinePosAxis_1 action on software panel. Read
Software
When user triggers _SetMachinePosAxis_1 on software panel, this register
Panel
= 1.
_SetMachin
ePosAxis_1
Action

R16071 Disable If this Register = 0, triggering _SetMachinePosAxis_1 on software panel, Writ


Direct Set X system will Set X Axis Machine Position ; e/
Axis Read
if this Register≠ 0, system will not Set X Axis Machine Position when
Machine
triggering _SetMachinePosAxis_1.
Position by
Software
Panel

R16072 Trigger The register represents _SetMachinePosAxis_2 action on software panel. Read
Software
When user triggers _SetMachinePosAxis_2 on software panel, this register
Panel
= 1.
_SetMachin
ePosAxis_2
Action

CNC and PLC Interface – 156


机床产品/Machine Tool Products

PLC Interface.

R16073 Disable If this Register = 0, triggering _SetMachinePosAxis_2 on software panel, Writ


Direct Set Y system will Set Y Axis Machine Position ; e/
Axis Read
if this Register≠ 0, system will not Set Y Axis Machine Position when
Machine
triggering _SetMachinePosAxis_2.
Position by
Software
Panel

R16074 Trigger The register represents _SetMachinePosAxis_3 action on software panel. Read
Software
When user triggers _SetMachinePosAxis_3 on software panel, this register
Panel
= 1.
_SetMachin
ePosAxis_3
Action

R16075 Disable If this Register = 0, triggering _SetMachinePosAxis_3 on software panel, Writ


Direct Set Z system will Set Z Axis Machine Position ; e/
Axis Read
if this Register≠ 0, system will not Set Z Axis Machine Position when
Machine
triggering _SetMachinePosAxis_3.
Position by
Software
Panel

R16076~ Trigger Same as above Read


R16101 Software
Panel
_SetMachin
ePosAxis_4
~16th Actio
n

Disable Writ
Direct Set e/
4th~16th Ax Read
is
Machine Po
sition by
Software
Panel

CNC and PLC Interface – 157


机床产品/Machine Tool Products

PLC Interface.

R16102 Trigger The register represents _ManualControlOnAxis_1 , Read


Software _ManualControlOffAxis_1 action on software panel.
Panel
When user triggers _ManualControlOnAxis_1 on software panel, this
_ManualCo register = 1.
ntrolOnAxis
When user triggers _ManualControlOffAxis_1 on software panel, this
_1 ,
register = 0.
_ManualCo
ntrolOffAxis
_1
Action

R16103 Disable If this Register = 0, triggering _ManualControlOnAxis_1 on software Writ


Direct X Axis panel, system will enable X Axis MANUAL CONTROL ; e/
MANUAL Read
if this Register≠ 0, system will not enable X Axis MANUAL CONTROL when
CONTROL b
triggering _ManualControlOnAxis_1.
y Software
Panel

R16104 Trigger The register represents _ManualControlOnAxis_2 , Read


Software _ManualControlOffAxis_2 action on software panel.
Panel
When user triggers _ManualControlOnAxis_2 on software panel, this
_ManualCo register = 1.
ntrolOnAxis
When user triggers _ManualControlOffAxis_2 on software panel, this
_2 ,
register = 0.
_ManualCo
ntrolOffAxis
_2
Action

R16105 Disable If this Register = 0, triggering _ManualControlOnAxis_2 on software Writ


Direct Y Axis panel, system will enable Y Axis MANUAL CONTROL ; e/
MANUAL Read
if this Register≠ 0, system will not enable Y Axis MANUAL CONTROL when
CONTROL b
triggering _ManualControlOnAxis_2.
y Software
Panel

CNC and PLC Interface – 158


机床产品/Machine Tool Products

PLC Interface.

R16106 Trigger The register represents _ManualControlOnAxis_3 , Read


Software _ManualControlOffAxis_3 action on software panel.
Panel
When user triggers _ManualControlOnAxis_3 on software panel, this
_ManualCo register = 1.
ntrolOnAxis
When user triggers _ManualControlOffAxis_3 on software panel, this
_3 ,
register = 0.
_ManualCo
ntrolOffAxis
_3
Action

R16107 Disable If this Register = 0, triggering _ManualControlOnAxis_3 on software Writ


Direct Z Axis panel, system will enable Z Axis MANUAL CONTROL ; e/
MANUAL Read
if this Register≠ 0, system will not enable Z Axis MANUAL CONTROL when
CONTROL b
triggering _ManualControlOnAxis_3.
y Software
Panel

R16108~ Trigger Same as above Read


R16133 Software
Panel
_ManualCo
ntrolOnAxis
_4~16 ,
_ManualCo
ntrolOffAxis
_4~16
Action

Disable Writ
Direct 4th~1 e/
6th Axis Read
MANUAL
CONTROL b
y Software
Panel

R16134 Trigger The register represents _Reset action on software panel. Read
Software
When user triggers _Reset on software panel, this register = 1.
Panel
_Reset Actio
n

CNC and PLC Interface – 159


机床产品/Machine Tool Products

PLC Interface.

R16135 Disable If this Register = 0, triggering _Reset on software panel, system will Writ
Direct Reset RESET; e/
Read
by Software if this Register≠ 0, system will not RESET when triggering _Reset.
Panel

R16136 Trigger The register represents _SingleBlockOn, _SingleBlockOff action on Read


Software software panel.
Panel
When user triggers _SingleBlockOn on software panel, this register = 1.
_SingleBloc
When user triggers _SingleBlockOff on software panel, this register = 0.
kOn,
_SingleBloc
kOff
Action

R16137 Disable If this Register = 0, triggering _SingleBlockOn on software panel, system Writ
Direct Singl will enable Single Block Stop; e/
e Block Read
if this Register≠ 0, system will not enable Single Block Stop when
by Software triggering _SingleBlockOn.
Panel

R16138 Software The register represents the argument N of _Mode_N action on software Read
Panel Mode panel, and the action switch modes base on value of N:
Selection
1: Edit
2: Auto
3: MDI
4: Jog
5: InJog
6: MPG
7: Home
I.e.: Triggering _Mode_2 will set the register =2, and switch to Auto Mode.

R16139 Disable If this Register = 0, triggering _Mode_N on software panel, system will Writ
Direct Chang switch Modes; e/
e Mode Read
if this Register≠ 0, system will not switch Modes when triggering
Selection by
_Mode_N.
Software
Panel

CNC and PLC Interface – 160


机床产品/Machine Tool Products

PLC Interface.

R16140 Software The register represents the argument N of _IncrementFeed_N action on Read
Panel Incre software panel, which decides the magnify ratio of 1st MPG & InJog
ment Feed
Example: Triggering _IncrementFeed_10, this register =10 and the
magnify ratio become x10. The single movement of InJog increased from
0.001 to 0.10.

R16141 Disable If this Register = 0, triggering _IncrementFeed_N on software panel, Writ


Direct system will adjust Magnify Ratio of 1st MPG & InJog; e/
Change Incr Read
if this Register≠ 0, system will not adjust Magnify Ratio of 1st MPG &
ement
Injog when triggering _IncrementFeed_N.
Feed by
Software
Panel

R16142 Software The register represents the argument N of _SpindleOverride_N action on Read
Panel Spindl software panel, which decides the Override of Spindle.
e Override
Example: Triggering _SpindleOverride_10, this register = 50 and the
Spindle Override become 50%.

R16143 Disable If this Register = 0, triggering _SpindleOverride_N on software panel, Writ


Direct Chang system will adjust spindle override; e/
e Spindle Read
if this Register≠ 0, system will not adjust spindle override when
Override by
triggering _SpindleOverride_N.
Software
Panel

R16144 Software The register represents the argument N of _FeedrateOverride_N action on Read
Panel Feedr software panel, which decides the Override of G01.
ate
Example: Triggering _FeedrateOverride_50, this register = 50 and the
Override
G01 Override become 50%.

R16145 Disable If this Register = 0, triggering _FeedrateOverride_N on software panel, W/R


Direct Chang system will adjust G01 override;
e Feedrate
if this Register≠ 0, system will not adjust G01 override when triggering
Override by
_FeedrateOverride_N.
Software
Panel

R16146 Software The register represents the argument N of _JOGOverride_N action on Read
Panel JOG software panel, which decides the Override of Jog.
Override
Example: Triggering _JOGOverride_50, this register = 50 and the override
become 50%.

CNC and PLC Interface – 161


机床产品/Machine Tool Products

PLC Interface.

R16147 Disable If this Register = 0, triggering _JOGOverride_N on software panel, system Read
Direct Chang will adjust Jog override; /
e JOG Writ
if this Register≠ 0, system will not adjust Jog override when triggering
Override by e
_JOGOverride_N.
Software
Panel

R16148 Software The register represents the argument N of _RapidTravelOverride_N Read


Panel Rapid action on software panel, which decides the Override of G00.
Traverse
Example: Triggering _RapidTravelOverride_50, this register = 50 and the
Override
G00 Override become 50%.

R16149 Disable If this Register = 0, triggering _RapidTravelOverride_N on software Read


Direct panel, system will adjust G00 override; /
Change Rapi Writ
if this Register≠ 0, system will NOT adjust G00 override when triggering
d Traverse e
_RapidTravelOverride_N.
Override by
Software
Panel

R16150~ Reserved for Reserved for Software Panel Function


R16999 Software
Panel

R17000 Reserved for Reserved for Laser Marking Function


Laser
Marking

R17001 SCANNER_O X Offset of laser marking galvanometer module, unit : µm. Read
FFSET XOffs /
et Writ
e

R17002 SCANNER_O Y Offset of laser marking galvanometer module, unit : µm. Read
FFSET YOffs /
et Writ
e

R17003 Reserved for Reserved for expansion of Z offset.


Laser
Marking

R17004 SCANNER_A Galvonometer module scanner mirror rotation angle,unit: 10^-6 deg. Read
NGLE Angle /
angle > 0 rotate counter-clockwise.
Writ
angle < 0 rotate clockwise.
e

CNC and PLC Interface – 162


机床产品/Machine Tool Products

PLC Interface.

R17005 MAX laser Maximum laser frequency (unit: kHz) Rea


frequency( u d/
nit: kHz ) Writ
e

R17006 MIN laser Minimum laser frequency (unit: kHz) Rea


frequency( u d/
nit: kHz ) Writ
e

R17007 Laser delay Laser delay time ( unit: 0.1 ms) Rea
time ( unit: d/
0.1 ms ) Writ
e

R17008 Laser mode Laser mode selection Rea


selection d/
0: Not selected
Writ
1: Auto Mode
e
2: Marking while data transmitting

R17009 Laser Laser program start running when the Register=1, and the Register is Read
Marking cleared to 0 when program starts. /
Control Writ
When the corresponding Bit ON, the corresponding function is triggered,
Interface e
and R17009 is automatically cleared to 0. (Do not trigger multiple functions
at once)
Bit 0: Trigger laser marking machining.
Bit 1: Trigger the laser marking reset. (C37 can also trigger a reset)

R17010 Laser end When the R value is 1, end the machining process of marking-while-data- Read
programmin transmitting, except under synchronous marking mode. /
g request Writ
After activated, system clear R-value with 0 automatically.
e

R17011 Enable Enable manual control of galvo motor Read


manual /
R17011= 0: Disabled
function for Writ
galvo meter R17011= 1: Enabled e

R17012 Enable Enable manual laser emitting Read


manual laser /
R17012 = 0: Enabled
energy Writ
R17012 = 1: Disabled e

CNC and PLC Interface – 163


机床产品/Machine Tool Products

PLC Interface.

R17013 Set manual Set manual laser frequency (unit: kHz) Read
laser /
frequency( u Writ
nit: kHz ) e

R17014~ Set manual Setup the manual jog for galvanometer scanner Read
R17016 jog for galvo /
R17014: Axis ID (1:X, 2: Y, 3: Z)
motor Writ
R17015: Magnify Ratio e
0: 0.1x
1: 1x
2: 10x
3: 100x
R17016: Basic Movement, unit: mdeg. Take the deviation value as the
current movement.

R17018 Machining 0: Single interpretation of the machining file. Read


cycle mode 1: Repeat the interpretation of the machining file a limited number of /
times. Writ
2: Repeat the interpretation of the machining file indefinitely until the reset e
signal (Reset) is triggered.
3: Record mode for the small files (unsupported with 70SB)
4: Play mode for the small files (unsupported with 70SB)

R17019 Machining If R17018 is set to 1, the value specified by this R value is used as the counts Read
paths interp of repeated interpretations of the processing file. /
retation If R17018 is set to 1, and R17019 is set to a non-positive integer, cycle start Writ
repeat count will trigger the alarm LASERCTRL-006. e

R17020 Laser Setup laser marking feedrate override, override must be > 0 and ≤ 200%。 Read
marking /
R17020 = 100 means feedrate is100%;
override Writ
R17020 = 150 means feedrate is 150%.
e

R17021 Part Only applied in conveyer marking mode, an I Bit is used to detect whether Read
detecting the parts on the conveyer passed by, and the I Bit informs the kernel there /
trigger are parts passing by with R17021. Writ
signal e
When R17021 turns to 1 from 0 means there are parts being detected. The
laser kernel will set R17021 back to 0 automatically after receiving the
signal.

CNC and PLC Interface – 164


机床产品/Machine Tool Products

PLC Interface.

R17022 Part Only applied in conveyer marking mode, an I Bit is used to detect whether Read
detecting the parts on the conveyer passed by, and the I Bit informs macro there are /
trigger parts passing by with R17022. Writ
signal - e
When R17022 turns to 1 from 0 means there are parts being detected.
macro
Macro will send the marking data to kernel and set R17022 back to 0
automatically after receiving the signal.

R17023~ Laser Reserved for Laser Marking Functions Read


R17024 Marking /
Function Writ
Reserved e
Area

R17025 Laser Laser Marking Synchronous Mode/Tracking Mode Setup Read


Marking /
0: Disabled
Synchronou Writ
s Mode/ 1: Tracking Mode (Product Line) e
Tracking
Mode Setup

R17026 Laser Laser Marking Synchronous Mode Setup Read


Marking /
0: Disp-Base
Synchronou Writ
s Mode 1: Time-Base e
Setup

R17027~ Laser Reserved for Laser Marking Functions Read


R17030 Marking /
Function Writ
Reserved e
Area

R17031~ Assign laser Assign Laser File Name, 10 R values reserved, maximum 39 bytes (Plus 1 Rea
R17040 file name ending character) d/
Writ
Example:
e
Macro :
@117031:= "Laser_Main"
Registers:
R17031'e''s''a''L'
R17032 'a''M''_''r'
R17033 '\0''n''i'

CNC and PLC Interface – 165


机床产品/Machine Tool Products

PLC Interface.

R17041~ Laser Source R17041: Set to 1, laser source switched to data transmission mode; set to Read
R17042 Pulse Width be 0, laser source data transmission mode off. /
Modulation Writ
R17042: Pulse width (unit: ns). Range limitation: 0~65535
e
The 71SA needs to use with the FC-LSMPW to connect to the first piece of
the first station.

R17043~ Reserved Reserved for Laser source pulse width setting


R17045 for Laser
source pulse
width
setting

R17046~ Reserved for Reserved for Laser Marking


R17099 Laser
Marking

R17100 Laser status Laser status Read


0:Not Ready
1:Ready
2:Processing
3:Manual

R17101 Laser mode Laser mode Rea


d
0: Not selected
1: Auto Mode
2: Marking while data transmitting

R17103~ Reserved for Reserved for Laser Marking Function


R17109 Laser
Marking
Function

R17110 Laser energy Laser energy command (0~255) Read


command

R17111~ Laser galvo Laser galvanometer scanner axis command (unit: mdeg) Read
R17113 axis
command( u
nit: mdeg )

R17114~ Laser galvo Laser galvanometer scanner axis feedback command (unit: mdeg) These Read
R17116 axis Registers display command value if no feedback.
feedback( u
nit: mdeg )

CNC and PLC Interface – 166


机床产品/Machine Tool Products

PLC Interface.

R17117~ Reserved for Reserved for Laser Marking Read


R17119 Laser
Marking

R17120 Conveyor Conveyor Current Speed Read


Current
When the conveyor sensor being set as a normal encoder, it shows the
Speed
actual feedback; when being set as the virtual speed, it shows the virtual
conveyor speed.

R17121~ Laser Laser Marking Function Reserved Area Read


R17124 Marking
Function
Reserved
Area

R17125 Laser Laser Marking Synchronous Mode/Tracking Mode Setup Read


Marking
0: Disabled
Synchronou
s Mode/ 1: Tracking Mode (Product Line)
Tracking
Mode Setup

R17126 Laser Current Laser Marking Synchronous Mode Status Read


Marking
0: Disp-Base
Synchronou
s Mode 1: Time-Base
Status

R17127~ Laser Laser Marking Function Reserved Area Read


R17150 Marking
Function
Reserved
Area

R17151 Laser Energy Decide the laser source type according to parameter 3402 and display the Read
Display laser energy of each laser source type corresponding R value, unit: %.
When using analog to adjust laser power, the corresponding R value
is R881.
When using digital to adjust laser power, the corresponding R value is R53.

R17152 Manual The R value is related to the manual laser time of the controller, the laser Read
Laser On turns on when the R value is not 0, unit: second. /
Time Input Writ
e

CNC and PLC Interface – 167


机床产品/Machine Tool Products

PLC Interface.

R17153 Remaining The R value is related to the remaining manual laser time, the laser turns Read
Manual off when the R value is 0, unit: second.
Laser On
Time

R17154 Laser Energy Decide the laser source type according to parameter 3402 and fill the Read
Setup energy into corresponding R values. /
Writ
When using analog to adjust laser power, the corresponding R value
e
is R881.
When using digital to adjust laser power, the corresponding R value is R53.

R17155 Part Rotary Set the rotary amount of laser marking, the original unit: 10^-6 deg, change Read
Angle Setup the rotary amount unit to deg. /
Writ
angle > 0 means rotating counterclockwise
e
angle < 0 means rotating clockwise

R17156 Set the grid The grid point number on single side when calling G533 for Grid Distortion Read
point Correction Marking. /
number on Writ
i.e. When the value is 5, it means to mark a 5x5 grid points.
single side e
of Grid Since the kernel of the Grid Distortion Correction only accepts 3x3, 5x5,
Distortion 9x9. 17x17, 33x33, total 5 correction options, the value should better set to
Correction be 3,5,6,17,33.
Marking
(NxN)

R17157 Grid The unilateral length (mm) when calling G533 for Grid Calibration Marking. Read
Distortion /
Correction Writ
Marking e
Range Setup
(mm)

R17158 Maximum The maximum distortion amount of all grid points when doing vision Read
Distortion distortion measurements (um). /
Amount Writ
e

R17159 Host When R17159=1, it triggered C37 and run the sub-program O1111. The Read
stopped content of O1111 is controller send HMI_Reset action. /
slave device Writ
machining e
mechanism

CNC and PLC Interface – 168


机床产品/Machine Tool Products

PLC Interface.

R17160 Set manual Manual Laser Pulse Width Setup (Unit: ns) Read
laser pulse /
width (unit: Writ
ns) e

R17161~ Laser Laser Marking HMI System Reserved Area


R17200 Marking HMI
System
Reserved
Area

R17201~ Woodworkin 0: Empty, not processing, or being overwrite to 0 by PLC after reset. Read
R17210 g Drilling /
1: The station is ready for machining.
Machine Writ
Occupied R e
value
G54~G57
station cycle
start

R17211 Woodworkin When system couldn’t find the R1720x file, unable to assign, the R value Read
g Station changes to x ( x= 1~4 ).
Alarm

R17212~ Woodworkin Woodworking Function Reserved Area


R17300 g Function
Reserved
Area

R17301~ Five-Axis Five-Axis Function Reserved Area


R17350 Function
Reserved
Area

R17351~ Laser Laser Cutting Process Parameters, CYC File. Read


R17400 Cutting /
Process Writ
Parameters e

R17401~ Laser Laser Cutting Servo Correction – Height Voltage Parameters, CYC File. Read
R17440 Cutting /
Servo Writ
Correction – e
Height
Voltage
Parameters

CNC and PLC Interface – 169


机床产品/Machine Tool Products

PLC Interface.

R17441~ Laser Laser Cutting Speed Power Chart, CYC File. Read
R17461 Cutting /
Speed Writ
Power Chart e

R17462~ Laser Laser Cutting Software Panel Parameters (Software Panel) Read
R17500 Cutting /
Software Writ
Panel e
Parameters
(Software
Panel)

R17501~ Laser Laser Cutting Power, Frequency, Servo PLC Calculating Area. Read
R17548 Cutting /
Power, Writ
Frequency, e
Servo PLC
Calculating
Area.

R17549~ Laser Laser Cutting Customized Functions (Tube exchange, Process repeat, Read
R17556 Cutting Coordinate transformation) /
Customized Writ
Functions e
(Tube
exchange,
Process
repeat,
Coordinate
transformati
on)

R17557~ Laser Laser Cutting Function Reserved Area Read


R17600 Cutting /
Function Writ
Reserved e
Area

R17601~ High-Speed High-Speed Spindle Glass Milling Machine Reserved Area


R17699 Spindle
Glass Milling
Machine
Reserved
Area

R17700~ Reserved for System Reserved Area


R17999 CNC

CNC and PLC Interface – 170


机床产品/Machine Tool Products

PLC Interface.

R18000~ Vision Vision Reserved Area - ref 3.7 System Parameter(R/L) Instructions
R18999 Function
Reserved
Area

R19000~ Robot Robot Process Package Reserved Area


R19199 Process
Package
Reserved
Area

R19000~ Robot Robot Process Package Reserved Area


R19199 Process
Package
Reserved
Area

R19200~ Reserved for Reserved for system (Consider the robot data coherence when using)
R19999 CNC

R20000~ User define User-defined


R65535

® marked components mean the signal or Register will be processed instantly.

CNC and PLC Interface – 171

You might also like