3.2.7 M, S, T Code and PLC Task Signal
This section is M, S, T task and other PLC resource:
Signal |
Function |
Explain |
plc.gFlag |
G code in motion |
0: stop, 1: in motion |
plc.emgStopFlag |
NC emergency occurs |
0:non, 1: occurs |
plc.mCode.data |
M code data |
Integer data |
plc.mCode.flag |
M code data flag |
0: not ready, 1: ready |
plc.mCode.finish |
M code process finish |
0: not finish, 1: finish |
plc.sCode.data |
S code data |
Converted DA value |
plc.sCode.flag |
S code data flag |
0: not ready, 1: ready |
plc.sCode.finish |
S code process finish |
0: not finish, 1: finish |
plc.tCode.data |
T code data |
Integer data |
plc.tCode.flag |
T code data flag |
0: not ready, 1: ready |
plc.tCode.finish |
T code process finish |
0: not finish, 1: finish |
plc.oss.data |
OSS data |
Integer data |
plc.oss.flag |
OSS data flag |
0: not ready, 1: ready |
plc.oss.finish |
OSS process finish |
0: not finish, 1: finish |
plc.ncTask.xAbsMachinePos |
X-axis aim machine position for NC task |
Long integer data |
plc.ncTask.yAbsMachinePos |
Y-axis aim machine position for NC task |
Long integer data |
plc.ncTask.zAbsMachinePos |
Z-axis aim machine position for NC task |
Long integer data |
plc.ncTask.aAbsMachinePos |
A-axis aim machine position for NC task |
Long integer data |
plc.ncTask6.bAbsMachinePos |
B-axis aim machine position for NC task |
Long integer data★ |
plc.ncTask6.cAbsMachinePos |
C-axis aim machine position for NC task |
Long integer data★ |
plc.ncTask.speed |
Speed for NC task |
Unsigned integer data |
plc.ncTask.flag |
Axis for moving |
NC_TASK_OF_X: X-axis NC_TASK_OF_Y: Y-axis NC_TASK_OF_Z: Z-axis NC_TASK_OF_A: A-axis NC_TASK_OF_B: B-axis ★ NC_TASK_OF_C: C-axis ★ |
plc.ncTask.finish |
NC note NC task finished |
1: finish, 0: not finish |
plc.spindleEncoderCount |
Current spindle encoder count |
Unsigned short integer data |
plc.spindleDaValue |
PLC set DA value for spindle |
Short integer data |
plc.errorMessage |
Error message string |
Pointer of char string |
plc.versionText |
PLC version string |
Pointer of char string |
plc.realScode |
Real S code value |
Integer data |
plc.subprogram |
Subprogram name for PLC calling |
Pointer of char string |
plc.mhAttr |
M code with H code |
00: non 01: one H code 02: two H code |
plc.mhCode0 |
H code data 0 |
Integer data |
plc.mhCode1 |
H code data 1 |
Integer data |
plc.errorNo |
PLC send a error No. to NC then NC send this error No. to IClient by TCP/IP. (S system) |
Short integer data |
plc.ncCommand.flag |
ncCommand ready |
Main direction axis length distortion compensation
Data input file application - create a file for data input
Data input file application - close the newly created file
Data input file application - insert data
Axial broken circuit position tracking
System shutdown
Set axis has been homed
Axial locking
Axial loose lock
Reset the relative position
G37 Specified input point detection
G31 Specified input point detection
Set mechanical position
Manual setting mode
Manual RTCP mode switch
Not manual RTCP mode switch
Manual hold
Switch hold- Normal manual mode
Axial use switch |
plc.ncCommand.attr |
Assigned axis of ncCommand |
(Specify X axis)
(Specify Y axis)
(Specify Z axis)
(Specify A axis)
(Specify B axis)
(Specify C axis)
(Manual empty run)
(Manual mechanical lock)
(Manual spindle lock)
(Manual selection hold)
(Manually skip)
(Manually step) |
plc.ncCommand.data |
ncCommand command |
Short integer data |
plc.ncCommand.finish |
ncCommand finish |
1: finish, 0: not finish |
plc.hardwareId |
Hardware ID |
Integer data |
plc.productId |
Product ID |
Integer data |
plc.versionId |
Version ID |
Integer data |
plc.systemVersion |
System version |
Short integer data |
plc.systemVersionSub |
System sub version |
Short integer data |
Note: ★M86/M86R only.