home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / progmisc / cams305.zip / CAMSMAN.EXE / VIDEOPP.TXT < prev   
Text File  |  1993-05-20  |  51KB  |  1,404 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.                                                        CAMS
  24.  
  25.  
  26.                                                 PC VIDEO POSTPROCESSOR
  27.                                                 Reference Manual
  28.  
  29.                                                 Version 3
  30.                                                 Modification 02
  31.  
  32.  
  33.  
  34.  
  35.                                                 Copyright (C) 1993
  36.                                                 by Computer Geometry Co.
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.                                                   March 20, 1993
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.                                                 Computer Geometry Co.
  55.                                                 26624 Whispering Leaves
  56.                                                 Newhall, CA   91321
  57.                                                 (805) 252-4938
  58.  
  59.  
  60.  
  61.         MARCH 20, 1993            PC VIDEO Postprocessor Reference Manual
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.              VIDEOPP comes with no warranties, expressed or implied,
  108.              of any kind;  it is available as-is.  Computer Geometry
  109.              Company  would like to be informed of any problems that
  110.              users of the program encounter, but makes no promise or
  111.              guarantee  that  such problems will be  fixed.   In  no
  112.              event will Computer Geometry Company be liable for  any
  113.              damages,  including  any  lost profits,  lost  savings,
  114.              failure   to   perform,    or   other   incidental   or
  115.              consequential  damages  arising  out  of  the  use,  or
  116.              inability to use, the VIDEOPP program, even if Computer
  117.              Geometry  has been advised of the possibility  of  such
  118.              damages, or for any claim by any other party.
  119.  
  120.  
  121.                                   Disclaimer                      Page 2
  122.         MARCH 20, 1993            PC VIDEO Postprocessor Reference Manual
  123.  
  124.  
  125.                                  1.0  INTRODUCTION
  126.  
  127.         The  CAMS  VIDEO postprocessor (VIDEOPP) is designed for use with
  128.         the  IBM  PC/XT,  PC/AT and compatibles.   It will produce  a  PC
  129.         display  screen  sized plot of the cutter path as  calculated  by
  130.         CAMS.   VIDEOPP  supports  CGA,  EGA and VGA  compatible  display
  131.         devices.
  132.  
  133.         Certain   guiding   principles  are  established   which   govern
  134.         postprocessor behavior.  These are stated in this introduction to
  135.         give  the  user  as clear an understanding  as  possible  of  the
  136.         program's behavior patterns.
  137.  
  138.         The postprocessor uses the entire PC display screen,  producing a
  139.         7  1/2 x 10 plot showing part or all of the cutter path generated
  140.         by  CAMS1 and CAMS2.   Execution of VIDEOPP is broken  into  four
  141.         distinct  phases,  each of which is associated with a distinctive
  142.         display screen.
  143.  
  144.         The first of these is the identification screen.  It contains the
  145.         postprocessor  identification.   After  displaying  this  screen,
  146.         VIDEOPP waits for you to press the "Enter" key to begin plotting.
  147.         Pressing  Ctrl-C at this time will permit you to abort  execution
  148.         of the postprocessor.
  149.  
  150.         The second screen is the plot.   The plotting region consumes the
  151.         entire PC display screen, producing a plot of approximately 7 1/2
  152.         x 10 inches.  This is called the plotting window.   The default X
  153.         axis is parallel to the long dimension of the screen.  The cutter
  154.         path  you  wish  to examine must be  transformed,  using  a  CAMS
  155.         matrix,  in  such a way as to show in the plotting window to  its
  156.         best advantage.
  157.  
  158.         After  the  entire  CL path has been plotted on the  PC  display,
  159.         VIDEOPP waits,  retaining the completed plot on the screen, until
  160.         you  press the "Enter" key.   At that time,  the final screen  is
  161.         displayed.   This re-iterates the postprocessor's  identity,  and
  162.         displays   pertinent  information  about  the   plot,   including
  163.         recommendations  for plotting transformations which  may  improve
  164.         the  cutter path display.   At the end of this display,  you  are
  165.         given the opportunity to replot the CL file.   Should you opt not
  166.         to proceed, the VIDEOPP process terminates.
  167.  
  168.         Should  you opt to replot the CL file,  the fourth screen  allows
  169.         you to define...
  170.  
  171.              1. The  coordinates of the point to be moved to  the  window
  172.                 center.
  173.              2. The plot scale.
  174.              3. The XY rotation angle for the plot.
  175.              4. The YZ rotation angle for the plot.
  176.              5. The ZX rotation angle for the plot.
  177.              6. The ISN range to be plotted
  178.              7. Establish single step operation with plot color control.
  179.  
  180.  
  181.  
  182.         Chapter 1.              Introduction                      Page 3
  183.         MARCH 20, 1993            PC VIDEO Postprocessor Reference Manual
  184.  
  185.  
  186.         Upon  verifying  these  parameters,  a  new  plotting  matrix  is
  187.         calculated and the CL file is replotted.  Upon reaching the third
  188.         screen again,  the new plotting matrix is displayed,  and you are
  189.         once  again  asked if you want to replot.   (Note,  if  you  have
  190.         trouble with matrices,  do a "Shift/PrtSc" and print this screen.
  191.         You  can  use the matrix in subsequent PLT/ statements for  later
  192.         plotting to a pen-plotter.)
  193.  
  194.         If  the  coordinate  origin  is within  the  plotting  window,  a
  195.         coordinate axis logo will be plotted in the window.  This logo is
  196.         rotated,  translated,  and scaled with the cutter path. It serves
  197.         to visually inform you of the plot axis relationships.
  198.  
  199.         A sample part program may be found in appendix A.
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.  
  207.  
  208.  
  209.  
  210.  
  211.  
  212.  
  213.  
  214.  
  215.  
  216.  
  217.  
  218.  
  219.  
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.         Chapter 1.              Introduction                      Page 4
  244.         MARCH 20, 1993            PC VIDEO Postprocessor Reference Manual
  245.  
  246.  
  247.                                  2.0  VOCABULARY
  248.  
  249.         The VIDEO postprocessor vocabulary is used to control the actions
  250.         of  the  postprocessor.   Only  a very minimum of  vocabulary  is
  251.         required.   Only  the  PLT/  statement  is unique  to  the  VIDEO
  252.         postprocessor.  All other vocabulary words are unchanged from the
  253.         way they are used by the machine postprocessor for which the part
  254.         program is being generated.
  255.  
  256.         What  follows  is a complete list of all of  the  CAMS vocabulary
  257.         words   recognized   by  the  postprocessor,   together  with   a
  258.         description  of how these words (and statements) are  interpreted
  259.         by the program.
  260.  
  261.  
  262.         2.01  CYC/<parameters>
  263.  
  264.              The CYC/ command is used to control certain of the  built-in
  265.              machining  cycles  available  in  the  NC  controller,  e.g.
  266.              drilling,  step-drilling,  boring,  and tapping.  When using
  267.              these built-in cycles,  the part programmer merely specifies
  268.              a  list of points at which the cycle is to be applied.   The
  269.              VIDEO  postprocessor will plot a special symbol at  each  of
  270.              the  listed points at which the cycle applies.  What follows
  271.              is a list of the plot symbols used for each cycle type...
  272.  
  273.                   CYC/DRL,<parameters>
  274.  
  275.  
  276.  
  277.  
  278.                   CYC/PEK,<parameters>
  279.  
  280.  
  281.  
  282.  
  283.                   CYC/BOR,<parameters>
  284.  
  285.  
  286.  
  287.  
  288.                   CYC/TAP,<parameters>
  289.  
  290.  
  291.  
  292.  
  293.                   CYC/CBOR,<parameters>
  294.  
  295.  
  296.  
  297.  
  298.              All  other  cycle  types are ignored  by  the  postprocessor
  299.              except  for  the CYC/OFF  statement,  which  terminates  the
  300.              generation of symbols at the cycle points.
  301.  
  302.  
  303.  
  304.         Chapter 2.              Vocabulary                        Page 5
  305.         MARCH 20, 1993            PC VIDEO Postprocessor Reference Manual
  306.  
  307.  
  308.  
  309.         2.02  FROM/<point>
  310.  
  311.              The  FROM/  point  is used to establish an  origin  for  the
  312.              machine   control  data.   The  FROM/  statement  tells  the
  313.              postprocessor that the plot begins at the FROM/  point.   It
  314.              will move to this position with the pen up.
  315.  
  316.  
  317.         2.03  MCH/<n>
  318.  
  319.              The  MCH/  statement  is  used to both  select  the  VIDEOPP
  320.              postprocessor  and  to determine the type of display  to  be
  321.              used.   CGA  (Composite  Graphics  Adapter),  EGA  (Enhanced
  322.              Graphics  Adapter)  and VGA (Video Graphics  Array)  display
  323.              devices are supported. The numeric value <n> establishes the
  324.              plotting mode as follows...
  325.  
  326.                   n = 0 ..... CGA 640x200 resolution monochrome plot.
  327.  
  328.                   n = 1 ..... CGA 320x200 resolution color plot.
  329.  
  330.                   n = 2 ..... EGA 640x350 resolution monochrome plot.
  331.  
  332.                   n = 3 ..... EGA 640x200 resolution color plot.
  333.  
  334.                   n = 4 ..... VGA 640x480 resolution color plot.
  335.  
  336.              If the MCH/ statement is omitted from the part program,  the
  337.              VIDEOPP  postprocessor  will  attemp to determine  the  best
  338.              resolution  display possible on your equipment and  use  it.
  339.              Note  that  EGA  displays  may use all modes  less  than  4,
  340.              whereas a CGA display may only be used with n=0 or n=1.  All
  341.              modes listed may be used on a VGA device.
  342.  
  343.              The  higher  resolutions produce finer  screen  plots.   The
  344.              color  plots,  while of coarser  resolution,  can  sometimes
  345.              improve  the  differentiation  between closely  spaced  tool
  346.              paths.   Obviously,  the EGA compatible devices will produce
  347.              visibly better plots than will the CGA compatible  displays,
  348.              and the VGA compatible devices will produce the best looking
  349.              plots of all.
  350.  
  351.              WARNING: If you do not have a display/controller for EGA (or
  352.              VGA),  then  attempting  to plot in EGA (or VGA)  mode  will
  353.              cause strange things to happen on your screen.  You may need
  354.              to perform a reset (Ctrl-Alt-Del) to clear it up.   The same
  355.              thing  can  happen if you let the internal algorithm  decide
  356.              what  the display resolution should be - and it fails to  do
  357.              so correctly.
  358.  
  359.  
  360.         2.04 PNO/<alphanumerics>
  361.  
  362.              The  PNO/ command must be the first record on the  CL  file.
  363.  
  364.  
  365.         Chapter 2.              Vocabulary                        Page 6
  366.         MARCH 20, 1993            PC VIDEO Postprocessor Reference Manual
  367.  
  368.  
  369.              It  is  used  to  establish  the  plot  identifior,  and  is
  370.              reproduced  in  the  plot's final screen.   To  improve  the
  371.              recognition  of the plot's content,  it is recommended  that
  372.              the  alphanumerics contain the part  number,  a  descriptive
  373.              title  (usually  taken from the blue-print title),  and  the
  374.              date of program processing.
  375.  
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.  
  401.  
  402.  
  403.  
  404.  
  405.  
  406.  
  407.  
  408.  
  409.  
  410.  
  411.  
  412.  
  413.  
  414.  
  415.  
  416.  
  417.  
  418.  
  419.  
  420.  
  421.  
  422.  
  423.  
  424.  
  425.  
  426.         Chapter 2.              Vocabulary                        Page 7
  427.         MARCH 20, 1993            PC VIDEO Postprocessor Reference Manual
  428.  
  429.  
  430.         2.05  PLT/ ON
  431.                   <matrix>
  432.                   <n>
  433.                   OFF
  434.  
  435.              The  PLT/ command (Postprocessor PLOT) is used to  1)  enter
  436.              the  plotting  transformation,  2)  enter  the  pen  (color)
  437.              number,  and/or  3)  temporarily  or  permanently  terminate
  438.              plotting activity.
  439.  
  440.              If a numeric value appears as the only parameter in the PLT/
  441.              statement,  that number, modulo 5 for CGA displays (modulo 8
  442.              for  EGA displays),  will be used as the VIDEO  pen  number.
  443.              Using  modulo  5  (or modulo 8) insures that  the  following
  444.              relationships hold...
  445.  
  446.                   0 <= <n> <= 4  for CGA compatible color plots.
  447.  
  448.                   0 <= <n> <= 7  for EGA or VGA compatible color plots.
  449.  
  450.              Of  course,  pen  numbers  will be ignored  when  using  the
  451.              monochrome plotting options.  If <n> modulo 5 (or 8) = 0 the
  452.              color  selected  becomes  the  background  color,   and  the
  453.              remainder of the plot is immediately rendered invisible.
  454.  
  455.              If  a PLT/ statement with a matrix is omitted from the  part
  456.              program,  then  the most recently defined matrix  definition
  457.              will be used.  (The default matrix is a unit matrix, i.e. no
  458.              translation or rotation applied.)
  459.  
  460.              Each  plot is controlled by a transformation matrix of  your
  461.              choosing.   You  must  enter  the symbol for  a  pre-defined
  462.              matrix into the PLT/ statement.
  463.  
  464.              Using  transformation matrices,  you may view a cutter  path
  465.              from any perspective.   Any matrix archtype,  or combination
  466.              of  archtypes,  may  be used.   This  includes  translation,
  467.              rotation and scale.
  468.  
  469.              To  turn  plotting off,  use the  statement  "PLT/OFF".   To
  470.              resume plotting,  use the statement "PLT/ON".   You may also
  471.              resume   plotting  with  a  "PLT/<n>"  or  a   "PLT/<matrix>
  472.              statement.   If the new value for <n> is different than  the
  473.              preceeding <n> value,  a color change will take place before
  474.              the plotting resumes.  In any case, if "PLT/<matrix>" is not
  475.              used, the previous transformation applies.
  476.  
  477.              The  default  plot origin is at the center of  the  plotting
  478.              sheet.  The default plot scale is at full scale (1:1) in the
  479.              XY plane.  Using these defaults,  the lower left hand corner
  480.              of the plot is at coordinates [-3.5,-4.45],  the upper right
  481.              hand corner at [3.5,4.45].   If the CL file that you wish to
  482.              plot exceeds these dimensions,  then it will be necessary to
  483.              provide  an appropriate plotting transformation to bring the
  484.              entire cutter path into the plotting window.
  485.  
  486.  
  487.         Chapter 2.              Vocabulary                        Page 8
  488.         MARCH 20, 1993            PC VIDEO Postprocessor Reference Manual
  489.  
  490.  
  491.  
  492.  
  493.         2.06  RPD
  494.  
  495.              The  RPD  command  (RaPiD traverse) is used  to  inform  the
  496.              postprocessor  that the next upcoming move is to be done  at
  497.              high speed for the machine tool.   RPD is one-shot;  that is
  498.              to  say,  it provides a one-move override to the  prevailing
  499.              (modal)  feedrate.   Once  the  single  move  is  completed,
  500.              feedrate control is resumed.
  501.  
  502.              The  VIDEO  postprocessor  displays rapid motion  as  dashed
  503.              lines.   Therefore,  each RPD statement turns on the  dashed
  504.              line generator for exactly one motion.   After the motion is
  505.              completed,  solid  lines are generated to signify motion  at
  506.              feedrate.
  507.  
  508.  
  509.  
  510.  
  511.  
  512.  
  513.  
  514.  
  515.  
  516.  
  517.  
  518.  
  519.  
  520.  
  521.  
  522.  
  523.  
  524.  
  525.  
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.  
  533.  
  534.  
  535.  
  536.  
  537.  
  538.  
  539.  
  540.  
  541.  
  542.  
  543.  
  544.  
  545.  
  546.  
  547.  
  548.         Chapter 2.              Vocabulary                        Page 9
  549.         MARCH 20, 1993            PC VIDEO Postprocessor Reference Manual
  550.  
  551.  
  552.                            3.0  EXECUTING THE POSTPROCESSOR
  553.  
  554.         The  postprocessor  is  invoked from the command line  by  simply
  555.         entering  its  name and the filename of the  CL  data  file.   An
  556.         example  of how the PC's screen will look before execution of the
  557.         plotting phase is as follows....
  558.  
  559.         C>VIDEOPP THINGMJ.CLF
  560.  
  561.                            ========================================
  562.                                      CAMS  Post  Processor
  563.                                      IBM  PC & COMPATIBLES
  564.                                   Version 3,  Modification 00
  565.  
  566.                            Copyright  1987 by Computer Geometry Co.
  567.                                       All Rights Reserved
  568.                            ========================================
  569.  
  570.                                      Date: 26-Dec-87
  571.  
  572.  
  573.                            **** Press ENTER to begin plotting ****
  574.  
  575.  
  576.         Once  you  have  pressed the "Enter" key,  the CL  plot  will  be
  577.         displayed.
  578.  
  579.         WARNING:  STRANGE THINGS HAPPEN TO YOUR SCREEN IF YOU USE THE EGA
  580.         PLOTTING  OPTIONS  ON A CGA DISPLAY,  OR VGA  OPTIONS  ON  LESSER
  581.         RESOLUTION  DEVICES.   This usually happens to part programs that
  582.         may  have been downloaded to a CGA equiped system from  a  system
  583.         having an some other display.   DON'T PANIC!  An escape valve has
  584.         been  included  which will restore your display.   USE THE  "Esc"
  585.         KEY.   This  should restore your display,  and abort the  VIDEOPP
  586.         processor.   If the "Esc" key fails,  the only way out is to  re-
  587.         initialize DOS (using "Ctrl/Shift/Del").   Then you must edit the
  588.         CAMS  source part program to put in the proper MCH/<n> statement,
  589.         where <n> is appropriate for you display device.
  590.  
  591.         The  plotting  action may be stopped at any time by pressing  the
  592.         space-bar.   You  can single-step through the plot  by  continued
  593.         pressing  of  the  space-bar key.   Continuous  plotting  may  be
  594.         resumed  by pressing any key other than the space-bar.
  595.  
  596.         Once  you are in single step mode,  you can clear the  screen  by
  597.         entering the character "C" (either upper or lower case).  This is
  598.         useful if previously plotted tool paths obstruct your view of the
  599.         current motion.
  600.  
  601.         If  you have established a color plot in your part program by  an
  602.         appropriate  "MCH/..."  statement,  and  you are in  single  step
  603.         operation,  then you can also control the plot color by using the
  604.         numeric keys.   For CGA color mode,  numeric keys 1, 2, and 3 are
  605.         active.   For  EGA or VGA color mode,  numeric keys 1 thru 7  are
  606.         active.   Should you be in one of the black and white modes,  the
  607.  
  608.  
  609.         Chapter 3.        Executing The Postprocessor             Page 10
  610.         MARCH 20, 1993            PC VIDEO Postprocessor Reference Manual
  611.  
  612.  
  613.         numeric keys are ignored.   Note that if a "MCH/..." statement is
  614.         omitted, the default is CGA black and white mode.
  615.  
  616.         With  a  successful operation,  the CL plot will  remain  on  the
  617.         screen until you press "Enter" again, at which time the following
  618.         screen will be displayed...
  619.  
  620.  
  621.                            ========================================
  622.                                      CAMS  Post  Processor
  623.                                      IBM  PC & COMPATIBLES
  624.                                     640x200 CGA B&W Monitor
  625.                                   Version 3,  Modification 00
  626.  
  627.                            Copyright  1987 by Computer Geometry Co.
  628.                                       All Rights Reserved
  629.                            ========================================
  630.  
  631.                                      Date: 26-Dec-87
  632.  
  633.         PNO/ CAMS TEST CASE #1 - THINGAMAJIG - 12/17/86
  634.  
  635.           RECOMMENDED TRANSLATION:      .37500     2.22500     -.41250
  636.         RECOMMENDED SCALE [X,Y,Z]:     1.22759     1.57303     1.00000
  637.                LOWER  LEFT CORNER:    -4.00000    -4.45000     -.05000
  638.                UPPER RIGHT CORNER:     3.25000      .00000      .87500
  639.  
  640.         ****   0 ERRORS ****
  641.  
  642.         [Y/N] PLOT AGAIN?
  643.  
  644.  
  645.         After  all cut vectors in the CL file have  been  processed,  the
  646.         postprocessor  will print the recommended plot parameters on  the
  647.         screen.   These parameters may be used to maximize the use of the
  648.         plotting  window  to  display  the  CL  data.    The  translation
  649.         represents the X, Y, and Z translation factors to move the center
  650.         of  the plot into the center of the plotting window.   The  scale
  651.         factors  in X and Y will work with the translation to utilize the
  652.         full  window  area for plotting.   Using  the  example  portrayed
  653.         above, the following CAMS statements will produce an optimum plot
  654.         of the CL file...
  655.  
  656.  
  657.              MAT/M1=TRN,0.375,2.225,-.4125
  658.              MAT/M2=SCL,1.2,M1
  659.              PLT/M2
  660.  
  661.  
  662.         A  word of caution about the use of these parameters is in order.
  663.         The postprocessor computes the parameters of the plot from ALL of
  664.         the motions in the CL file.   On some machines,  the tool changer
  665.         is  far away from the workpiece area.   The tool change  position
  666.         would  be included in the plotting window.   In this case,  using
  667.         the parameters may not produce as good a result as you would  get
  668.  
  669.  
  670.         Chapter 3.        Executing The Postprocessor             Page 11
  671.         MARCH 20, 1993            PC VIDEO Postprocessor Reference Manual
  672.  
  673.  
  674.         by leaving the tool change position off-window.
  675.  
  676.         This  screen  terminates in a request line which permits  you  to
  677.         generate  further  plots from the CL file.   Only a "Y" or a  "y"
  678.         (upper  or  lower case Y) will permit you to  continue  plotting.
  679.         Should you enter anything else,  the postprocessor will terminate
  680.         and return to DOS.
  681.  
  682.         If you chose to continue by entering a "Y", a new message appears
  683.         at the bottom of the screen as follows...
  684.  
  685.  
  686.          [Y/N] SAME?
  687.  
  688.  
  689.         Responding with an "Enter", "Y", or "y" will produce an immediate
  690.         replot  of the CL file without changing the  currently  effective
  691.         parameters.  Should you press any other key, the screen clears to
  692.         the following display:
  693.  
  694.  
  695.                                =========== VIDEOPP ===========
  696.                                     EDIT PLOT PARAMETERS
  697.                                ===============================
  698.  
  699.          PLOT CENTER X =     .00000 ?
  700.  
  701.  
  702.         This  line  shows  the X coordinate of the current  default  plot
  703.         center.  The plot center is defined to be a point in your CL file
  704.         space that you want centered in the plotting window.
  705.  
  706.         At  this entry,  only two responses are recognized;  an  "Enter",
  707.         which indicates acceptance of the value displayed,  or a  numeric
  708.         value  followed  by  an "Enter",  which will  replace  the  value
  709.         displayed.   Should you key anything else,  the request line will
  710.         be   stubbornly  reiterated  until  a  satisfactory  response  is
  711.         entered.   In any case,  when "Enter" is keyed, with or without a
  712.         replacement number, the program requests the next entry.
  713.  
  714.  
  715.                                =========== VIDEOPP ===========
  716.                                     EDIT PLOT PARAMETERS
  717.                                ===============================
  718.  
  719.          PLOT CENTER X =     .00000 ? -.4
  720.          PLOT CENTER Y =     .00000 ?
  721.  
  722.  
  723.         Immediately  after  entering the plot center  X  coordinate,  the
  724.         request  for the plot center Y coordinate appears on the  screen.
  725.         The rules for entry are the same as for the X  coordinate.   This
  726.         entry  pattern  continues  until  you have  entered  or  accepted
  727.         coordinates for the 3 dimensional plot center, as follows...
  728.  
  729.  
  730.  
  731.         Chapter 3.        Executing The Postprocessor             Page 12
  732.         MARCH 20, 1993            PC VIDEO Postprocessor Reference Manual
  733.  
  734.  
  735.  
  736.                                =========== VIDEOPP ===========
  737.                                     EDIT PLOT PARAMETERS
  738.                                ===============================
  739.  
  740.          PLOT CENTER X =     .00000 ? -.4
  741.          PLOT CENTER Y =     .00000 ? -2.2
  742.          PLOT CENTER Z =     .00000 ? .4
  743.             PLOT SCALE =    1.00000 ?
  744.  
  745.  
  746.         The  request  for the plot scale appears on the screen after  the
  747.         plot  center  point is completely entered.   The  plot  scale  is
  748.         defined  as  a positive number greater than 0.001.   Values  less
  749.         than  or  equal to 0.001,  including negative  entries,  are  not
  750.         acceptable.  As before, the default scale value is displayed, and
  751.         the  rules for accepting or rejecting the default value  are  the
  752.         same as with the plot center coordinates.
  753.  
  754.         The  next parameters to accept or enter are the XY rotation,  the
  755.         YZ  rotation,  and the ZX rotation to be applied to the CL  data.
  756.         These rotations are taken about the plot center, and at the scale
  757.         specified  by  the above inputs.   The same rules of  data  entry
  758.         apply.  Completion of the plot rotation input sequence produces a
  759.         screen that looks like ...
  760.  
  761.  
  762.  
  763.                                =========== VIDEOPP ===========
  764.                                     EDIT PLOT PARAMETERS
  765.                                ===============================
  766.  
  767.          PLOT CENTER X =     .00000 ? -.4
  768.          PLOT CENTER Y =     .00000 ? -2.2
  769.          PLOT CENTER Z =     .00000 ? .4
  770.             PLOT SCALE =    1.00000 ?
  771.            XY ROTATION =     .00000 ? 20
  772.            YZ ROTATION =     .00000 ? 30
  773.            ZX ROTATION =     .00000 ?
  774.            MINIMUM ISN =    1.00000 ?
  775.  
  776.  
  777.         You  now  must specify the range of ISN numbers to be plotted  in
  778.         the next frame.   The default value always specifies the  minimum
  779.         ISN  of  the part program,  as it appears on the  CL  file.   The
  780.         program  will  only accept those values for minimum ISN that  lie
  781.         between  the  actual minimum and maximum ISN numbers  on  the  CL
  782.         file.After  the minimum ISN is entered,  the program will request
  783.         the maximum ISN,  whose default is the maximum actual ISN  number
  784.         detected  on the CL file.   Again,  the same rules of data  entry
  785.         apply.   Completion  of the input sequence produces a screen that
  786.         looks like ...
  787.  
  788.  
  789.  
  790.  
  791.  
  792.         Chapter 3.        Executing The Postprocessor             Page 13
  793.         MARCH 20, 1993            PC VIDEO Postprocessor Reference Manual
  794.  
  795.  
  796.                                =========== VIDEOPP ===========
  797.                                     EDIT PLOT PARAMETERS
  798.                                ===============================
  799.  
  800.          PLOT CENTER X =     .00000 ? -.4
  801.          PLOT CENTER Y =     .00000 ? -2.2
  802.          PLOT CENTER Z =     .00000 ? .4
  803.             PLOT SCALE =    1.00000 ?
  804.            XY ROTATION =     .00000 ? 20
  805.            YZ ROTATION =     .00000 ? 30
  806.            ZX ROTATION =     .00000 ?
  807.            MINIMUM ISN =    1.00000 ?
  808.            MAXIMUM ISN =   40.00000 ?
  809.  
  810.  
  811.         INPUT VERIFICATION: PLOT CENTER =     -.40000   -2.20000     .40000
  812.                             PLOT  SCALE =     1.00000
  813.                             XY ROTATION =    20.00000
  814.                             ZX ROTATION =    30.00000
  815.                             YZ ROTATION =      .00000
  816.                             MINIMUM ISN =      1
  817.                             MAXIMUM ISN =     40
  818.         [Y/N] OK? y
  819.         [Y/N] SINGLE STEP?
  820.  
  821.  
  822.         As  you can see,  the system produces a verification list of  the
  823.         data  you  have either entered or accepted,  and  gives  you  the
  824.         opportunity   to  edit  these  parameters  before  proceeding  by
  825.         entering  a "N".   Pressing a "Y" or "Enter" key will  bring  the
  826.         single step option on-screen,  as shown above.  Pressing a "Y" or
  827.         "y" key will immediately produce the modified CL plot.   Pressing
  828.         any other key is interpreted as a "N" response.   In either case,
  829.         the system will then immediately begin the plotting session.
  830.  
  831.         After the new plot has completed, you will then see the following
  832.         screen...
  833.  
  834.  
  835.  
  836.  
  837.  
  838.  
  839.  
  840.  
  841.  
  842.  
  843.  
  844.  
  845.  
  846.  
  847.  
  848.  
  849.  
  850.  
  851.  
  852.  
  853.         Chapter 3.        Executing The Postprocessor             Page 14
  854.         MARCH 20, 1993            PC VIDEO Postprocessor Reference Manual
  855.  
  856.  
  857.                            ========================================
  858.                                      CAMS  Post  Processor
  859.                                      IBM  PC & COMPATIBLES
  860.                                     640x200 CGA B&W Monitor
  861.                                   Version 3,  Modification 00
  862.  
  863.                            Copyright  1987 by Computer Geometry Co.
  864.                                       All Rights Reserved
  865.                            ========================================
  866.  
  867.                                      Date: 26-Dec-87
  868.         MANUAL INPUT PLOT MATRIX:     .93969   -.34202    .00000   -.37657
  869.                                       .29620    .81380    .50000   1.70883
  870.                                      -.17101   -.46985    .86603  -1.44848
  871.  
  872.         PNO/ CAMS TEST CASE #1 - THINGAMAJIG - 12/17/86
  873.  
  874.           RECOMMENDED TRANSLATION:      .37500     2.22500     -.41250
  875.         RECOMMENDED SCALE [X,Y,Z]:     1.22759     1.57303     1.00000
  876.                LOWER  LEFT CORNER:    -4.00000    -4.45000     -.05000
  877.                UPPER RIGHT CORNER:     3.25000      .00000      .87500
  878.  
  879.         ****   0 ERRORS ****
  880.  
  881.         [Y/N] PLOT AGAIN?
  882.  
  883.  
  884.         Notice  that this screen shows the calculated plotting matrix for
  885.         the  view of the CL data you have just seen.   The matrix may  be
  886.         recorded  (preferably by using the "Shift/PrtSc" key  combination
  887.         to  send it to the printer) and entered into the CAMS source part
  888.         program.   It  is  particularly useful if you wish  to  plot  the
  889.         generated view later on a pen-plotter.
  890.  
  891.         A word about the relationship between the coordinates of the plot
  892.         center  and  the translation factors as shown in the  recommended
  893.         plot  parameters.   The one is the negative of  the  other.   The
  894.         translations  factors  are the values which,  when added  to  the
  895.         coordinates  of any point in the CL file (e.g.  the plot  center)
  896.         will produce a point in the display space.   In particular,  when
  897.         they  are  added  to the plot center,  the result  is  the  point
  898.         [0,0,0].  Therefore, if you enter the negative of the translation
  899.         factors  when asked for the plot center,  you will produce a plot
  900.         at the geometric center of all motions on the CL file.
  901.  
  902.  
  903.  
  904.         COMMAND LINE PARAMETERS
  905.  
  906.  
  907.         In addition to the plotter controls provided for in the CAMS part
  908.         program,  you  can  also control the VIDEOPP plot  parameters  at
  909.         execution time.   In fact,  you can do this even if there are  no
  910.         plotter  control statements in the part program at all.   This is
  911.         accomplished by entering control parameters on the command  line.
  912.  
  913.  
  914.         Chapter 3.        Executing The Postprocessor             Page 15
  915.         MARCH 20, 1993            PC VIDEO Postprocessor Reference Manual
  916.  
  917.  
  918.         In  this manner,  you can control the way in which the first plot
  919.         of  the cutter path is displayed.   Subsequent displays are  then
  920.         conrolled  as described above.   The following section provides a
  921.         detailed description of each of the supported  parameters,  their
  922.         use and meaning.
  923.  
  924.         /MNm      The  "/MN" parameter permits you to specify the minimum
  925.                   part program ISN number to be plotted.   The value  "m"
  926.                   must be an integer in the range 1 < m < 32768.   In the
  927.                   absence of a "/MXn" parameter on the command line,  the
  928.                   postprocessor  will not plot CL data generated by  part
  929.                   program statements with an ISN number smaller than "m".
  930.                   If  an "/MXn" parameter is also present on the  command
  931.                   line,  then  the  range of ISN numbers from "m" to  "n"
  932.                   will be plotted.   "m" must be strictly less than  "n".
  933.                   The default value of "m" is 1.
  934.  
  935.         /MXn      The  "/MX" parameter permits you to specify the maximum
  936.                   part program ISN number to be plotted.   The value  "n"
  937.                   must be an integer in the range 1 < n < 32768.   In the
  938.                   absence of a "/MNm" parameter on the command line,  the
  939.                   postprocessor  will not plot CL data generated by  part
  940.                   program statements with an ISN number greater than [n].
  941.                   If  an "/MNm" parameter is also present on the  command
  942.                   line,  then  the  range of ISN numbers from "m" to  "n"
  943.                   will  be plotted.   "n" must be strictly  greater  than
  944.                   "m".  The default value of "n" is 32767.
  945.  
  946.         /SCs.s    The  "/SC" parameter permits you to set the plot scale.
  947.                   The  decimal  point  in  the  parameter  value  is  NOT
  948.                   optional.   Failure  to  include  it  will  produce  an
  949.                   incorrect plot.   If present in the command  line,  all
  950.                   plotting   transformations   established  by   "PPLOT/"
  951.                   statements in the CAMS part program will be  completely
  952.                   ignored.  It can be used in conjunction with any of the
  953.                   other  transformation parameters on the command line to
  954.                   form  a composite transformation to control  the  plot.
  955.                   The default scale value is "s.s" = 1.0.
  956.  
  957.         /SXx.x    The  "/SX" parameter permits you to set the plot  scale
  958.                   for  X  values in the CL file independent of the  other
  959.                   axes.   This  results  in  a  distortion  of  the  part
  960.                   display,  but can be usefull for parts that are long in
  961.                   the  X dimension.  The decimal point in  the  parameter
  962.                   value  is  NOT optional.   Failure to include  it  will
  963.                   produce  an incorrect plot.   If present in the command
  964.                   line,   all  plotting  transformations  established  by
  965.                   "PPLOT/"  statements in the CAMS part program  will  be
  966.                   completely ignored.  It can be used in conjunction with
  967.                   any  of  the  other transformation  parameters  on  the
  968.                   command  line to form a composite  transformation  that
  969.                   will  control the plot.   The default X scale value  is
  970.                   "x.x" = 1.0.
  971.  
  972.         /SZz.z    The  "/SZ" parameter permits you to set the plot  scale
  973.  
  974.  
  975.         Chapter 3.        Executing The Postprocessor             Page 16
  976.         MARCH 20, 1993            PC VIDEO Postprocessor Reference Manual
  977.  
  978.  
  979.                   for  Z  values in the CL file independent of the  other
  980.                   axes.   This  results  in  a  distortion  of  the  part
  981.                   display,  but can be usefull for parts that are long in
  982.                   the  Z dimension.  The decimal point in  the  parameter
  983.                   value  is  NOT optional.   Failure to include  it  will
  984.                   produce  an incorrect plot.   If present in the command
  985.                   line,   all  plotting  transformations  established  by
  986.                   "PPLOT/"  statements in the CAMS part program  will  be
  987.                   completely ignored.  It can be used in conjunction with
  988.                   any  of  the  other transformation  parameters  on  the
  989.                   command  line  to form a composite transformation  that
  990.                   will  control the plot.   The default Z scale value  is
  991.                   "z.z" = 1.0.
  992.  
  993.         /PXx.x    The  "/PX"  parameter permits you to set the CL file  x
  994.                   coordinate  which you want to be at the center  of  the
  995.                   plotting  frame.   The  decimal point in the  parameter
  996.                   value  is  NOT optional.   Failure to include  it  will
  997.                   produce  an incorrect plot.   In this manner,  you  can
  998.                   establish a translation in x for the current plot.   If
  999.                   present in the command line,  all plot  transformations
  1000.                   established  by  "PPLOT/" statements in the  CAMS  part
  1001.                   program will be completely ignored.   It can be used in
  1002.                   conjunction   with  any  of  the  other  transformation
  1003.                   parameters  on  the command line to  form  a  composite
  1004.                   transformation  to control the plot.   The default  /PX
  1005.                   value is "x.x" = 0.0.
  1006.  
  1007.         /PYy.y    The  "/PY"  parameter permits you to set the CL file  y
  1008.                   coordinate  which you want to be at the center  of  the
  1009.                   plotting  frame.   The  decimal point in the  parameter
  1010.                   value  is  NOT optional.   Failure to include  it  will
  1011.                   produce  an incorrect plot.   In this manner,  you  can
  1012.                   establish a translation in y for the current plot.   If
  1013.                   present in the command line,  all plot  transformations
  1014.                   established  by  "PPLOT/" statements in the  CAMS  part
  1015.                   program will be completely ignored.   It can be used in
  1016.                   conjunction   with  any  of  the  other  transformation
  1017.                   parameters  on  the command line to  form  a  composite
  1018.                   transformation  to control the plot.   The default  /PY
  1019.                   value is "y.y" = 0.0.
  1020.  
  1021.         /PZz.z    The  "/PZ"  parameter permits you to set the CL file  z
  1022.                   coordinate  which you want to be at the center  of  the
  1023.                   plotting  frame.   The  decimal point in the  parameter
  1024.                   value  is  NOT optional.   Failure to include  it  will
  1025.                   produce  an incorrect plot.   In this manner,  you  can
  1026.                   establish a translation in z for the current plot.   If
  1027.                   present in the command line,  all plot  transformations
  1028.                   established  by  "PPLOT/" statements in the  CAMS  part
  1029.                   program will be completely ignored.   It can be used in
  1030.                   conjunction   with  any  of  the  other  transformation
  1031.                   parameters  on  the command line to  form  a  composite
  1032.                   transformation  to control the plot.   The default  /PZ
  1033.                   value is "z.z" = 0.0.
  1034.  
  1035.  
  1036.         Chapter 3.        Executing The Postprocessor             Page 17
  1037.         MARCH 20, 1993            PC VIDEO Postprocessor Reference Manual
  1038.  
  1039.  
  1040.  
  1041.         /XYr.r    The  "/XY"  parameter  permits you to establish  an  XY
  1042.                   rotation of the plotting frame about the plot center as
  1043.                   defined by the "/PX",  "/PY" and "/PZ" parameters.  The
  1044.                   decimal  point in the parameter value is NOT  optional.
  1045.                   Failure  to include it will produce an incorrect  plot.
  1046.                   If   present   in   the   command   line,    all   plot
  1047.                   transformations  established by "PPLOT/" statements  in
  1048.                   the CAMS part program will be completely  ignored.   It
  1049.                   can  be  used  in  conjunction with any  of  the  other
  1050.                   transformation parameters on the command line to form a
  1051.                   composite  transformation  to control  the  plot.   The
  1052.                   default XY rotation value is "r.r" = 0.0.
  1053.  
  1054.         /YZr.r    The  "/YZ"  parameter  permits you to  establish  a  YZ
  1055.                   rotation of the plotting frame about the plot center as
  1056.                   defined by the "/PX",  "/PY" and "/PZ" parameters.  The
  1057.                   decimal  point in the parameter value is NOT  optional.
  1058.                   Failure  to include it will produce an incorrect  plot.
  1059.                   If   present   in   the   command   line,    all   plot
  1060.                   transformations  established by "PPLOT/" statements  in
  1061.                   the CAMS part program will be completely  ignored.   It
  1062.                   can  be  used  in  conjunction with any  of  the  other
  1063.                   transformation parameters on the command line to form a
  1064.                   composite  transformation  to control  the  plot.   The
  1065.                   default YZ rotation value is "r.r" = 0.0.
  1066.  
  1067.         /ZXr.r    The  "/ZX"  parameter  permits you to  establish  a  ZX
  1068.                   rotation of the plotting frame about the plot center as
  1069.                   defined by the "/PX",  "/PY" and "/PZ" parameters.  The
  1070.                   decimal  point in the parameter value is NOT  optional.
  1071.                   Failure  to include it will produce an incorrect  plot.
  1072.                   If   present   in   the   command   line,    all   plot
  1073.                   transformations  established by "PPLOT/" statements  in
  1074.                   the CAMS part program will be completely  ignored.   It
  1075.                   can  be  used  in  conjunction with any  of  the  other
  1076.                   transformation parameters on the command line to form a
  1077.                   composite  transformation  to control  the  plot.   The
  1078.                   default ZX rotation value is "r.r" = 0.0.
  1079.  
  1080.         The  easiest way to develop a useful plot from a CL file in which
  1081.         there   are  no  plotter  control  statements  is  to   run   the
  1082.         postprocessor  once to establish the recommended plot parameters.
  1083.         Then,  observing the final screen (see above),  the optimum  plot
  1084.         center is the NEGATIVE of the translation factors in X, Y, and Z.
  1085.         Enter  the  NEGATIVE  of  each of these  as  /PX,  /PY,  and  /PZ
  1086.         parameters.   Then observe the recommended scale factors in X, Y,
  1087.         and Z.   In general,  you would be advised to use the SMALLEST of
  1088.         these  as  /SC.   From the example  shown  above,  the  following
  1089.         command line entry would produce a satisfactory plot.
  1090.  
  1091.  
  1092.           A>VIDEOPP THINGMJ.CLF /PX-.375 /PY-2.225 /PZ.4125 /SC1.0
  1093.  
  1094.  
  1095.  
  1096.  
  1097.         Chapter 3.        Executing The Postprocessor             Page 18
  1098.         MARCH 20, 1993            PC VIDEO Postprocessor Reference Manual
  1099.  
  1100.  
  1101.         After that, anything goes. Remember, spaces are significant, they
  1102.         are used to separate the parameters.   Do not try to separate the
  1103.         number  from the text for each parameter.   Notice also that  the
  1104.         extent  [.CLD]  is  understood,  if it is omitted from  the  file
  1105.         specification.    However,  if  you  forget  to  enter  the  file
  1106.         specification, the program will prompt you for it.
  1107.  
  1108.         If you make a mistake in entering a parameter,  the postprocessor
  1109.         will produce an error diagnostic, then wait for your action.  You
  1110.         must  either  enter a "Ctrl-C" or "Enter" from  the  keyboard  to
  1111.         continue.  The message looks as follows...
  1112.  
  1113.  
  1114.              C>VIDEOPP THINGMJ.CLF /mn55
  1115.              ILLEGAL OPTION: "/mn55"
  1116.              Ctrl-C to abort; Enter to continue.
  1117.  
  1118.  
  1119.         All  control  parameters must be in upper case  characters.   The
  1120.         above error is due to the lower case option.
  1121.  
  1122.  
  1123.  
  1124.  
  1125.  
  1126.  
  1127.  
  1128.  
  1129.  
  1130.  
  1131.  
  1132.  
  1133.  
  1134.  
  1135.  
  1136.  
  1137.  
  1138.  
  1139.  
  1140.  
  1141.  
  1142.  
  1143.  
  1144.  
  1145.  
  1146.  
  1147.  
  1148.  
  1149.  
  1150.  
  1151.  
  1152.  
  1153.  
  1154.  
  1155.  
  1156.  
  1157.  
  1158.         Chapter 3.        Executing The Postprocessor             Page 19
  1159.         MARCH 20, 1993            PC VIDEO Postprocessor Reference Manual
  1160.  
  1161.  
  1162.                                  4.0  ERROR MESSAGES
  1163.  
  1164.         The postprocessor will ignore part program statements whose major
  1165.         words are not in it's vocabulary.   However,  if the  statement's
  1166.         major word is in the postprocessor vocabulary,  a syntax check of
  1167.         the  CL record will take place.   Those statements not formulated
  1168.         as  described above will not be properly processed,  and an error
  1169.         message will be generated.
  1170.  
  1171.         Upon  discovering  an  erroneous input,  the  postprocessor  will
  1172.         produce  one of several messages.   These messages  will  provide
  1173.         useful  clues  as  to the source of the error.   A  list  of  the
  1174.         messages and their meanings follows...
  1175.  
  1176.         ** CL FILE READ FAILED
  1177.  
  1178.                   The  postprocessor encounterd a read failure on the  CL
  1179.                   file, possibly caused by faulty disk media.
  1180.  
  1181.         ** CYCLE PARAMETERS MISSING
  1182.  
  1183.                   The cycle statement does not contain a cycle type (e.g.
  1184.                   DRL,TAP).  Check the section in chapter two on CYC/.
  1185.  
  1186.         ** LINEAR MOTION ERROR
  1187.  
  1188.                   This  error  occurs  when the  CL  file  is  improperly
  1189.                   formatted for linear motion.   Please contact  Computer
  1190.                   Geometry if this error is encountered.
  1191.  
  1192.         ** PLT/ PARAMETER ERROR
  1193.  
  1194.                   The  VIDEO  postprocessor  is unable to  interpret  the
  1195.                   plotting  parameters as either the canonical form of  a
  1196.                   matrix, a pen number, or the minor words ON or OFF.
  1197.  
  1198.  
  1199.  
  1200.  
  1201.  
  1202.  
  1203.  
  1204.  
  1205.  
  1206.  
  1207.  
  1208.  
  1209.  
  1210.  
  1211.  
  1212.  
  1213.  
  1214.  
  1215.  
  1216.  
  1217.  
  1218.  
  1219.         Chapter 4.              Error Messages                    Page 20
  1220.         MARCH 20, 1993            PC VIDEO Postprocessor Reference Manual
  1221.  
  1222.  
  1223.                                  4.0  SAMPLE PART PROGRAM
  1224.  
  1225.         To illustrate the use of the VIDEO postprocessor, the same sample
  1226.         part used in the CAMS Part Programmer's Manual will be  augmented
  1227.         with plotting parameters and plotted.  The sketch and text of the
  1228.         part program are reproduced herein for your convenience.
  1229.  
  1230.  
  1231.  
  1232.  
  1233.  
  1234.  
  1235.  
  1236.  
  1237.  
  1238.  
  1239.  
  1240.  
  1241.  
  1242.  
  1243.  
  1244.  
  1245.  
  1246.  
  1247.  
  1248.  
  1249.  
  1250.  
  1251.  
  1252.  
  1253.  
  1254.  
  1255.  
  1256.  
  1257.  
  1258.  
  1259.  
  1260.  
  1261.  
  1262.  
  1263.  
  1264.  
  1265.  
  1266.  
  1267.  
  1268.  
  1269.  
  1270.  
  1271.  
  1272.  
  1273.  
  1274.  
  1275.  
  1276.  
  1277.  
  1278.  
  1279.  
  1280.         Appendix A              Sample Part Program               Page 21
  1281.         MARCH 20, 1993            PC VIDEO Postprocessor Reference Manual
  1282.  
  1283.  
  1284.                            ========================================
  1285.                                       C A M S   Section 1
  1286.                                        Version 3, Mod 00
  1287.  
  1288.                            Copyright  1987 by Computer Geometry Co.
  1289.                                       All Rights Reserved
  1290.                            ========================================
  1291.  
  1292.                                   Date: 20-Mar-93
  1293.                            Source File: THINGMJ.NC
  1294.  
  1295.            1 PNO/ CAMS TEST CASE #1 - THINGAMAJIG - 12/17/86
  1296.            2 MCH/1
  1297.            3 MAT/M1=TRN,0.0,2.0,0.0
  1298.            4 PLT/M1
  1299.            5 #/S0=185
  1300.            6 #/R1=.25
  1301.            7 #/Z1=.625+.25
  1302.            8 #/Z2=-.05
  1303.            9 #/Y0=1.725-.4+2
  1304.           10 #/X0=3
  1305.           11 PLN/Q1=0,0,1,Z2
  1306.           12 LIN/L1=0,-Y0,1,-Y0
  1307.           13 LIN/L2=-X0,0,-X0,1
  1308.           14 LIN/L3=-X0,2-Y0,COS(15)-X0,SIN(15)+2-Y0
  1309.           15 LIN/L4=PARL,L1,YL,1.725
  1310.           16 LIN/L5=PARL,L2,XL,6
  1311.           17 CIR/C1=0,0,2
  1312.           18 REM/ ** COMPUTE SPINDLE RPM (S1) SUCH THAT 100 <= S1 <= 4000
  1313.           19 #/S1=MAX(100:MIN(4000:(S0*12/(3.1416*R1*2))))
  1314.           20 REM/ ** COMPUTE FEEDRATE; .004 PER EDGE FOR 2 FLUTE CUTTER
  1315.           21 #/F1=.004*S1*2
  1316.           22 PRT/S1,F1
  1317.  
  1318.  
  1319.            S1   2104 1413.29300
  1320.            F1   2104   11.30634
  1321.  
  1322.  
  1323.           23 FROM/P255=-(X0+1),-(Y0+1.125),Z1
  1324.           24 FED/F1
  1325.           25 CUTR/2*R1
  1326.           26 RPD
  1327.           27 PS/Q1
  1328.           28 GO/TO,L2,TO,L1
  1329.           29 GO/PAST,L3,TO,L2
  1330.           30 GO/PAST,C1,TO,L3
  1331.           31 REM/ *** GEOMETRY TO COMPUTE ARC END ANGLE USING A CIRCLE
  1332.           32 CIR/C100=YL,L4,XL,IN,C1,R1
  1333.           33 ARC/.003,CCW,CTR,C100,IN,C1
  1334.           34 GO/PAST,L5,TO,L4
  1335.           35 GO/PAST,L1,TO,L5
  1336.           36 GO/PAST,L2,TO,L1
  1337.           37 RPD
  1338.           38 GTO/P255
  1339.  
  1340.  
  1341.         Appendix A              Sample Part Program               Page 22
  1342.         MARCH 20, 1993            PC VIDEO Postprocessor Reference Manual
  1343.  
  1344.  
  1345.           39 PRT/ALL
  1346.  
  1347.  
  1348.         M1   041A    1.00000    .00000    .00000    .00000    .00000   1.00000
  1349.                       .00000   2.00000    .00000    .00000   1.00000    .00000
  1350.         S0   2104  185.00000
  1351.         R1   2104     .25000
  1352.         Z1   2104     .87500
  1353.         Z2   2104    -.05000
  1354.         Y0   2104    3.32500
  1355.         X0   2104    3.00000
  1356.         Q1   010A     .00000    .00000   1.00000   -.05000
  1357.         L1   010A     .00000  -1.00000    .00000   3.32500
  1358.         L2   010A    1.00000    .00000    .00000  -3.00000
  1359.         L3   010A     .25882   -.96593    .00000    .50339
  1360.         L4   010A     .00000  -1.00000    .00000   1.60000
  1361.         L5   010A    1.00000    .00000    .00000   3.00000
  1362.         C1   0210     .00000    .00000    .00000    .00000    .00000   1.00000
  1363.                      2.00000
  1364.         S1   2104 1413.29300
  1365.         F1   2104   11.30634
  1366.         P255 0008   -4.00000  -4.45000    .87500
  1367.         C100 0210    1.11355  -1.35000    .00000    .00000    .00000   1.00000
  1368.                       .25000
  1369.  
  1370.  
  1371.           40 FIN
  1372.  
  1373.         ****   0 ERRORS ****
  1374.  
  1375.         0
  1376.  
  1377.  
  1378.         Only  three additional  statements were required  to  obtain  the
  1379.         sample plot.  These are...
  1380.  
  1381.               :
  1382.            2 MCH/1
  1383.            3 MAT/M1=TRN,0.0,2.0,0.0
  1384.            4 PLT/M1
  1385.               :
  1386.  
  1387.         The MCH/1 invokes the postprocessor and establishes that the plot
  1388.         is to be a CGA 320x200 color plot.   Note, however, that since no
  1389.         pen  numbers are requested in the PLT/ statements,  the plot will
  1390.         still be white on black, since white is the default pen color.
  1391.  
  1392.         The  matrix  definition  in statement number five  establishes  a
  1393.         2.000 inch transformation up in Y.  This serves to more centrally
  1394.         locate the cutter path in the plotting window,  but does not lose
  1395.         the axis logo off the window.
  1396.  
  1397.         The  PLT/M1  statement  (statement number 4)  informs  the  VIDEO
  1398.         postprocessor to begin plotting,  and provides the transformation
  1399.         necessary to move the cutter path into the plotting window.
  1400.  
  1401.  
  1402.         Appendix A              Sample Part Program               Page 23
  1403.  
  1404.