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]
Summary of Contents for CNC9640
Page 1: ...ADTECH9 Series CNC Programming Manual ...
Page 21: ...ADTECH9 Series CNC Programming Manual Workpiece Coordinate System Diagram ...
Page 44: ...ADTECH9 Series CNC Programming Manual 2 Occasions that inner corner rotates ...
Page 45: ...ADTECH9 Series CNC Programming Manual ...
Page 62: ...ADTECH9 Series CNC Programming Manual Manual insertion ...
Page 65: ...ADTECH9 Series CNC Programming Manual Tool radius compensation start and axis Z cut in action ...
Page 117: ...ADTECH9 Series CNC Programming Manual ...
Page 118: ...ADTECH9 Series CNC Programming Manual ...
Page 142: ...ADTECH9 Series CNC Programming Manual ...
Page 143: ...ADTECH9 Series CNC Programming Manual ...