ADTECH9 Series CNC Programming Manual
4.10.22. WRITEPLC Write Physical or Auxiliary Output Point
Function description: Write the auxiliary point with the signal quantity interacting with PLC and larger than
1024
Parameter: NUM: Port No. VAL Output Signal value (0 or 1)
Note: (NUM<512 Write physical output point OUT)
(NUM >=1024 NUM < = 7999 write auxiliary point, which is the auxiliary point with the signal quantity
interacting with PLC)
Returned value: If correct, it returns 0; If error, it returns the value >1
INT16U WRITEPLC(INT32U NUM,INT8U VAL)
4.10.23. READPLC Read Physical or Auxiliary Output Point
Function description: Read physical or auxiliary output point
Note: (NUM < 512 Read physical input point)
(NUM >=1024 NUM < = 7999 Read auxiliary output point, which is the auxiliary point with the signal
quantity interacting with PLC)
If correct, it returns the auxiliary output coil value 0 or 1; If error, it returns value>1
INT16U READPLC(INT32U NUM)
4.10.24. WAITPLC Timeout Waiting for Read of Physical or Auxiliary Input
Point
Function description: Timeout waiting for read of physical or auxiliary input point
Parameter NUM physical input point 0-511 or the auxiliarypoint 1024-7999 with signal quantity interacting
with PLC VAL read effective value (0 or 1) TIMEOUT>0 Timeout (ms) 0 Wait continuously until the
signal is detected or [Press the Reset to quit]
Returned value In case of VAL, it returns 0 In case of no VAL after timeout, returns 1; In case of error, it
returns the value>1
INT16U WAITPLC(INT32U NUM,INT8U VAL, INT32U TIMEOUT)
4.11
Special M Code
M Code for axis synchronization and dynamic mapping