User avatar
Site 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
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
User avatar
Site 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
Attachments:
Shows the starturn STA file creator running from a DOS command prompt (in XP)
Shows the starturn STA file creator running from a DOS command prompt (in XP)
starturn-converter-in-action.gif (1.7 KiB) Viewed 24036 times
STURN1B.zip
Contains the sturn1b.exe and an example G code program.
Just type sturn1b testprg.txt to convert the gcode into STA format
(7.53 KiB) Downloaded 1276 times
Re: Starturn 4 '.sta" format
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
User avatar
CNC Guru
CNC Guru
Re: Starturn 4 '.sta" format
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
Attachments:
STSPEC.TXT
Starturn TXT to Binary conversion spec
(2.97 KiB) Downloaded 1303 times
User avatar
CNC Guru
CNC Guru
Re: Starturn 4 '.sta" format
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
Very late on this post! Try this...
viewtopic.php?f=46&t=3253

Tom
Post Reply

Information

Moderators

Mr Magoo, Martin, Steve