515,098 active members
3,968 visitors online
Register for free
Login
IndustryArena Forum > MetalWorking Machines > Okuma > Okuma rs232 file format
Results 1 to 14 of 14
  1. #1
    Registered
    Join Date
    Aug 2006
    Posts
    111

    Okuma rs232 file format

    I'm looking for documentation for the file format for a OSP700L controller. My rs232 param's are set correctly as I can punch programs out but can't read. Through CN0: it gets a 5240 alarm and reading a floppy I get 5000 #7 alarm. I have tried to send an uploaded file back and it still fails with it's own file format.

    What is the string that it needs to have at the top of the file to receive a program including the Xon character.

    $O1590ht.min% is the format sent from the machine.

  2. #2
    Registered
    Join Date
    Mar 2004
    Posts
    761
    Post a sample output file.
    Wayne Hill

  3. #3
    Registered
    Join Date
    Mar 2009
    Posts
    1356
    My rs232 param's are set correctly
    wrong presumption
    I can punch programs out
    So You are in the beginning of serial connection adjustments.
    Pay attention, there are different settings on OSP for sending and for receive. I would start from cable check.
    it gets a 5240 alarm and reading a floppy I get 5000 #7 alarm
    I'm lazy to sneak into alarm list. Can You post full text of alarm? It points an error as usual.
    How do You manage to get alarm even from floppy? Is DIR command executed properly? Do You use OSP format floppy or MS-DOS (<- computer) format?

  4. #4
    Registered
    Join Date
    Aug 2006
    Posts
    111
    Quote Originally Posted by Algirdas View Post
    My rs232 param's are set correctly
    wrong presumption
    I can punch programs out
    So You are in the beginning of serial connection adjustments.
    Pay attention, there are different settings on OSP for sending and for receive. I would start from cable check.
    As it turns out the comm param's are set correctly my assumption that the upload format would be the same as the download format was foolish. All I needed to do was strip the 1ST line ($filename.min%) out of the file. Then download as the manual states. The trick is to rename the file after download. It seems to name the every file "a.min". I tried to specify the file name CN0:filename.min but got some sort of syntex error.

    The controller seems to run off of some kind of command line language like DOS or Linux bash shell. Is this command line language documented as to grammar and syntex or maybe a command list with definitions ?

  5. #5
    Registered
    Join Date
    Mar 2009
    Posts
    1356
    there are parameters set for file name check while input to OSP as well, as for output or not output file name when sending file out from OSP.
    For Your information, at this time there are more that 2000 active operating systems, not only DOS and Linux (Unix). The OSP operating system is Okuma's own operating system, You can read credencials while loading.
    Syntaxis is described in OSP operating and programming manual very clearly with very few mistakes and illustrated.

  6. #6
    Flies Fast
    Join Date
    Dec 2008
    Posts
    2818
    Quote Originally Posted by Species8472 View Post
    ($filename.min%) out of the file. Then download as the manual states. The trick is to rename the file after download. It seems to name the every file "a.min". I tried to specify the file name CN0:filename.min but got some sort of syntex error.
    The syntax error means your command line is not correct

    A.MIN is the default filename if none is specified
    so if you type CN0:,filename.min
    CN0: means the RS232 port of the machine
    , is a deliminator ( it reads the file in into this filename )
    if nothing is after the comma, then A.MIN is default

    Te other errors should relate to the filename and the name at the top of the file being different
    the use of the comma should fix it

    PS .MIN is also a default and is not needed

    so to make it short
    <PIP> <READ> CN0:, <WRITE> should work on any file

  7. #7
    Registered
    Join Date
    Aug 2006
    Posts
    111
    Quote Originally Posted by Algirdas View Post
    For Your information, at this time there are more that 2000 active operating systems, not only DOS and Linux (Unix).
    Yes I know. But 2k don't know about that.

    Quote Originally Posted by Algirdas View Post
    The OSP operating system is Okuma's own operating system, You can read credencials while loading.
    Yes I see. But it's nothing to be proud of it's an ugly kluge of an OS. I mean really poking text strings into the command line with the buttons then needing the user to add to/ finish the expression by hand.

    Quote Originally Posted by Algirdas View Post
    Syntaxis is described in OSP operating and programming manual very clearly with very few mistakes and illustrated.

    Yes I guess you could tease out the syntax with the manual. I was hoping for something like:
    http://www.gnu.org/software/bash/man...Shell-Commands

    The manual just shows examples of various operations but not the under laying rules of the command line syntax.

  8. #8
    Registered
    Join Date
    Aug 2006
    Posts
    111
    Quote Originally Posted by Superman View Post
    The syntax error means your command line is not correct

    A.MIN is the default filename if none is specified
    so if you type CN0:,filename.min
    CN0: means the RS232 port of the machine
    , is a deliminator ( it reads the file in into this filename )
    if nothing is after the comma, then A.MIN is default

    Te other errors should relate to the filename and the name at the top of the file being different
    the use of the comma should fix it

    PS .MIN is also a default and is not needed

    so to make it short
    <PIP> <READ> CN0:, <WRITE> should work on any file
    Yes thank you.
    That's the kind of thing I was looking for.

  9. #9
    Registered
    Join Date
    Feb 2007
    Posts
    591
    Quote Originally Posted by Superman View Post
    The syntax error means your command line is not correct

    A.MIN is the default filename if none is specified
    so if you type CN0:,filename.min
    CN0: means the RS232 port of the machine
    , is a deliminator ( it reads the file in into this filename )
    if nothing is after the comma, then A.MIN is default

    Te other errors should relate to the filename and the name at the top of the file being different
    the use of the comma should fix it

    PS .MIN is also a default and is not needed

    so to make it short
    <PIP> <READ> CN0:, <WRITE> should work on any file
    And if you use <PIP> <READ> CN0:<WRITE> (Note there is NO comma or space) - It will read the first line of the file looking for the name to assign - such as " $THISJOB.MIN% "

    Now if your com program is adding the "%" it can foul everything up...

  10. #10
    Registered
    Join Date
    Mar 2009
    Posts
    1356
    if you use <PIP> <READ> CN0:<WRITE>
    this will work only in case, if parameter is set "not execute file name check when reading".
    If parameter is set for default serial port for reading, then CN0: is no needed also.
    That's why I mentioned these parameters.
    PIP>R <write> is enough for file receive when parameters are set correctly. In case, if file name is omitted in file body, A.MIN name will be used.

  11. #11
    Registered
    Join Date
    May 2018
    Posts
    78

    Re: Okuma rs232 file format

    Quote Originally Posted by Superman View Post
    The syntax error means your command line is not correct

    A.MIN is the default filename if none is specified
    so if you type CN0:,filename.min
    CN0: means the RS232 port of the machine
    , is a deliminator ( it reads the file in into this filename )
    if nothing is after the comma, then A.MIN is default

    Te other errors should relate to the filename and the name at the top of the file being different
    the use of the comma should fix it

    PS .MIN is also a default and is not needed

    so to make it short
    <PIP> <READ> CN0:, <WRITE> should work on any file
    Hi Superman,
    If I use READ/WRITE/GET/PUT commands in Okuma book can I write a command in the program: READ CN0:, filename.NC (text file) then the OSP can read the text file?
    Thanks

  12. #12
    Flies Fast
    Join Date
    Dec 2008
    Posts
    2818
    Quote Originally Posted by nodochau View Post
    Hi Superman,
    If I use READ/WRITE/GET/PUT commands in Okuma book can I write a command in the program: READ CN0:, filename.NC (text file) then the OSP can read the text file?
    Thanks
    Sorry. can't help, as I haven't touched an Okuma for 12yrs
    ..& never used the READ/WRITE/GET/PUT commands
    ( you'll have to suffer Kitty's 2 bobs worth of monologue.... he'll give you more than 2 cents worth)

    but...... I hope the .NC extension is a typo, as this is associated to other controllers ie Fanuc

    If it's just to be an ascii text file.... make it .TXT, so it opens in Notepad or Word on a PC

  13. #13
    Registered
    Join Date
    Apr 2009
    Posts
    1144

    Re: Okuma rs232 file format

    Your filename was part of the problem. The Okuma considers a file that starts with O a sub-program so it is not a valid file name. It should start with an Alpha character and have up to 16 characters. If going to a DOS disk, it can only have 8 characters. The OSP format will not go to a DOS disk as it uses non-ascii characters. After the transmission of the file, it should also have a % at the end.

    Best regards,
    Experience is what you get just after you needed it.

  14. #14
    Member
    Join Date
    Jun 2015
    Posts
    2930

    Re: Okuma rs232 file format

    the OSP can read the text file?
    hy nodo i believe you wish to read a file ? please be more specific about what you wish to do, and i may give you a code / kindly
    Ladyhawke - My Delirium, https://www.youtube.com/watch?v=X_bFO1SNRZg

Similar Threads

  1. okuma osp format on PC
    By bvpr in forum Okuma
    Replies: 7
    Last Post: 05-22-2014, 10:54 AM
  2. File Format
    By jrmach in forum BobCad-Cam
    Replies: 1
    Last Post: 04-10-2014, 07:26 AM
  3. What is the name of this file format?
    By owenransen in forum Uncategorised CAD Discussion
    Replies: 12
    Last Post: 02-28-2013, 05:39 PM
  4. WinNc 3.1 File Format
    By whiteredline in forum Uncategorised MetalWorking Machines
    Replies: 7
    Last Post: 02-13-2012, 05:02 PM
  5. OSP 7000 LU-45 file format??
    By TriumphMachine in forum Okuma
    Replies: 2
    Last Post: 09-03-2010, 10:18 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •