Thomasm
29th April 2008, 16:50
I need to create a cut list for our Elumatec saw and it requires a hex(02) to start a cut instruction and a hex(03) to end it.

I have the data and I put a chr$(2) in the beginning and a chr$(3) at the end but the ASCIF/ASCIT device removes those characters in the file that is created. So the file comes out with correct data but without the STX and ETX.

How can I create an ASCII file that includes some binary characters?

Thanks,
/Thomas

rduncan10
29th April 2008, 19:11
Funny, I just happened to be updating the code to a similar script when I read this.

Try skipping the report and use "seq.open" ... "seq.puts" within the session script to output the file. This will keep the chr$() characters.

Let me know if you need an example.

Thomasm
30th April 2008, 12:22
Thanks for your reply. I took something over from someone and I never thought to that solution. That is of course the way to do it.

Thanks again,
/Thomas