27
Formato P2K2 www.fomsoftware.com [email protected] Revision: 2.6.1 full Pagina 1 di 27 Protocol P2K2 Introduction A document in P2K2 format can contain information for cutting only or for cutting and machining. INDEX 1. General Introduction to the P2K2 format 2. P2K2 Structure 3. Description of the nodes 4. Example P2K2 with machinings added only as macro 5. Cutting data conventions and references 6. Machining data conventions and references 7. P2K2 example with various machining types 8. Appendix 8.1. P2K2 for sawing machines with Diamond/Planet Plus/Shadow 8.2. Cutting lines with NC only 1. General introduction to the P2K2 format The P2K2 format can contain information both for cutting and machining, For each cut, void text fields are at your disposal for label printing. The machinings can be entered as: a) “macro” b) Standard (or elementary) machinings a) As “macro”, we understand machinings or groups of machinings (millings, etc.) that are stored in the FomCam database (their names have been assigned by the user). To add a machining as “macro” means that the geometric data and the tool data of the machining are saved in the CAM; in the file only the name of the macro and the X position refered to the left tip of the piece are stored. In this case, for the integration it is necessary to create the database of macros in the FomCam. Note: A macro in FOMCAM is called “Accessory” or “Geometry”. P2K2ProtocolloIta

protocolo P2K2_2007_GB

Embed Size (px)

DESCRIPTION

manual protocolo p2k2

Citation preview

  • Formato [email protected]: 2.6.1 full

    Pagina 1 di 27

    Protocol P2K2

    Introduction

    A document in P2K2 format can contain information for cutting only or for cutting and machining.

    INDEX1. General Introduction to the P2K2 format2. P2K2 Structure3. Description of the nodes 4. Example P2K2 with machinings added only as macro 5. Cutting data conventions and references 6. Machining data conventions and references 7. P2K2 example with various machining types 8. Appendix

    8.1. P2K2 for sawing machines with Diamond/Planet Plus/Shadow8.2. Cutting lines with NC only

    1. General introduction to the P2K2 format

    The P2K2 format can contain information both for cutting and machining, For each cut, void text fields are at your disposal for label printing.

    The machinings can be entered as:a) macro b) Standard (or elementary) machinings

    a) As macro, we understand machinings or groups of machinings (millings, etc.) that are stored in the FomCam database (their names have been assigned by the user).

    To add a machining as macro means that the geometric data and the tool data of the machining are saved in the CAM; in the file only the name of the macro and the X position refered to the left tip of the piece are stored.In this case, for the integration it is necessary to create the database of macros in the FomCam.Note: A macro in FOMCAM is called Accessory or Geometry.

    P2K2ProtocolloIta

  • Formato [email protected]: 2.6.1 full

    Pagina 2 di 27

    b) The standard machinings are circular millings or drillings, rectangular millings, etc. In case of standard machinings the file contains the geometric information of the machining: form, position and tool data.Use this approach in the integration in case there already exists a database or an external Cam that contains the geometric information and the tools for the machining.

    2. The Structure of P2K2

    A document Protocollo P2K2 is an XML file that contains structured data.

    In the XML format, each piece of data is enclosed in a so-called TAG, or delimitor. As each TAGcan contain another TAG, the XML files are hierarchical, that means that they are organized in various levels.

    An xml file is structured as follows:

    - delimitator at the start of a field is < NOMECAMPO> (Ex.: )- delimitator at the end of a field < /NOMECAMPO> (Ex.: )- The delimitators must have CAPITAL LETTERS, as in the example.- The letters can not be used in the text of the fields.- decimali numbers use . For separation (ex.: 1000.3)

    The structure of the protocol file P2K2 is as follows:

    .

    ---

    ---

    ---

    ---

    P2K2ProtocolloIta

  • Formato [email protected]: 2.6.1 full

    Pagina 3 di 27

    In the description of the structure the text --- shows wether there are other nodes of the same type.

    The text indicates that this is a node without sublevels.Description:

    : obligatory tag that features the entire cutting and machining list.

    : tag that contains the Program Version number that has been used to create the file.

    this tag contains a list with all bars that the file consists of. It contains one or more tags

    - : shows the number of bars in the file that have the same code (sigla):- serie/codice/coloreinterno/coloreesterno(system/code/inner color/outer color)

    : this tag contains the data of the cutting list, includine bars and pieces and machinings. This data is to be found in the following tags:

    - : contains the tags referred to the profile bar (second level);- : contains the tags referred to the single pieces (third level).- : contains the list of the machinings (4 level)

    3. Description of the nodes

    Color significances:

    black tags are obligatory blue tags are optionalThe tags followed by can appear more than once The fields that are followed by (attributo) are the attributes of the node. They are added to the node with the delimitator .

    JOBVER node VER HEAD node HEADBODY node BODY

    VER MJ Program version number Numeric

    P2K2ProtocolloIta

  • Formato [email protected]: 2.6.1 full

    Pagina 4 di 27

    MN Revision number Numeric

    HEADPDAT node PDAT

    BODYBAR node BAR

    PDATCODE Profile code TextDICL Inner (internal) color code TextDOCL Outer (external) color code TextBQTY Number of bars in the list with this profile code

    and color Number

    BARBRAN Brand of the profile system TextSYST Profile system TextCODE Profile code TextDICL Inner color code TextDOCL Outer color code TextLEN Bar length NumericLENR Length remaining bar optional NumericH Profile height NumericMLT Reserved = 1 NumericCUT Node CUT (there mus be at least one in each

    BAR node) Node

    EXTRAINFO Optional extra information at a bar level NodeSFIDO Offcut NODE

    CUTANGL Left cutting angle NumericANGR Right cutting angle NumericAB1 Left beta cutting angle for sawing machines

    with with 2 compound angles for the inclination of the mobile head (Fom SawingMachine KEOPE)

    Numeric

    AB2 Right beta cutting angle for sawing machines with with 2 compound angles for the inclination of the mobile head (Fom

    Numeric

    P2K2ProtocolloIta

  • Formato [email protected]: 2.6.1 full

    Pagina 5 di 27

    Sawing Machine KEOPE)IL Inferior length NumericOL Superior length NumericTRML Left trimcut length NumericTRMR Right trimcut length NumericTAL Left trimcut angle NumericTAR Right trimcut angle NumericORCD Order Code TextTINA Tipology TextCSNA Customer name TextIDQUADRO Square number TextBCOD Bar code TextLBL Label Data (max. 4) Text

    MACHININGS Node MACHININGSCUT A cut node exists in case two pieces one

    next to the other are cut simultaneously but two different labels are to be generated.

    EXIT *Only for Multispindle and from version >=2.7.156.Indicate a specifical wayout for the piece.

    numeric

    AREA Numeric 1,2 sets if the part is to be executed on single or double area.

    Only for 4/5 axis cnc center. If not specified machine default settings areused.

    Numeric

    STOP 1 Left stop 2 right stop, 4 Automatic , 5 Ask

    Only for 4/5 axis cnc center. if not specified the machine default settings are used.

    Numeric

    TROLLEY Trolley for automatic warehouse Numeric

    SLOT Slot (in the trolley) numeric

    FORBIDDENSPACES Forbidden spaces for vises

    EXTRAINFO.. Optional information at cut level Node

    P2K2ProtocolloIta

  • Formato [email protected]: 2.6.1 full

    Pagina 6 di 27

    MACHININGSMACHINING Node MACHINING

    MACHININGWCODE (attributo) Machining code or name TextVAR1 (attributo) Parameter 1 machining NumericVAR2 (attributo) Parameter 2 machining NumericVAR3 (attributo) Parameter 3 machining NumericVAR4 (attributo) Parameter 4 machining NumericVERPERC (attributo) direction: 1 clockwise, 0 counterclockwise NumericANGLE (attributo) Rotation angle perpendicular machining

    face Numeric

    OFFSET (attributo) Offset x NumericOFSSETY (attributo) Offset y NumericOFFSETZ (attributo) Offset z NumericFACE (attributo) Face where machining is applied NumericP1X (attributo) Coordinates point 1 machining face NumericP1Y (attributo) NumericP1Z (attributo) NumericP2X (attributo) Coordinates point 2 machining face NumericP2Y (attributo) NumericP2Z (attributo) NumericEMPTYGROVE (attributo)

    Empty groove: 0 no, 1 yes Numeric

    CODUTENSILE (attributo)

    Milling tool Text

    CILINLAV (attributo) Working cylinder for milling NumericOFFSETFIN (attributo) Finishing Offset NumericCODUTEFIN (attributo) Code for Finishing Tool (-1: no finishing) Numeric

    P2K2ProtocolloIta

  • Formato [email protected]: 2.6.1 full

    Pagina 7 di 27

    CILLAVFIN (attributo)

    Finishing cylinder Numeric

    POSDEF (attributo) Uplaod Position in the machine NumericDESCRIPTION (attributo)

    Description Text

    SGRAVANZ (attributo)

    Milling feed rate Numeric

    SGRUSCITA (attributo)

    Milling exit rate Numeric

    SRGLAV (attributo) Milling rate NumericSGRROT (attributo) Milling Rotation rate NumericFINAVANZ (attributo) Finishing feed rate NumericFINUSCITA (attributo)

    Finishing exit rate Numeric

    FINLAV (attributo) Finishing rate NumericFINROT (attributo) Finishing rotation rate NumericVARPROFSGR (attributo)

    Milling Depth variation. Moves the mill in a perpendicular direction to the working plane at the given value. Avoids tool consumption using a larger part of the blade.

    Numeric

    VARPROFFIN (attributo)

    Depth variation in finishing. Numeric

    IDCATEGORY (attributo)

    Group of the machining Numeric

    EXECUTIONLEVEL (attributo)

    Priority inside the group Numeric

    CLAMPNEAR Clamp near machining in a multispindle machine.

    Numeric

    STARTCONNECTION 0 None, 1 Linear, 2 ArcOnly for linear mill, circular mill and rectangular mill.

    Numeric

    ENDCONNECTION 0 None, 1 Linear, 2 ArcOnly for linear mill, circular mill and rectangular mill

    Numeric

    PIANI Machining depth planes

    FORBIDDENSPACESFORBIDDENSPACE Node FORBIDDENSPACE

    FORBIDDENSPACE

    P2K2ProtocolloIta

  • Formato [email protected]: 2.6.1 full

    Pagina 8 di 27

    START (attributo) Start forbidden space (refered to end of the piece)

    Numeric

    END (attributo) End forbidden space (refered to end of the piece)

    Numeric

    CLAMPSNode Clamps

    PIANOINDEX Number of the clamp Numeric

    POSITION Position of the clamp Numeric

    PIANIPIANO Node PLANE

    PIANOSTART (attribute)

    Initial Depth of work plane Numeric

    THICK (attribute)

    Work plane thickness Numeric

    EXTRAINFOINFONAME(attribute)

    name Text

    INFOVALUE(attribute)

    value Text

    INFODESCRIPTION(attribute)

    Description Text

    SFRIDOIDXPEZZO Offcut id TextTROLLEY TROLLEY Trolley for

    automatic warehouse

    SLOT SLOT Slot

    P2K2ProtocolloIta

  • Formato [email protected]: 2.6.1 full

    Pagina 9 di 27

    For the numeric fields the decimal separator is .For the text fields you may enter maximum 255 letters.

    4. Example of a P2K2 format with machinings as macrosThis example shows a case with 1 profile code containing 1 bar. The bar consists of 1 piece that features 2 machinings. The machinings have been added as macros. A macro is a machining that has been stored in the machining database of FomCam.

    - /*File Start*/

    - /*Program version that has generated the file/

    1 /* First group of the version number (Version = MJ.MN)*/

    0 /*Second group of the version number*/ - /*Heading contains the list of the bars that will be used*/

    -

    HP110S23 /* profile code*/ GRZ /* inner color code*/ GRZ /* outer color code*/ 1 /* bar number*/

    - /*Section start*/

    /*bar data*/

    XXXXXXX /* brand*/ XXXXXXX /* system*/ HP110S23 /* profile code*/ GRZ /* inner color code */ GRZ /* outer color code */ 6000 /* length of the bar*/ 0 /*remaining length of the bar */ 110 /* cut thickness */ 1 /* number of bars ha sto be=1*/

    - /*dati di un taglio*/

    45 /* left angle*/ 45 /* right angle*/

    90 /*left beta angle (for sawing machines with 2

    compound angles for the inclination of the mobile head: example Fom Sawing Machine KEOPE)

    */

    90 /* right beta angle*/

    2731.5 /* inferior length */ 2511.3 /* superior length */

    /*machinings*/

    ...

    P2K2ProtocolloIta

  • Formato [email protected]: 2.6.1 full

    Pagina 10 di 27

    ABC123 /* Barcode */ informazioni1 /* Label Data */

    informazioni2 /* Label Data */

    informazioni3 /* Label Data*/

    informazioni4 /* Label Data */

    P2K2ProtocolloIta

  • Formato [email protected]: 2.6.1 full

    Pagina 11 di 27

    5. Cutting Data conventions and references

    Conventions for angle dimensions and cutting angles

    P2K2ProtocolloIta

  • Formato [email protected]: 2.6.1 full

    Pagina 12 di 27

    Conventions for measurements and trimcut angles

    P2K2ProtocolloIta

  • Formato [email protected]: 2.6.1 full

    Pagina 13 di 27

    6 Machining Data. Conventions and references

    A machining is always refered to a profile face. The x,y,x dimensions of the machining are refered to the origin of the face. Beyond the standard faces of a profile, which are those of a parallelepiped, a profile may also feature oblique faces. The oblique faces are identified by two points.

    Number of machining faces1 Upper2 front (considering the position of the person who loads the piece) 3 Rear (back)4 Lower5 Oblique6 left7 right99 none

    P2K2ProtocolloIta

    Poste

    ANTERIOREFRONT

    Left View

    Local directions/

    POSTERIOREREAR

    DIREZIONI LOCALILOCAL DIRECTIONS

    VISTA SINISTRALEFT VIEW

  • Formato [email protected]: 2.6.1 full

    Pagina 14 di 27

    Machining codes

    Codice Descrizione Var1 Var2 Var3 Var4#0 Circular mill or drill Radius#1 Rectangular mill Height Length Radius

    (0 if notused)

    #2 Linear mill Height Length#3 Key mill Radius (major) Length Height

    (of linear milling)

    #4 Arc Radius Initial Angle (degrees)

    Final Angle(degrees)

    #5 Disk mill Height Width Disk Diameter

    #99#CustomeGeometryFileName

    Custom machining from file Nome della lavorazione/Machining name stands for the nameof the machining. The custom machining Folderof FomCam has to contain an XML file withthe same name.

    Use offset

    1 Use offset-1 Do not use offset

    Offset Direction 1 =Left-1=Right

    AccessoryName Enters the accessory with

    P2K2ProtocolloIta

  • Formato [email protected]: 2.6.1 full

    Pagina 15 di 27

    the specified name !GeometryName Enters the geometry with

    the specified name at the given dimensions and face.

    ? GeometryName Enters a geometry specifying the face and the x,y dimensions.

    @PieceName Adds all machinings of the pieces program at the specified x and y.

    Oblique Faces

    In order to add a machining on an oblique face, first define the tools position and direction. The vectors P1,P2 show the direction of the local Y1 axis, X1 is in the same direction as the machines X axis, Z1 is the vector product of X1,Y1. The coordinate (0,0,0) is in P1.

    Forbidden areas for vises

    P2K2ProtocolloIta

    X

    Y

    Z

    Y1

    X1

    Z1

    P1 P2

  • Formato [email protected]: 2.6.1 full

    Pagina 16 di 27

    The forbidden spaces for vises on the left and the right have been created in order to avoid the positioning of vises at the outer ends of a piece. The example shows pieces cut a a 45 degrees angle. The forbidden space is refered to the vises center.

    7 Example of P2K2 file with various kinds of machinings

    10

    900074GRZGRZ1

    DEMOSERIE DEMO900074GRZGRZ1

    1909020002000qwerty

    P2K2ProtocolloIta

  • Formato [email protected]: 2.6.1 full

    Pagina 17 di 27

    P2K2ProtocolloIta

  • Formato [email protected]: 2.6.1 full

    Pagina 18 di 27

    200000110

    P2K2ProtocolloIta

  • Formato [email protected]: 2.6.1 full

    Pagina 19 di 27

    P2K2ProtocolloIta

  • Formato [email protected]: 2.6.1 full

    Pagina 20 di 27

    P2K2ProtocolloIta

  • Formato [email protected]: 2.6.1 full

    Pagina 21 di 27

    8 Appendix

    8.1 P2K2 for Diamond/Planet Plus/ShadowFor the NC sawing machines Planet Plus/Shadow/Diamond, the file format has to contain cutting information only, no machining information. The convention used for trimcuts is different. At the sides of the tags the length limits for the fields are shown (for the visualization of the CN on display and for the label print-outs). Fields that are longer than these values are accepted but will not be printed entirely.

    The following example of an XML file refered to a hypothetical purchase order. The information contained in each tag is shown on the right.

    (Document format) (Start section) (Start section)

    1 /* First digit of the program version number that generates the cutting list */0 /*Second digit of the program version number that generates the cutting list cifra */

    (Inizio sezione)

    HP110S23 /* Profile code */GRZ /* inner color code */GRZ /* outer color code */1 /* quantity of bars per profile */

    (Section start)

    (Bar Data section start)HP110S23 /* Profile code */GRZ /* inner color code */GRZ /* outer color code */ 6000 /* bar length */0 /* remaining bar length */100 /* profile height or width */1 /* number of bars with this profile */

    /* (in general = 1) */ (Inizio sezione Dati taglio)

    45 /* left head angle */45 /* right head angle */2500 /* inner length */2700 /* outer length */10 /* trimcut: left side */ (2)10 /* trimcut: right side */ (2)

    P2K2ProtocolloIta

    D-14

    D-10

    D-10

    D-3

    D-10

    D-7

    D-7

    D-5

    D-2

    D-6

    D-6

    D-7

    D-7

  • Formato [email protected]: 2.6.1 full

    Pagina 22 di 27

    90 /* trimcut: left angle */ (3)90 /* trimcut: right angle */ (3)ABC123 /* bar code */ informazioni1 /* Label data (user-set) */ informazioni2 /* Label data ( ) */ informazioni3 /* Label data ( ) */ informazioni4 /* Label data ( ) */(4)

    NOTES:

    (2) Trimcut value codification:

    Master Cut

    Shadow - Planet Plus - Diamond

    (3) For Shadow, Planet Plus e Diamond machines, the only angle is 90

    (4) In cutting lines, it may contain the number of the disload ways, for example #2#:the two # signs before and after the number are obligatory.

    It is possible to enter both and or just one or the other.If the sawing machine has a profile height reader, the outer dimension is used (); if not it will use the inner dimension ().

    : indicates for example that the field can have a maximum length of 7 digits.

    /*XXXXXX */: obligatory tag.

    P2K2ProtocolloIta

    D-7

    D-13

    D-13

    D-13

    D-13

  • Formato [email protected]: 2.6.1 full

    Pagina 23 di 27

    /*XXXXXX */: optional tag.

    The limitations on the maximum dimensions (maximum number of digits) of a field are valid ONLY for sawing machines with Diamond and Planet Plus equipment.

    IMPORTANT!It is obligatory to call the JOB file for Diamond and Planet Plus JOB.xml

    IMPORTANT!A JOB.xml for Diamond and Planet Plus may contain a maximum 2450 cuts and/or 150 different profile codes. For jobs with a higher number of cuts or codes, it is necessary to create more than one file with the same file name on different floppy disks.

    Example

    The following example shows an xml file that consists of two bars. Two pieces are cut from both bars.In theory, an xml file can consist of a single program line, but the convention is to represent it with more program lines going inwards. After each tag that indicates the beginning of a section, the children tags in the next line are moved towards the right side. A tag that is part of the same level always appears in the next line, but it is aligned with the previous tag (example: the tags of the level, such as , etc. are all aligned).

    10

    HP110S23GRZGRZ2

    XXXXXXXXXXXXXXHP110S23GRZGRZ60007001101

    4545

    P2K2ProtocolloIta

  • Formato [email protected]: 2.6.1 full

    Pagina 24 di 27

    2731.32511.310109090ABC123informazioni1informazioni2informazioni3informazioni4

    90902546.92546.920204545ABC123informazioni5informazioni6informazioni7informazioni8

    XXXXXXXXXXXXXXHP110S23GRZGRZ50001600501

    606015601854.7000 0 GRE62Ginformazioni9informazioni10informazioni11informazioni12

    7575

    P2K2ProtocolloIta

  • Formato [email protected]: 2.6.1 full

    Pagina 25 di 27

    13821400.530301010DHU223informazioni13informazioni14informazioni15informazioni16

    Examples of label print-outs from the FOM Industrie software

    P2K2ProtocolloIta

    1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5

    1 ) A B C D 1 2 3 4 5 6 7 8 9 02 ) R A L 1 2 3 4 5 6 7 3 ) R A L 7 6 5 4 3 2 1 4 ) 2 5 0 0 . 0 6 ) D E S C R I E L E M E N T O 5 ) 2 6 4 0 . 0 7 ) D E S C R I Z I L I B E R A8 ) D E S C R T I P O L O G I A9 ) D E S C R I C O M M E S S A

    1234567891011

    Cut label (example)The contents of the fields are random.The

    length is the maximum length for this label.

    Bar offcut label (example)This label is printed on operator request

    using a function button.

    1 ) A B C D 1 2 3 4 5 6 7 8 9 0

    2 ) R A L 1 2 3 4 5 6 7 3 ) R A L 7 6 5 4 3 2 1

    4 a ) 1 5 2 0 . 0

    1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5

    1234567891011

  • Formato [email protected]: 2.6.1 full

    Pagina 26 di 27

    Example of a Planet Plus or Diamond screen showing a job file

    The names of the tag in the job.xml file are bold or underlined .

    Attention!The linear dimensions of the following example are in inches.

    Sigla:VX123456789012

    Colore1Rossoscuro

    Colore2 Verdescuro

    Pos3

    Lb:255.990 Rb:105.400 Ut:150.590 Nb: 20Misura 1aT Angoli 2aT SP Info

    XX>ooo

    15.42059.230 80.120 90.560102.780135.340

    135.00-135.00 45.00- 45.00 90.00- 45.00 45.00- 45.00 45.00-135.00 90.00- 90.00

    NNSSNNNNSNNN

    Finestra123456

    PaoloLuigi1234

    MontanteDestro

    Mb: 1 H:9.999 V:9.999 05 Abcdefghil

    P2K2ProtocolloIta

    Rb Remaining bar LENRLb Bar Length

    LEN

    Ut used bar(length minus

    offcut)

    Nb Bar amount BQTY

    Info Info Column

    Pointer

    Dimensions for execution

    Type LBL (1)

    Job LBL (2)

    D. free LBL (4)

    D.Element LBL (3)

    Mb Multibar quantity MLT

    SP trimcutsN=No S=Yes

    H Profile height H

    V Paint thickness

    Executed bars meter

    Executed dimensions

    Pos Profile position in the machine Code

    POS

    Description of the numbered fields (also refered to theXML file tags)

    Profile code (14 digits) Tag CODEInner color (10 digits) Tag DICLOuter color (10 digits) Tag DOCLInner piece dimension (7 digits) Tag IL4a) offcut dimension (7 digits) Tag LENR1) Outer piece dimension (7 digits) Tag OL2) Element description (14 digits) 3rdTag LBL3) Free descripition (10 digits) 4thTag LBL4) Typology description (14 digits) first Tag LBL5) Job description (14 digits) Second Tag LBL

  • Formato [email protected]: 2.6.1 full

    Pagina 27 di 27

    8.2 Cutting lines with numeric control onlyFor cutting lines with numeric control only and more than one download ways, the fourth label field indicates the download way that is to be used for this piece.

    8.3 Cutting and machining lines for pvcIn this case the part is cut on a cutting line with ProCut and then feed to the machining line with FomCam. For cutting and machining lines for pvc the barcode information is mandatory.The custom label information can be up to 8.One or more of the label information can be used to print an image of the profile in machining position

    8.3.1 Printing an ImageIn the label definition a field can be defined as an image. The label information is the path to the image to be printed.Path can be relative or absolute.

    Relative path is inserted as by this examples:

    $filepath$-->From the input file path$archivepath$-->From the base archive path

    8.3.2 Screw insertion tool

    The screw insertion tool is considered as a drilling tool, but the y position for the screw insertion can only be selected according to a value table defined for each tool since the screw insertion tool as only fixed positions.

    P2K2ProtocolloIta