Home

CAD-to-DMC

image

Contents

1. SCALE 100 Figure 4 Final CAD drawing with dispenser control 4 e Chapter 1 Introduction CAD to DMC FIRST MACRO LAST_MACRO HMXY CHIF BGXY 0 0 AMXY BGXY SP 2000 2000 AMXY AC 100000 100000 END MACRO PA 2000 4000 BGXY OVING_MACRO LINETYPE AM A E EI E in MACRO END MACRO OVING_MACRO LINETYPE SCALE 1000 1000 ND_MACRO Figure 5 Dispenser control using LINETYPE macros Step 5 Create a DXF file With the drawing completed export a DXF file using the appropriate commands for the CAD package you are using With the DXF file saved you can now exit the CAD program and open the CAD to DMC program Step 6 Translating from DXF to DMC Select File gt Open from within the CAD to DMC program This will open a window similar to the one shown in Figure 6 Select the file you wish to open and click OK If the CAD file was created correctly the program will automatically translate it into DMC and create a new file of the same name as the DXF file with the SEN extension In addition the program will display a view of the complete motion profile as shown in Figure 7 Notice that an entry path the diagonal line shows up in the translated drawing even though it wasn t explicitly drawn in CAD This is because the starting point for dispensing was specified to be 2000 4000 The translated DMC
2. es 23 INDEX sese deosstsosvoses ERROR BOOKMARK NOT DEFINED CAD to DMC Contents i THIS PAGE LEFT BLANK INTENTIONALLY ii e Contents CAD to DMC Chapter 1 Introduction 1 1 CAD to DMC Overview The CAD to DMC software package generates a Galil motion program from a 2 dimensional CAD drawing This allows you to draw complex motion paths and avoid the time consuming task of programming a list of coordinates The software reads in a standard DXF file and converts it into the proper Galil Digital Motion Controller DMC commands The resulting DMC file can then be downloaded to the controller and executed as a motion program or combined with an existing program The CAD to DMC translation process involves five steps 1 Create a drawing of the motion using AutoCAD or similar drawing package that generates DXF files Add the necessary CAD to DMC commands to the drawing for translation Create a DXF file of the drawing Translate the DXF file using CAD to DMC Send the DMC file to the controller and execute Un gt 1 2 Getting Started 1 2 1 System Requirements Computer PC operating under Windows Additional Software In order to download and execute the translated DMC files you will need to use a terminal emulator as provided with the COMMDISK and WSDK software packages Motion Control System DMC series controller 2 axes minimum Stepper or servo motors Power
3. CAD to DMC User Manual Manual Rev 1 0b By Galil Motion Control Inc Galil Motion Control Inc 270 Technology Way Rocklin California 95765 Phone 916 626 0101 Fax 916 626 0102 Internet Address support galilmc com URL www galilmc com Rev 8 06 THIS PAGE LEFT BLANK INTENTIONALLY Contents CHAPTER 1 INTRODUCTION JJ esssoussosiostssossevisaosssovssonsdosssovosnsssonievisoes sossbasisoossosseossoosssousausssssasososnossse 1 1 1 CAD TO DMGOVERVIEW eee esee eive tees kd as dwe e leson din ARNAN 1 1 GETTING STARTED s costes te ERE e Ae te En D ag 1 1 2 T System Requitemerits 2 1o eise ies 1 2 5 311311000 AR IMG ee If 1 1 3 BASIG REQUIREMENTS 07 1 1 4 A STEP BY STEP EXAMPLE morar tecto NN ese eee ue e kode logo PE EE EXE UTE ee EL 2 CHAPTER 2 REFERENCE SECTION 000eeeoooooooeooooooseunooeeuoooooeeonoooeeenonooeeenonooeeonoooeeeonooeeenonooeeonoooeeoonose 9 2 1 GEOMETRY REQUIREMENTS it eri referees e Pee eoe rente 9 2 2 ASSOCIATION PRINCIPLES ecce esee ee ees eco EET ete dessan ed a ites PANGAN BANNA 9 2 3 MACROS t to ET at rut e e bg PA D TE Pa 11 2 4 COMMAND DESCRIPTIONS 8 Eie 14 2 5 ORDER EIU d 20 APPENDIX A e
4. Ng N l 9 7 D Pd Na v E N CS 22 oN I Pe ee E 11 N FIRS Ni L Ng 1 Mo CERE ASN 1 0 6 6 CR p Nas EPA bs D Pa Na 0 Pa LINE TYPE PPING_MACR PA 30000 BGZ END SCALE 1000 1000 XIMATION OF A CARBURETDO HE USE OF LINET REM REM ILLUSTRATES R GASK YPE MA LINETYPE STOPPING MACR PA 04 BGZ AMZ END_MACRO a 5 0 0 ET FOR V8 CRUS AND URDER NUMBERS CAD tocDMC i CARBGASK SKD Appendix A e 29 30 e Appendix A CAD to DMC INDEX CAD to DMC INDEX e 31
5. CAD to DMC square When the second intersection is again reached CAD to DMC turns left towards the 4 completing the motion path Figure 15 Use of Order Numbers CAD to DMC Chapter 2 Reference Section e 21 THIS PAGE LEFT BLANK INTENTIONALLY 22 e Chapter 2 Reference Section CAD to DMC Appendix A Example Drawings CAD to DMC Appendix A e 23 l g 38 Pa Pa IN UNG bU N V A p Nou l d d 0 Pd Ba EN v FAN DI pu N L nd Q Pi PR PA PA ka p NG p LW ue 7 SCALE 1000 1000 RE HIS DRAWING IS COMPOSED UF AUTUSKETCH GENERATED REM CURVES THE FIRST DIRECTIVE IS USED A HE BEGINNING OF REM THE FIRST AND THE LAST DIRECTIVE IS USED AT THE END OF 2 RD VARYING SETTINGS CURVE DRAWING SEGMENTS REM THE NUMBER UF INE SEGMENTS THE G IS MADE CAN BE VARIED ONLY PENALTY FOR HAVING A LARGE NUMBER LI REM SEGME S IS THE POSSIBILITY OF QVERRUNNING THE SEGME REM LIMI F YOUR CONTROLLER YOU WILL BE WARNED ABOU HIS REM STOP MODE IS USED TO PREVET HE SHOCK THAT WOULD REM ERWISE RESULT FROM AN ATTEMPTE
6. EXAMPLES SNAP 0 1 SNAP 10 5 STOP PURPOSE STOP is used in a drawing which is operating in SMOOTH MODE STOP can be placed along a motion trajectory to suspend SMOOTH MODE operation for the segment specified USAGE In a Macro No 18 e Chapter 2 Reference Section CAD to DMC Association Line Segment STOP causes motion to stop momentarily at the nearest element endpoint The coordinated move will be completed and the system will be prepared to make another coordinated move sequence It is not necessary to use STOP from within STOP MODE as motion already stops at every segment in this mode NOTE If you would like to use STOP before performing a macro operation use a STOPPING MACRO see section 2 3 Macros STOP MODE PURPOSE STOP MODE causes the program to treat each segment as a separate move Motion will stop at the endpoint of each segment in the sequence USAGE In a Macro Yes Association Line Segment or Drawing STOP MODE can be used within a macro along a motion trajectory or all by itself If found along a motion trajectory the mode change will take effect after the endpoint of the associated element If the command is not near a geometry element it will apply to the entire drawing STOP MODE is recommended whenever there are sharp transitions along a motion path TOOL RADIUS PURPOSE TOOL RADIUS is used to specify the radius of a tool bit for offset compensation of the motion path USAGE TOOL RADIUS n wher
7. SMUOTH_MODE IS USED FUR THE REM TRAVERSE BECAUSE THE INES AND ARCS CONNEC GETHER REM S ITALY CAD t D 6 LOGO SKD Appendix A e 25 REM REM REM HIS i E b N S 1 l E FIRST STEPPING MACRU LINETYPE PA 0 END MACR STUPPING MACRD LINE TYPE PA 20000 AMZ END MACRO AS SCALE 1000 1000 E USE UF STUPPING MACROS OVER DRAWING SHOWS TH CONTRO HIS BRACKET OU HEIGHT OF A TOO LINE 26 Appendix A REM FILLE BRACKE T SKD CAD to DMC y A P E N Eu N a b a a P Ng a a ng pr ue AN NN ki LM Pad 2 A ra X mE 2 A VA E N FIRST LAST N N SCALE 1000 1000 REM THIS DRAWING WAS MADE WITH 8 CURVES AND REM 2 LINES THE ORDER NUMBERS ARE USED REM DIRECT CADTODMC CLOCKWISE AROUND THE FAD REM BLADE H RDER NUMBER 2 IS USED GET REM THE TRAJECTORY OFF UF THE CURVES AND BACK REM ON THE ENTRANCENEXI RAJECTORY REM FANBLADE SKD CAD to DMC Appendix A e 27 ze 2 EN d t N JA DW N 2 Na P p 2 5 N HA a N x y N on j 1 l NN Jo 53 a
8. an arc and a text element is measured as the difference between the arc radius and the distance from the arc center to the text Figure 11 Case 1 If a radial line from the arc center to the 10 e Chapter 2 Reference Section CAD to DMC text element does not intersect the arc the distance is measured between the text and the nearest arc endpoint Figure 11 Case 2 LAST Text Element to Arc Distonce End of Arc Figure 11 Measuring text to arc distances Text Some associations are just groups of text such as a macro definition In these cases the parent is usually a CAD to DMC command such as a macro heading and the children are additional parameters such as DMC commands Text parents associate with the nearest text element within 1 2 character heights below the text with respect to drawing coordinates Due to this requirement bodies of text cannot be rotated Each additional association child must also be within 1 2 text heights below its predecessor Text associations are typically terminated with a CAD to DMC directive such as END MACRO They also terminate when another text element is not found within 3 text heights If a text association ends for this reason a warning is issued 2 3 Macros A macro is a way to package several commands together under one heading When the macro is executed all of the associated commands are executed as well The body of the macro may contain DMC commands contained in quotes other macro n
9. count coordinates 2000 4000 The dispenser should travel in the counter clockwise direction around the desired path Step 1 Draw the Motion Path Figure 2 shows the desired adhesive contour drawn in CAD Dimensions are shown for demonstration purposes only and should not be included in any drawing to be translated 2 e Chapter 1 Introduction CAD to DMC 2000 4000 Figure 2 CAD drawing of desired motion path Step 2 Specify FIRST LAST and SCALE directives FIRST and LAST are placed as shown in Figure 3 FIRST is placed adjacent to the point labeled 2000 4000 in Figure 2 LAST is placed above FIRST and is also associated with the same point for more information on association refer to Section 2 2 Association Principles This causes the motion to follow a counter clockwise path SCALE is specified as 1000 encoder counts per inch for each axis Step 3 Specify mode of motion Since a constant feed rate is desired SMOOTH MODE should be used SMOOTH MODE causes all motion to be generated as a continuous constant velocity path SMOOTH MODE is the default setting for CAD to DMC and does not need to be explicitly specified in this case Step 4 Add macros for system initialization and ON OFF control of dispenser FIRST MACRO is executed before the actual motion path takes place In this application the X and Y axes are homed and then brought to coordinates 2000 4000 for the beginning of dispensing Finally a bit is set which t
10. name LINETYPE PURPOSE LINETYPE can be used in place of a user defined macro name to associate a macro with a particular linetype For example you could create a macro to increase cutting speed whenever a dashed line is encountered along the motion path LINETYPE can be used with either MOVING MACRO or STOPPING MACRO USAGE MOVING MACRO or STOPPING MACRO LINETYPE command command command 12 e Chapter 2 Reference Section CAD to DMC END MACRO LINETYPE is substituted for the user defined macro name A line element of the linetype you would like to associate with the macro must be included directly below the macro declaration If this linetype is missing the macro will be ignored by CAD to DMC When declared correctly the macro will execute whenever the associated linetype is encountered during motion MOVING MACRO PURPOSE A MOVING MACRO is used to perform operations during a motion profile The command sequence is not executed until the appropriate location along the motion path has been reached USAGE MOVING MACRO name command command command END MACRO The word MOVING MACRO is followed by a one word user specified name which will refer to the entire macro If a name is missing or if there are any words beyond the name a warning will be Issued The macro is called by placing the macro name at the desired location along the motion path The macro behavior will occur at the element endpoint n
11. 7 MON x 3 Pag EUN ng F LA a pres i prat l Pod amp Na yp 1 5 7 N s d E j RS pa S p oF 8 OS a 2 l N 5 f NGA 1 Neat E M 8 is n teh coda tco rape cae Pad ieee UT men JR m 1 PATE IA DBP 26 20 F T 1 1 1 1 Sh NS xo QN Li AKA i NA KL NL P ed 1 U pa _le TH H 0 i STOPPING_MACR INE TYPE STOPPING_MACR INE TYPE PA 10000 BGZ AMZ VS20000 END MACRO PA 0 BGZ AMZ 53000 END MACRO SONE DI 1000 COMMENT LINETYPE 5 0 05 EM POSSIBLE GASKET CUTTING CONTEXT IERE THI REM GASKET OUTLINE ON BOTH SIDES AND HOLES ARE REM CUTOUT BY A PROGRAM WHICH PERFORMS HIGH REM SPEED SKIPS ALING DOTTED LINE SECTIONS REM FILE GASKET_1 28 Appendix A CAD to DMC Ug Pang E P p x Na a aa Me N Y 4 NG 3 2 NG mp LC 15 P d Tac 0 CN _ pag L AN x 5 N A LONG E LA 4 EE NG X Y NA ed M N d 2 N N s ai Ng C 4 a Pal N N e Hi p X m ET N 4 N
12. D CUNSTANT SPEED RE DIRECTIDN REVERSAL AT THE TOP AND LEF SIDES DF THE G XE ILE SCRIPT G SKD 24 e Appendix A CAD to DMC Y xL S z d N STOP MODE Z N 4 1 N N EN ee 3 AN a P ZR NA ku X d ty 0 for A NAN 4 Jj w p x e sp M N p ES pad 4 N 4 LA P A m 2 m AM ee e p NNNM STUPPING_MACRU LINETYPE STOPPING MACRO LINETYPE REM DON T STEP DURING TRAVERSE REM STOP AT CURVE ENDS SMLILI TH MODE STOP_MODE REM RAISE ENGRAVER REM LUWER_ENGRAVER RA 1000 0 BGZ BL AMZ AMZ END MACR END SCALE 1000 1000 0 09 REM IS DRAWING MIGHT BE A MOTION DESCRIPTION FOR AN ENGRAVING REM MACHINE THE LINETYPE DIRECTIVES PERFORM TWO FUNCTIONS SEM gt NG HEAD IS RAISED AND LUWERED BY THE Z AXIS AND REM E MOTION MODE IS CHANGED HE CURVES DPERATE IN STOP MODE REM SO THAT LARGE ACCELERATIONS DO NOT OCCUR AT THE SHARP REM CORNERS IN THE LE ERS
13. TER AMZ END MACRO END MACRO SCALE 1000 1000 SNAP 0 02 Figure 13 Use of the RESET ORDER command REVERSE X REVERSE Y PURPOSE The REVERSE X and REVERSE Y commands are used to mirror the interpretation of a drawing image REVERSE X inverts the direction of the X axis and REVERSE Y inverts the direction of the Y axis USAGE In a Macro No Association Drawing The reflections only affect the motion path that is translated and not any DMC commands which are directly included within a macro For example PR2000 2000 would not be affected by the REVERSE X or REVERSE Y commands The reflection origin is with respect to the FIRST point in the drawing Some systems may require the reverse commands to achieve the expected motion paths For example a stationary cutter operating on a moving XY table would need to have both axes reversed in order to have the cuts made as drawn SCALE CAD to DMC Chapter 2 Reference Section e 17 PURPOSE SCALE is used to relate encoder resolution to the user units used in a CAD drawing It is usually a function of encoder resolution lead screw pitch and gear ratios which connect the motor to the system USAGE SCALE X Y where X and Y are the encoder counts per user unit for the X and Y axes respectively In a Macro No Association Drawing NOTE This command is required in every CAD drawing you wish to convert EXAMPLE SCALE 1000 1000 SMOOTH_MODE PURPOSE SMOOTH_MODE causes all mo
14. ames and certain CAD to DMC commands All macros must end with the END MACRO statement CAD to DMC Chapter 2 Reference Section e 11 The CAD to DMC software does not perform any error checking on DMC commands issued through a macro any errors that do exist will only be detected at runtime It is the responsibility of the user to ensure that valid commands are sent Macros are declared using the macro commands listed below In addition Appendix A contains examples which use macros extensively FIRST MACRO PURPOSE The FIRST MACRO is used to perform operations before any motion takes place This can be used to submit initialization information to the controller and prepare for the beginning of the process USAGE FIRST MACRO lt command gt lt command gt lt command gt END MACRO If FIRST MACRO is present in a drawing it will automatically execute prior to the beginning of motion A user specified macro name is not required with this command so any word directly following FIRST MACRO will generate a warning LAST_MACRO PURPOSE The LAST MACROis used to send commands after the motion sequence is complete and all other commands have been sent This is useful for shutting down the controller USAGE LAST MACRO command command command END MACRO If LAST MACRO is present in a drawing it will automatically execute after all other motion commands and macros have executed Like FIRST MACRO LAST MACRO requires no user
15. amplifiers Interconnect hardware i e ICM 1100 ICM 1900 etc DMC User Manual 1 2 2 Installation CD ROM 1 Insert Galil Software Products disk into the CD ROM drive Run CAD Cadtodmc exe from the CD ROM 2 3 Enter password for installation This should have been provided when the software was purchased 4 The InstallShield Wizard will guide you through the rest of the installation 1 3 Basic Requirements Figure 1 shows a sample CAD drawing which satisfies the minimum requirements for a successful CAD to DMC file conversion Every CAD drawing must contain each of the following text directives Directive Description SCALE m n Relates encoder counts to user units for x and y axes FIRST Defines beginning of motion path LAST Defines end of motion path CAD to DMC Chapter 1 Introduction e 1 For full descriptions of these and other commands please refer to Section 2 4 Command Reference Figure 1 A valid CAD to DMC drawing 1 4 A Step by Step Example This section takes you though the entire process 01 creating a motion control program from a CAD drawing The example demonstrates the basic requirements of the CAD to DMC program as well as more advanced features such as the use of macros Suppose you wish to apply adhesive to a part which is located on a stationary platform The adhesive applicator moves with respect to the stationary part The adhesive must be dispensed at a constant feed rate beginning at
16. bed as a sequence of arcs and lines performed with respect to the current controller location Motions can only start and stop at the endpoints of these geometry elements This precludes the use of circles and closed polygons which have no endpoints To get around this problem break circles into at least two arcs more if there are multiple start stop points and explode all polygons Another geometry type which may cause problems is the ellipse By default ellipses are translated by CAD to DMC as a series of line segments Depending on the application the resulting profile may be undesirable Exploding the ellipse will cause CAD to DMC to translate it as a series of arcs creating a smoother motion path 2 2 Association Principles What is an association Associations sometimes referred to as parent associations are a means of relating drawing elements to one another These relationships can be used to organize the drawing s information Figure 9 shows some examples of associations Associations are generally created by placing one element near another element The elements need not be of the same type For example a text element can be associated with a line element In fact the CAD to DMC translator relies heavily on this type of association TURN LIN VALVE MOVING MACRO LIGHT LASER Che W T200 END MACRO Figure 9 Association examples Association Rules Nearness The position of a text element is the p
17. e n is a number representing the tool radius in drawing units In a Macro No Association Drawing NOTE TOOL RADIUS must always be used in conjunction with TOOL SIDE EXAMPLE Figure 14 shows an application of the TOOL RADIUS command TOOL SIDE PURPOSE TOOL SIDE is used to specify on which side of the line TOOL RADIUS correction is to be performed USAGE In a Macro No Association Line The TOOL SIDE directive is placed next to a line element on the side of the tool path that the cutting tool is approaching from NOTE TOOL SIDE must always be used in conjunction with TOOL RADIUS EXAMPLE Figure 14 shows an application of the TOOL SIDE command CAD to DMC Chapter 2 Reference Section e 19 TOOL_SIDE TOOL RADIUS 0 25 SNAP 0 001 SCALE 1000 1000 COMMENT LINETYPE ALTHOUGH THE ORIGINAL DRAWING IS ONLY MADE UP DF 4 LINE SEGMENTS THE TOOL TRAJECTORY CONTAINS 4 LINE SEGMENTS AND 3 ARCS TO CONNECT THE OFFSET SEGMENTS TOGETHER THESE ARCS ARE PUT IN BY CADTODMC AUTOMATICALLY DASHED LINE SHOWS ACTUAL MOTION PATH FILE TOOLOFF3 SKD Figure 14 Use of TOOL RADIUS and TOOL SIDE commands 2 5 Order Numbers CAD drawings often contain a variety of branch points and line intersections CAD to DMC requires sequencing information at each of these intersections in order to determine the proper motion path This sequence information is provided through Order Numbers Order Numbers can be used to resolve intersections alon
18. e that the comment linetype should not be used by the elements of the drawing representing motion or your drawing will be one large comment CORNER_ANGLE PURPOSE CORNER_ANGLE is used to specify the maximum allowable rotation angle between contiguous motion segments If the angle is exceeded motion will stop between the segments USAGE CORNER_ANGLE n where n is an angle in degrees In a Macro No Association Drawing NOTE CORNER ANGLE must always be used in conjunction with CORNER MODE EXAMPLE Figure 12 shows the use of the CORNER ANGLE command With the angle specified the motion will not stop at the transition between segments 2 and 3 because the angle of rotation is only 30 degrees However if the CORNER ANGLE were specified to be 25 degrees the motion would also stop at the transition between segments 2 and 3 NOTE Angles in Figure 12 are shown for clarity and should not be included in a drawing to be translated CORNER MODE PURPOSE CORNER MODE is used to specify constant velocity motion unless a sharp transition is encountered As long as the angle of rotation between consecutive segments is less than the specified CORNER ANGLE motion will be continuous Any angle of rotation that exceeds the CORNER ANGLE will cause the motion to stop at the transition between segments USAGE In a Macro No Association Drawing NOTE CORNER MODE must always be used in conjunction with CORNER ANGLE 14 e Chapter 2 Reference Secti
19. earest the name location along the motion path STOPPING MACRO PURPOSE A STOPPING MACRO is used to perform operations between motion elements Even if the program is currently in SMOOTH MODE the motion will stop at the nearest element endpoint the macro will be performed and motion will continue USAGE STOPPING MACRO name command command command END MACRO The word STOPPING MACRO is followed by a one word user specified name which will refer to the entire macro If a name is missing or if there are any words beyond the name a warning will be issued The macro is called by placing the macro name at the desired location along the motion path The macro behavior will occur at the element endpoint nearest the name location along the motion path CAD to DMC Chapter 2 Reference Section e 13 2 4 Command Descriptions COMMENT_LINETYPE PURPOSE Sometimes it is useful in a drawing to include elements that are not related to the motion path but are helpful in relating overall part geometry to the user The COMMENT LINETYPE command allows such items to be included in the drawing without affecting motion translation USAGE COMMENT LINETYPE In a Macro Yes Association None COMMENT LINETYPE is placed in a drawing with a segment of the linetype desired for comments placed directly below This has the appearance of a legend on a map The line must be placed within a character height of the text position of the command Not
20. file can be viewed by selecting View gt DMC File and entering the appropriate file name A portion of the translated code is shown in Figure 8 Open DXF File 7 x File name Folders eteadtodme Cancel a CA 5 cadtodmc C3 dii script g dxf Network test dxf tooloff1 dxf tooloff3 dxf tooloff5 dxf Read only List files of type DXF Files Figure 6 Opening a DXF file for translation CAD to DMC Chapter Introduction e 5 ki CAD to DMC Conversion 5 01 Converting DXF file CXCADTODMCYRECTANG DXF to DMC file CACADTODMC RECTANG SEN DXF to DMC Conversion was successful Figure 7 Actual motion profile generated by CAD to DMC View DMC File REM end macro CR 500 180 0000 90 0000 2500 0500 CR 500 270 0000 30 0000 Figure 8 Translated DMC code 6 e Chapter 1 Introduction CAD to DMC Step 7 Download translated file and generate motion After the DMC file has been created you must download it to the controller and execute it The simplest way to do this is to select File gt Download File from the Galil terminal and select the appropriate file name To execute the program type XQ lt Enter gt at the terminal command line CAD to DMC Chapter 1 Introduction e 7 THIS PAGE LEFT BLANK INTENTIONALLY 8 e Chapter 1 Introduction CAD to DMC Chapter 2 Reference Section 2 1 Geometry Requirements All CAD to DMC motion is descri
21. g a path and to perform multiple cycles of sections of a drawing Order Numbers are text elements that are associated with line elements of a CAD drawing When a number is placed next to a line element it becomes associated with that element and can be used to resolve directions at intersections CAD to DMC keeps track of the current Order Number and looks for the next highest number upon reaching an intersection The motion path will always go in the direction of the next order number CAD to DMC always begins counting with the number 0 so it is a good idea to use the number at the first intersection of the drawing and increment by 1 at each subsequent intersection EXAMPLE Figure 15 shows a CAD drawing of a square with an entry line on the left and a departure line on the right CAD to DMC begins following the path at FIRST where the value of the order count is 0 Upon reaching the first intersection it sees 2 to the right and to the left Since 1 is the next highest number the motion path goes to the left After tracing the top three sides of the square CAD to DMC encounters another intersection where it turns right in the direction of the 2 The path continues along the bottom side of the square until it encounters the first intersection again At this point the current count is 2 so CAD to DMC ignores the 1 However a 3 is also present so it turns to the right again tracing the top three sides of the 20 e Chapter 2 Reference Section
22. on CAD to DMC EXAMPLE Figure 12 shows the use ofthe CORNER MODE command SCALE 1000 1000 CLIRNER CORNER ANGLE 45 Figure 12 Use of the CORNER ANGLE and CORNER MODE commands Note Angles in Figure 12 are shown for clarity and should not be included in a drawing to be translated FIRST PURPOSE FIRST indicates where the motion path begins in a drawing USAGE In a Macro No Association Line Segment The command FIRST is placed next to the endpoint of the line segment where motion is to begin The first motion CAD to DMC performs will be from this endpoint to the opposite endpoint of the segment This provides CAD to DMC with both initial position and initial direction information NOTE This command is required in every CAD drawing you wish to convert LAST PURPOSE LAST indicates where the motion path ends in the drawing USAGE In a Macro No Association Line Segment CAD to DMC Chapter 2 Reference Section e 15 The command LAST is placed next to the endpoint of the line segment where motion is to end The motion sequence will stop at the endpoint associated with LAST NOTE This command is required in every CAD drawing you wish to convert REM PURPOSE A line of text preceded by REM is considered a comment and is ignored by CAD to DMC REM can be used to document drawings and provide other descriptive information for the user USAGE REM lt comments gt In a Macro Yes Association None Note
23. osition of the lower left corner of the text when viewed as read A text element becomes associated with the nearest geometry element within one text height of the text The CAD to DMC Chapter 2 Reference Section e 9 distance between the two elements is measured differently for each geometric element type as described in the following sections An element which is near nothing is considered an orphan and will cause CAD to DMC to generate a warning message Lines The distance between a text element and a line element is the minimum distance from the line to the text Normally this is the perpendicular distance between the line and the text Figure 10 Case 1 However if a perpendicular line cannot be drawn between the line and the location point of the text the distance is measured from the text to the nearest endpoint of the line Figure 10 Case 2 LAST oi to Line Distance CASE Text to Line Distance B LAST Line Element ends here X in i CASE 2 Figure 10 Measuring text to line distances Polylines The distance from a text element to a polyline element is the perpendicular distance to the closest line segment in the polyline As with lines if a perpendicular line cannot be drawn between the two elements the distance is measured between the text element and the polyline endpoint Although composed of lines polylines remain distinct elements with only two endpoints Arcs Usually the distance between
24. that REM must be followed by a space to work properly A REM command only applies to the line of text in which it appears if several lines of text appear in a drawing each one must be preceded by REM REM statements are allowed within the body of a macro as well as throughout the drawing EXAMPLES REM PROGRAM FOR TRIMMING FLASH REM Author John Doe Date 12 31 99 RESET_ORDER PURPOSE RESET ORDER is used to reset the Order Number count back to its initial value of 0 This is useful when creating a motion path containing repeating patterns By invoking RESET ORDER it is possible to directly copy a section of a CAD drawing without changing the Order Numbers associated with the section USAGE In a Macro Yes Association Line EXAMPLE Figure 13 shows a repeating J pattern which takes advantage of the RESET ORDER command In this example the user defined macro R is used to invoke the function Alternatively it would have been possible to omit the STOPPING MACRO and to substitute RESET ORDER for R at the appropriate locations in the drawing 16 e Chapter 2 Reference Section CAD to DMC STOPPING_MACRO LINETYPE SMOOTH_MODE END MACRO REM Raise Cutter END MACRO SP 20000 k A ki PA L0000 STOPPING_MACRO LINETYPE SREING MACRI LOWER_CUTTER BGZ STOPPING MACRO R STOPPING MACRO LINETYPE RESET ORDER ite ether eremi Ay 1000 STOP MODE EGZ END MACRO LOWER_CUT
25. tion to be represented as a single continuous path with constant velocity through all segments USAGE In a Macro Yes Association Line Segment or Drawing SMOOTH_MODE can be used within a macro along a motion trajectory or all by itself If found along a motion trajectory the mode change will take effect after the endpoint of the associated element If the command is not near a geometry element it will apply to the entire drawing If the motion path contains sharp corners large accelerations will occur at the transitions which will shock the system and increase position error and accelerate wear of system components As a result SMOOTH MODE should only be used with motion paths containing smooth transitions SNAP PURPOSE The SNAP command defines the maximum distance between elements that are considered touching and permits non zero contact distances between elements USAGE SNAP n where n is a number expressed in drawing units of length In a Macro No Association Drawing The SNAP command is an assignment statement which is associated with the drawing as a whole If the SNAP command is not specified in a drawing a default value of 0 1 will be used A line segment cannot be shorter than the SNAP value specified Otherwise both ends of the segment and the endpoint of the next segment would all be within the SNAP distance and the program would be unable to determine which point is next If this occurs reduce the SNAP distance
26. urns on the dispenser LAST MACRO is executed after the motion path has been completed Figure 3 shows the implementation of these two macros MOVING MACRO OFF and MOVING MACRO ON are used to turn the dispenser on and off based on its location in the drawing Figure 4 shows the use of the MOVING MACRO s An alternate method for controlling the flow of adhesive is shown in Figure 5 LINETYPE macros are used to associate a linetype with a series of DMC commands In this example a solid line becomes associated with the SB1 command while a dashed line becomes associated with the command CAD to DMC Chapter 1 Introduction e 3 Fa B A es A RST_MACRO MXY GXY MXY Fr 2009 2000 100000 100000 LAST MACRO 0 0 BUSY AMXY END MACRD PA 2000 4000 B DOG AM eS Bae FIRST j END MACRO SCALE 1000 1000 Figure 3 Placement of FIRST LAST SCALE and basic macros LAST FIRST MACR LAST MACR HMXY CEI BGXY PA0 0 AMXY BGXY SP 2000 2000 AMXY 100000 100000 END MACR PA 2000 4000 BGXY SA a CS BELT END MACR IVING MACR D_MACR VING_MACR D_MACR

Download Pdf Manuals

image

Related Search

CAD to DMC cad to mcnp cad to dollar cad to macau money cad to macau dollar cad to dkk cad to dzd cad to mkd cad to dollar conversion cad to dwg cad to dirham cad to dxf cad to dong cad to dza

Related Contents

Kinetic Trolley – Operating Instructions:  Modecom MC-602 Energy Optical Mouse, Black  La Vanguardia  NAUTI 011-X - Nautica Zanca Sport  SD24 シリーズ 取扱説明書  Motorola, and WordSender  Automatic Washing Machine User`s manual  Installation-Op  e : node 512 / 1024 日本語取扱説明書  

Copyright © All rights reserved.
Failed to retrieve file