Extended Special Macro Functions; Rcoor Read Workpiece Coordinates; Rmacpos Read Machine Tool Coordinates; Wmacpos Write Machine Tool Coordinates - Adtech ADTECH9 Series Programming Manual

Table of Contents

Advertisement

ADTECH9 Series CNC Programming Manual

4.10 Extended special macro functions

4.10.1. RCOOR read workpiece coordinates

Function description: Read G54-G599 workpiece coordinates
Parameter: AXIS read axis No. 1-6 corresponding to Ax Ay....Ac
COOR reads workpiece coordinates 123....15 corresponding to G45 G55....G599
float RCOOR(INT8U AXIS,INT8U COOR)
Example: The program for reading the variable X-#100 in the G54 coordinates is as below:
#100=RCOOR[1,1]

4.10.2. RMACPOS read machine tool coordinates

Function description: Read machine tool's coordinates
Parameter: AXIS No.
Returned value: It return the current machine tool's coordinates Unit mm
float RMACPOS(INT8U AXIS)
Example: The program for reading the variable X-#100 in the machine tool coordinates is as below:
#100= RMACPOS[1]

4.10.3. WMACPOS write machine tool coordinates

Function description: Write machine tool's coordinates
Parameter: AXIS NO. VAL writes coordinates Unit mm
Returned value 0
INT16U WMACPOS (INT8U AXIS,float VAL)
Example: The program for reading the variable X-#100 in the machine tool coordinates is as below:
#100=20 (the input value for the X mathine tool is 20)
WMACPOS [1,#100]

4.10.4. SPEEDS set interpolation speed

Function description: Set the interpolation speed
Parameter: STARTV initial speed of interpolation mm/min set to 0 in default
SPEEDV drive speed of interpolation mm/min set to 0 in default
Returned value 0
INT16U SPEEDS(INT32U START,INT32U speed)
Example: If the set initial interpolation speed is 200, the drive speed is 1500, the usage is as follows:
SPEEDS[200,1500]

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ADTECH9 Series and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Cnc seriesCnc9640Cnc9650Cnc9960Cnc9810Cnc9810e

Table of Contents