M64, M65, M66, M67 (Phoenix Contact Axioline IO)
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.
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).
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).
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).
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).
Read digital input P and specify wait mode, the result is stored in variable #5399
- P...: the input number
- L0: do not wait
- L1: Wait for High
- L2: Wait for Low
- Q...: timeout (seconds)
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: