Adding % in CNC Program/ Anilam Crusader Control

This forum is dedicated to those Hobbyists Interested in CNC machining in their home shops. (Digital Read Outs are also topical, as is CAD/CAM as it relates to CNC)

Moderator: Harold_V

Post Reply
sierevello
Posts: 90
Joined: Sat Feb 01, 2003 3:24 am

Adding % in CNC Program/ Anilam Crusader Control

Post by sierevello » Mon May 23, 2016 10:36 am

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

User avatar
Bill Shields
Posts: 5084
Joined: Fri Dec 21, 2007 4:57 am
Location: Somewhere in the World
Contact:

Re: Adding % in CNC Program/ Anilam Crusader Control

Post by Bill Shields » Tue May 24, 2016 8:16 am

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

Post Reply