Page 2 of 2

Posted: Mon 09 Oct , 2006 21:17 pm
by Denford Admin
Glad you worked it out 8)

Can you qoute a couple of examples of the string to number conversion so anyone else could do the same ?

Cheers

Posted: Tue 10 Oct , 2006 21:01 pm
by Karl
Cheers

I'm going to check with my friend that figured it out and if it's OK with him I'll post the reply I got from him. The data is(as I remember it):
79 bytes for each line of startuen data

byte 1 = line #
Byte 2 = ?
Byte 3 = 1 to indicate if the number in byte 4 is G, 2 if it is an M code
Byte 4 = value of G or M code
Byte 5 = # of valid characters in the remark statement to follow
Byte 6 to 37 = ascii text of remark statement
Byte 38 to 44 X value in mantissa/exponent format
Byte 45 to 51 Y value
Byte 52 to 58 F value
Byte 59 to 65 R value

That's about how it fell out. I hope it helps someone else.

Karl

Posted: Wed 11 Oct , 2006 15:48 pm
by Denford Admin
And after all that ....... Mr Magoo finds a DOS utility which takes G-Code text files and creates an STA and a STS file :roll:

Here it is: :D

Re: Starturn 4 '.sta" format

Posted: Mon 12 Oct , 2009 17:07 pm
by robtjhill
i have run in command prompt but, cannot read nc file is displayed where it should have converted blocks

can someone tell me what i am doing wrong

Re: Starturn 4 '.sta" format

Posted: Tue 13 Oct , 2009 7:48 am
by Mr Magoo
I've just seen this post - wish I'd seen it earlier to save you folks some pain. :roll:

The attached STSPEC.TXT gives the file format the txt file should follow in order for it to be read by the conversion program. HTH

Re: Starturn 4 '.sta" format

Posted: Tue 13 Oct , 2009 8:26 am
by Mr Magoo
Hi Karl...

I know it's a bit late in the day to post this, but here is the format of a Program Block record (cnc block) that is loaded / saved by the Starturn...

Code: Select all

blockno:    // looks like this is a 16 bit signed integer ??
kind:        // byte: 0=blank line, 1=GCode, 2=MCode, 3=comment
code:       // byte: G or M Code value
commentary: // comment text (first byte is text length),then 32 bytes 
parms: array [1 .. 6] of   // array of 6 parameters to follow (eg x, y, z, f, r )
  record               // (I guess a max of 6 because of a threading block)
    value: real;      // float: each parameters value
    filled: boolean   // boolean (probably a byte): true if this parameter is used?
  end
Hope this makes sense if you're pursuing you own file writer! I may be able to dig out some further notes if it helps.

Re: Starturn 4 '.sta" format

Posted: Mon 28 Mar , 2011 18:50 pm
by black5f
Very late on this post! Try this...
viewtopic.php?f=46&t=3253

Tom