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]
Need help?
Do you have a question about the ADTECH9 Series and is the answer not in the manual?