G-code
Supported M-codes

M64, M65, M66, M67 (Phoenix Contact Axioline IO)

10min
these commands use the axioline smart elements by phoenix contact support for this is locked with a paid activation key contact our sales team when interested in purchasing a key without this key, this functionality will not work this key is only available for icnc600, cnc720, and cnc760 controllers digital outputs axl se do16 set output m64 p set the output on the modbus tcp module to on the p word must be comprised of a module number(1 6) and an output port(1 16) m64 p102 (set module 1 output 2 to on) clear output m65 p set the output on the modbus tcp module to off the p word must be comprised of a module number(1 6) and an output port(1 16) m65 p405 (set module 4 output 5 to off) read outputs m67 p read the state of the output on the modbus tcp module , and store the result in variable #5399 the p word must be comprised of a module number(1 6) and an output port(1 16) m67 p211 (read the module 2 output 11) if \[#5399 == 1] ; output is on else ; output is off endif digital inputs axl se di16 read inputs m66 p read the state of the input on the modbus tcp module , and store the result in variable #5399 the p word must be comprised of a module number(1 6) and an output port(1 16) m66 p513 (read the module 5 input 13) if \[#5399 == 1] ; input is on else ; input is off endif read input + wait m66 p l q read digital input p and specify wait mode, the result is stored in variable #5399 p the input number l 0 do not wait l 1 wait for high l 2 wait for low q timeout (seconds) m66 p104 l2 q30 (read the module 5 input 13) if \[#5399 == 1] errmsg "timeout while waiting for module 5 input 13 becoming low" else msg " module 5 input 13 is off" endif note that we use wait (l2) here, in the event of a timeout, the value of #5399 is 1 in order to make this code simulation and rendering proof we need to extend it like this if \[\[#5380 == 0] and \[#5397 == 0]] (check only if running job) m66 p3 l2 q30 (read the module 5 input 13) if \[#5399 == 1] errmsg " timeout while waiting for module 5 input 13 becoming low " else msg " module 5 input 13 is off " endif endif