What I'm trying to achieve is to switch on and off specific I/Os via gcode call. In some motion controllers I worked before, that could be done with an M-command (i.e. M10Pn, where n indicates the pin address).
For example:
- Move to position X10 Y10
- Turn on cooling
- Move to position X0 Y0
- Turn off cooling
Assuming that the cooling is linked to a dedicated ethercat module, how do I address it? I browsed the beckhoff infosys, and it looks like M commands are the starting point, but I'm not sure how to program them.
Does anyone know where to find an example?