1、Designation: D6959 08Standard Practice forData Exchange Format for Sewn Product Plotting Devices1This standard is issued under the fixed designation D6959; the number immediately following the designation indicates the year oforiginal adoption or, in the case of revision, the year of last revision.
2、A number in parentheses indicates the year of last reapproval. Asuperscript epsilon () indicates an editorial change since the last revision or reapproval.1. Scope1.1 This practice describes a data format for transferringinformation from a sewn product computer aided designsoftware program to a devi
3、ce that produces physical output,typically in the form of a printed or drawn image on paper.1.2 This practice is based on a subset of the Hewlett PackardGraphics Language HPGL/2. Supported syntax and limitationsare listed in 7.2. Unsupported syntax is listed in X1.1.1.3 This practice only supports X
4、-Y vector data and a limitedset of additional functions. No provision is made to supportbitmap/raster data used in applications like inkjet printing.1.4 This practice supports a single system of units, an imagefixed at 100 % scale and 1:1 aspect ratio. Scaling and customunit systems are not supporte
5、d.1.5 This practice does not support curve interpolation ordefinitions. All curves are represented by discrete vectors(stroked) and are dependent on the resolution of the CADsoftware.1.6 This practice requires that all coordinates are absolute,not relative, as defined in the HPGL/2 reference.1.7 Thi
6、s practice only supports positive coordinates that aremeasured from a single X-Y origin point with coordinates 0,0.1.8 This practice only supports fixed width fonts. Variablewidth fonts are not supported.1.9 This practice intends to transfer a static image with noprovision for editing.1.10 This prac
7、tice assumes monochromatic output. It doesnot support implied output colors.1.11 This practice imposes no limits on the width or lengthof the plot data. Physical limitations imposed by the hardwareand their effects on the output are the responsibility of thehardware manufacturer.1.12 This practice d
8、oes not support frame advance com-mands or any methods that insert multiple origin points orfloating coordinate systems.1.13 This practice limits the plot file to contain a singleblock of data demarked by a compatible header and terminator.Multiple blocks of data in a single file are not allowed.1.1
9、4 The intended application of this practice is limited tothe class of output devices found in the sewn product industriesthat produce apparel, textiles, upholstery, and others that usesoft or semi-rigid materials.1.15 This standard does not purport to address all of thesafety concerns, if any, assoc
10、iated with its use. It is theresponsibility of the user of this standard to establish appro-priate safety and health practices and determine the applica-bility of regulatory limitations prior to use.2. Referenced Documents2.1 ASTM Standards:2D6963 Terminology Relating to Sewn Products Automation3. T
11、erminology3.1 Definitions:For definitions used in this practice, seeTerminology D6963.4. Summary of Practice4.1 Plot data are organized to allow a parsing algorithm torecognize adherence to the ASTM format then are written as adata block into a computer file.4.1.1 A specific group of commands are re
12、quired at thebeginning of the data block, called a header.4.2 Plot data follow a subset of the HPGL/2 ASCII lan-guage.4.2.1 The practice specifies syntactical and parametric con-straints to limit ambiguity.4.2.2 Basic HPGL formatting is supported. AdvancedHPGL functions are beyond the scope of the p
13、ractice.5. Significance and Use5.1 This practice provides a common format that allows acomputer design system to generate data that an output devicecan accurately reproduce independent of the hardware manu-facturer.1This practice is under the jurisdiction ofASTM Committee D13 on Textiles andis the d
14、irect responsibility of Subcommittee D13.66 on Sewn Product Automation.Current edition approved July 1, 2008. Published August 2008. Originallyapproved in 2003. Last previous edition approved in 2003 as D6959 03. DOI:10.1520/D6959-08.2For referenced ASTM standards, visit the ASTM website, www.astm.o
15、rg, orcontact ASTM Customer Service at serviceastm.org. For Annual Book of ASTMStandards volume information, refer to the standards Document Summary page onthe ASTM website.Copyright ASTM International, 100 Barr Harbor Drive, PO Box C700, West Conshohocken, PA 19428-2959. United StatesNOTICE: This s
16、tandard has either been superseded and replaced by a new version or withdrawn.Contact ASTM International (www.astm.org) for the latest information16. Plot File6.1 Plot data are written in data blocks of ASCII characters,one data block per computer file.6.2 Data blocks are made up of commands.6.2.1 E
17、ach command is a two-letter sequence (see 7) alwayswritten in CAPITAL letters.6.2.2 An instruction and its associated ed parameters (ifrequired) are terminated by the semi-colon (;) terminator. Otherterminators are not supported that is mnemonic, , or.6.3 Some commands are followed by parameters.6.3
18、.1 Parameters immediately follow the command with noseparating space and come before the command terminator.6.3.2 Multiple parameters are separated by a comma (,).Other separators are not supported that is blank space, etc.Strings of coordinates are not allowed; that is, PDX,Y,X,Y,X,Y.6.4 Blocks of
19、data that adhere to this practice begin and endin a specific way.6.4.1 Blocks begin with specific commands in a definedorder, commonly called a header, as follows (information inbrackets, , are variable):IN; CO “ASTMXXXXX-XX”; CO “Author: AuthorName”; CO “Creation Date: DD-MM-YYYY”; CO “Cre-ation Ti
20、me: HH-MM on a 24 hour time scale”; PA;DTETX,1; LM0; All subsequent plot file data follow thisheader6.4.2 Blocks are terminated with the ASCII file separatorcharacter, FS (decimal 28).6.5 All coordinate data use the HPGL/2 default plotter-unitsystem.6.5.1 1 plotter-unit = 0.025 millimeter (mm)6.5.2
21、40 plotter-units=1mm6.5.3 1016 plotter-units = 1 inch (in.)6.5.4 3.39 plotter-units = 1 dot at 300 dots per in. (dpi)7. Syntax7.1 Syntax commands are used to govern interpretation offormatted data. The following is a list of the supported syntaxand a brief description. Detailed summaries of the comm
22、andsare outlined in 7.2. HPGL/2 commands not listed below are notsupported by the practice and are documented in Appendix X1.7.1.1 COComments,7.1.2 DIAbsolute Direction,7.1.3 DTDefine Label Terminator,7.1.4 INInitialize,7.1.5 LBLabel,7.1.6 LMLabel Mode,7.1.7 LTLine Type,7.1.8 PAPlot Absolute,7.1.9 P
23、DPen Down,7.1.10 PUPen Up,7.1.11 SIAbsolute character Size, and7.1.12 SPSelect Pen.7.2 The following descriptions outline the implementationof HPGL/2 syntax commands allowed by this practice. Unlessotherwise noted, usage exactly follows the specification de-scribed in the agreed HPGL/2 reference.7.2
24、.1 COComments. Parameters between quotes are ig-nored by the output device. This practice requires four sequen-tial CO commands containing specific text as header data.These must immediately follow the IN; and precede the PA;syntax at the beginning of the file and use the format thatfollows. Informa
25、tion in brackets, , are variable. Example:CO “ASTMXXXXX-XX”; CO “Author: Author Name”;CO “Creation Date: DD-MM-YYYY”; CO “Creation Time:HH-MM on a 24 hour time scale”;7.2.2 DIAbsolute Direction. Specifies the direction char-acters in a label are drawn. In this practice, DI syntax onlyaffects usage o
26、f LB and SI. Default values are DI1,0. Example:DI1,0;.Result: defines label direction as horizontal, the default forthis practice.7.2.3 DTDefine Label Terminator (header only). Indicatesthe end of a text string associated with an LB command. Thispractice requires a single DT command near the end of
27、theheader immediately following the PA syntax. The requiredarguments for DT are ETX (decimal 03) and mode 1. These arethe only allowed parameters. No other instances of DT areallowed. Example: PA;DTETX,1;Result: defines the label terminator as ETX (decimal 03).Mode “1” indicates that this character
28、is not printed.7.2.4 INInitialize (header only). Resets the configurationof the output device to defaults and raises the logical pen,equivalent to a PU; syntax command. Also indicates thebeginning of a plot file conforming to this practice and isalways the first syntax command in the header. No othe
29、rinstances of IN are allowed.7.2.5 LBLabel. Prints the subsequent text string using thecurrently defined font. Requires the label terminator, ETX, atthe end of the text string, as defined by the DT commandincluded in the header. In this practice, LB syntax is onlyaffected by the DT, LM and SI syntax
30、. Example:LBSM-FrontETX;Result: prints “SM-Front” at the current pen position.7.2.6 LMLabel Mode (header only). Determines whetherthe LB command interprets characters in 8 or 16 bit segments.This practice requires a single LM command at the end of theheader immediately following the DT syntax. The r
31、equiredargument for LM is 0 (8-bit mode). This is the only allowedparameter. No other instances of LM are allowed. Example: DTETX,1;LM0;Result: 8-bit mode, each byte is a character.7.2.7 LTLine Type. Determines the pattern of the drawnline. LT is allowed in two forms. LT; creates a solid line (thede
32、fault line type). Non-solid line types are available only byusing LT with three required parameters; line_type, pattern_length (always in millimeters), and mode (always 1).Thispractice only supports line types +2 through -2 (including 0) asspecified in the HPGL/2 reference. Unsupported line typesreq
33、uire stroked equivalents. The line type is used until asubsequent LT is encountered. In this practice, LT only affectsthe PD command. Examples:D6959 082LT;Result: all subsequent lines drawn with the PD command aresolid. This is the default line type.LT2,3,1;Result: all subsequent lines drawn with th
34、e PD command usepattern #2, a dashed line comprised of segments 1.5 mm longseparated by 1.5 mm spaces (3 mm total). The line type is useduntil an IN or LT is encountered.7.2.8 PAPlot Absolute (header only). Establishes absoluteplotting. Do not use PA with parameters. This practice requiresa single P
35、A command near the end of the header immediatelyfollowing the last CO and before the DI syntax. No otherinstances of PA are allowed. Example:”;PA;DT7.2.9 PDPen Down. Lowers the pen and/or begins a linesegment. Parameters are X and Y coordinate data, separated bya comma, that adhere to the unit syste
36、m defined earlier in thispractice. Strings of coordinates are not allowed that is PDX,Y,X,Y,X,Y;. In this practice, PD is affected by the LT syntax.Example:PD1016,2032;Result: Puts the logical pen down and moves from thecurrent position to X coordinate 1016 and Y coordinate 2032 ina straight line.7.
37、2.10 PUPen Up. Raises the logical pen and/or ends aline segment. Parameters are X and Y coordinate data, sepa-rated by a comma, that adhere to the unit system defined earlierin this practice. Strings of coordinates are not allowed that isPUX,Y,X,Y,X,Y;. Example:PU2032,1016;Result: Raises the logical
38、 pen and moves from the currentposition to X coordinate 2032 and Y coordinate 1016 in astraight line.7.2.11 SIAbsolute character Size. Specifies the size ofcharacters in centimeters (cm). Accepts two parameters, widthand height, separated by a comma. Changes to SI remain ineffect until a subsequent
39、SI is encountered. In this practice, SIaffects the DI and LB commands. Default values are SI0.285,0.375. Example:SI2,1;Result: subsequent characters are 2 cm wide and 1 cm high.7.2.12 SPSelect Pen. Defines which pen is used for allsubsequent commands. Changes to SP remain in effect until asubsequent
40、 SP is encountered. In this practice, SP affects PDand LB. Different tools are also supported. Only the parameterslisted below are accepted. If a specified tool is not supported bythe output device, the default tool is used.SP0 (equivalent to SP;) No PenSP1Pen (default)SP9KnifeSP17DrillSP25PunchExam
41、ple:SP1;Result: Selects a pen for all subsequent drawing.8. Keywords8.1 apparel; HPGL; marker; plot file; plotter; printer; sewngoods; sewn product; upholstery; vector dataAPPENDIXES(Nonmandatory Information)X1. UNSUPPORTED HPGL/2 SYNTAXX1.1 This appendix describes standard HPGL/2 syntax thatis not
42、supported by this practice.X1.1.1 AAArc Absolute,X1.1.2 ACAnchor Corner,X1.1.3 ADAlternate Font Definition,X1.1.4 ARArc Relative,X1.1.5 ATAbsolute Arc Three Point,X1.1.6 BPBegin Plot,X1.1.7 BRBezier Relative,X1.1.8 BZBezier Absolute,X1.1.9 CFCharacter Fill Mode,X1.1.10 CICircle,X1.1.11 CPCharacter P
43、lot,X1.1.12 CRSet Color Range for Relative Data,X1.1.13 CTChord Tolerance,X1.1.14 DCDigitize Clear,X1.1.15 DFDefaults,X1.1.16 DLDownload character,X1.1.17 DPDigitize Point,X1.1.18 DRRelative Direction,X1.1.19 DVDefine Variable Text Path,X1.1.20 EAEdge rectangle Absolute,X1.1.21 ECEnable Cutter,X1.1.
44、22 EPEdge Polygon,X1.1.23 EREdge Rectangle Relative,X1.1.24 ESExtra Space,X1.1.25 EWEdge Wedge,X1.1.26 FIPrimary Font Selection by ID,X1.1.27 FNSecondary Font Selection by ID,X1.1.28 FPFill Polygon,D6959 083X1.1.29 FRFrame advance,X1.1.30 FTFill Type,X1.1.31 IPInput Points,X1.1.32 IRInput relative,X
45、1.1.33 IWInput Window,X1.1.34 LALine Attributes,X1.1.35 LOLabel Origin,X1.1.36 MCMerge Control,X1.1.37 MGMessage,X1.1.38 MTMedia Type,X1.1.39 NPNumber of Pens,X1.1.40 NRNot Ready,X1.1.41 ODOutput Digitized point,X1.1.42 OEOutput Error,X1.1.43 OHOutput Hard Clip Limits,X1.1.44 OIOutput Identification
46、,X1.1.45 OPOutput P1, P2,X1.1.46 OSOutput Status,X1.1.47 PCPen Color Assignment,X1.1.48 PEPolyline Encoded,X1.1.49 PGPage advance,X1.1.50 PMPolygon Mode,X1.1.51 PPPixel Placement,X1.1.52 PRPlot Relative,X1.1.53 PSPlot Size,X1.1.54 PWPen Width,X1.1.55 QLQuality Level,X1.1.56 RAFill Rectangle Absolute
47、,X1.1.57 RFRaster Fill Definition,X1.1.58 RORotate Coordinate System,X1.1.59 RPReplot,X1.1.60 RRFill Rectangle Relative,X1.1.61 RTRelative Arc Three Point,X1.1.62 SASelect Alternate font,X1.1.63 SBScalable or Bitmap Fonts,X1.1.64 SCScale,X1.1.65 SDStandard Font Definition,X1.1.66 SLCharacter Slant,X
48、1.1.67 SMSymbol Mode,X1.1.68 SRRelative character Size,X1.1.69 SSSelect Standard font,X1.1.70 STSort,X1.1.71 SVScreened Vectors,X1.1.72 TDTransparent Data,X1.1.73 TRTransparency Mode,X1.1.74 ULUser Defined Line Type,X1.1.75 VSVelocity Select,X1.1.76 WGFill Wedge, andX1.1.77 WUPen Width Unit Selectio
49、n.X2. SAMPLE PLOT FILE COMPLIANT WITH ASTM D6959-08X2.1 The following example is a plot file in compliancewith theASTM D695908 practice. It will render a 36 by 40 in.box with an origin at 0,0.X2.1.1 Example:IN; CO “ASTM D695908”; CO “Author: John Doe”; CO“Creation Date: 01-01-2008”; CO “Creation Time: 16-34”; PA;DTETX, 1; LM0; PU0,0; PD36576, 0; PD36576 ,40640; PD0,40640; PD0,0; FSASTM International takes no position
copyright@ 2008-2019 麦多课文库(www.mydoc123.com)网站版权所有
备案/许可证编号:苏ICP备17064731号-1