You are on page 1of 3

RS232 Support

CNC: Okuma OSP-5000


CNC Parameters
The OSP5000 controls have several generations of software
available. Older OSPs frequently have trouble with RS232
communications because of internal software bugs, a slow
processor, or incomplete documentation. Newer OSPs are fairly
easy to communicate with.
There are several types of parameters in an OSP control. There
is a PARAMETER button near the mode select buttons on the
main panel. Press this button, then press the ITEM (up) or ITEM
(down) soft keys to show the different paramter types. At each
parameter type page, you can press the PAGE UP or PAGE
DOWN keys. The page up/down keys usually are marked only
with a symbol, and are near the cursur keys.
To change a parameter in the OSP, you must display the
parameter page you want with the ITEM soft keys, then cursur
to the parameter you want to change, press the SET soft key,
then the new data, and press WRITE.
The following paramter settings are for 4800, 1 stop-bit,
ISO/even parity, DC codes enabled (Xon/Xoff). If the OSP
doesn't receive data within 30 seconds of pressing the READ
button, an alarm will occur. Additional descriptions of these
important parmeters for RS232 communcations are in the
Okuma maintanence manual:
OPTION PARAMETERS (WORD)
# 1 (number of feed holes punched in leader) Set to: 1
#34 (timeout setting for device CN0) Set to: 30
#39 (baudrate of device CN0) Set to: 4800
#44 (device number used when punching) Set to: 0 (means
CN0)
#54 (device number used when reading) Set to: 1 (means CN0)
OPTIONAL PARAMETERS (BIT)
01: 0 0 0 0 0 0 1 1
12: 1 0 1 0 1 0 1 1 (CN0:)

PC DNC Settings
Baud: 4800
Code: 7 data bits / ASCII Even
Stop Bits: 1
EOB: LF


Handshaking: XON/XOFF

RS232 Support

ADVANCED
Leader: <00><00><00><00><00>
Trailer: %<00><00><00><00><00>
UNCHECK Ignore data before first EOB.

NOTE: Newer OSPs can accept the data at 4800 baud or higher.

Additional Notes
The first line in each of your programs should look like:
$FILENAME.MIN%
All file I/O operations on an Okuma are done in the "PIP" mode.
Once you put the CNC into EDIT mode, you can press the DIR
soft-key, then press the WRITE key on the right of the number
keypad to display your file directory. You can enter PIP mode by
pressing the "PIP" soft key, then WRITE. You can then press the
PUNCH soft key, followed by a file name, then the WRITE key to
transmit. To receive, press the READ soft key, then press
WRITE. After sending or receiving a file, you must press the
"EXIT PIP" key, then WRITE. To edit your "Z.MIN" message file,
press the EDIT key, enter "Z.MIN" then WRITE.
To send a file to PC-DNC,
1) Put CNC into EDIT mode
2) Press the DIR soft key + WRITE (to show your files)
3) Press the PIP soft key + WRITE
4) Press the PUNCH soft key, enter your file name, then press
WRITE
To request and load a file from PC-DNC plus
1) Put CNC into EDIT mode
2) Press EDIT key, enter "Z.MIN" then press WRITE
3) Edit the Z.MIN file to show only one block of data, like so:
*TESTFILE.MIN (this is a request for file "TESTFILE.MIN")
4) Press the "END EDIT" soft key, then WRITE
5) Send file Z.MIN to PC-DNC with the method shown above to
send a file
6) Within 20 seconds or so, press the READ soft key, then press
WRITE
For other PC-DNC software programs, to send a program to your
Okuma, queue it on the computer then execute PIP --> READ


on your CNC.

RS232 Support

If set correctly, Okumas can see the filename encoded into the
first line of the file, and will register the incomming data under
that file name when it is received. To get this to work correctly
(especially in older OSPs) the file format and leader/trailer has
to be correct.