• Keine Ergebnisse gefunden

AUTOSPOT III POSTPROCESSOR OUTLINE Postprocessor Modu lari zati on

Im Dokument 6, 7, 8, (Seite 65-69)

AUTOSPOT III POSTPROCESSOR ORGANIZATION OUTLINE

2. AUTOSPOT III POSTPROCESSOR OUTLINE Postprocessor Modu lari zati on

The functionsof a postprocessor are divided into five major modules or sections. Simi larly, each maior section can be divided into various sub-sections. Modularization can best be attained using the FORTRAN 11-0 language; therefore, whenever possible, this language wi II be used in coding the various sections of the postprocessor.

2.1.1 Control Section. The Control Section initiates execution of all five major sec-tions and maintains control of the flow of data in the postprocessor. This section should be very near the same for all postprocessors.

2. 1 .·2 Input Secti on. The Input Section reads input for the postprocessor and transfers it into a buffer area in a prescribed format. This section can be used to expand the AUTOSPOT language through the use of the POSTPR/ statement. (See Section 3.)

2.1.3 Geometry Section. The Geometry Section computes all of the axes movements and converts this data to the machine tool coordinate system for the Output Sec-tion. Any adjustments to the coordinate data wi II also be provi ded in this sec-tion. An example wouJd be the adjustments required for coordinates that are outside the machine tool limits.

2. 1. 4 Auxi liary Section. The Auxi liary Section executes action speci fied by auxi liary instructions and develops auxi liary command blocks for the Output Section. An example would be a value specified for scaling a plot or an auxi liary command generated to set a particular machining mode. The tables used by this section should be standardized as much as possible.

3

M usita=w,u.,uttit=ae:'SSMit.4tM==UA.'==== ... "

=-2.1.5 Output Section. The Output Section provides forediting of all output informa-tion. The output data will be printed and plotted asitis received from the

vari-ous other sections. The information to be punched in the control tape will be

0

stored on disk until processing of all of the AUTOSPOT III output is completed. . I If no unrecoverable errors have been detected, the information wi II then be

punched in the control tape.

2 , 2 Standard Common

In order to provide interchange of data between the sections, certain internal data (varia-bles, parameters, swi tches, etc.) wi II be part of common storage. Common wi II be divided into areas for each major section of the postprocessor. The organization of the common area along with the standard sections will simplify communications between AUTOSPOT

III postprocessor programmers.

2.3 System Description

2.3. 1 The Control Section initalizes the postprocessor then calls the fnput Section to provide information in the input buffer area. Control will identify the record type and determine the section required to ini tiate processing of the information.

2.3.2 The Geometry Section is called to process coordinate information. A discrete blockof associated data (machine tool coordinate, spindle specification,

auxil-iary function, etc.) is generated for each coordinate record input. Once a

0

block of data has been generated, its relationship to neighboring blocks of data is determined. (An example would be if there is a minimum or maximum departure required from the previous set of coordinates.) If the relationship is acceptable, the data is printed, plotted, and stored on disk to be punched in tape following processing of the entire AUTOSPOT III output. If the relationship is unaccept-able, suitable correction is obtained if possible, and the proper diagnostics printed. If suitable correction is impossible processing will continue but the control tape will be eliminated.

2.3.3

The Auxiliary Section will process the non-motion instructions in the input buffero Certai n auxi Ii ary instructions wi II si mply set program mode and parameters, others will execute special 'logic, and still others will develop auxiliary command blocks. Thus the Auxi liary Section wi II be a set of calls to sub-sections designed to react for a specifi c i,nstruction.

2.3.4

The Output Section will be called by the Geometry and Auxiliary Sections to plot and print the output information and to store on disk the information that is to be punched in the control tape. When processing of the AUTOSPOT HI

out-put is complete, Control will call Outout-put to punch the information stored on

0

disk in a control tape, if no unrecoverable errors have occurred.

4

~~~----.---.-.~---~-.--..

----C"'·

".,1

o

3.

AUTOI T (AUTOspot Input Translator)

3.1 General

AUTO!T is an inpiJt subroutine for AUTOSPOT III Postprocessors, The program reads AUTOSPOT III output and translates it into a prescribed form. Also, the subroutine pro-videsa method for increasing the AUTOSPOT III language through the use of the POSTPR!

statement. The program is written in SPS 11-0 and can be used by both SPS 11-0 and FORTRAN 11-0 programs.

3.2 POSTPR/ Statement

3.3

AUTOIT wi" accept a maximum of 79 characters following the slash in the POSTPR/

statement. A combination of postprocessor words, fixed point numbers, floating point numbers, and special characters can follow the slash. The postprocessor words must be defined in the table provided in AUTOIT. The fixed point numbers can be a maximum of 4 digits and the floating point numbers can be a maximum of 8 digits. The special char-acters=(,*$) can be used to separate the above three type of fields.

Subrou ti ne Oescri pti on

The output from the AUTOSPOT III program consists of variable length records wri Hen on disk. The contents of these records are processed as follows:'

(a) Fixed Point Numbers. The fixed point numbers are from two digits to six digits in length. The fixed point numbers in each record are converted to four digit fixed point numbers and stored sequentially in an array provided by the users. If the number is larger than four digits, it is separated into two fixed point numbers, the , four lower order digi ts stored as one number and the remaining digi ts as a separate

number.

(b) Floating Point Numbers. The floating point numbers have either eight digit or thir-teen digit mantissas. All of the floating point numbers are converted to eight digit mantissa floating point numbers and stored sequentially in an array provided by the user.

(c) Alphameric Data. Alphameric data is separated into four digit fixed' point fields and stored sequentia "y in the same array used by the fixed point numbers-:

(d) Postprocessor Records. The floating point and fixed point numbers are stored as descri bed above. Each postprocessor word is decoded according to the table pro-vided in the subroutine. The number code corresponding to each postprocessor word is stored sequentially inan array provided by the user. If the postprocessor word is PARTNO, the alphameric information following the slash in the POSTPR/ statement is stored in an array provi ded by the user.

5

, I l Ii ;, I( t.( .t 1 Its .( , Hi. £ ;';0('\ ; $JaM. Me =

3.4 Linkage

3" 4. 1 FORTRAN 11-0

3.4.2

CALL AUTOfiT (lDSKRO/ IFIX{lL'FLOATO)/ IPP(1L IPINOO)) (0) !OSKRD =

=

(b) IFIX (1) (c) FLOAT (1) (d) I PP (1) {e} IPTNO (1) SPS 11-0

o

Initialize AUTO!T to read first AUTOSPOT record.

1 Continue processing the next AUTOSPOT record.

The first field of the fixed po~nt array. Minimum array size is 10.

The first field of the floating point array. Minimum array size is 10.

The first field of the postprocessor codes array. Minimum array size is 10.

The first Heldof the array provided for the PARTNO state-ment. The minimum array size is

38.

(a) The following statement must be entered in the user's program:

(1) CALL LOADj AUTO~l g @@SUB

o

Thisstatement loads AUTOIT intomemoryfromdiskand must precede

G,

the calling sequence.

(2) @@SUB 05S SI ZE

@@SUB is the location where AUTO~T is to be loaded and must be defined in on even numbered location. 51 ZE is the length of the subrouti ne. It is vari able because of the o.ddi Hons that may be made to the postprocessor word table.

(b) The follow!rug sequence of instructions are used to "call" AUTOIT:

BTM @@)SUBv *=4= 11

OSA 10SKRDp IFIX1! FLOAT1, IPPl p IPTNOl where the,above fields are defined as follows~

IDSKRD IFIXl IFLOATl IPPl IPTNOl

DC DSB DSB DSB DSB

4, 0 10,

4

10, 6 4, 10

4,38

6

c

C'"

/

o

3.5

Postprocessor Words

Each entry to the postprocessor word table requires six alphabetic and four numeric char-acters. Additional postprocessor words can be added to AUTOIT. These additions must be entered in the postprocessor word table following the remark:

*

ENTRIES TO THE POSTPROCESSOR WORD TABLE SHOULD BEGINE HERE

A postprocessor word of six characters such as MACHI N wi th a number code such as 0002 wou I d be en tered as fo I lows :

DAC 6, MACHIN DC 4, 0002

A postprocessor word of less than six characters such as RAI L with a number code such as 0010 would be entered as follows:

DAC 2, XX DAC 4, RAIL DC 4, 0010

Im Dokument 6, 7, 8, (Seite 65-69)