Loading a modified macro:
Let's try editing an existing macro (M882, aka UserProgram2) and restoring it to the controller. For one thing, it would be helpful to translate the status and error messages to something I can read and understand.
Let's try this:
STATUSINFO(Tool Z axis setting is a-happening);
IF (+#387) THEN;
MOVE(G90,F#386,Z#382);
MOVE(G90,F#386,X#380,Y#381);
ENDIF;
MOVE(G90,F#383,Z#388,W+25);//#1925
PAUS160;
IF (-X25) THEN
MESSAGEBOX(Bollocks - no closing signal seen!)
ERREXIT;
ENDIF
MOVE(G90,F#384,Z#1929,W-25);
IF (+X25) THEN
MESSAGEBOX(Bollocks - no release signal seen!)
ERREXIT;
ENDIF
#50=#5023;
MESSAGEBOX(Well done fat boy. Now run M883!)
RETURN;
Loaded this into the machine and ran it.
That seems to work. And the error messages come out if you create the right conditions. The "MESSAGEBOX" instruction creates a popup which then requires you to clear it, whereas the "STATUSINFO" instruction simply appears in the green banner thing at the bottom.
Worth knowing: you can plug in a UFD with only one single file (ProgramUser2 in this case) and the "restore" operation will only upload that file into the system. The subsequent STATUSINFO message tells you to restart the system but in fact it doesn't seem to need it.
Retrofitting 1983 Shizuoka AN-SB CNC milling machine, Bridgeport mill, Colchester Bantam lathe and 1982 Tree UP-1000 CNC lathe with modern controls - and other workshop stuff
Subscribe to:
Post Comments (Atom)
TIG welder up and running - after some fault diagnostics and repair
Finally got some time to connect up the flow meter and argon hose. Plugged in the torch and ground cables and the torch hose etc. Powered it...
-
Setting up the servo tuning(?) software: Having spent a couple of hours yesterday pratting about with the PID controllers for the X and Z ax...
-
The "Leadshine" DM556 stepper drive I ordered last week arrived this morning. This is a 50V / 5.6A 2-phase stepper drive. Given...
-
Oh what now, fatty? This Linuxcnc stuff was always going to be a painful experience. You have to get deep into it to get anything done, yet ...
No comments:
Post a Comment