Any ideas how to easily enter a % after every 200 blocks of code? I have an Anilam Crusader M control on my mill and it has the drip feed option through RS232. However, it requires the % to shut down the servos while the machine downloads more code. It is a real pain to manually enter these and I don't know how to modify the post to make this happen.
Thanks,
Steve
Adding % in CNC Program/ Anilam Crusader Control
Moderator: Harold_V
-
- Posts: 92
- Joined: Sat Feb 01, 2003 3:24 am
- Bill Shields
- Posts: 10548
- Joined: Fri Dec 21, 2007 4:57 am
- Location: 39.367, -75.765
- Contact:
Re: Adding % in CNC Program/ Anilam Crusader Control
POST from what software?
Techniques are different for all, however
If this is what you want to do, then
Create a counter
increment it after every line
when the counter gets to 199, have it spit out % then reset the counter.
Repeat
You could also do this in Basic as an external routine on any text file
Open the input file and an output file of a different name
set an internal counter to 0
read a line -> write a line -> increment counter
when counter gets to 199, have it spit out % to the output file
reset counter
continue
Doing this blindly can have problems since it is possible to add a "%" in the middle of a multi-line command.
I don't remember exactly what the M will do under those circumstances....just beware.
Simply counting lines can be dangerous since a 'line' can have either a lot or a little information
Look here for how to setup the control and some simple RS232 software to 'drip feed' without "%". YOu can do it with either software or wire control
http://www.cnczone.com/forums/post-proc ... tware.html
Techniques are different for all, however
If this is what you want to do, then
Create a counter
increment it after every line
when the counter gets to 199, have it spit out % then reset the counter.
Repeat
You could also do this in Basic as an external routine on any text file
Open the input file and an output file of a different name
set an internal counter to 0
read a line -> write a line -> increment counter
when counter gets to 199, have it spit out % to the output file
reset counter
continue
Doing this blindly can have problems since it is possible to add a "%" in the middle of a multi-line command.
I don't remember exactly what the M will do under those circumstances....just beware.
Simply counting lines can be dangerous since a 'line' can have either a lot or a little information
Look here for how to setup the control and some simple RS232 software to 'drip feed' without "%". YOu can do it with either software or wire control
http://www.cnczone.com/forums/post-proc ... tware.html
Too many things going on to bother listing them.