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

  • NC_COMMAND_SET_SPINDLE_LENGTH_COMP

Main direction axis length distortion compensation

  • NC_COMMAND_CREATE_DATA_FILE

Data input file application - create a file for data input

  • NC_COMMAND_CLOSE_DATA_FILE

Data input file application - close the newly created file

  • NC_COMMAND_INSERT_DATA

Data input file application - insert data

  • NC_COMMAND_TOGGLE_HANDLE

Axial broken circuit position tracking

  • NC_COMMAND_SHUT_DOWN

      System shutdown

  • NC_COMMAND_SET_AXIS_HOMED

      Set axis has been homed

  • NC_COMMAND_LOCK_ROTARY_AXIS

Axial locking

  • NC_COMMAND_UNLOCK_ROTARY_AXIS

Axial loose lock

  • NC_COMMAND_RESET_RELATIVE_POSITION

Reset the relative position

  • NC_COMMAND_SET_G37_PROBE_PORT

G37 Specified input point detection

  • NC_COMMAND_SET_G31_SKIP_PORT

G31 Specified input point detection

  • NC_COMMAND_MCH_POS_RETRIEVE

Set mechanical position

  • NC_COMMAND_MENU_ITEM

Manual setting mode

  • NC_COMMAND_SET_G168_MODE_IN_MANUAL (Only for INCON-M86R)

Manual RTCP mode switch

  • NC_COMMAND_SET_G168_MODE_NORMAL (Only for INCON-M86R)

Not manual RTCP mode switch

  • NC_COMMAND_MANUAL_HOLD

Manual hold

  • NC_COMMAND_MANUAL_FEED

Switch hold- Normal manual mode

  • NC_COMMAND_SET_AXIS_OPERATE

Axial use switch

plc.ncCommand.attr

Assigned axis of ncCommand

  • NC_TASK_OF_X

(Specify X axis)

  • NC_TASK_OF_Y

(Specify Y axis)

  • NC_TASK_OF_Z

(Specify Z axis)

  • NC_TASK_OF_A

(Specify A axis)

  • NC_TASK_OF_B★

(Specify B axis)

  • NC_TASK_OF_C★

(Specify C axis)

  • MENU_ITEM_DRY_RUN

(Manual empty run)

  • MENU_ITEM_MACHINE_LOCK

(Manual mechanical lock)

  • MENU_ITEM_SPINDLE_LOCK

(Manual spindle lock)

  • MENU_ITEM_OPTIONAL_HOLD

(Manual selection hold)

  • MENU_ITEM_BLOCK_SKIP

(Manually skip)

  • MENU_ITEM_SINGLE_STEP

(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.