Table of Contents
Table of Contents
Program Types in OSP ?
For OSP-P300L, three kinds of programs are used.
-
Schedule programs,
-
Main programs,
-
Subprograms.
The following briefly explains these three kinds of programs.
1. Schedule programs.
- When more than one type of workpiece is machined in continuous operation using a bar feeder or other equipment, multiple main programs are used.
- A schedule program is used to specify the order in which the main programs are executed and the number of times the individual main program is executed. Using a schedule program makes it possible to carry out intended operation easily.
- It is not necessary to assign a program name. The END code must be specified at the end of a schedule program.
2.Main programs
- A main program contains a series of commands to machine one type of workpiece. Subprograms can be called from a main program to simplify programming.
- A main program begins with a program name which begins with address character “O” and ends with M02 or M30. Subprograms
A subprogram can be called from a main program or another subprogram. - There are two types of subprograms: those written and supplied by Okuma (maker subprogram), and those written by the customer (user subprogram).
- The program name, which must start with “O”, is required at the beginning of the subprogram. The RTS command must be specified at the end of the subprogram.
- When registering a program, the extension is also registered in addition to the file name. The format
of this file is as follows.
3. Subprograms
- A subprogram can be called from a main program or another subprogram.
There are two types of subprograms:
I> Maker subprogram. ( those written and supplied by Okuma )
II>and user subprogram (those written by the customer ).
- The program name, which must start with “O”, is required at the beginning of the subprogram.
- The RTS command must be specified at the end of the subprogram.
When registering a program, the extension is also registered in addition to the file name. The format of this file is as follows.
Program file format
Extensions
How to wrote Main file name in Okuma?
- Main file name: Max. 16 alphanumeric characters starting with and alphabet
- Extension : Max. 3 alphabet characters
Type of Program Extension in Okuma ?
SDF : Schedule program file
MIN : Main program file
SSB : System subprogram file
SUB : User subprogram file