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
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 :)
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
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 :)
Re: Access data (common variables)
Quote:
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
Quote:
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
Quote:
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 :)
Quote:
Our machines are old but still working great
there is nothing like an old bone :)
Quote:
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 :)
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.
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 ?
Re: Access data (common variables)
Should be able to do what you want using get out read write functions over your rs232 port.
Re: Access data (common variables)
Sounds good OkumaWiz.
Can you show me what do I need?
Thanks
1 Attachment(s)
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,
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)
Re: Access data (common variables)
Quote:
Originally Posted by
OkumaWiz
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.