Re: Okuma rs232 file format
Quote:
Originally Posted by
Superman
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
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,
Re: Okuma rs232 file format
Quote:
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 :)
Re: Okuma rs232 file format
Quote:
Originally Posted by
Algirdas
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.
Hi all/algirdas!
Can anyone please suggest how to set for default serial port for reading, then CN0: in parameters settings
When we are using CN0: it shows DEVICE NAME ERROR on OSP-U10M
Re: Okuma rs232 file format
check in the manual which parameter is responsible for default serial communication port.
try CN1: ?
what the PC is detecting if you do just "read serial" without pointing the port?
what the PC is detecting if you do just "write serial" without pointing the port?
Re: Okuma rs232 file format
on the controller in NC OPTIONAL PARAMETERS RS 232 (CN0:) and in MAC MAN PREFERENCE SETTINGS for INPUT DATA, DEFAULT NAME IS FD0: which I am unable to change
CN1: does not work either
i am using software-based DNC on my PC and once I set it to receive the program it is received in PC after pressing punch and write soft key.
and when I need to send program and press READ soft key after using CN0 or CN1 controller says wrong device name to CN0: and CN1:
2 Attachment(s)
Data reading problem on okuma u10m
please check the images @algirdas
Re: Okuma rs232 file format
I don't think the default input device name = FD0: at that settings page is related to serial interface.
I would't use Japanese standard for the first settings of RS232 communication ( "8 bit JIS" = 0 ). Later, when you get communication working, you can use it and then you will have possibility to use both capital and lower case letters.
I would set both "DC code" and "DC code type2" to 0 for the start. Since I have no idea what is that.
I would set "file name request" to 0 as well - less chances to mix up something.
Check the manual of the control. Maybe there is setting about possibility to omit device name in the communication command line.