Good day for everyone,
I'm working in a retrofit project for a CNC punch press machine, I replaced the old electronic Palvision control system by a CSMIO/IP-S board, so my next step is to control the proportional valve for the 20 ton hydraulic cylinder. The speed of the proportional cylinder is controlled by a +/- 10V analog signal and it provides a 0-10V feedback signal to know the position.
So I was thinking in using a macro that would be called to perform every punch, but thinking further in the Gcode programming, it would be very useful to use the Canned cycles G81 to make programming easier as it only requires X and Y coordinates per line for machine to moves and "drill" (in case of a mill), and here comes the question, is there any way a script can recognize if G81 is activated and perform a punch in every line? or should I make an script to "link" the internal parameters of speed and position of Z axis to control the analog signal of the Ram?
I would appreciate if someone have a clue of how to perform this action.
Best regards.