504,510 active members
3,249 visitors online
Register for free
Login
IndustryArena Forum > MetalWorking Machines > Okuma > Access data (common variables)
Page 1 of 2 12
Results 1 to 12 of 22
  1. #1
    Registered
    Join Date
    May 2018
    Posts
    76

    Access data (common variables)

    Hello All,
    Something just comes across my mind so I decided to post it here to see you can give me your input.
    Is there any way to access data. I meant read and write all common variable data from the machine via PC? If yes what is the program language are we going to use??
    We have OKUMA OSP500L, 5000L. Old machines
    Thanks

  2. #2
    Member
    Join Date
    Jun 2015
    Posts
    2796

    Re: Access data (common variables)

    hy nodochau if you wish, i will share soon such a program, that once executed, will create a file with common variables values

    that file, if you wish to send to a pc, you need a dnc , mt connect, or something for file transfer

    thus, i can help with creating the file, but i can't help you with file transfer

    if i may, why do you wish to record those values ? kindly
    Ladyhawke - My Delirium, https://www.youtube.com/watch?v=X_bFO1SNRZg

  3. #3
    Registered
    Join Date
    May 2018
    Posts
    76

    Re: Access data (common variables)

    Hi deadlykitten,
    I came across the API application on gosier website but that app works on new okuma machines (window base) only. It is a great app to send, read and write data from pc to machine.
    So I think there should be some ways to access machine data and write the data to the machine via pc with older models. Our machines are old but still working great.
    Sometime the screen is too blurry so its hard to see ).
    ..
    Quote Originally Posted by deadlykitten View Post
    hy nodochau if you wish, i will share soon such a program, that once executed, will create a file with common variables values

    that file, if you wish to send to a pc, you need a dnc , mt connect, or something for file transfer

    thus, i can help with creating the file, but i can't help you with file transfer

    if i may, why do you wish to record those values ? kindly

  4. #4
    Member
    Join Date
    Jun 2015
    Posts
    2796

    Re: Access data (common variables)

    I came across the API application on gosier website but that app works on new okuma machines (window base) only
    hy nodochau api is not an app ... is a library of programing procedures

    It is a great app to send, read and write data from pc to machine
    api can be accesed via programing, so to create custom applications; api, on its own, is not going to do a thing

    if installed on the controller, together with a custom app, it can create a file with custom variables values, but that file will be located on the cnc, thus it won't be sent to an external pc

    to send the file to a pc, or to write the file to a storing device <> osp hdd, then is needed to change the output path, inside the custom app

    So I think there should be some ways to access machine data and write the data to the machine via pc with older models
    yup : create the file ( with common variables values ) by using a *.min program, and after that send the file to a pc, using a file transfer software

    again, i can help you with the *.min file, but i can't help you with the file transfer

    also, if i may, common variables are not machine data, but osp data; machine data includes axis data, cinematics, efforts, etc, something related straight to cutting/operating

    Our machines are old but still working great
    there is nothing like an old bone

    Sometime the screen is too blurry so its hard to see
    but why do you wish to export those values ? you edit them inside the machine, why bother to record the values ? kindly
    Ladyhawke - My Delirium, https://www.youtube.com/watch?v=X_bFO1SNRZg

  5. #5
    Registered
    Join Date
    May 2018
    Posts
    76

    Re: Access data (common variables)

    I want to edit them outside the machine since I don't see anything on machine screen. Is it crazy :=))
    That is why I record - transfer - edit - transfer back to machine.

  6. #6
    Member
    Join Date
    Jun 2015
    Posts
    2796

    Re: Access data (common variables)

    i guess you need to fix that monitor do you have a file transfer software ? do you transfer files to/from the cnc ?
    Ladyhawke - My Delirium, https://www.youtube.com/watch?v=X_bFO1SNRZg

  7. #7
    Registered
    Join Date
    Apr 2009
    Posts
    1121

    Re: Access data (common variables)

    Should be able to do what you want using get out read write functions over your rs232 port.
    Experience is what you get just after you needed it.

  8. #8
    Registered
    Join Date
    May 2018
    Posts
    76

    Re: Access data (common variables)

    Sounds good OkumaWiz.
    Can you show me what do I need?
    Thanks

  9. #9
    Registered
    Join Date
    Apr 2009
    Posts
    1121

    Re: Access data (common variables)

    See the attached section from the programming manual:

    You will still need a cable to tie to your PC thru the RS232 if that is what you are looking to do.

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

  10. #10
    Registered
    Join Date
    May 2018
    Posts
    76

    Re: Access data (common variables)

    Thanks a lot OkumaWiz. I found the chapter in my Manual Book and it was exact what you gave me.
    I am confused about the text file which is written so that the data can be transferred to the machine. Where is the text file is supposed to be saved into? I think the PC.
    I have to have the DNC software that I can get it but the text file in the sample at page 354 made me confusing. That text file has to be saved and updated some where so that the machine can get the update...
    A Compensation Yes/No = 1 Offset No. = 3 OX = 0.02 OZ = -0.31

    1 5 10 15 20 25 30 40

    (a) (b) (c) (d)

  11. #11
    Registered
    Join Date
    Apr 2009
    Posts
    1121
    You are not actually creating a file and no additional software is needed for the machine. When you read from the pc a short text string is sent from the pc and then stored in the read buffer. Then you get data and store it to common variables. As you describe the first character you get may be yes/no. The next set of characters may be an Offset or other data that you store in the next Variable. Continue parsing the string of data until finished.

    Then process your variables in the program as needed.

    Put and write are used to send data back to the pc in similar fashion.

    This is commonly used to communicate with a post process gauge.
    Experience is what you get just after you needed it.

  12. #12
    Registered
    Join Date
    May 2018
    Posts
    76

    Re: Access data (common variables)

    Quote Originally Posted by OkumaWiz View Post
    You are not actually creating a file and no additional software is needed for the machine. When you read from the pc a short text string is sent from the pc and then stored in the read buffer. Then you get data and store it to common variables. As you describe the first character you get may be yes/no. The next set of characters may be an Offset or other data that you store in the next Variable. Continue parsing the string of data until finished.

    Then process your variables in the program as needed.

    Put and write are used to send data back to the pc in similar fashion.

    This is commonly used to communicate with a post process gauge.
    OK. It sounds a little bit clearer. "When you read from the pc a short text string is sent from the pc and then stored in the read buffer" you meant the machine (program) reads the short text string from the pc? I guessed. So we have to create that short string in Notepad under CNC or txt? And the program will read the string as soon as you open Notepad app and type the string in? Then after the program processed we will get all data from machine put in the pc (Shown on screen of pc) if we want? If it is true then it is very awesome though. I definitely will give it a try.

Page 1 of 2 12

Similar Threads

  1. Activate macro variables common #550 to #999
    By VicEd in forum USA Club Forums
    Replies: 1
    Last Post: 12-07-2017, 08:13 PM
  2. Replies: 12
    Last Post: 02-14-2011, 12:34 AM
  3. Fanuc OM - M99 Clears Common Variables
    By ED209 in forum Fanuc
    Replies: 12
    Last Post: 07-11-2009, 07:31 AM
  4. Common Variables
    By viorel26 in forum G-Code Programing
    Replies: 3
    Last Post: 10-02-2007, 10:09 PM
  5. Need help with IF ,THEN,AND GOTO USING COMMON VARIABLES.
    By XRACERJB in forum General CNC (Mill / Lathe) Control Software (NC)
    Replies: 2
    Last Post: 08-31-2007, 02:08 PM

Tags for this Thread

Posting Permissions

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