home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / CLIPPER / MISC / CAMS304.ZIP / CAMSMAN.EXE / VIDEOPP.TXT < prev   
Encoding:
Text File  |  1988-05-11  |  36.5 KB  |  1,194 lines

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