I need to create a macro or script to manage the raising and lowering of two pressure rollers of the part against the machine bed.
I need the front roller to deactivate (raise) by activating an output when it is 80mm or less from the edge of the geometry at the origin in Y, and to raise again when it exceeds the 80mm Y dimension.
The rear roller needs to raise when it is 80mm or less from the maximum Y value in the Gcode, and to lower again when it is outside this range.
Could you help me?
It would be something like a variable or something like that.
I've seen that this data can be used from Mach:
MaxY – Get maximum Y extent for current G-code file
SetParam("YMachine", Axis position)
The variables would be something like this, but I don't know if Mach3 works this way...
MaxY=>MaxY-80, DeactivateSignal(OUTPUT3) ' Deactivate rear piston lowering
MaxY=<MaxY-80, ActivateSignal(OUTPUT3) ' Activate rear piston lowering
YMachine=>YMachine-80, DeactivateSignal(OUTPUT2) ' Deactivate front piston lowering
YMachine=>YMachine+80, ActivateSignal(OUTPUT2) ' Activate front piston lowering
Necesito crear una macro o script, para gestionar la subida y bajada de dos rodillos de presion de la pieza contra la bancada maquina.
El rodillo delantero, necesito que desactive (suba) activando una salida cuando este en Y a 80mm o menos del filo de la geometria en el origen y que vuelva a subir cuando se supere la cota 80mm en Y.
El rodillo trasero necesita que suba cuando este a 80mm o menos del Y maximo del Gcode, y que vuelva a bajar cuando este fuera de este rango.
Podriais ayudarme?
Seria algo como una variable o algo asi.
He visto que se pueden usar estos datos desde mach:
MaxY – Get maximum Y extent for current G-code file
SetParam(“YMachine”, Axis position)
Las variables serian algo asi, pero nose si mach3 trabaja de esta forma.....
MaxY=>MaxY-80, DeactivateSignal(OUTPUT3) ‘ Desactivar bajada piston trasero
MaxY=<MaxY-80,ActivateSignal(OUTPUT3) ‘ Activar bajada piston trasero
YMachine=>YMachine-80, DeactivateSignal(OUTPUT2) ‘ Desactivar bajada piston delantero
YMachine=>YMachine+80,ActivateSignal(OUTPUT2) ‘ Activar bajada piston delantero