Page 1 of 1

Adding % in CNC Program/ Anilam Crusader Control

Posted: Mon May 23, 2016 10:36 am
by sierevello
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

Re: Adding % in CNC Program/ Anilam Crusader Control

Posted: Tue May 24, 2016 8:16 am
by Bill Shields
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