Ad 761022
Ad 761022
Ad 761022
RESEARCH REPORT
by
I
used. ir: program-
ce:::-;c or.
ii
Sincere grc'-1.titw18 is expY'esSe(lr.0 Dr. Ibger rlcNichols,
Ass Dci ate Professor Iniustriul ir:w. 0-; Y1eo1"1"""a
~J-\l.{.J .,. __ '- '.' tt<.?, "",<OY~""
- ~-# ~.W
••
fJ.prT'.'.,
IJ_'.'.
ering, for h::1.s t hnc an'·) effort th. rougheut the .£lnU rc proGram;
ayv3 to the Do S. Army Mater'leJ. COIT;Ji1ar:d for thE' oppa-.r>tunity
..
Chapter
I IT\JTI10DUCTION. 0 • 0 • 0 Q Q 0 • 0 0 0 0 Q 00.0000 •• 0 0 • 0 0 0 () () 0 • 0 0 0 1
Appendix
A 29
B POST PROCESSOR TlARIABLES, CONSTANTS, AND FLAGS 00" 92
C SUBROUTINE BELATIONSEIPSoooooooooooooooooo.oooooo 95
D 96
E GERB1:;:2 POST PBOr:;ESS02 INFC:?;-LlTTOY F02
?l\r~T r·~~.ffiRAl\·;r'~Jr~G. o. 0 0 0 I) •••• 0 II' 0 0 .0 ••••• 0 • 0 ••• 0 0 • • • 98
F JOB CONTROL LA'TCC"AGE POR SYSTSII r':APJTE~JANCEo 0 0 000 104
:tv
FIC}lTBES
Figure Page
10 FLml CHART OF N/C rHOC:S.3's CSTI'JG APTooooe.<>oooeoooe 8
INTRODUCTION
1
2
RELATED PUBLICATIONS
Drawin,s
Specs.
Program
l1anuscript
I
.~
/
/
/
Card -
I Deck -
t
1m.!
360
1
Either
Cards
f/lachhle I Card
to
Control181
Tape
the second data set, contains t~"1enty load. ";Ql';.~es ·.. :~"lich
---
ASECTl
Sten 1
_ _ _- L stop 2
./
ASEC'~2
-----------
ASECT3
3 - Step 4
;::;t~p
ASECT4
r---=~----'
Post
Processors
routines and also those which are called in the APT system.
This graph may give the reader a better overview of the
post processor.
A part programmer is usually not concerned with the
informatiol: given in Chapter IV, only individuals perform-
ing maintenal:ce on the system. A cuide is furnished to
the part programmer which descrihes the capabilities of
the post processor and the criteria surrounding its use.
An example of such a document is given i~ Appendix E.
made.
The output of PPRIN0 (incrome~tal ~oves) is the same
as some of the other subrou"tines in the post processor.
for these four subrouti-/1CS ,3::" the aLl SOUTce decks for
produce a load mod '.11e, 'pl;ich h:.c ludcC' t'10 ;>e\'1 post prc-
SUrf-MARY
APPENDICES
,~',
", ' - -,' , .- - .- ,/ ~,,, .',"':, ,', '. " . ' ", " ,-- - ,,' " ' " ,', -- ," .." ,~
C
***.* **'* *~<* ********'*** **~'*** ~ ****~;* ****************>1<********************
_ . . . . _.._.. {. * >:' ************'***.** ** *****lI<'* *** ******* ** *******************************
..~ ****>:<.!J' **,****; .~ . e£:' 'G' I N \1\:> 1J'S'.: t) PRO C E S S 0 R **** **.****
___ .__ c***********************************************************************
.__--.-C....J..> "';' .~.,.~--:-=~~ __ =~ ~ _
it
C '~AIN PROGRAM_F_OB.THE_GERBER POST PROCESSOR _
C
,-, -. Q
;
..
-_ - _.... - ..- '----_._-_._. ....._.sJ1B_BilULIN.L..G.E.B..8..EB.- .,_~_ .~ ._.....
cf v', ii: .'. :/' ... '. ". ~
......c G~W.LO"tLM)~O.t'!L1S.Q..:!t. ~ n l( 2, K3', K-4 t K 5-; K 6 , K 7 , KLK.2..LKJ. 0 , K 11 , K.J.2..JJ.iLA.1'iIL.... .~tz:j~~_
REAL*8 P~GTA9,C~~TAP,CltA~~~~bcTAP,PLOTAP,SRFTAP, ~
_ _--Ao.l-"-·~_~~PEStil~:~E$2' t TA~'~S'3';! TA PE'S4 '. , ~i __ i 0' • : ; ~ ._,_ _
CO/'AMONI AifA'P'T i81 PR'OT AN CANTAP, CLTAP E, pac TAP, P La TAP, SRF TA P, (f.l:x>
.. _. .. __ c..:::.~:.'C. ,._·~~t Af?;tS.t.i..IAiP.t~21.t~.eP3,.LI.l:i.PlituJ.NIA£>.E, IOU TAP, P1JliI A P _....~_ _ ~ __,. __
REA L 8 W:~" 'f"* .--. - :' ''- . . .... . '1j ~
___.__.. ~.,_ ...,-_.tJ MHrs.l_0.'.kjt.i2 5gJ_'_. ..:=-.: .__..__....__ . ,_. .__.__.. . &_ ~. ._.. _.. _.
. DIMENSION i O-1G'rtsHoV;CO'DESIS),PENCOM(S) trj R
_._... .__ ... . :HillJi.E.B_:.J Nit t:C.G'D 'eqDC b-tJ"E'iM CGO E I GLAS I I 0 LAS I ~ ~_._.. .__ ...
COMMON/GERBPP/W 0
._ lr .. ~ __.._·'..~.~_LffiiLiZil; 'U,_Y.2..t.lZlliXi b~f~b.' __.,______ .. . _. ~_._. __._ _.
2 c,.' i r1j(C~YC.'.l.(>'ARE,A,~;~~t;S:~ AR:Ct.'lM~JtSEQNb'H~) . ~
___ ._ _ 3._.~.' -... -~~.ilJ;tl(~~4-DJ;.QK)-FJi~.~D~, GL.AS.I.!.'oJ.,AS T I NPEthl..D.A..MiL~D I NW _.. ~ .__
4 ',DIGITS"CODES,PitNt~M,D,DASH,BDASH I-j
-~---.-_.- -------
GERBER POST PRUCESSOR LISTING PAGE 2
C END
__ ~ .11Q.CA LLE.N D. . ~_ ~._. ._
GO TO 20
_..._._.... -L. . SIDE
120 CALL STOP
_. GiL_TO_~Q. ~_. . ~ .~. __
C CLASS
(AUX-COOESI 2000
---- .------. ~__ ~ __ ~ __ c._~ .~_.~ 0 fL~'.l.'lNc.:.'
__ BRAJ'iCli_I.O...A.UX- COO ES _
200 GO TO (210,220,230,240,250),N
C. DRAFT
210 CALL DRAFT
_ _ _-----'-'G"-'O---'--'T0-2lL. _ ~ 'vJ . _
C MACHIN/GERBER,X o
----_._------"
~I
~I
0.
j
I
J~
i
I i,
i
~i I
.... I
~;
I- I
....
Vl
I
ra
3:~
I
..J
l
rY.
0
Vl
--
NO
I
Vl
w
u! =1=
00
~Zl-
~I
0.,
~I~~~
Vl Vl W
I-
oj
' I
I
Vl
0
0.
o
-.01
I
I
ad
w
I ;
co i
i
rY. I
W
~ i
I
I
I
I
'I
GERBER POST PROCESSOR LISTING PAGE 5
C ----------
BLOCK DATA
_________________ J3,.E1I-U-lL DUMM_liltL-
COMMON/ATIME/OUMMY
_________________COf!J1QI::l_L.A.Q.CQN1..K.Q , K 1, K2, K3, K4, K5, K6, K"1-, K8, K9, K1 ,_ill, K12, BL~
°
CGMMON/ASISTM/ICUMMY(22)
_______________ REAL*a PPNAME 120)
COMMON/APOSTP/PPNAME
R.EAL!..8uPJW TAP, CAN TAP--,-~LL~P_LJ?O CTA P.t2.-L.D TA_e_L~H,_EJ AP-,-' _
1 TAPES1,TAPES2,TAPES3,TAPES4
___________ _ JlilE_GE..R P1LI'iIAP _ --_._--_.- - - - - - - - - - --
COMMON/CHARTR/CHARTRI252,18,3)
____________________________-C.!.:LM110N/ATAPTBI PROT AP., CANTAP, CLTAPE, POC TAP~Cil.A..e.LSJ:~~fTAP, _
1 TAPES1,TAPES2,TAPES3,TAPES4,INTAPE,IOUTAP,PUNTAP
__________RE Al.*a... K _
DIMENSION w(252)
___________.0 L~E.NllDN_Dl.G lllll Qll..cJlD£S_La.h.P .ENCQl1.L8_L_ _
INTEGER IN,GCODE,DCODE,MCODE,GLAST,DLAST
___________________ _ -C..CM~ 0 NI GE.B..aLPL.. PLIWll-. _
1 ,Xl,Y1,Zl,X2,Y2,l2,DX,DY,Dl
_______2..____________ , XC, YC..tLG., ARE A..t...ABi..S..t.ABJ:h~lt..Sf.Q.~.DJ2l _
3 ,IN,GCODE,DCOOE,MCODE,GLAST,DLAST,NPEN,IDASH,KD,NW
_______4_ _ J_DJ{illi, W_D..E.S..,.P_EliCD&DDASIi--LB DAS1:L _
S ,NDIGIT,NDECML,NTAPE .
________________.._ _~_ , I FROM,L I NEe, NpAGF, NPI OTS, NeAR OS ,PTLI
7 ,MONTH,DAY,YEAR,X,Y,SIZE,THETA,JFLG,NLET
_________ DATA Xl ,Y 1, Z1, X2 ,Y2, l2..tJ)X, DY,JlZ.l5LlIill.....<-I _
1 ,XC,YC,lC,AREA,ARCS,ARCL,AL,SEQNO/7*0.,' 'I
_______ ___L , I Nt GCOD E, DCa D~ COD E, GLAS T, DLAs'T, NPEN, KDI 0 , 1 , 2 , 99 ,0 , 1 , 3L
°,
3 ,DIGITS/'O','1','2','3','4','S','6','7','8','9'1
L __ --,-CODES I ' N .!.--'-'.G ' , ,X '...L'-_Y.__Lt...'Z ' , 'D__ ~Q.Q.I-" ' $ , LI _
6 ,PENCOM/'DOl ','002 ','003',4*' ','008'1
---_._-_.- __~7L- LUQASH.BDASH,NDIGIT.NDECML,NTAPE/O.2,O.1,5.3,OI w
8 ,X,Y,SIZE,THETA/O.O,O.O,O.l,O/ w
------------------ ---------------
-----------_ ..... _--_ ... __.-_.__ . _ - - - - - - - - - - - - - - - - - - - - - - - - - - _ .
tIEROM,~INEC,~GEtNPLOTS,NCAROS,PTLT,NLET/O,51,O,1,O.O. ,661
e
.c... _. I H E CtiARA CT ER '_BL.MK.' _
C
..... _. -.D.Al.A....GtlARIfH .6.2t.1..d.lJ...CH.~B TB..L6.5...tit2J..tCHARIR1.1L5J..L...ll.LJ..1...1t-'tO-t.•...1,.....2-t.•.LI _
C
___ .....C...._ ....._IHf-.UiARACT EB ' + , . .. _
C
QATA._ CHA R.IKLL21..lL1J ..lCfi..1l RTB L7_<h 1.t..2..L,-C.HAlUR.LI9,-~J.~2..tJ..5...,- 2·. I . . __... _ ...._..__... _
1 ,CHARTR(79,2,11,CHARTR(79,2,ZI,CHARTR(79,2,31/.6,O.,1. I
__2.. ... 1.CJ-i ARTRJJ 9.t-.h_.U..lJ';HA RIR LI9_1 3t..2_L, LH ART Rl 79. J.J...t~J.l=~3-,-!3...t.~L __. .___
3 ,CHARTR(79,4,1),CHARTR(79,4,Z),CHARTR(79,4,31/0.,-.6,1.1
_ •• . . . ._ .m • __ •• __ __. it.-. ... ~M.Rl.R ( 79 , 5 , 1 L...C.tJ ART R ( 72.i.5 t 2 I , Qi.MUlli.I9 t 5 , 3 I I • 45 • - • 2...t2..LL . . __.....__.
e
~~--------" ~ .. _-~ .... -- .. -
c. ... II:iE... C.HARAC.LEB__.!....=' _._-------_...
C
QATA.C.HARI RJ 9LL1..f.JJ..l.Ctt~~I.RL9ILtr2JJ...CtLAg IBJ2..1.L.l.l.3_LI~J 2.L..'!.2..t 2-"-'.1'---_.
1 ,CHARTR(97,Z,1),CHARTR(97,2,21,CHARTR(97,2,31/.6,O.,1. I
______..._ ...... 2.._-.LCIjARIRl..2.1.L3, 1 ) ,CHAB..T R 1.2.-7 r 3,2) .tJ:.HAR TR L2l,-.1.1..~.l1..Ll2..l.-=-"_~~ ' "
e
c... _ THL_LET lEB_'A '. .__ .___ _.__. .. . .. . .... ._ ..__. .. ...
C
DATA. CHARJR1 194..1.1 t.ll .t.GHAlU_R..t 1. 9_4..,.1 r2.1..L~IiA.R TRJ19 Lt..t..L..~_LL!.l,..Q_!... t..2.!.I _.____. .....
1
,CHARTR(194,2,11,eHARTRI194,2,ZI,CHARTR(194,2,31/0.,.9 ,1.1
_...---.....-.- __. 2_. t..GlliLR.LR1~.hU_LC..!::IAB.I.BJ 1 94,3,2..1 ,CHARIR ( 194,3,3) I. 1 •• 1,1.1 ---------_ ... -
3 ,CHARTRI194,4,1),CHARTR(194,4,21,CHARIR(194,4,31/.6,O. ,1.1
nH~_._ •.
.t..C_HARLR U9~5...t..l.L...cJ:LA!UR1..L9~.5_t._2.L....C.HARJJU 194, 5...t..3.U..... 1, -. 1 , LLL_. .__... "
5 ,CHARTR(194,6,11,CHARTR(194,6,ZI,CHARTR(194,6,31/0.,-. 9,1.1
______ .........__ . .6 ...t.Ct:iAR.T...RL1.9!:tJJ..ll...LCHART R( 19 4....J......2.1_t....Cl:I.A RTR( 19 4 t~..t..3..1/- • 8 t.....5...t.lo..Z.. . . L. I .
7 ,CHARTR(194,8,1),CHARTR(194,8,21,CHARTR(194,8,31/.8,O. ,1.1
8 ,CHARLB(194,9,1),CHARIR(194,9,2),CHARTR(194,9,3)/.l,-. 5,2.1
C
_. __C IHE ..LElLE..R 'B ' . _ . _.._. _ W- .---
C ~
..
---_ --_._-_._-_._-- - - - - "._---_ ... -
GERBER POST PJillLESSOR LISTING pAGE 7
__________~D~A~T=A_CHARTRI195tlt1~ARTRI195t1.2).CHARTRI195.1.3)/.l.O •• 2.1
1 ,CHARTRI195,2,1),CHARTRI195,2,2),CHARTRI195,2,3)/O.,1. ,1.1
____________________________ 2___ • CHARIR I 195 .3, 1 LLCJ::iA RT R( 19...S....t.3.L.2.1.-t-_Cl:M..BlJU-.l5l.5. 3 • 3) I. 7,0. , 1. I
3 ,CHARTRI195,4,l),CHARTRI195,4,2),CHARTRI195,4,3)/.1,-. 1,1.1
_______.. .......__4.. .1 CHARIB {195 1 5. 1 ) ,.cJ:iART RI 195. 5 t 21.LC HAR IR ( 195 t2..Lll1 O•• -.3, 1.1
5 ,CHARTRI195,6,1),CHARTR(195,6,2),CHARTRI195,6,3)/-.1,-.1,1./
_. ._. .. Q_ , CHAB..IRJ 195 , 7 , 1 ~l...2.2.t....1..J2.L..C..l::lARI.BJ 195 • 7 • 3 ) 1-. 7.0 • • 1• I
7 ,CHARTRI195,8,1),CHARTRI195,8,2),CHARTRI195,8,3)/.7,0. ,1.1
8_ . J_.GJ:!ARJ.R..U9..5..D_LLl.1._G_tiARl..KU.'i5..L9.t..2.Lt..CJ::1AR L~J 1~_5.. 9 t 3 ) 1.1. -.-1,1.1
9 ,CHARTRI195,10,1),CHARTRI195,10,2),CHARTR(195,10,3)/O. ,-.3,1.1
.- .-
_ - -----,._- ,-.
__ _.-... A -'_CJ:tARI ;:U1 Sl?-,..l1,.LLLCHl~Rlli_U~2J--.LL.2 ) , CHAR Hlil...95tll.t.l...LL-:._. 1. -.1. l_J .._....__
B ,CHARTRI195,12,1),CHARTRI195,12,2),CHARTRI195,12,3)/-. 7,0.,1.1
__________ __ _ . J: ,-C.t!. ARll3...ll2.5 tnt LJ..LC HAR_IJU.l9. 5 t 13. 2 ) t CHART R Ll...~.2.1.J3~ I. 9 , O. t 2 • I
C
_c . J_ttLllII.EK_!..c..~_ . . ---------
C
__ DALJL..GHAB TR119(:u t,-~_Lt_.c.HA RIRt1.96..t.t,_..2.L'-~ti_AB TR.L12_Q.1.L_3J L~!iJ._' 9,2.1.
1 ,CHARTRI196,2,1),CHARTR(196,2,2),CHARTRI196,2,3)/-.l,. 1,1.1
______...2.. --.t..C.H_ARI&..Ll.2tt..Ll.t...l._l.t.QiARl.R.1.l.2~_.1.l..L2.J...LC.HAR TRll26 t 3, 3lL-.6, Oi..t..L.L - _
3 ,CHARTRI196,4,1),CHARTRI196,4,2),CHARTRI196,4,3)/-.1,- .1,1.1
_. 4 . J_C..HARIRJ_l.26.J5,lJ_.1..GJ:-i..AR.I111.1.~5, 2) , CJiARIR.ll9.fu..5..t.3J..LJL.._l..':--L.8..t..l....L .
5 ,CHARTRI196,6,1),CHARTRI196,6,2),CHARTR(196,6,31/.1,-. 1,1.1
6 _lCHA_R IRJ 19.6,1.,_1.1 .tCJ:!ARTR1.l9.Q.Llt.2J_1..c.H...M~_T RJ_19..6..t.l.t_3.J.L~_6._LO..L.l_1.1-L . . ---- -___ . .
7 ,CHARTRI196,8,1),CHARTR(1~6,8,2),CHARTRI196,8,3)/.l,.1 ,1.1
. __ JL A.l:iART R{.L9lu..9-.l.11, CHAR I R( 196,9,2 I ,C HAR IR I 196,9,3) L. 1 ,-.1 ,2. I .--_...._--
C
. c . . .THE_ LET T E FL....!...Q..!. _
C
- . . .D.A.IA.-CliARIR1.l.2L1LU-'--CHARl..R.LL9..7, 1 , 2 ) ,C HART R( 197, 1 , 3 ) I • 1 , o. , 2 • I
1 ,CHARTRI197,2,1),CHARTRI197,2,2),CHARTRI197,2,3)/0.,1. ,1.1
2 ....CHA.RIRt19..1d_,.ll~CHARTR 1197,3,21 .. CHAR TR ( 197._3....311.7, o. ,L L
3 ,CHARTRI197,4,1),CHARTRI197,4,2),CHARTRI197,4,3)/.1,-.1,1./
____ . . ._~ '_.c.HARIR1.L9L-5--' 1 I , CHARI lU.L9.11...2, 2 ) ,C HART R{197 , 5 , 3 ) L O. ,-. 8 , 1• I \,)
5 ,CHARTR(1~7,6,1),CHARTRI197,6,2),CHARTRI197,6,31/-.1,- .1,1.1 ~
-------_._---------------------------
------------_.
___________G£KaER POST PROCESSOR LISTING PAGE 8
~_~ Q ~I-J ART RLL<t7 , 7 , 1 ) , Ctl ART R( 19 7 , 7 , 2 ) , CHA RTR( 197 , 7 , 3 I 1- , 7 , 0, , 1 , 1
7 ,CHARTR(197,8,l),CHARTR(197,8,2),CHARTR(197,8 9 3)/,9,O, ,2,1
5 ,CHARTR(210,6,1),CHARTR(ZlO,6,ZI,CHARTR(210,6,3)/0.,.9 ,1./
6. ~CH ART R( Z10 • 7 • 1 ) • CHART R( 21 Q~1..L2L.c.HARI RJ21.Q.t_7.t3lL"-L ....1~....2......L
_______________- L__
C ---..I HE LET TER 'K I \~)
C
- ' - _ _ 0"_' __• _
_ _ _ _-----'G.u.E--.!-R~B~E..0.R__!PO ll PRO CESS0 R L LSlllLG. _ PAGE 10
__
. ~TA CHARTR(Z11,l,l),CHARTRIZ11,1,ZI,CHARTR(Z11,1,3)/.1,O .,2.1
1 ,CHARTR(Z11,2,1I,CHARTR(211,2,2I,CHARTR(211,Z,31/0.,1. ,1.1
_________________________________ ..2 ----1L_HARIBJ.2..LL.J.3J..LLCJiARIR12..LL.3., ZI ,Cl::IARTR ( Z11, 3,3) 10. ,-.5 ,Z....L... _
3 ,CHARTR(Zll,4,ll,CHARTR(Zll,4,21,CHARTR(211,4,31/.5,.5,1./
.~ -
.. _._-- - - - . _.. --------_ ..._------ - -_.- _____ ~L ---.t..C_ti..t\KIR.L211.J2t.1J_--,-CH.AJU_Rl2_11.,2..t.2L,..chA..RIRiZll , 5..l.3.1b_4, -. 4, Z. I _
5 ,CHARTR(Zll,6,11,CHARTR(Z11,6,ZI,CHARTR(Z11,6,31/.6,-.6,1./
_________________________._2.... ._..l. CHABLFU.2.liLhl-h.CJj ARl:RU..l 1..t . 7 , 2 I ,C HART R.( Z 11 , 7 , 3 I I • 1 ,0. , Z. I
C
___________________________C 1 HE_.l_ETI.E.B._!..L' _
C
________ [)A LA..._ .ctt~ruRL2J,_2 1..1,_11 I CHAR TR(_21],1.121.!.-CtiAR.IB..t2.l.2._,_l..L~J.L!LLL1.LJ_2...~_L _
1 ,CHARTR(21Z,2,1),CHARTR(212,Z,Z),CHARTR(ZlZ,Z,31/0.,-1 .,1.1
_____.. ... . 2. ..l.-C.H_ARJ R.12J.2J..bJ....h..C-H AR..lR12..1 2 ,3, Z I , CHAR Illill2..t..3-t..3 I 1.6,0. , 1. L ---_.- ----- -_..- --
3 ,CHARTR(21Z,4,11,CHARTR(ZlZ,4,Z),CHARTR(ZlZ,4,31/.1,0. ,Z.I
________.l.< ._________ _ . _
6 ,CHARTR(216,7,11,CHARTRIZ16,7,21,CHARTR(216,7,31/-.6,0.,1./
7 , C H ARJ R t21.6 18.1 U t C.J::iARIRl2.1_~t.t..e_t.21.J.. CHAlUKtil6..L8...l3_.LL.L.8..t.:::....~.i. .__... __.___ _.._
C
__.. ..C --lHt: L [1 T ER ~ _
C
- DAIA._CJ-:I ART R L2~L.l_dhCJ:iAELIR_L2.17 , 1 1 2 I , CHAR.lB..L2..11.L1..t..3.1 L• 2 1 O.JL...t..2....L . ._. .
1 ,CHARTR(Z17,Z,11,CHARTR(217,2,ZI,CHARTR(217,2,31/-.1,.1,1./
____. . ._ 2 t
, CIi&.RT R( 2 17 , 3 1 I 1.GHA.lUR12.l7 13 1 2. ) t CHA RTRI 217 13 1 3 I L O...t.L.LhLJ.
3 ,CHARTRIZ17,4,11,CHARTRIZ17,4,ZI,CHARTRI217,4,31/.1,.1,1./
4. .. I.e HART RI Z17 , 5 , 1 I .. CHART R( 2 17 • 5 • 2 I • CHART RI 2 17 • 5 • 3 I / • 6 .. 0 ... 1 • I
5 ,CHARTR(217,6,11,CHARTRIZ17,6,21,CHARTRI217,6,31/.1,-.1,1./
. . . _.n t.CHA1U R( 2 17 , 7 I 1 I 1CHARIR121L..lt 2 I ,C HART R( 2 17 , 7 13 I / 0. 1- • 8 11• I t .)
'-0
7 ,CHARTR(217,8,11,CHARTRI217,8,21,CHARTR(217,8,31/-.1,-.1,1./
~£R POSL PROCESSOR LISTING PAGE 12
---------_. 8 ,CHA~TR(217,9,1),CHARTR(217,9,2),CHARTR(217,9,3)/-.6,0.,1./
9 ,CHARTR(217,lO,1),CHARTR(217,10,2),CHARTR(217,10,3)/.5 5,.15,2.1
___________________ u ~ A ___' CJ:i_~ 8IJ:liZ1LLllL1J-,_5;H~R TR( 2 17, 11 , 2 ) , CHAR TR( 2 17 d_L, 3 )/ • 2 , - • 2 , 1 • I
8 ,CHARTR(217,12,1),CHARTR(217,12,2),CHARTR(217,12,3)/.1,.05,2./
C THE LETTER 'R'
~ .. _._.-~~,-
C -- ---,_._----".,--,_ _._.
DATA CHARTR(218,1,1),CHARTR(218,1,2),CHARTR(218,1,3)/.l,0., 2.1
J JJ~HARTR (21B_t2-tl ),J~HARTRL218L~LZ1-l-CHARIB12J_8--,2,-3) I ~~_I .
2 ,CHARTR(ZlB,3,1),CHARTR(218,3,Z),CHARTR(218,3,3)/.7,0. ,1.1
:3 -l-CIjARIBJ21B.,_:4_Ll t,CJi-8BI RJ;UJ~,-_:4-,-_2_L!.CJjARTRL2JJtt4.t31l!-lt -. 1 ,1. I . . _
4 ,CHARTR(Z18,5,1),CHARTR(Z18,5,Z),CHARTR(218,5,3)/O.,-. 3,1.1
_--. . . . .2__~ttABIH.LZ1.(i.L9...L.U,-CHARTR ( U.a..LQ..LU1..CHAR TR (218, 6 LllL:--.!.L -.1,1, (
6 ,CHARTR(218,7,1),CHARTR(218,7,Z),CHARTR(218,7,3)/-.7,O .,1.1
_uI_. __JC1-1AR LR1218J.8..t.~1 .. CHAKLRJ.2.LaLat.2 L.,LHARTKi2.18.t-.8J._3J./ 3...10. ,2,1 _
8 ,CHARTR(218,9,1),CHARTR(218,9,2),CHARTR(218,9,3)/.5,-. 5,1.1
____ SL-,-_Cl:iA.RIRi2Hh .lQ,_~ lLG11-.AR TRL2.-Uh..l.Q ,2Ll.CHA_R TR12 1aLl O,-31LL-L~_2-AL . _
C
'-"-'-- _...-- -. _._. __. C lHE.-.LELLER '_S-_,_ _._.._.. . _
C
____D Al~_CH ARIRJ.2.2Lt_l, 1 L,_C.H~RIR (22 7 Ll_t2J.-,-CJ:t~R TRl.2.2-1J....L3LL~J.-'~1..t.2 • L. . _. _
1 ,CHARTR(Z27,2,1),CHARTR(227,2,2),CHARTR(227,2,3)/.1,-. 1,1.1
2 __ ,_CHAR TR(22], 3dJ ,_C HART R_12.2I.L1..t21ti. H~B.IRL221-,_3_,_~_)l-!.Q-l-O .! LL.l-!-L . ._
3 ,CHARTR(227,4,1),CHARTR(227,4,2),CHARTR(227,4,3)/.l,.1 ,1.1
.---.. - - . - .-.-------....-.---. .4. . Ji:.HARI R( 22 7J-2.LU.t.LJ::lARIlU22 7, 5,2 I ,C tiAlU1.i-l2 21,5 , 31.L~. 3 , 1. / . . .
S ,CHARTR(227,6,1),CHARTR(227,6,2),CHARTR(227,6,3)/-.1,. 1,1,1
------ ------ -- .-.. _o. --tc..liABLR (2 2L t lLi. uC.tlARTiLt 22J--'~J.2L1.~HARJ.R ( 227 t :Z..L31L::L6...L~-,.l.JLL .__.__.._ ".-.-------.-
7 ,CHARTR(227,8,1),CHARTR(227,8,2),CHARTR(227,8,3)/-.1,. 1,1.1
-...---- --.--.---- B" -t_Cl:iARTR ( 2 2 7 , 9 ,il.t-C.HARI R ( 2 21 t 9 , 2 ) , C H.ARIB. ( 2 2 7 -J.~3J I 0. t • 3 , 1 • I
9 ,CHARTR(227,10,1),CHARTR(227,10,2),CHARTR(227,lO,3)/.1 ,.1,1.1
,,- A.~R.L22.7 t 11, LLJJ:lARIlU227, 11 t 2) • CHAR TR (227,11,3) /.6, Q • .1./
B ,CHARTR(227,12,1),CHARTR(227,12,2),CHARTR(227,12,3)/.l ,-.1,1.1
------------ .------,,--- __. .L __lLtlARIRJ2.2_1 ...l3., 1 ) , CHAR113..1.22 I.t.l3..LZL-GJ:iARTB.J 227 t 1 3J3j..l--h~L..I -----+::-_- ---
C 0
--------------
GERBER PO~J PROCESSOR LISTING PAGE L3
C _lllE__LELLE~T '
C
_~_~ • __ H_ DAIA__ rJ:lAIllR1221hlJi.LHART.RJ2.ZJh.l,.2-lLCHAR TRl.221hlt.3..LL...Lt.1. ,2.1
1 ,CHARTR(228,2,11,CHARTR(228,2,21,CHARTR(228,2,31/.8,O. ,1.1
_2 _. J.CrMJU fU22.BJ3..LlltJ: HART R.122aJ.t2l.LCJ::iARIR.L2.2...8J_.b_3J 1-.4, 0. ,2. L . _
3 ,CHARTR(228,4,11,CHARTR(228,4,21,CHARTR(228,4,31/0.,-1 .,1.1
",,_._---_.. _--_._-- __ __ 5 _ • CHAR, TR I 2. 2 8 t 5, 1 I t CHARllU2.2J3 • 5 t 2 I , Ctl..ARLR 1.22.8 , 5 • 3 I I • 5 , o. , 2 • I
C
___________ G H1ELEIJER ' U~ . ~ . ~~ .__. . _
C
D~J &_tJ:LA_R TR L2.2.5Lt.l.•.l.
LLC.-HAR I RL229_,-u2J._LCl::lAR TR.L229_, .1_13 I L~_l L~.J.2-.J
1 ,CHARTR(229,2,11,CHARTR(229,2,21,CHARTR(229,2,31/0.,-. 9,1.1
2...H
LCbAR.TRJ2...29 t 3,1 l.LC.tiAJiIJiLU-9-L:lt 2. I t CHAR IR1~ ..tA_d.J 1.1, -.1 .1..LL- . _
3 ,CHARTR(229,4,11,CHARTR(2Z9,4,ZI,CHARTR(229,4,31/.6,O. ,1.1
4 __ ~ ,-C_HAH.I Rl2.22.,_5_dLI LJiA RIRJ22..<t,_5J21-'-.C.ttA RIRL229..t.5, 31l-LlJ.....L..L.L
5 ,CHARTR(Z29,6,11,CHARTR(Z29,6,ZI,CHARTR(Z29,6,31/0.,.9 ,1.1
-- . _._ .. 6 _..CHAR LR12 2 9. 7~1 hCI:iARIR1U.9_t..l,2b_G..I:-l..ARJK12 2...9 . t._1J 3.l j J>.l.t..~.l
C
__.__ ..£ . __I l:iE._L.E..lliR_'.L.V_' _ - - - - - - - - -_.--, -~------"'-'-'--~--<--~---~., -.
C
DA TA_LHARI RJ23ihlt. LL,.CttAR.IRi23.Q.1..LL2J..t.GHAJUB_L2.3.Q,.J..13J L.. LLIJJ.Z... L __ .. .__
1 ,CHARTR(230,2,11,CHARTR(230,Z,ZI,CHARTR(230,Z,3)/.4,-1 .,1.1
2 ,_CH ARIR. ( 2.3Q, 3.1.11, C.HAfiLRJ.2.3 QL1J2J_LC.J:t~KIR..L2_3_Q.J3131L~~_dJ_1.J._I'L ._._
3 ,CHARTR(230,4,11,CHARTR(Z30,4,2),CHARTR(Z30,4,31/.1,-1 .,2.1
_--'-'c . . _
C THE LETTER ,~.
---.-.--- c._. . ._. . . ~._. ..__. ._
DATA CHARTR(Z31,1,1),CHARTR(231,1,ZI,CHARTR(231,1,3)/.l,1., 2.1
-.. ---_.__.--. .__.L J_CJ:iARIRJ23.l.t.2..t.lJ.t.Ll:i.AB..IB12..ll..t2.1 2 ) • CHART RI Z3 1 t 2 ..3 LL-L3 • - 1 •• 1 • L .._.__ . _
Z ,CHARTR(Z31,3,11,CHARTR(Z31.3,Z),CHARTR(231,3,3)/.3,1. ,1.1
3 .CHARIR(231,4,lJ,CHARTRI231.4,ZI.CHARTRI231,4,31/.3, -1 •• 1.1
4 ,CHARTR(Z31,5,1),CHARTR(Z31,5,2),CHARTR(Z31,5,31/.3,1. ,1.1
. . -.__.:L___ , CHART R L2..3..L, 6. 1 I , CHART RI Z3 1 • b • Z ) , CHART R( Z3 1 , 6 • 3 I I • 1 • - 1 •• 2 • I ~
C I-'
____________~G~E~R~B~E~R_2POST PROCESSOR LISTING PAGE 14 _
1 ,CHARTR(232,2,1),CHARTR(23Z,Z,Z),CHARTR(Z32,Z,3)/.8,1. ,1.1
___ ~ H___ n 2 ~Cl:iAR.LFU2 32-,_:iLL1.LG.-I1ARI RL23 2,3, Z ) ~HA8JKl2 3 2,3 .J3.11.=. 8 ,0. ,2 • L ~ __~_
3 ,CHARTR(232,4,1),CHARTR(Z32,4,2),CHARTR(232,4,3)/.8,-1 .,1.1
_______. ~ ~ Lt.. . ._...1..Q.iAKT R_LZ 32..,~_, 1 ) , CttAR TRi.2..~2-t.~ , CHAR IBJ __2_.ll..t_~. 1 ,0. ,2. I
C
____e ~ IHE.li.lIJ~R__!..Y_'_ ~ _~ ~ __ ~ _
C
___ _ Q.t\ TA_e HA BI.R.L2~} ,I,LL LCHARI R12_~~.t..L.2J_.LC_tlA.R I RJZ_~ 3-'.l_-'~JL~t.L.J2_. I _
1 ,CHARTR(233,2,1),CHARTR(233,2,Z),CHARTR(233,2,3)/.4,-. 5,1.1
__~. _~ . ~ .LC.t:iA...fUB_i.~.3
3,3, 1) LCttARTRL2..ll.t..h2..1..L.CHAR TR ( U~..t2~ll~---L2.LL.L__ p ._. ._
3 ,CHARTR(233,4,1),CHARTR(Z33,4,Z),CHARTR(233,4,3)/O.,.5 ,2.1
4 un' CHAKTR L233, .5....LlJt CHART R12..33-1.2-,_.2J ...L_CHA RT Rt2.33_,5--,~11.~_'t~LhL
5 ,CHARTR(Z33,6,1),CHARTR(233,6,Z),CHARTR(233,6,3)/.l,-1 .,2.1
__ e_
C THE LETTER III
__ ~ G. . . . .______________________ __ ___ . . .__
DATA CHARTR(234,1,ll,CHARTR(Z34,1,Z),CHARTR(234,1,3)/.l,1., 2.1
_1_ , CHAR TRL2 J_Lt ~,_ 2,_1 J_LC_H ABJ R (23.4.12...1 2..l.L.C H_ARIRJ23_Lt..1.2dll &~LL~I _
2 ,CHARTR(234,3,1),CHARTR(234,3,2),CHARTR(234,3,3)/-.8,- 1.,1.1
3 ,CHARJRL234 ,it_, lJ_l_CHARIJU23.4.1A...t.2_L,CHAFURJ234,4 ,3J 1~.8..t..Q_'J.L§1 _
4 ,CHARTR(234,5,1),CHARTR(234,5,2),CHARTR(234,5,3)/.l,O. ,2.1
_________. . -.-C_______________ _ ~.
C THE NUMBER 10 1
----------._------ --------------------------------
GERBER P~~~ROCESSOR LISTING PAGf. 15 .-------------
DATA CHARTR(247,1,1),CHARTR(247,1,2),CHARTR(247,1,3)/.9,.9,2./
._---------------- _
... - .__ .,.- - - -
GERBER POST PROCESSOR LIST ING --'=-PB-Asz.G......
E_-"'-1.L7 _
_ _ _ _ _. . --.1_---' CHARIR (241, 2,1) ,CHARIB ( 247,2,2) t CHARIB (247 t 2 t 3 11-.1 t.1 t 1.1
2 ,CHARTBI247,3,1),CHARTRI247,3,2),CHARIR(Z47,3,3)/-.6,O .,1.1
_~_____ _ _ _ __. H._. un 3 _. ..J.c.t:L~LRl..2.!t1tlLL1_t.Lt:!AR.IRn~I..L4..t_.2.L....C.I:iA...fLTRJ2~Ld-L3J 1- • 1 , - _. 1 , 1 • I .
4 ,CHARIR(247,5,1),CHARTB(Z47,5,Zl,CHABIR{Z47,5,3)/O.,-. 8,1.1
________ 5._ _
LG..IiARIRl.2.~...t_.6.' 1 ) t CHA B.l.R12.4.7~.L2..Lt...c_tLAJUR~L6....t.31LLh- • 1 , 1 • I
6 ,CHARTR(Z47,7,1),CHARTR(247,7,2),CHARTR{Z47,7,31/.6,O. ,1.1
__3 ._.1lliARlBJ 247,8, 1 hC._t::L8B.IJU2~h8, 2 I, CtlARLR_L2...47, 8 ,llL.• 1 t • 1, 1.....L. .
8 ,CHARTR(Z47,9,1),CHARTR(247,9,21,CHARTRIZ47,9,3)/O.,.3 ,1.1
9 __,CHAFUgt2!t..I..1lCh_ll.!..c..HARIB...t24.h_l.Qt..2..L.CJ:U~JUR i2~L1...!.1.QL~-=...tl.t...LLI.LJ. _
A ,CHARTRI247,11,ll,CHARTR(Z47,ll,Zl,CHARTRI247,11,3l!-.6,0.,1./
.. B ntC.HAR.T B (24.Id.2t.1.1I.CJJA B..LR.l.2...4..7..t..l2 .l.2.L.J..cJiARIR..1241,.l2.t3JJ=.....1 t - . 1 d ....L .__... -
C ,CHARTRI247,13,1),CHARTRI247,13,21,CHARTR(247,13,3)/.9 ,-.4,2.1
._._.. _- .... _~._... _. __ .
-_..._------_.- .. _--- _..._----------------_.------_..
._-_
C THE NUMBER '7'
. __.e_
DATA CHARTRI248,1,1),CHARTRI248,1,Z),CHARTRIZ48,1,31/.Z,O., 2.1
.1 ,CHART.R (24B.J_2..t.llt.CH~R TR124..8.t.2,_21LCH_ARTBJ248 ,2.J3 U_.I,_l.....J...L
2 ,CHARTR{Z48,3,1),CHARTR(Z48,3,ZI,CHARTRI248,3,3)/-.8,O .,1.1
__ ... ..__ ..... 3 ..... tJ....tiARI R1.~_LlulJJhCJ:i&I?,IRJ2!i.~.t.2.L..cliAR I I?, I 24 8.rlJ.3_1L~.t..2....I . __... _
C
C. .THE N.U.MBER '8.' . .
,...
I..
DATA CHART RI 2.49_d,_U ,CHA.RIJ~, l249,l,2_L, CHAR rR..l249_.t..l,3) L..2,.......5...t2.•L ..._._
1 ,CHARTR(249,2,1),CHARTR(249,2,~l,CHARTR(249,2,3)/-.l,- .1,1.1
-. ..... .. .. ...._._.__..._2_. .t.CJ:iARIKl2.~..l1...t.fJ:iARI I?, ( 24.2..t.3..J..2..L.L.CJ:JAI?, II?, ( 249,.h..3..lL 0. ,-.3,1. I
3 ,CHARTR(249,4,1),CHARTR(249,4,Z),CHARTRI249,4,31/.1,-. 1,1.1
.. 4_.. ,CtiARlRL2!t2.,..5...t...LL.t..Ct1.8IilRJ_2.!i..9..1..5_'-2.l..tCJ::i8RIltL2!i.9...t...5....t..31L .. 6 , 0 .. , 1 .. 1 .. . _
5 ,CHARTRI249,6,1),CHARTR(249,6,2),CHARTRIZ49,6,31/.1,.1 ,1.1
___ u •••. _ •• _o . _-'..G.ttA RT R( .2..~L.LL1.LCJ:!Ag..IR ( 249 , 7, 2 ) , CHAI?, I BI 249 , 1., 3 I 10 .. , • 3 , L...L .. . _._
7 ,CHARTRI249,8,11,CHARTR(Z49,8,21,CHARIR(Z49,8,31/-.1,. 1,1.1
_________--a ~AI?,TR(249,9,1),CHARTR(249,9,2},CHAI?,TR(Z49,9,31
1-.6,0.,1.1
9 ,CHARTR(249,lO,1},CHARIR{Z49,lO,Z),CHARTR(249,10,3)!-. 1,.1,1.1
-------- A .__ .l.C_HAR.IR.L~..9....tj.lt.l..L....C.HA.RTR ( 249, 11,2 I , (HAl?, TR I 249,11 ,3 )! 0. , .3,1. I ~
B ,CHARTRI249,lZ,1),CHARTR(249,12,2),CHARTRI249,12,31/.1 ,.1,1.1 ~
•
GE RBE R P QSl _P ROKS SO R----LLSlIJ'iCL__ PAGE 18
C
_ DATA _ CHAR. IF< 125Q, 1.L1Jt.~HARJRL2 5-0 l~.t2.hCt:!AB.IRL22_0__LLL3JIti.Lili2~._. .. n __
1 ,CHARTR(250,2,11,CHARTR(250,2,21,CHARTR(250,2,31/.1,-. 1,1.1
2 ,.CHARIRl220 ,31 .UtGHABJ RJ2.SQ,_.3_L2J.LCHAIUK12.5.0..J:h3J I. 6 tQ~---,..L.L ... .
3 ,CHARTR(250,4,11,CHARTR(250,4,21,CHARTR(250,4,31/.1,.1 ,1.1
. ._nn__... _. _ n .~L._._-LCHAR.IRLZ_2.Q..,5t.lLl.CH.AJURt2.50, 5 1 ZL.1...C.HARLR ( 250 t 5, 3 LL~. 8,1.1 .__. .. .__ .. _
5 ,CHARTR(250,6,1I,CHARTR(250,6,21,CHARTR(250,6,31/-.1,. 1,1.1
Q ,CHAR T R. (250..1 7 , lllCHAR TRt25.D.t.I,.2.L.t.G.HARlRl.2.5.Q.t.7 -L3JL:::....,6l..a....t.l......L_
7 ,CHARTR(250,8,1I,CHARTR(250,8,21,CHARTR(250,B,31/-.1,- .1,1.1
8 ,CHAR TR (250., 9,11ICHAR TR (.2.201.3 .t.21J.CHA.RTRl2-~O ,.9, 3J_LQ~--,.::~3tl~_
9 ,CHARTR(250,10,ll,CHARTR(250,10,21,CHARTR(250,10,3)/.l ,-.1,1.1
A._ .. _.LCHARIR.t2.20.l..~lJ.ll.J..cl1ARI.R {250, 111.2..L...C.!iAJUB.12.2O..JJ...lL3 I I. 7 ,.Q..L.J_hL. ..
B ,CHARTR(250,12,11,CHARTR(250,12,2),CHARTR(250,12,31/.1 ,-.5,2.1
END - ---_._. -- -_.- -_. ,_._-_.- ------"_ ..._,------------- --------------.. _---_._----_.. _---'--
------..{:::.-------
0"
____ ~ JiERBER POST PROCESSOR LI 51 ING pAGE 19
C
C
_____ . .. . . ----lo<. . B1lULlNE.~Q_END_lI:il~2.LQI_. .. _~ . ..__.__.
C
_____________________ . SUBBJJjj.IlNE __El'ill.. . . .. .__ ....
C
___.__. . m~l'1.QNLA.Q.CiU':UKQ , K 1 , K2, K 3 , K 4 , K 5 LK.Q.~L<t.t.K 1 Q I K 11 , K 1 2 ,BL.A.tiK
REAL*8 PRC1AP,CANTAP,CLTAPE,POCTAP,PLOTAP,SRF1AP,
. 1 __ .__IAPES11IM ES.211~_eES3.J.ltP.£.sIt _
COM~ON/ATAPTB/PRCTAP,CANTAPtCLTAPEtPOCTAP,PLOTAP,SRFTAP,
1 JAPE Sl IT ~PES2._,TAPE.S31. IAP_E.SJt.l...lNIAP E., J_O_VJ AP ,P _liN_JAJ~_______. _
REAL*8 W
____ ._ .__ -_. __ . __ .__ Dl~£JiSLmLW l2.5Zl- . . _ ._ .. __.. _
DI~ENSION DIGITS(lOI,CODES(SI,PENCOMISI
_ I NTE_GEK_IN ..GC.Cill.E,QCC.DEI...MUlDE.J.GL_ltS-I.l.DUST _
CO~MON/GERBPP/w
____.1 ,X LtYltLL,__X21 Y_2JI2..t. OX .t QY_t D_L_
2 ,XC,YC,ZC,AREA,ARCS,ARCL,AL,SEQNO(ZI
. } LLriLG.G..!.ill£..!.DCUD_E.1.11Clill.L-G..L.A.S..L1..D..LAS_L.NPIlhllLA.s..tws.O-ll:HL
4 ,DIGITS,CODES,PENCOM,DDASH,BOASH
____ 5 _ __ __J~.;..c.IGll.tN.DfC.ML I NTAP E.
6 ,IFRUM,LINEC,NPAGE,NPLOTS,NCARDS,PTLT
7 _Ifv' O~J ti,_D 4Y t.Y E.AR________ __". '_.'_
C
____... _. L l::JAS-A_..£..fiC..t1._aEE N G I V EN - - - - - ------------ ---_._.-
IFIIFRO~.NE.OIGC TO 100
--- ~ . CALL_ERR..OR{2.L . .__. .__ ~ ._._. . _
GO TO 9999
.__ . __ ~ __ .LClli...LALL.._CRO~L . ._ . . .-------
CALL LEADER(21
_________-.-G.- J:QUNI CAR.D..L.LP..I.LUJ..1N~C.uH~EJ.LD _
CALL PUNNUMI CARCS)
_. __~ .__ l£_lN..UP..E..ill.E_"__K.QJ_(ARD5 ~_. _ +:- ----
-.,J
NCARD=CARDS
----_.
____ NCARDS=NCARDS+NCARD
PTL=CARDS * .6
__________________ PTLL::E_TJ. L±J~TL___________ _
WRITEIIOUTAP,6999)NPLOTS,NCARD,PTL
__ ______________6229__ FllRMA LL1H~_d~J: PU1L_NUJ:18ER -'-J :.l12X-,-9H'-OJ1ELE_L~ __L
1 lH ,6X,32HNUMBER CARDS PUNCHED THIS PLOT = ,3X,I3 /
____________________-2. ~.J::t~L£8Jjllt'·HiIJ::L.J:l_~ e.E R _IAPL2J.U~:KtL~Q_~__t.F 7 • 1 ,4H J:l__-l ,__ ,
IFROM=O
.~ _._._--_.~,. --~.
. !'iPAGE::: Q -_.-,---, .. __ .. - ---._-- -_._-_.- -
NPLOTS=NPLOTS+l
__ Ll !'iEC= 52._____
9999 RETURN
------. .,_. .__ ENrL _ ------_.----------------_.----_ .. _---------,---------_.----.--- ----------_.-,--------
_____________ .--------.t=---
OJ
._-----------_._---------------------
GERB ER P-USJ----.fl_ROC ESSOR LIS T I lli2 PAGE _ll
C
C
__ ~_~~~_~ __ ~fillliLlf'iLTO_elli"iCJL~~TQP __ ~OllL~ ~ ~
__ _
C
-- ------_."--- -------
____$ lLBBJlUIllif --.S.JllP ~ ~ _
C
__________________________________. __ CJJ t-l_M_Q1i/_1LQC..QlilKQLK.~.2..tD.1IS_~--, K2.t ~J2_,.KL1.K.a.tK<t,_Kl..Q , K11 , K.l.2..t..6..I...M:i..K
REAL*8 PROTAP,CANTAP,CLTAPE,POCTAP,PLOTAP,SRFTAP,
1 _ _ _TA P£. SLd ~ E£S2 t_I~EE.S3-1..1 8J? ES_4____ _ _
CCMMON/ATAPTB/PROTAP,CANTAP,CLTAPE,POCTAP,PLOTAP,SRFTAP,
1 _TAl'E S It__. 1APESZ,LAeESJ 1TAP ES4 t lN TAPE, lJJUl A£>,_P~UNTAP .__. _
REAL~'8 W
__ _ DU~ttN
S I ON W_t2 5 2 ) ~ _
DI~ENSION
DIGITS(10),CODES(8l,PENCOM(8l
___ 1tiT fG ER-..LNJ..GC.ODE-,.o.C_Q_Qt_d"\CJJDE..t..G.LA.S_I LDLAS_L _
CCMMON/GERBPP/W
____ ____1__ . tXll_Y It_ll ,xlI Y2..t.Z2.1D xLQ'f, Dl.__
2 ,XC,YC,ZC,AREA,ARCS,ARCL,AL,SEQNO(Zl
____________L .__.t..li':j..LGfJlUE-'_DLO_D£_.JJ:1.C-.cl.D.£.t...G-LASL..D_LA_llt...tiEL.t-.Lt..l.QASJ:i.tKll.lbJh.- ._.. __ _ - _
4 ,CIGITS,CODES,PENCOM,DDASH,BDASH
5_ ~__ _________illD.IGl T JJ~QEC ML. NIAPL___ _ _ ~_____ _ _
6 ,IFRO~,LINEC,NPAGE,NPLOTS,NCARDS,PTLT
7 __ ___ t-M GNUi,DAY-l-Y Ef!R._
C
------- JiC.QD_E=il --------------------------'----
/
CALL PUTOUT(4)
______9.9..9.9. ---.RElJJRl'i ~ __
END
£_------
'-0
GERBER POST PROCESSO~_LISTING PAGE 2 2 - _ _ _
C
C
______L_. ___ ...Rill.LIINL.ISl....PBll.G.E.ss.....J:LRAEI__k.O.MyAlID _
C
- - --' --------- _._. . SUB ROU LLfiE_DK4EL .__...__. . . . _
COMMON/AOCON/KO,KI,KZ,K3,K4,KS,K6,K7,KS,K9,KIO,KII,KIZ,BLANK
______. ._. R~~.£.H'O'TAP-LC..~1ilAP...LC..L.IMf..t..P.Q.CIAP--t2J •.D..IAP_LSJlll~_. _
1 TAPES1,TAPESZ,TAPES3,TAPES4
__. . ._. __ .... __.... _. ..G..OM1'1J2Nlll lAP_I 8.LPB1Jl.AE.,J;AI'H ~ P',-'LI~PE,E..o.C_IA~-l.P.L GIA P-t-SR FJ~.P-,- ._.. . .__. _
I TAPESI,TAPESZ,TAPES3,TAPES4,INTAPE,IOUTAP,PUNTAP
_______..REA.L>;:.8__W .. _ __.. . . .._.._._ .._. . .__. .... _
DIMENSION W(Z5Z1
______________-..-.D..l.M.E..NS..LO.N--.D.lGl..lS ( 10 I , COD ES L..8.1.LP.E..t:lC..01'1LB._L _ -----------------_._------ -------
INTEGER IN,GCODE,DCODE,MCODE,GLAST,DLAST
______ COWDJ'JL G.EB.B_flPIW________ __ _ . ._ ....__.__.. . ..__. . ... . . _
I ,Xl,Yl,ll,X2,Yz,l2,DX,DY,Dl
_ 2_________ ___,-KC, yc....._ZCLA.R EAtARC.s.1..ARC..Lt..AL..S_E..QNil21 . . . _
3 ,IN,GCODE,DCODE,MCODE,GLAST,DLAST,NPEN,IDASH,KD,NW
_____ . .__~ . __l..C..l.GtLhCJJD.ES.t.PENCOM, ODASl:h8.D.A SH . . ..... ._.... .. __._.
5 ,NOIGIT,NDECML,NTAPE
__ ._.__ ._ .. .. .__... ~ .__ ._ . dFROM..l.Llf':lEC tNPA.GE.1N.P.L.D..l.S..t..NUBJ:l..srtI.LL . . .._._..._ - .__ ._._
7 ,MONTH,OAY,YEAR
It-.JJ£G.ER DHQL D.. __. __ ._..._. ._._.__ . . _._-,._----~-_._.-.~--_.----_._- _. --_._-- --.
C
___.. __ -. .__ iLUERDM.•.EQ..l ) GO .I1L2.!L_.
CALL ERROR(41
__ Ji0-1 0.._9.999.. .. ._______ _. _
C TEST FIRST MINOR WORD
---'--- ..-------- 2_Q_J:..ALL....LHKMl..tLUiLLL....K... l l . --------_._----------_._----------_.-------
C IS WORD LEGAL
LE..LK.....G.LO LG.il......HL.l 0 0
C NO
------------.------------ -- CA.LLERRDR1..1 L _ ---I..A---
GO TO 9999 o
_______ GERBER POST PROCESSOR LIST ING PAGE 23
_ _ _ _ _~_ YES - BRANCH ON WORD
100 GO TO(110,120,130),K
______~______ UR AFIl.Lf'L _
110 DCODE=Kl
_____ ._._ __. G~lD __ l't{L _
C DRAFT/OFF
"'
___________ . 120_ JlGDD£=K~ _
GO TO 200
c __ D.RAFILDAS1L _
130 DCCDE=K4
_.,,----_., ._----_._---_.~_.- •... ,--_.. _.~-'._._---_
.. _--
LDASH=KO__ ------------,'.---. --.- _..• --, ... _-
C INITIALIZE ENOARC PARAMETERS
_______ L~Q __ ~Rc.s..==.D . . _
AREA=O.
XC =.0 .. _
YC =0.
__ Zc. __ =Q~ _ _ _ .. _-- ._-.- -.---
C IS THERE A SECOND WOKD
__ 2.Q.Q-lEllHi...u~2...LG..O-
I 0_299..9_._. _ _
C TEST SECCNO MINOR WORD
____ C~LL CttK~ r t-J.{ w(2) , K ,21 __
C IS WORD LEvAL
I F ( K• G1.0 lGu_Hl 202
C NC
------ . -.C.H_L.L.E.8JillR.L1_.L-._ .__ . _ --_.-- -------------_.---
GO TO 9999
_ _ c____ _ .Y.ES._:=_ fiRANCJt__..D1'LWORIl... . . . _
205 GO TO (210,220),K
___ G...___ ..QR.~llLXXXX-'-P_ENJ..L . _
C TEST OF PEN NUMBER
~ IF(W(3~GT.O .AND. W(31.LE.6)GO TO 212
CALL ERROR(S)
_______.________________ GC TO 9..9.9..9. _______----U- _
I-'
C SAVE DceeE
GERB£BJO_U- PROCESSOR LIS_t ING _ _---'P~~ _ _ 2_tt
212 DHOLD=QCODE
C IS PEN DOWN
_________ 1E ( 0 LA_SlLE~K2_~J"Q_2l~ _
C YES - GIVE PEN UP COMMAND
_____________________QU) 0 ~:: K ~ _ -------- ---------- ----
CALL PUNOUT(61
____________.__. C .-S..U __M:LO_ TEll_f'J EW_P EN N.l,)_.~_B=-Ell.R _
214 NEWPEN=W(3)
_-Z 12__ 0LA S_1 ==_1S2_____ _ ~------- . _
IFINEWPEN-NPENI216,219,217
____G. _ _tLO ME__ IUBJ<-EL _
216 DCODE=K8
____._____ _ . CAL L P l,.JJ~.o..u._Itil. . _ --------------_.
NPEN=Kl
___________________G.o...lC.21S __ __ _ _ _-._-.---'-. -----,--- - - ' .. ,_.,--_. __ ._---_.---,.- .._-
C ACVANCE TURRET TO PROPER PEN
-- .. _~- .. __ .
___ 217.oCQD£~K3 ._-------_ .. -._. _._ .. ------_.
CALL PUNOUT(6)
_______f'jPLfIL=:liP-..EJi:tlU- _
GO TO 215
-- G._________ __ __ __ RESELDCQD_E __
219 DCCDE=DHOLD
____.G.O _10 999 'L___ _
C DRAFT/XXXxXX,ENDARC
- -22Jl.__LEU.D...cD.Q.Ll'.l.L_K_2.L~ Q.R....._U2LA.s..h.E.Q.....K21..l..G..O_--.I.O..-92..9 9 _
XC = XC/AREA
------- y C__:::: 'iG.LAREL _
CALL PUTOUT(3)
-- .!1.9..9..9.._RELU_RN. . _
END
_ _ _ _ _------"G.. .E-.. LR>..IoBu..E'-'-'Re..-LP.\oLO"LST.L----f>B, 0CESS0 R LIS TIN G PAGE 25
C
C
~ .. -..-L ~_~~._~ .. ~ __ ..~Ul1.NL.lO.-..-£.KE GJ.LtL.MAGHlli._c..uMl1AND
C (SET OUTPUT FORMAT)
SUBROUTINE MACHIN
... . G..._ .__ ...__ ._.. ~ . ~~. ~ .. . . . ... _
CO~~ON/AOCON/KO,Kl,K2,K3,K4,K5,K6,K7,KS,K9,KlO,Kll,K12,BLANK
_
__ ...._C_C.MMClNL A5. 1.5. Ti"1 LlCliMMJ'_1.8..LtJiu.MP SJ.LtitLMJ: IR
REAL*8 PRGTAP,CANTAP,CLTAPE,POCTAP,PLOTAP,SRFTAP,
_ . ~~ 1 _ .__ TAI?ESlt.IAP£_S2.LTA P.E;S_3_,J APES_it.
COM~ON/ATAPTB/PRCTAP,CANTAP,CLTAPE,POCTAP,PtOTAP,SRFTAP,
____________._1____ __.__L~eJ. _s..-WA pU2..L1 APE_U' TA PEs..'!. d}~tLAP~I 0 UTA P , 1J.!.il'J TAE.- . . . __.. .... ._._._
REAL*8 W
.D 1 ~E NS LONW L25_2.>
Cl~ENSION DIGITS(lO),CODES(S),PENCOM(S)
Ij\j TE_G..,E B. 1 N_, GGGQE ,_DG_Q_Q..E t.l1GUDJ;J.GLA.S It _D_LASL ~ _
COM"'ON/GERBPP/W
. "._.,'-'...l... ~ _~'. _·"'__::...._: __._JX lLY..LLl.L.~2..t..Y2..t..L.2...tJ1X.1.11Y_.t..Q_L . ._.. ._. ... . __ . ._... ,.. _
2 , XC.,YC ,IC, AR E~A, ARC $,ARCL,AL ,. SPQND ( 2 )
3 .. _...t..l.1'i.lGLOD b_D~GDDE,M.COD E.t.GLA ST,.D_LA S It.l'iP.E1'J.tl.D..ASH_,_~.lL.t.N~ _
4 ,DIGITS,CODES,PENCOM,DDASH,BDASH
5__ _ :_.. _:INC IGI T L1~D E.C.ML,tH APE __
6 ,IFRCM,LINEC,NPAGE,NPL.,OTS,NCARDS,PTLT
_ --_. __.__~ . . . 1 . t MONTH ,.DA't.s..Y£.AR. _ --------_._-.
C
__________ LO.GlC.ALtl_. LELAG..L2J.. . . ._
REAL*8 OUTMED(Z)
-__ . .___.B. EA~ .-XLEEOS_ild_L . . .__________ _ ... ._
CATA TFLAG/' ','*'I,OUTMED/'ON CARDS','ON TAPE 'I,
___. ~____________ 1 XlEROS ( 1 d) , Xl EROS ( 1, 2..Lt..Xl EROS ( l , 3)f' FULL' " FOR',' MAT 'I.
2 XlEROS(2,1),XlEROS(2,2),XZEROSI2,3}jJNO T','RAIL',' 0"5'1,
___ ~-----._- ._.J.__ lU.ERilS...L:4.Ll....XllR.O_S.l.3..t.2J-LXLERO.s.L3.t 3...lL' NO L' t ' EAD' " 0" S '-'- \.rt
\..oJ
DATA IMACHN/-li
-_.--.- _."-_._-------_.. ,-~-----------------_._--------_._-------_._.
GERBER POST PROCESSOR LISTING PAGE .26
IFllMACHN.NE.NUMPTRIGO TO 9999
C FORMATTING MAY ONLY BE CHANGED BEFORE A 'FROM'.
.- . ..._....__...__. ._.__._.J..Ellilill.!1~ll~_._nL.J..QQ... .
CALL ERRGRllOI
..GQ __LQ _2.2.2.9_ _ _ _ _ . .. __ _ _.._ _ __._ . .. _ .._......:.._ __._.__ .._ _ __. _.. ----- -'"
C
. .__ .... ... IHII1.L..U.L.E.QB.t·tAL..2...!'.. ~ ....ALL_JUjilLS. ... lt:iC..lU..DED.
100 NDIGIT=K2+K3
......_..__....._.,. .__.__.......__.__._.JiD.E.C.......M. uL-..:=:. .LK....3<-- _ ._---------_ .. ------------_._. __._------_ ...
NFMT=K2
----_._..-- . ---_ .. _--- --_ ... ---_. ___.-.l..l..ERQS=,,~_._ _.__.. _._.. __._.. . . .._ __ . __ _.
NTAPE=KO
C SECOND PARA~ETER FORMAT=l.3 OR 2.3
_.____ "_,,, ... ... _.. _I£lli..t2J • EO. o. (L~.cL1k..._j)J..2.L.. tiLL.....2.. 3DQ LGO TO 3..QJL ... .
220 IFlWl21 .1\lE. 1.3DOIGO TO 230
N.D..1G 1T=Kl. +..K.3._ __ _ _.._ _ _.__.. .. "__' __ ..__ ._ __..__.__
NFMT=Kl
GO 10300... --- ------._,.. -,--.. __ .'--------- ._' .. '------
230 CALL ERRORlll)
._ _. ..__. .....C...__... . . . . ..... . ...
C THIRD PARAMETER LEADING OR TRAILING ZERO IMISSION.
-.--..------.... _ -.._ .. 30 0._.1 E.JN.W ....LT... .K.31GD.J.Q......9 ililiL_.__. . . . ... . . ._... ----
IZEROS=DABSIWIK311
..rEtirEE. 0 S • LE....K.2.lhU.....I.O.... 32.0.
CALL ERRORll21
_ _ _ _ _->JGQ_l.O 400 .
320 NDECML=NDECML+100*IZEROS
.... \...tt _
C FORTH PARAMETER OUTPUT MEDIUM CARDS OR TAPEIMAG). +:-
__________ .----.-.G_E_RBER POST PROCESSOR LIST ING PAGE 27.
_ _ _ _ ~(Ll.f__lNlJ.......u...LQ..K42L)
lo2.G!.!.O_T..!. . loLO_9zcO!o!CO!o!CO!oL- . _
IF(W(K4).EQ.O.IGC TO 500
.. _. . .lE..LW_lK.4-.1. EO. 1. I GO TO 3~LL _
CALL ERROR(13)
_______________ ._...3..4.Q __N.IAe.£_::-KL ._.. ._ _ _ . .._.___ _ ... _._._._
C
.__..._... __.__ .._.__----2.O-Q._c..otrrlliUE _._._. _
9000 WRITE(19,1900ITFLAG(NTAPE+ l),NFMT,
1. __ ._.J XLEROSLU£.R..O.s.± ... 1J.J.2<.J..!..LK~.L. .. 31..LQUIJ1E.D..lH.JAP.E..±_LL ·. .
1900 FOR~AT(lH+,5X,lAl,88X,'OUTPUT IS ',112,'.3 ',3A4,lX,lA8/1H )
_-~ ..
999.9_ R£ T.uRN._ _._-_ ...- .. -._,--_.. __ ._.. _".__ .----_.--._.. _._----------_. -- .. -' --,--_.- ... -.. _---
END
__ . _ ._ _ .- ." __ • > A ••• _.~_". ·_~, • _ _ .. ~ .~._
---_._. __.._------_._----------_._-""-----
.. _-- . ...
__._-_ _ - - - - - - - - - _ . _ - - - _ .__._-_._-_..._ - - - - - - - ._--_._-----
. . _--_._--._----_._._---------- \ ...
Vi
---'-_.- .. - _.- .. __ ._--_._---~ . _._------~-----. ...
__.- ._----_ .. -_._-_._-_ _-_ .. _... _-_. __ ._-~- --~---_ .. -----_._-_.
6 ,IFRO~,LINEC,NPAGE,NPLOTS,NCARDS,PTLT
..1_ __-, _M_OliI Ht_UAY 1. Y.E.AR .. ... ._. __
C
-------..-..----------..-.C._. . . J:iAS-L£R.e..tL.B£EN..J'ROCES5ED. ---- ---_._._._----
IFIIFROM.NE.l)GO TO 20
________.J:..A LL_£R.RDfi.L6.1.__ . _
GO TO 9999
-- . . _-....- ._~ . WR I TE OUL.E_ARIlill s.J.All.M£N.L_
20 LINEC=LINEC+l
----_.... _------ _ _-l.E ( LIN EC. GT • 50) CAL L_t::J£A~D _
WRITEIIOUTAP,6000)NPLOTS, IW(I),I=l,NW)
---p---------.---.-------..6.0.ilil-EDRMALLLH_.-.t..3.9.X..t21HliE RBER P..D.S..IP ROC E.s.s.oR-llUll UT ,2 X, 5H.P..L0 T ,I 2 L ___.__ I..A------
0'
1 IHO,22X,6HPARTNO,2X,11A6 II)
-----------_._----------_.
I
Ii
J
.G.ERB ER_PQ-S-l.ERQC.ES SO R L LS Llli~____ n~~_----30
c
C
___. ._. . L- .. RDJ.LI1NE_ .. IC_._PRLlC£~S_..£RQM __L.OMJ1A.f'ill...-_
C
______.. . ~ .sUBROUllNE_£fillM___ . ._ _ .. . . _
COMMON/AOCON/KO,Kl,K2,K3,K4,K5,K6,K7,K8,K9,KlO,Kll,K12,BLANK
__.. __ ..__. .... ..3_!;A L_:'<_e ....J?J~ltL~J).,. CANTAl' ,-_C _L1 .8r:~.!..l:-QJ; IAe_1PJ....Q~AE ..t..S.R FTAf:?--!
1 TAPES1,TAPES2,lAPES3,TAPES4
______ C_OMMJJf'U ATAPT61 PReT AP, CMiT AP_, C1TAP.E t.EQ.C TAP_,.e.1Q_IAJ~_.t.sREJAE .. L _ · _ _._. . ....
1 TAPESl,TAPES2,TAPES3,TAPES4,INTAPE,IOUTAP,PUNTAP
R.E A.U:1:l W __ _
DIMENSION W(252l
_.",,__ . . ..__. Dl_M E.NS.UHi...DIGJIS.llQ LLCOOE.$_Ca-t1.P E..N.C..OM..UtL ._ ----~-~----------_._._-_.
INTEGER IN,GCODE,DCGDt,MCODE,GLAST,DLAST
__ C.oMMDNIGE~BP P I W _.
1 ,Xl,Yl,Zl,X2,Y2,Z2,DX,DY,DZ
__ ._, . 2 __ J XC, YC, ZC t_AR EA, ARCS ._ARCJ.._1. ALI. S.E..QNDl2L , .. ....__.._ .___ --
3 ,IN,GCODE,DCODE,MCODE,GLAST,DLAST,NPEN,IDASH,KD,NW
____________. .._. __':L_ _ . J_CLG 1. TS_, CCO E~.J P_EJ'ic..OJ'td2Q A-S.!:!..&.DA-S tL__. . . .. ._-. ----
5 ,NCIGIT,NDECML,NTAPE
_________ Q____ . . .t I FROM tL I~EC_J NPAG_E.t& LD IS,NCARO S._,P.lLL. .. .. . ..__ .. .
7 ,MCNTH,DAY,YEAR
--- --_.. _--,------~~_. -_.-- --_._--,---
.c_ __ .-.-._._.... -
C HAS END OCCURED
___..1Eil£RCMillE.Ll.l.G.L.IG _20 ..._~. .__
C NO
....--- . -C.AU_ERRDRUJ. .__
C YES,INITI&LIZE
--.-------_ --- -2Q __ ~.N::.Q . .. ..._.... ._ _ . __. ..
ARCL =0.
_ _ _ _ _ _. .£:lX...I..l-=.=.n.W..l..(~l.L . . _
Yl=W(Z)
-------- . .-Ll3il3..L . . _ \n
X2=Xl co
--------------------
<Xl
0.1
I I
d
I
I
-1-
.-l
,
3
i
- I
I ~d'
::>
IIO~q~~
J"
~ ::>
0.
.-l
liz!
I!
~ ~ ...Jj5~
.-l
"~~"<x ...J.-JO:::~.O
N
0.0::: II"
N >- <t <tI u..
0 IU Z
N o ..... UU, .... O:::iW
I. ' i
II ·' i
( ,i
_ _~. __---G..E.RBE R POS T PROC ES SOR LIS T-.I2..LN",,-G_ _ PAGE_32
. ..L-. .
C
C .ROU TIN E .-I.O..._ PRO CES~_.G.Q.DilA_t..QMM=AN. . .D'. _""S'__ _
C
____ ~_~ __ ~ ~. ~_S1ill.B.O'U.LIN£.J;'O
0 LT A . ~._. __. ._. ~_~ .
COMMON/AOCON/KO,Kl,KZ,K3,K4,KS,K6,K7,K8,K9,K10,Kll,K1Z,BLANK
_ _ _ .._R...Ell.~L~a..Y-B..QT_A P_.tJ:.~ NTA~Tjl. P..E., poe TA£..tJ:.L...Q.lA P.t..SE£.->-I.....,A-'-P......, _
1 TAPES1,TAPES2,TAPES3,TAPES4
___________ . ~~.GPMM.QN/~TAeI.6IPJs_QL~~~I\NL~P.LUIA~~JPJJ'JAP-'_P_LQ.J.Ah~RFJAP_~ . ._. . .~_
1 TAPES1,TAPES2,TAPES3,TAPES4,INTAPE,IOUTAP,PUNTAP
___. REAL>::81i __ .~ ~ ~ . ---_._-_._---_.~--_._----_. ..
__ _... ~_._--_ .. _._--_._--- ._,._,-.~_. - ._-
DIMENSION W(25Z)
____QlM~~S_jON QI~LTS(lQ),COOES(8~PENCOM1.~8~)
__
INTEGER IN,GCODE,DCCDE,MCOOE,GLAST,DLAST
.. .•.
~_~ ._ £QMMDJ'UiiER 8PPL\'cL ~~_~~ __.. _. __. ._.~. _ ------_ _--,_._------,_.. ' - - ---_.- _.- -_.'--,--- ..- -"-
1 ,Xl,Yl,11,XZ,Y2,lZ,OX,Dy,DI
_. 2 . --'-..~. l n: llC,t\Ji.E.A~.B.C.hABCJd.~J...JS..E.QN_QJ2.L __ ~_. _
3 ,IN,GCODE,DCOOE,MCODE,GLAST,DLAST,NPEN,IDASH,KD,NW
.... ~
______. .~ . LbtLGl T-S-~QQ ES , PE1'K.Qt1tllQA.S.ti.L6QA.SJ:L ~." .,,- - -~,
_._----,-_ -_ .. ,--_._- _ .--.---.. .-. ,_. ----- -.-'-'-
5 ,NDIGIT,NDECML,NTAPE
_._.,,_.~. __._. "_'. ~ ~~. __~_~~_~ __ ~~._~ .6 ~ .. ".. __._1.1FRCM.. .!LJN..E.c...tri.eA_G.EJJ~ ..eLOTS,NC_A RU.£J_.e..I..L~_u~_. . __. ._ .._._ _. ._.. __,..
7 ,MONTH,DAY,YEAR
._._---- ---_._-------_ .. .... .. -._ .... _.- ..
c _ _------_._ ... _,- __ ._--_ _.-
IDASH=KO
____ .________ 0 X= W( II
OY=W(21
-~- . __. . ~~._____.Db=J<t.L3l._. _ ._.. _--------------~-_._--_.
X2=Xl+DX
~-----_.- ~ . Y.L= Y ] ± DY-_._. . . -------_._._-_.
12=ll+DI
CAL L MfillDN
9999 RETURN
~ .__.a_.._ _.
--E.bll ----------------------------
o
---------------------------------------------------_.-._---
c
C
_ _ _ _RO.U:LIj~£__1Jl flBO CESS GO TO COM MAN DS
C
____ _ __ SJlBROU TIN E --->G",-"O",-,T,-,-O. _
COM~ON/AOCON/KO,K1,K2,K3,K4,K5,K6,K7,K8,K9,KIO,Kll,K12,BLANK
_.. . ._.. __.R_EAL!iL PRO TAP, CAN TAP ,.c_LU P E, PO G.r AP , PL0 TA P.LS_fli.....lT..r.A!.l-P...:z, _
1 TAPESl,TAPESZ,TAPES3,TAPES4
______ .G.Ut1!-10NLAT APTaLeKQIAP_.LCA!"!IAP_,_CLL~.E.t2.oC.I~J:>~PJ.JJIAP, SRF TA.P..t- . ._---_._._----_.__ ..
1 TAPES1,TAPESZ,TAPES3,TAPES4,INTAPE,IOUTAP,PUNTAP
RE AL~a_.li____ .. ._._______ __.__. .. . .__
DIMENSION W(25Z)
_._______ _ . --D.1.t:':.E1':J S I ON Q.IG.ll S ( 10 ) ..t..C..O..Q..E..s..LaLE_EJ~.C..Q.M-,-,(-",8C.L} .
INTEGER IN,GCODE,DCODE,MCODE,GLAST,OLAST
___ .____ ___ C.c.M~_ili"iLJiERB.£PI}L
1 ,X1,Yl,Zl,XZ,YZ,Z2,DX,DY,DZ
_. .2 .. 1.)5..ClyC~ ARJ;A.tAB-'~S.LABJ;_L __'_ A..L...!.S.E..Q.f'lCli2 L _
3 ,IN,GCODE,OCODE,MCOOE,GLAST,DLAST,NPEN,IOASH,KD,NW
_. . _._. . '.'_'__ ~ . , 0 I GII..S..t...C.QJLE..$...1.KiiC.Q.M...!._QDA.S...H , BDASH
5 ,NDIGIT,NDECML,NTAPE
____________6 __ . . . ....L.Lf R.o1"1 ,_L lNE£ , I':iPA.G.EtliP_lQI S , NCARQ S.t..E.I.LL-__. ._ _.. ..__._. .__.
7 ,MONTH,OAY,YEAR
.... ... _. _.. C.... _
DC 650 K=l,NW,KC
__.. X2 =WlK.L.}_ _ ---_.
Y2=W(K+ll
- -- --- . -'l2:..YUK±.Z-'"-..L.} _
OX=X2-Xl
-------- .. __ ._ _ .... ..__. ---.1l.y.-=-Y2..=.-'--Y",-1_.
DZ=Z2-Z1
CALL MOTION
650 CONTINUE
. . -..9_9~t~L_R£ -,-1",,-Ull.Rlu..-J_ . _ ".",
I-'
END
_ _ _ _ _-------""G......
E'-'..RB""-'E~R-'------!.-P JlSl J?RQc..f.S50 R LIS TI NG PAGE 34
_. --k _
C
_. .... v . _ _... ..RQUT INE TO PROCEs.5.....11QJ ION COMMANDS
C
-. ._..__. ._. ..£.U.B.B.DllLLf'iE.._i1DIlJJ1'L________.
C
_ _ _. .-.-CJ1MMOi\lLAQ.c..QNLKO ,__~-L K2 t K3...t...K4, K5 t K6 t Kl, K8, K9, K 10 t Kll, K12 t B.l...AliK
REAL*8 PRCTAP,CANTAP,CLTAPE,POCTAP,PLOTAP,SRFTAP,
___. .. _~._ . . .. .._l __...__ . _.. T4PES.LL Lol\P..E.S2.!.T A~.E.S.~.LIJteE.s..L_
COMMON/ATAPTB/PRCTAP,CANTAP,CLTAPE,POCTAP,PLOTAP,SRFTAP,
_..1... .. .___. TAJ?E.s~.t.IA.P_ES2, TAP.E33.tlAP E..s.4_t..l.~TAP_~.d O.UI AP.t..P..1I NTAP
REAL*B W
- --- --- - - - - ____. 0.l.11_E.N.S.lDli...tLL2.22.l.. .___ _ _ --_.~----_ .. _--
DIMENSION OIGITS(lO),COOES(B),PENCOMIB)
_____ ._._. ._._JJHE GE fL..1Ji.t. GG.UDJ;.1QCll.Df.LML.QD..E..J .G.LAS.I.t.IlLA S.L_ ... ._ .. . _. ._. .__...._.
COMMON/GERBPP/W
---. _. . - .. _..._. .__.... L .... _. . LXl.t..li.t.Ll..L.K2..tY2..L.l.Z_.1.llX.t...D..Y._LO.L .
2 ,XC,YC,IC,AREA,ARCS,ARCL,AL,SEQNO(Z)
-. __....._. ---__ . .__. 3.. . t..L~G-C_QQ.L..Q_CODE , M.cJlQLliJ.1LSlLDLAST ,NPEN t I DASH, KD, NW- . _
4 ,DIGITS,CODES,PENCOM,DDASH,BDASH
__.__ .. .__ ...L~D I GIl ~'O.E.r.riLt_NL4P..E .. . __._.__. . . ._.. .._. .__.
6 ,IFROM,LINEC,NPAGE,NPLOTS,NCARDS,PTLT
-- _.--.. ]. '.. _.__ . , __ ._.._,JtQN ItLI.Q~YtY_E..A_R._. .
C
-_G... .CALCJ1LAI E MA X 1M UN-M av E • ..._ _. . __
DMAX=10.**(NDIGIT-IABSIMOD(NDECML,lO»)
_,._-~ .. _--.-
--.-..-.--------~-.-_ ...... - __CALCULALLLEN.G.IH.-D£._..1-1ill'.L__. . ._-----_•..
AL=SQRT(OX**2 + CY**2 + D1**2)
c ...I£S_I.-.EQB....-IJl(LLABJiE ..£Mu.OLlT...JILLOil'NL.- _
IF(AL.GE.60)GO TO 5
_____-lEl_D X• LT. 0MAX • AND. 0Y• LT.llMAX • AND. DZ• LT • DMAX) GOT a 10
C MOTION IS TOO LARGE - PRINT ERROR & DO NOT MOVE
.-------. ...5......LCd L ERRDR ( 9 ) . ._....~.~ ... ~ --~
N
DX=O.
--------_._----,----------------------
GERBER POST PR~S~ LISTING PAGE 35
DV=O.
Dl=O.
________________ GJ1_--lQ __ 9_9~<;L _
C TEST FO~ TOO SMALL MOTION
_______________________~mlf__l~LLJlLQQO5 ) GO T O~~9 _ ------------ ---------_.
C
______________________--C .______ MOT ION WITH IN .-J..Jl1.LIS . ----------_._-_. ._--------_.
C SUM ARC LENGTHS
_____ ARc.L_ ==_ARC_Lt...AL . _
ARCS = ARCS + AL
_______ C ______ __ __ _ CALQ,LLltlE_A R_EiL_t\N.I2__C.~T RQ.l.Q . . . . _
IF(DX) 120,200,120
______. 12JL--D.A8£L_=--'lX/ 2 • *(Y2 + Y11-- . . _ - - - - - - - _.. _-----_._-_.-
IF{DY) 160,140,160
_____ . ~!t.Q
__DY.c_~ 12MiEAf~~)'_L . . . . _
DXC = DARtA/2.*(X2+X1)
__ __ ___ GQ _I lL~B_Q . . ._.
160 Y2SQ = Y2*V2
_____________'L 1S Q = _ U:::.LL _
DVC = DX/6.*(Y2SQ + Y2*Yl + Y1SQ)
__ ._.cJ<C_ . = __ QXLQY*.LtX.2~Y2.sQ ___=__L<l~Y1SQ1!_ .. 5__=__D.YU. . _
180 XC = XC + Dxe
__ YC = __ 'i.C __ L_D_Y C_ __ _
AREA = AREA + DAREA
.-- c ...........,1O'"'-'N~C"_'O......M..uM..u;A:>.LNILIoOL._
.__ .-E.-'-'U..L.T....O.....U.....T--Ll.M::.LCT _ -----------
200 CALL PUTOUT(l)
____99519 _B£.TJ1.R.N
END
- - - - - - - _... _ - - - - - - _ .
n-...
\..n
GERBER POST PROCESSOR LLST ING____ PAGE~~
C
C
_________ . '" .... ROUT INL_IQ_ERLNL AN OUI£.llLJiEAlllNG ON ~fiL.P.-,=A...".G'-Jo.E _
C
-- --__ ~B.RaUTINLJ:i.EA.D _ .---_.---------_.
C
. ..-C_QJ., M0 NL~_O COJ-if K0 LKJ,-L.IS~L~-LKJ!~3LISJ~~.LtJS.fu.. !S..9~ 11 , K12 t BLAN K . .
REAL*S PROTAP,CANTAP,CLTAPE,POCTAP,PLOTAP,SRFTAP,
T APES1,TAPES2,J_APJ;S~_-,_Il\P.ES_'t ._
COMMON/ATAPTB/PRCTAP,CANTAP,CLTAPE,POCTAP,PLOTAP,SRFTAP,
TAeJ~SL.IA.~[:_S2_,-I~£~5~t IA!'~S!tdJ'iIAP l;__,J-OJ1T A£1J?UNT~.P .._ .....__...... . ... _.._
REAL*S W
.__... _..__. .__._._..._._ ..Oll!.EN.S lillt..rLl2..i2.l.__ . . . ...
DIMENSION DIGITSllO),CODESIS),PENCOMIS)
INTEGER If'Lt G.c..DQ£J UC..Q'OEJ_MCQ.QE...J..G_LA_S.ILOllS_I _
COMMON/GERBPP/W
_.. 1_. __ , X.1LY 1 t.Zl L~2t YZ_t_lZ. tD_X_,...D_u..Q.L ._
2 ,XC,YC,ZC,AREA,ARCS,ARCL,AL,SEQNO(2)
___ _.._-.. ...._._. _. ~ .. ._._ _ LJ..J:id? .c.Q._Qt;;..L!2CQQ~.LMC 0 D.L..G.lA .$..Lt_Q.L AS T--,-til:> .I;.N_,- I DASH t K0 , NW __....__ ___... __.. _ ..
4 ,DIGITS,CODES,PENCOM,DDASH,BDASH
-- . ~______ ......__ ....t..N..D 1GlI..t.N..O.E.C_M L_,JU APf. . _.. ...__._.... __ .. . . .
6 ,IFROM,LINEC,NPAGE,NPLOTS,NCARDS,PTLT
1. LMO NTJj..l Q ~Yt. YEAfL _", _. .._... ... .
C
--------.-- . N£A.GE.=::!'J.£.AG£±J.
LINEC 5=
-... ..c.__.. .___ _ IlT_LE . .__.... __ . . . ...._ ..__..
WRITEIIOUTAP,6001) MONTH,DAY,YEAR, NPLOTS,NPAGE
. ._o..QQLf:DRMA tllH.L.2.~5JJiI£XA.s... . ~ _.fLJ1._1Lf\J..LV..£~LG.E RBER PO STP RDC ESS OILP....RC...B..- _
1LEM,2X,12X,4X,5HDATE ,2A3,A2, SX,5HPLOT ,12,2X,5HPAGE ,13 )
C COLUMN HilUS.
WRITEIIOUTAP,6002)
- - - - --6..0..D..L..EllR11A.IJl..I:l.Q,..4 X, 1HlL_BX, 2 H DX,1.QX.t..2.H.QY..J.l_DX.t..2l:l DI , 7 X, 3 H PEN, 1 2 X, ... _ .. _----~_ ...
Q'\
1 1HX,13X,lHY,13X,lHZ,12X,4HARCL,7X,5HSEQNO I
Ii 1
I I
67
I
I
I
I
I
I
I
1
I
I
I
I
I
I
i
I
i II
I
II
I
I I
I
C1'
I
I I
I
I
I
!
<{ I
0- \ J
I
I
iI
I
I
I
I
i I
I
i
I
I
I
Ii I
I
I
I
II
I
~
::Jj
~~
a::,w
('() ,
C1'i
~I ~ I
~ I
~ I
I
I
1 I
i
I
I,
GERBER_~l PRO CESSO R LIS TIN G PAGE 40
c
c
_______. .__._ .. ~ R0 UTI NE :uLJ)BA.I'l__ ...A.-~l.~.cJ:L_J:Ro.s.s..
C
____..._.. _.__ . . S_LlliRUUT I NE LJiOS_£ __. _
COMMON/AOCON/KO,Kl,K2,K3,K4,KS,K6,K7,KS,K9,KlO,K11,K12,BLANK
____B...EAU:1L.PRQUE1c.ANJ AP • CLI.E.£.. L£DU.A P • P L0 lli_Ls.Ru..E......I...cAu..P-x. .
1 IAPES1,IAPES2,TAPES3,TAPES4
. . .___ .c.OMMJJHf AIAPLaIJ:~R03AP,C.ANLAP,C_L Tlief, poe IAP,PLOJAP'_,.SRf TAe_L__' ..__. . ....
1 TAPES1,TAPES2,TAPES3,TAPES4,INTAPE,IOUTAP,PUNTAP
_____ _. REAL":.8. _W_.__ . .
DI~ENSION W(2521
. -.D..IY_EliS.l mL. CLLG.lLSJ..1Q )J..CllJ:LES.L8.l..J..P...ElKDML8..L --'
INTfGER IN,GCODE,CCCDE,MCODE,GLAST,DLASI
__.LI.J.~1MO~IGERJ.:iP.P LVi . __ . _ _ . . . . ._.. _
1 ,Xl,Yl,Z1,X2,Y2,l2,DX,DY,DZ
2. __ .. _ _ t. XC, YCt Z.C ,.AREA, A~CS.tA~ CL.t.AL,.sf~WCL21.
3 ,IN,GCODE,CCOGE,MCODE,GLAST,DlAST,NPEN,IDASH,KD,NW
l± ...__ ..._.... ...JQ HilT $_, C.QUf.S.LE.E.NCOfu.QQ.A.S.tl..L8D.A S.ti. ._.__. . ... ._
5 ,NCluIT,NDECML,NTAPE
__ .6 __.__ .. , If BCLM_t.Ll NEl,NP.AG f. ,.NP LO IS ,Nc.A.RD.S ,_P_LLL .._.. _. __.. _. .__ . _ ..._.
7 ,MONTH,DAY,YEAR
c. ... __. . . . _.. _...__., .... _
._
C USE PEN # 1 AND DRAW A.1 ~ROSS
_.__.__--.C... ._'''_'' __...__. ~._ .. ~ . .~
REAL*8 XCROSS
------- ..__.. _. .. DI~LEN.s.l.QN_XC.ROSSJl3.L ...__.__ . . _ _.. .... .. _
DATA XCROSS/'D02$X-OO','050D08$X','+OOlOODO','1$X-0005','OY-00050'
...--... ----.-------~ __. -"_OQ2i..'i±..QQ.!..-l_ '.l.QQD..O.l...$Y '__,_'~_OOQ5..QL:" , , ' 0 OJ15_QD Q2...!.-L • $Z + 0 0 l.O.Q~ . __ - ---. ----
2 ,'D01$Z-00','050D02MO','0$ '/
--- ..__ ~ U N . c HB( 98, X.GRDli....."2'-1-'>o<.O..L.) .
GCODE=l
.-- ._.. GLAli::;:_L _ -----_._._--------~-
DCODE=2
II
~ i I
~Z I
:,) I
If II
W II oc
a
ou u..p- ffi
OJ w '
::!: z1 oc !
! 0' i
\0'
!O'
'0'
II
i
i
i
;
--------------
C
C
_. ~. .G.....- fUlliILN..E......-LQ_.D.U.M.P__ .D~U r . . BUf f.EB__ AND.. NN.CtL BLANK TAP E -----_.
C
-__. --.S_UllRUU_U_f'iE.......L.E AU_EJU..LL . __ .. . _
C
_. . J::Jl~Lt1Cf'li.AQCCNII<_Q..tJ\_hJS_.2..lJ.s~_1J\!tl_1S.5_,K
6 ,_K 7,K8, K'1 t l<_tQ...LKllLK12 ,B I. Ar:J.K. . . . .
REAL*8 PRCTAP,CANTAP,CLTAPE,POCTAP,PLOTAP,SRFTAP,
. L_ TAP£S!.1 T.APES2 t TAPES 3 t T~.P ES4 . . _
COMMON/ATAPTB/PROTAP,CANTAP,CLTAPE,POCTAP,PLOTAP,SRFTAP,
__________1- TAP .E_Sl.tI A_PE..$._Z, TAP.ES3,_ TAPE 54, I NT APE .1 IOU IAPt_PllNT AP_
REAL*8 W
-.-. .l1.lY~~lJJlL1ti2.~2..L_. . .__. . _
DIMENSION DIGITS(lOI,CODES(SI,PENCOM(S)
_...I_NT E\if B __IN J. GL CD E,O...G.ODEtJ1CDDEtGLAS Tt_D..LAS T
CGM~'ON/GERBPP/W
L__ __ __ __ __ _,_X 1 t),l, Zl'.X2, Y21 l.Z ,0 X,D Y t OZ - _._---,'.,-'. ._.-._ ..
2 ,XC,YC,lC,AREA,ARCS,ARCL,AL,SEQNO(21
..-- . .3.__... . d_ ~,.;2_CQ.QE; 1. DCQ.Pc..tMCO':);:, ~L,li. ST dnA.S It NPl;; Nd_.Q4$.Hffi..Q.iliW ..__
4 ,CIGITS,CODE5,PENCOM,DDASH,BDASH
_. 5 .1 NC112 IIt.N_CECML, NT A PE
-----_._-----------------------
i '1'1 I
I
I
II
I
I
I
I
I ;
I I
I I
I
II
~
~I
I
~
Q .j
I
"'ll' ~"'l~ ,
C'" '·"tI;.,.' .. ,
__________ A;~f;: , GERBER pes T PRoc;,~i~,BR,,:t I S~_,I~:G ,";{~:~I~,"'/:;,,~' P",1~,E" 44 ..
Ji.,,;,"v ,''«
c
C
_ .__._.. __. ... c ._ _-'-'R'-"'-OUTI NE lCL.LLS.J:. _.O_UTPJ.il..---ANQ . .--
C CALL FOR PUNCHED OUTPUT
_________, ~__________ v . . . _
SUBROUTINE PUTOUT(I)
.
-_.- -_ .. _._------ c . ---
COMMON/AOCON/KO,Kl,K2,K3,K4,K5,K6,K7,K8,K9,KlO,K11,K12,BLANK
__ .__ ._____________ _ R~~J,_!JLPRIU_~~NI.AP ,-CJ~_IAP.E ,.eQJ~ IAJ_tPJ,J)I~_~...t_SRF lAP --'-_.
1 TAPES1,TAPES2,TAPES3,TAPES4
____. . . ._c g MM0 NI ATAPT B I PR.C TAPJ_kAN T_.li1'..t.kh.TAP E, e.ctC TAE.JE.LQ TA.P..12R£1 AJ? .1._
1 TAPES1,TAPES2,TAPES3,TAPES4,INTAPE,IOUTAP,PUNTAP
.........._--... _--_._--- REAL*.8 ...w
DIMENSION W(252)
____ ,__. . lll.Mf.N.SJ..O N DIG I TSil.Q..Lt._GD DES ( 8.Lt. PEN C0 M.ilL__. . .
INTEGER IN,GCODE,DCODE,MCODE,GLAST,DLAST
___C.QM~tQiil.GllB.£lijL. ~__ _ . _ _.. __. ._._ -
1 ,Xl,Yl,Zl,x2,Y2,Z2,DX,DY,DZ
___________________________2______ ,XC,YC,ZC,AREA,ARCS,A~CL,Al,SEQNO(2)
3 ,IN,GCODE,DCODE,MCODE,GLAST,DLAST,NPEN,IDASH,KD,Nw
._,----- -------- ~. ._ _..Jlll_G I TS, CODES, PENCQMiD.DA-.S.fu.B..D.ASJ:i ~-
5 ,NOIGIT,NDECML,NTAPE
., .1;) ---------L.1£R011.LLl.N.EC..t~E.t..N.PJ.._Q.LS.t_N..c.AR.O.s.t2..Ll1
7 ,MONTH,OAY,YEAR
______ c .
DIMENSION PENIS)
DATA PEN/4HDOWN,4HUP _ .I._4HUf>_ .t4HOAs..li.t...4HUPl --------_ .•. _--~---
GO TO 9999
______ .____ 400 WBllE_ UOUlAP t 6400 l.LI'L_ . _ ---------_. ---
6400 FORMATllH ,3X,I3,3X,3Il0H** STOP **,2X»
.. .. __ ... . .__._ . -'ALI._£UNQUIJ1..L . . .~ _ ---_._--- ---_._---_.- -----_....._-
GO TO 9999
-----------~
L . SELECT DATA FOR PUN CHI N.G
1000 IFIDCODE.NE.K4)GO TO 1001
_....------- ._ _CAlL-M S H _
GO TO 9999
_H2O 1_ CALL_PWiO_Ul_LLL ~ . _
9999 RETURN
END
-_~~- ----_._---
-~--------~--~.-----,-;;;;:-c-".._---
,~ i' -~~"-~ \;; ~;~'~,:~' ~> ,,' -!!~:~ri;i ,-,' ,~, "-~., '<.- '~~
--------~_-
....,
\.JJ
._-_~_-----
__~~ •. _.~ ~ - ~ •• I
PAGE ~ _
_ _ _ _ _--"'-G"",-,ER,-,-,B",-"E"-,-,R,---,--P~O,,,,-S T-l- PR0CESS0 R LI SIlil~
C
C
C ~LHiLI~ALE~~~
C
------S_llB_fillU_U_NE_D_ItSJ:i
C
_______________________~C~O~~~lM~iO~~ON/KO,Kl,K2,K3,K4,K5,K6,K7,KS,K9,K10,Kll,K12,BLANK
REAL*S PROTAP,CANTAP,CLTAPE,POCTAP,PLOTAP,SRFTAP,
_____________________-----l lAP£S_L_J AP~2tIAe_E-S3-'-lA~E_£~ ~_________ . . ~. _
COMMON/ATAPTB/PRGTAP,CANTAP,CLTAPE,POCTAP,PLOTAP,5RFTA P,
1 TAP E~lilt\ PES 2 t TAP ES~-LUE._E S!t-,_HillE-~tlll UTA PiPJJN TA-2 _ -------_._- --
REAL*8 W
_______. . ~ nil ENS l-OtLJti2'-""Sc.o.2.....1 .
DIMENSION DIGITSllO),CODESIS),PENCOMI8)
___________.._ _----.ll-J.LE.G~JLJlLj;Lill1E~QQEtJ1CO 0 E, GLAS T, 0 L~_ _ _
CCr-1MON/ GERB PP / W
________ .__~ ~ t ---'-~1L_)'j_'_LLX2....t_Y2t Z2, OX, DY, DZ _
2 ,XC,YC,lC,AREA,ARCS,ARCL,AL,SEQNO(2)
___________ 3 , IN diC.Q..QEt DCOD E, MCOD E, GL A51 I DL AS T, NPEN, IDA SH I KD..tlil.i
4 ,DIGITS,CODES,PENCOM,DOASH,BDASH
- - - - - - - - - - - - - _5 ~jlLGlLJ\~_D£Q1L t NT AEE _ -----------------------------
6 ,IFROM,LINEC,NPAGE,NPLOTS,NCARDS,PTLT
_______-tliONJ1L'-QAy_LLEA~____ _ _
C
________________ ~ ~ E N S I O N TDASHI21
EQUIVALENCE IODASH,TDASHll»
______ _ _r:__~_____ T EST TO I NlliLlI£llASl:L- _
IFIIDASH.NE.O)GO TO 20 '·:"'~·r·
'),
___ LDASf:L='-l-'K,--"l~__
,0
;'::i<~;~':~~\~,~J;' ,~i:>, ':tl~·E.~:~''':~1j.
DARCSM=O.
c S EI UP DASt-L VECTORS
20 XRATIO=DX/AL
_ _ _ _..i.yRAlifu.DYL=..A.....
L_ .....1
ZRATIO=DZ/AL -t="
__~G~E~ POST PROCESSOR LISTING PAGE 47
C
C BEGIN DASH LOOP
----~----- --- ---------------------
C TEST TO USE FULL DASH LENGTHS
) I GO TO 2J1Q
______L~_lEl.D.AB&SM±AL~LDA£HilDA5J:t
C PROCESS FULL DASH LENGTHS
_ _ _. ......Ou.L......I..u.N......E.=.=. L-T""-!DtiS..ttilQ.A'='-'S"'-!H.wIL.--.....D=ALuR..lo<C-""S.L1M ---
DX=DLINE*XRATIO
___ D_\L~DlJliE_~.Y.RAllil __ _
OZ=DLINE*ZRATIO
_________________________~-'.D DE= I DASH ---_._------- -----------------------
C OUTPUT DASH
_ _ _~C~AL_L-PUNOUT{Kll
C SWITCH DASH MODE
~j2A_S-'i~l..D.A.SJ:i+ K1 u __ _ . _ _ _
I.
I i
I I
tDl
~I
j
~
~
~
I-
0
Z
W
I
I
! i
- - - - - _.._--_._._--------_._---
GLAST=l
-- __ --- __. ~_~ OJ.: QDEE2 .~ ._
DLAST=2
MLonE.=99
480 BLOCKIIBI=COOESISI
_._--- --------_._-- _ _ _ _--LY..J...JB£l.B..:+-..L _
499 CALL PUNCHBI4*IIB-1),BLOCK,0,01 'CT~'"
YB= 1 . - <':, ~~. ,. -!1M. tit <;~::~~j~t: L ~ .;~ t'~2.t: <';l~ .~:, -~~-----
F
C CYCLE POINTS···- ;£\~~'" =.
- .a.X~l.=.=.a.X lL+.l.LD~____
... , . } .~. ~
Yl=Yl+DY
11=;21+DZ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _-:::-.1-.----
OJ
DX=O.
-/
I
. ~-"
Lr}.
z:
0-1
f-I
v~
:J I
I, I
rY' .
0; t
~t
W:' z.
I
!,
U! . • • a::
d OOJ
a::~ /I /1,....0 ~ .-,
a. >jN'LIZ I
! qoccw i
CI"
er-
0'.
0"
,I
----------------------------------------------------_.--------
_ _ _ _ _ _ _ _ _ _ _9~9~9"__L9_ RETV RN
C
. ... .. . .__ .J:_...._.... . G.flUi..EB POSTP..RO.cESSOR ERRO_R MESSAGES
C
,
________ . .. __ .. ..c.._.£RR.QIL1'iQ.L. .lLE SCR I2llllt'i...J:J£_.ERB..D.R _ _ -------~---_._--------_._------_._-- ---.~--_ .. .. -
C -------- --------------------
___ ._. . ._------.C_....__. .. ..
C 1 TWO FROM COMMANDS WITHOUT AN END
. ... .G... *
C 2 TWO END COMMANDS WITHOUT A FROM
C
*
C 3 FINI GIVEN WITHOUT AN END
. ._...... __._.. ...._..__...L ........_ . ._ .... . **
C 4 DRAFT COMMAND BEFORE FROM
.. __ ... .......C *
C 5 MOTION GIVEN PRIOR TO FROM **
_.. . . . .C ......... _.. _. ..._ _ __...._... __ ._ .. __....... ...._.. __..... ..._ ...
C 6 PARTNO AFTER FROM *
_ ...__.__.. _...._ .___ .... .__G..... . . _.. _. . . ...__...._. ._ _ . .....__....._ ... . ._ .... ._......_._._ _.
C 7 ILLEGAL MODIFIER IN DRAFT COMMAND *
___G... _ _ _ __ __.. _ _ . . .. _.._ . .__. ' ----- __ __ .__ _.. .
C 8 ILLEGAL PEN NUMBER GIVEN
C.....
* -,._,-----,_ ... ..
_----_ ..__ __.. _'~~------ ---- --_ .. - -_. - - . - ~
C 9 MOTION TO LARGE
. .C . ...._,___ ._._-. *.
C 10 MACHIN COMMAND GIVEN AFTER FROM *
. .....L_._ _. .. . .__ _.. . . .
C 11 ILLEGAL SECOND MODIFIER IN MACHIN *
_ __ C_.._.__ _._. ._ .. . . . . ._ . _
C 12 ILLEGAL THIRD MODIFER IN MACHIN *
C . _
C 13 ILLEGAL FOURTH MODIFER IN MACHIN **
_ _ _ ._.._C_.. _ ---- --- ---_. rn
I-'
C 14 FORMAT ERROR IN LETTER COMMAND
... _---------,--_. --_._-_._-~--_. ..
__ _------------_. ----_._------- ._- ----_._--~_._.- --_._--"-
-------_._-------
--------------------------
c.
C COMMAND CR OPTION IGNORED
*
c ** CORRECTIVE ACTION TAKEN
~
C _ .. ._... _ - ------------ ~----- - - - "------ ~---
_.__ .•
-"'-- ---.-..---L-----.. ---
ENO
_ • . ._. __ <--. ~~,_._.•• ~ _ _• _ •• _ _ ~_.~_•• .,_. _ _• ~_._~ •• _ . ~ _. • ._.~ • __ . _ ' _ . _.•• _ _ .. _ _ ~_ ,• • , ' - ' _ ' •. .'. _M ···_·_. " ••__
------_._-------
.. --------_.._-----------,------------------_. -----
___________ -.L _
C
_______________L _
C ROUTINE TO PROCESS LETTER COMMAND
C
__. s.UaRO_UTlJiE._J...Ell£R _
C
___ L -------".- ._- .. - -,
CO~~ON/AOCON/KO,Kl,K2,K3,K4,K5,K6,K7,K8,K9,KlO,Kll,K12,BLANK
8.E AL *8 eR__CTAP ,__C_A.N.IA P_LCl._I AP f,POC_TAP ,.PLO 1A P,SR£I~.P L_ _ _
1 TAPES1,TAPES2,TAPES3,TAPES4
___ __ _ __ ____C_Q~J.,!QHLt\TAI?T8lP_RCT AP ,__CAt~_IAP_,- C_LIM:>E..J. eQ_C_I AP_,-_J?-ULIAP-t..s.Bf_L&E_L- ---
1 TAPES1,TAPES2,TAPES3,TAPES4,INTAPE,IOUTAP,PUNTAP
__ RE.~L*8 W __ _ . _
DIMENSION W(252)
DIMENSION OJ GUS (lQ l,c.OD£S L8J,_PENCOM L8)
INTEGER IN,GCCDE,DCODE,MCODE,GLAST,DLAST
__________________ ..c.D_MM.~LG.ER£J?P.L.W . .__. __. . .. - . -----------
1 ,Xl,Yl,Zl,XZ,Y2,Z2,DX,DY,Dl
___ 2 ,XC I vC t ZCtAKE A_, ARC S IARCL1_AL.1.S£QN.Q1.2J _
3 ,IN,GCODE,DCODE,MCODE,GLAST,DLAST,NPEN,IDASH,KD,NW
4. _ ,0 IG I IS_,C_Q.D_ES_LP ENCQM._, DDASf:JLB.DA_SJi. _
5 ,NDIGIT,NDECML,NTAPE
_______6 d.£B.Q.M_'-_LlN..E..C-t.J:J.P.A_G..E..t.liP..LOTSJ.NC-AA_QS.L1?.I.LL _
7 ,MONTH,DAY,YEAR,X,Y,SIZE,THETA,JFLG,NLET
.. -,. -
__._- ----_.._-- _._ .... _._-. ________ X=' rLCll____ _ -------
y=w(Z)
_________ _____SI LE-=.W-L3J. _
THETA=W(4)
_______________N.L.E_I_=.H W _
C CHECK SIZE AND ThETA FOR FEASIBILITY
__________________________ ~EUiL1J •.L_L__O'~D5.1_....G_Q.J 0 5 _ ---CO _
W
IF(W(3).GT.l.O) GO TO 5
--- _._ ..•-.--'-- ._--_ .. _-,,---~-_._--
------------
I
i
J.
I
I
I
GERBER..2.QS.J PROCESSOR LI SI.lN.G PAGE 57
------_._---- c
C
-----------_.~ ._~-_._-------_ .. _----- -_ .. --_._~~_._--- -,,---.-'-',- "----, ---~ ._----_ .. _--_..-------_. __ ._._~---_.
-----------------------
Y2=Y
-- _._ -- ... . . .__.. _. ._0. X=_X 2.::.XL _ ...__. ...__.. . .._. .__ ...__.__ ___ ... . . .__.. _
OY=Y2-Y1
D_l =0... . . . .. ... _.__ . ._
DCODE=2
CAL L PUT 0 UT ( 1 l. ----------_..-----_._--- "--_.-
C IDENTIFY AND PROCESS EACH LETTER .
- ---.----.------.--- -- . ._. NLE.I.=~ELt_lliL.E lL3.L..- . ... . _
DO 60 N=l,NlET
-__.. _. ._....-... ~w_l =_.LN ~U 1.8_._. .. . . .__. . .__._. . -------------
NIW=(N-(NW1*8»
. - --.- ------------- . _._.__.__.. . WUR.D. =Ji.LLN.w_L H:IJ _ .. .. . _.__._..
IlET(4)=IWORD(NIW)
_1E..11il1i.- 1 ) 42 , 5 Q..t..5.Q.
42 CONTINUE
...------ . -----.-----.----- JiRLIELIO_U_IAE_..f-4 It L l~'ORD...LNLWL_ ..__ . . . . 0).. _
"------
------------- _._.._------------------- ---------_._-----
X2=Xl+DX
Y2=Y_l+D_Y
CALL PUTOUT(l)
50_. ceNT LNUE. .' - ---"'--"._-' .. -.
60 CONT I i\IU E
..._QCOD E_=: 2..__._ ..__. . ._._.. . ._. . __ .~. .. '._,__ ~"'~_'C _. __
DX=X-Xl
___._OY = '( :-.Y.l. __
DZ=O.
_ X2=Xl+Qli-. _
Y2=Yl+OY
----._-. -. .. ._ .. ...-CA.LLellI'O"U.U1L. ..._____. . .
9999 RETURN
_..__.. __..... .._.._.. .__END..._. .._.__ .__... ._. . . ... _.._
_._--------- ----
_ . _ - _ . _ - - - _ . - - _ . ---_._--._------_. -------_.. -.------ ._---_.._---_._.- - - _ . - -----------_.- .._-------- -------_.+_. __._-_._----- ------_._.. _--
GERBER POST £B-.UkESSOR L lSTlli(i P A!iE__ 1>.Q
C
C
LOGICAL*l OUTPUT(SOOO),TEMPI301,DOL
EQU_l~ALENC£ (8 I GCUU_l ) ,OUI£1lli.ll_L _ -~--------_._---_ .. -~-_.. -
CP
DATA APTAPE/20/,ICNT/1/,DOL/'$'1
--------- GERBER PO~T PROCESSOR LISTING PAGE 61 ._-------------------------
C
C
_____________ LQ-Gl.CA L ~1._Jtl Q).,lL. ~ • ---
LOGICAL*l AAA(Z),AA
___________ __ __E.QJ.Ll-'iA_UH-CE._LA A-l.AAAL1ULllriOll_LI~ LCU__ Lt.!.LliiD£ XXI_2J_ LA~...A_lZ_.L.L _
DATA INDEX/O/
____________L . _
C
__________. C _________IABLE._-T11__ T~AiiSLALE __.fRQ!"LEJ:KD__LC.__ TQ BC.D._
C
____ LDG I CAL~LT g TA.B_LL2_2Q L _ ~. __. , _ •. __ • .0 .•• _ _ - • .~_. .• _
INTEGER PUNTAP
---'-'-"-~---'-~- - f..QU.1.V.AL~Nc.~_.JIRIAftLtiLt.J A_6J.J;.LUJ..l.L.J ._ _ - _
c
___ . DATA TA.J3..LElj' _._. • .1.
_.21 __ ,, •' , •
•.-,_._
3 " $','
__. .4_ ._. ... . ._ .1.' __. ._..!...J.• . <%f. , .__ . .__... ._.. __", . _
5 ,'& ',' $$<
6 __. _. .t ·-:L______ 't_'... t.%' .•.
7 " ',8H #@'='
8 ___ _ t • .__ . ' l.~ __. .._. ....
9 , • , , ,
---- --.. - .. ._. . .._. .__ A..__... --L_'--__._. ._.t...!...._.. ...__.__..... !.. ..._._ . .__ .. __ .._ __ _... ._ .. ._._... ._..__ .__ ._
B t • , , ' •
____. . ... _.t..!...ABL.DEEG-'_l. ·_HL -' . . . . . . .
D " JKLMNOP','QR •
____ E . __ J_~ __ _S.IU_'LW.x.!J.~_L.-.. t . . _
F ,'01234567','89' /
- .__ ._. _l:-
C
________________ k . . . _ _ ---!XL- -
\.()
C TEST FOR WRITE EOF CALL
-_. __ .•--_._----
GERBE R _E_Q.$l PROC ES SOR LIS TI NG PAGE 62
GO TO 30
- - -----.-----------.---------2Q.-JiRl.TE._LAETA..e..E.t..22..Q.1L__LB.IGDUT (_J.CN.Tl--,J CNT=l-l- 2 50) , (B I.GDll.Ti.J.CNIJ-I-_ _. .__ ..._ -.~--.-
1 JCNT=251,500),(BIGOUT(JCNT),JCNT=501,750), 0
-------------_._._._------------- -_._._.--------
·GERBER POST PIillrrS_S_QJL_.L lSI I~h_ PAGE 63 . _
___ _ ._ 2 LB I GOUT (JCNT >! JCNT=751 ,1000 > _ . _
2201 FORMAT (4(250AS),lH*)
_.__ . _._._.________IG.NL=_...l . ... ._ .... .. ._. ._._. ._. ._. .. .. .
IF (L .EQ. 30) GC TO 10
__ . . ._._.__.__...__ .-L_:::_.l.._ ±-...l.. . ....._.. __
DO 40 M = L,30
_.. __ 0 . . . ._ Q.lilI? UT ( I CNT) = T EM £.LLJ_ o ••_ • • • • • • • •_ _ ••• _ _ ._.0__._..0.. ..•._ _ '_.' . .._0_. .·•.- .
40 ICNT = ICNT + 1
lO J:..GtiLlliU..E _. _ __ •• ----- 0 ••• --_.. •. _.". _ _ • _._ ••• _.~, •. _
GO TO 9999
_.c __ _. ...__
9000 IF(NTAPE.NE.KO)GC TO 9200
....c...... __.__._.._. . _._._.. __ .._ _ _.__ _ __ ._.'..__ .. _~._.._._.. _. ._ ..__ . __._--------_.
C WRITE AN EOF ON PUNTAP
9600 WRIT E (PUNT4Pt.960U
9601 FORMAT(2H##,78X)
..
_ _---_. ._ .. _ ~ -_._.--
lC.NL.= 1 __
GO TO 9999
...C __ .__ 0' ._. . _• • • _ . _ . _ _ • • • _ _ • • • • • • • • • • • _... • • _ _ •••_ •••_ •• _ . . . . . _'. •••• _ •• •••• . _ . • ••••• •••• •• _ _ • • • •
.. -
------~----_
I-'
----- ---_ .. _.._..._------- .. _- -- ... _... _---_._. ~----_.- -_.. . -------- -- ----_._---_.- .__ ._~-_.-
92
APP:':';:'DIX B
m,~AX - The :,12.~d.rn1."n 3.110'.':2.1:'1e move -:n O"W rl.i rsction for one
command.
D~AX - 10 inches ~or a 1.3 ~or~at
D~AX ~ 20 inches for a 2.3 format
DO) - Increments the pen position.
DOB - Holds the pen posit~on to zero.
GeODE - Unused.
GLi\ST - Unused.
IDASH
i
IZEROES - Identifies zeroes in output
format.
,TFLG - A flae; to indicate th0 para~,cters ]_n the LETTER
command are feasible.
LHmc - The nUl.1her of li"C's \'rhic h have been printed on the
part pr03ra~ listinZ. 0,-,(' e LP::~C 01l~~].S :fifty a new
page is calledo
M - 'l'he class for the p2.rtic~112_J:· d~1_+a beL ):,cad from the
CLTAPE file.
1'/1 ~- 1 ;{ C Ci-~I~S Tr ;- 1 I~:I",:TJ
fJ ~- 2 Sf~1CP
J ~\r = 1
"i\1 '}
;. .. - - £-~
r: - (,
i\T
1'{ - fron
the; r1 c c ~_:·:~;;~.l I);) it: ~.~ 5. -~1-~0 Oi__ ~l~ rql ·t~ j~ 0 r·l.'_-~; -le • Th 2l'~ '~:Dl~C ~.TL
IS artjl):::'tc-;o -to .0 iCcl LJ; -~:h() o~ ·~:~p;__~t. :n:~~·~~2."1~.
~:DI~C:-'~L .. 3 ~c~'.J.l ~f'0l~·~.~~~:' t
r~'J=:~~','~L --: lO:~ c;li-:·:li~c~·tc t~:'~2,ili:·,··-· Z,~::CQCS
.~:I.: - 2 0'"=' eJ.i::~in2.-to 1'=~2.;J.~}.·· ZC~l"'oe::;,
'........'
7Tp~O~'~lS fr;-i~; l'~i">vl~>:: C _ O-~.... r'l()··l-r-_~ '1 y-, +1,('-, ~~ '. --:'"~ .1. ..··;~c~.L~, \'/11 '?, 1"2
0;"'0 J?J.O<:. "1·_.'::.~~i I':, :'."Jl;~l"';l ~,. '.'~. ; .. c·.·.
-, -~ ~
{l ~'''', '-l ~~ ~', ~ -\~}"-: 2. n
-;-:'"" ~~-\
~·l
. >
•
p p : ~.\.T'::-:;
!\TV! -
PTL~~ - ~r~.1')
pal..~-i;
SIZE
TJ-illTA
X2 , Y2 , Z2 ~l n
'i1.),,1."- ~l ., r<
to;
:': ~V"-
..L,I.
"':) ,1 1''',n
J.-
i
'
, :) () ~ ',-r-
: ~ ,',,'
1,. ,-, ~. .
XC, YC
95
APPENDIX C
,. . r
ROSS
EN u--c~EADER
ERROR
STOFf-I.--PUTOUT
~
PUNOUT
END DRAF EHROR
PUTOUT
STOP
HACHIN-ERROR
D&i\.FT
T
DA ) V
.r.n._Ll~
rf1 0--r---E"":'"::'on
-- L .J':',L •..:. ,• .1.
I'lACHIN H:~AT)
PARTNO PPRT1\TT
•
r,'cYDn
J.. -,-r..,ll.l...JJl
.1.;..
n
purrOUT--PUNOUT
l-pU'TOtTT
GERBEH LETTER rIOT10N--CPUTOUT
ERROR
PPRINT
DASH--PUNOUT
}ODLTA GODLTA--rTOTION
J.OTO GOT0--I'l 0'1'101'1
APPE:'JDIX ')
pen) = blue
ball point; pc~ #2 = red ball
Y)Ol'
1:" '-It·t
.1 pC'~
~''''-'()()n
L) .;.
l ,I 1:)al l 1)01' n+·
ifJ -
.... \..,; -- ~· t - (-nen'"" Itn}/ c;;Q,. 5
IV' 1....
..... J ....") f'
APPENDIX E
4. command: I'.~ACIIn,T/GER?ER, 1. J
tape format: XOlOOY1212
meaning: X+O.IOO, Y+1.2l2 (units/inches)
The digits within the ~econd hr8ckct specify the desired
output. The default option (0) specjfies paper tape
wherea.s a 1 specifies T:1agnetic tape outp'Jt.
DRAFT
The DRAFT command is used to control the drawing pens.
The format for the co~mand is:
ON
Dr~AF'r/ DASH , PE~T ,n
OFF ,Er'~~ARC
ON lowers the pen to draw.
DASH causes dashed lines to be dra~n.
OFF raises the drawing pen.
Each pen command is modal, i.o., it cancels all previously
given pen commands, and remains in effect until a new pen
command is given.
100
Error Number
1 Two FRO~ cOffi8ands without an END +
2 T'l'lJo END commands without 2. FHOM +
3 FINI ~iven without an END *
1~, DRAFT command before FROM +
5 Motion given prior to FROM *
6 PARTNO after FRO~ +
7 Illegal modifier in DRAFT command +
8 Ille~al pen number in DRAFT command +
9 Motio~ too large +
10 MACHI;,\" c 0171man:::. giver:. after FROI'~ +
11 Illefral second modifier in. MACHIN. command +
12 Illepal third modifier in filACHIN command +
,.)
1234557890+-
2 /~ n
~
j
H
.~ 0 ~ I
LL ' 01
I/~
~
.
W / ~ /"
8 y ~
EE · a
ZAx/V\/\n15CjD 1]
104
APPENDIX F
/lroRT .SYSIN DD ~~
(SOURCE DESK)
/*
The following job control language is used to link
edit the post processor hex deck (first time only):
(OS/360 JOB CARD)
(CLASS CARD)
I/CREATE: EXEC PG1"il=IE':ILF980, PA~r.l== 'LIST, XREX ,SIZE= (300K,
72K)',REGIor=J80K
//SYSPRINT DD SYSOUT==A
I/SY ~c:!Lf'fOD
_"_ ! DD Dr<~T_C"VCJ
u; ;,·,·0..i..v _ •...""'~':p-;-~''''''n T:?mm7p
J~. ~L..t,;l\. • .w.c..--L·.J..l.~ ,,) ... - (TlITi'''!
.. l , TC'P_
'J'
1\,L,,1V, KT;'EP \..J..J ,
DELETE) ,
II lJ TlTIT
1",. == P::>'T'V'TT>
.1.\...1 1-1. .r." 'T()T .J..J= (f"I'r,m..
I, ".r) ' pT;>rr~TrT
·¥;i..i.~,_.\.L _.iL..~ \,)..)L1t=:.:i.rl
07T.) A~m")Co . . . . .,·~\,' SPA.C"" "" 1-1=
(C YL, (2 , I,.? ) )
//SYSUTI DD D ''· 0"" '" j': ):\,1,\., TTf'I
"OT,:,}r,,(,,"V ST-~'" J-'... v,t; =(CYT ..u, (6 ,
fn .:""T'l\(' ......
t' :::r:.~(.~.J..l.J :,~,. .L::"' ..... 1.;'.:,) jIl ,.:J.t'
,
6,3))
I r<YSLI 1:,'D DD 'IS
I l.:;.,.l "'_'::,v~ 1 . l
.'.~. J.._./,J..l.-
":;'n') r:r;- T') T)
v.. \.1..u..L.,), TC' ")_C'}.;p
..... ...I-~1-0 dL
II D, 1:)
~. DS~' 1\: =nvr<l
~ DJ""""
..L. ,.:') L• I""
I
')-c-F'
.L,...
:-'J..,':;
\..J r~ 1 i.. ('<:.:')
=...)
/ISY2LI1'J DD ~~
( H"i'X'
L~ ~
J.
'iF,'" K')
-l.'.-.JV
Er'.~T~Y GE21.~E}?PP
NAl'.ill GERBERPP
/*
The following job co~trol 18 laCe is used if addi-
tional linl<:: editing i~) reql.,ircd:
(OS/360 JOB CARD)
(CLASS CARD)
/ISCRATCH EXEC PGr,;=IElIPROGI.1,ccrm=(EVEU)
/ISYSPRINT DD SYSOU~l-:-A
/IAPTDSK D:J VOL=(PFIVA,:,=,P:~TAI~;,SE'~=ArT36o) ,DISP=(OLD,
PASS) ,
105
II UNIT=PRIVATE
IISYSIN DD ;~
SCRATCH DSNAME=SYSl oGEHBER •LETTER , VOL=23lL~=APT360,
PURGE
1*
/ICREATE EXEC PGM=IEWLF880,PARM='LIST,XREX,SIZE=(300K,
72K)',REGION=380K
IISYSPRINT DD SYSOUT=A
IISYS1TlOD DD DS!';=SYS1.GERBER •LETTER ,DISP=( NEW, KEEP,
DELETE) ,
II UNIT=PRIVATE,VOL=(PRIVATE,RETAIN,SER=APT360,SPACE=
(CYL, (2 , 1 , 2 ) )
IISYSUTI DD DSN=&&IEKWORK,UNIT=SYSDA,SPACE=(CYL,6,6,
3) )
IISYSLIB DD DSN=SYSl.FORTLIB,DISP=SHR
II DD DSl\T=SYSl.DPCLIB,DISP=SHR
IISYSLIN DD -rc.
(HEX DECK)
ENTRY GERBERPP
NAME GERBERPP
I-Yc
The followinG job control language is used to run a
· part program to test the new post processo~:
REFERENCES
..