Special Macro
Special Macro
Parameter MODE: Motion mode MODE motion mode (0: Positioning - wait for the end of the motion; 1:
interpolation - wait for the end of the motion; 2: positioning - not wait for the end of the motion; 3:
interpolation not wait for the end of the motion)
AXIS: A1: Number of the motion axis 1 P1: motion displacement 1 mm A2: Number of the motion axis
2 p2: motion displacement 2 mm
Returned value: If correct, it returns 0; If error, it returns the value >1
INT16U MOVEASA(INT8U MODE,INT8U A1,float P1,INT8U A2,float P2)
Parameter MODE: Motion mode MODE motion mode (0: Positioning wait for the end of the motion 1:
Interpolation wait for the end of the motion 2: Positioning not wait for the end of the motion 3:
Interpolation not wait for the end of the motion)
AXIS: A1 Number of the motion axis 1 P1: Motion displacement 1mm A2: Number of the motion
axis
Returned value: If correct, it returns 0; If error, it returns the value >1
INT16U MOVERSB(INT8U MODE,INT8U A1,float P1,INT8U A2,float P2,INT8U A3,float P3)
Returned value: If correct, it returns 0 for low electrical level or 1 for high electrical level;If error, it returns the
value>1
INT16U READLED(INT32U NUM)
4.10.19. MOVEWAITIN Search and Wait for the Input Signals in Motion
Function description: Search and wait for the IN signal to effectively stop in motion
Parameter AXIS: Number of the motion axis SPEEDV: Searching speed POS: Searching distance
(relative distance Unit mm) IN: Wait input signals TIMEOUT: timeout Unit ms wait continuously
when it is 0
Returned value: 0: Detect the IN stop the motion of the axis Timeout: 1 Error: Return>1
INT16U MOVEWAITIN(INT8U AXIS,INT32U SPEEDV,float POS,INT8U IN, INT32U TIMEOUT)
4.10.20. WAITMOVE Wait for the End of the Motion of All Axes
Function description: Wait for the end of the motion of all axes
Parameter: Number of the axis A1 A2 A3 and A4 after the end of motion (Note: Inputting 0 for A1, A2, A3
and A4 results to invalid axis which will not wait)
Returned value: If all axes end the motion, it returns 0; If error, it returns the value>1.
INT16U WAITMOVE(INT8U A1,INT8U A2,INT8U A3,INT8U A4)
If correct, it returns the auxiliary output coil value 0 or 1; If error, it returns value>1
INT16U READPLC(INT32U NUM)