Apparel Software

Powered by Blogger.

Overview of the MicroMark to AccuMark Batch Conversion

Overview of the MicroMark to AccuMark Batch Conversion

MicroMark to AccuMark Batch

MmAmBatch is a program that will convert MicroMark batch files into the Accumark system and process them in the Accumark Batch program automatically. It will process Mark, Draw and Creat files created in the MicroMark system. When processing Mark files it is important to add the Accumark tables that are needed. With Mark, Draw and Creat files they will all need a file that instructs the program which storage area to access in Accumark. We handle both situations with supplemental text files that contain the information needed.

You do not need a special license entry to use this program but you do need marking permitted to get Batch activated.

Overview Flowchart:

1. Mark, Draw, or Cut Files get merged with OrderSettings.txt into a CSV format in an XML file created by the MmAmBatch program.

2. MarkJobSettings.txt values are added to XML for later Batch processing

3. The XMLBatchServer searches the Watch directory (Program Files/Gerber Technology/Accumark V8/MmAmBatch)

4. XMLserver processes the XML file

a. CSVImport will create an order editor that is stored in a storage area based on the batch parameter table called in the MarkJobSettings.txt. The draw and cut files do not need this information and this step will be skipped for these types of batch files.

b. AMsubmit will submit this order with the rest of the *JobSettings.txt values to the Accumark Batch program.

c. Batch will then orderload a marker, plot, and cut based on what is selected in the batch parameter table used.

d. The XML file is put into Archive folder after successful processing.

Installation of MmAmBatch program:

There is a separate installation on the AccuMark CD named MmAmBatch install. It will load the XMLserver program into the start menu to begin automatically after you restart the computer. It will also install sample files for the procedures below as well in C:\userroot\batch.

Running MicroMark to Accumark Batch for a Mark Request:

1. Double click on the Batch icon from the Launch Pad and update the P-Batch parameter table for processing markers.

1. Select the Batch icon on the Launch Pad

2. In the Batch program select File/Open and select the P-batch table.

3. Change the Plotter Queue name to your plotter using the lookup table.

4. Change the Export Directory to be a folder for your cut data.

5. Clear the Annotation Library field

6. Set Marker Method to ‘Auto’.

7. Deselect the batch option ‘do not submit plot data to plotter’.

8. File Save to save as same name of P-Batch

2. The C:Userroot\Batch folder contains all the files needed to go through this exercise. This sample MicroMark mark batch file, testmrkr.mrk will use data in C: Data70 for this example.

Note: must have Semi-colon as last line per request, tokens are separated by a space or new line, the MK name can be on the same line as ‘Mark”.

3. The OrderSettings.txt will add the information that is not in a mark file that AccuMark will need. This table should have laylimits, annotation, and notch table names. There could be many combinations of this table. No commented out lines are allowed, however. If the block/buffer table is specified in the model editor, then this information would not be added to this file. All the choices of options are in a chart at the end of this document. The laylimits associated to model names will control the piece behavior of that model, yet there still must be a laylimits in this file to determine the fabric spread type of the marker.

5. The MarkJobSettings.txt file instructs the MmAmBatch program to the batch parameter table that is to be used during the processing. This table also tells the program which storage area to send the order editor it creates to as well as how to process the marker through Batch processing. All the values in the batch parameter table will be used, but this table could also override some of the batch parameter table choices if desired. A chart at the end of this document lists which values can be changed. No commented out lines are allowed, however.

6. A batch file, TestMrkr.bat is provided to work with. This will call the convert program with the MicroMark mark batch file. There are 4 components:

a. Where the program is located and the call to the program

b. Where the MicroMark mark batch file is located (follows the MR)

c. Where the OrderSettings.txt is located (follows the D)

d. Where the JobSettings.txt is located (follows the AJ)

Example of testmrkr.mrk + OrderSettings.txt + MarkJobSettings.txt

This example has Word Wrap on to be able to see in this document, but it should not be on in the actual file.

Process this .bat file by double clicking on the file name or running manually in a Command window. A pause was put in the file so that you can see the messages generated. If you see ‘Success!’, then the job was submitted into the Accumark Batch program.

6. XMLserver will automatically take the job from the Watch Directory and process an order file to be stored in the storage area listed in the Batch parameter table which is Data70 for this example. Then it will also submit the order to Accumark Batch. Batch will then process the order to a marker, make it, and plot and cut if desired. Or in the case of draw or cut only, it will tell the marker how to plot or cut.

Note: if there is an error with the xml file conversion to an order, then the xml file will be stored in the

Failed folder (C:\Program Files\Gerber Technology\AccuMark V8\MmAmBatch\Failed).

Right Click on the name of the Batch Table, Order, and Marker to open the file directly from the Batch screen.

For more instruction about using AccuMark Batch, look to end of this document.

Note: A new order editor, a new marker, a plotter entry and a cutter file have all been created in the Accumark.


Default tables used in MmAmBatch processing:

If the OrderSettings.txt is not specified in the .bat file that is processed, then it will automatically use OrderSettings.txt from the C:\userroot\Batch directory. If you need other variations of this table, you may edit and name them anything meaningful to you, but then you must specify the name where OrderSettings.txt is located in the .bat file.

If MarkJobSettings.txt is not specified in the .bat file, then the MmAmBatch program will look within the MicroMark batch text file being processed to locate the keywords ‘Mark’, ‘Draw’, or ‘Creat’. Mark will trigger the MarkJobSettings.txt from the C:\userroot\Batch directory to be used. Draw will bring the DrawJobSettings.txt to be used. Creat will activate the CutJobSettings.txt to be used. So set these tables up after this example with the batch table for each process that will most be used. You can edit and save as many of these jobsettings.txt files as you need and name them as you like – just be sure to put the correct name in the .bat file where the *JobSetting.txt file name is.

The following is the mrk-defaults.bat, which is included on your system of the batch job using defaults.

Draw only Example:

These tables come with the MmAmBatch program during installation and they are in the c:\userroot\batch folder

Create a new Batch parameter table:

1. File/Open/P-batch.bpm

2. Change the marker method to be ‘None’

3. Check only Plot

4. Set the Plot Options for your plotter

5. File/Save As ‘P-BATCHdraw.bpm’

The DrawJobSettings.txt file is the default table for processing draws. It allows you to specify a default batch parameter table just for draws or plotting m

Right Click on the name of the Batch Table, Order, and Marker to open the file directly from the Batch screen.

CUT processing batch file only

1. File/ Open/ P-Batch.bpm

2. Select Marker Method to ‘None’

3. Check only Cut

4. Set the Export Directory for the cut files

5. File/Save As ‘P-BATCHcut.bpm’

If the first word in the MM batch file is ‘Creat’ then the MmAMBatch program will use CutJobSettings.txt as a default unless another job settings name is listed in the batch file to be processed.

MicroMark Tokens within the MM batch files:

Some tokens will be read and if they don’t correspond to the Accumark tables that are used then they are ignored by the MmAmBatch program. The following picture is an example of a file with tokens. The tokens must be separated by a space. The Semi-colon is at the end.

Valid tokens:

Mark Tokens: MK, MN, SN, SZ, MG, WI, OS, ME, XV, YV, GU, GL, ST, PL

Draw Tokens: SC, HB, HP, SL, OL, OR, ID, PN, PO,

Cut Tokens: VB, BS, SF, TS, BF, RM, CN, BB, L0, L1, L2, L3, L4, L5, BD, OP,OF

The Mark tokens will be read automatically to create an order editor to process to a marker.

XV and YV will be converted opposite automatically to accommodate differences between Accumark and Micromark operations. For example XV=.04 will convert to the order editor as -.04 to add shrink/stretch the same way.

OS requires a Constant of ‘$1$’added to the piece category (or default row) in the annotation editor to plot the field on each size. This token will put an Order Shade number by model within an order.

\The Draw token of ID will activate if set up the annotation editor to plot the order number ‘ON1-20’ on either the marker header and/or the piece categories. This token will allow a new order or cut number to be assigned to the marker at plot time. The ID value cannot contain any spaces. The batch file expects spaces to be separators of the tokens.

The OF token will change the output file name for the cut file.

These two marker header tokens must be used together:

HB=Y - Plot marker header inside the marker border

HB=N - Plot marker header outside the marker border

HP=0 - End Left

HP=1 - End Right

HP=2 - Both End vertical

HP=3 - Bottom left

HP=4 - None

The Cut tokens and the rest of the draw tokens must be activated differently. These tokens are set up in Accumark in the p-marker-plot parameter and p-cutter parameter tables for them to be effective. The following procedure will only work for Draw and Cut MicroMark batch tables. New parameter tables will not be created if processing a Mark file with plot and cut selected in the batch parameter table of Accumark.

To utilize these tokens that must be in a parameter table, MmAmBatch will look for a BLANK name in the batch parameter table in the fields of p-marker-plot and p-cutter parameter tables. If the Accumark batch sees a blank in this field only when processing to the plotter or cutter, it will take a copy of the p-marker-plot and/or the p-cutter parameter table from the storage area specified in the same batch parameter table, and only override the values of the tokens for that marker. Then it will store the p-marker-plot and/or p-cutter parameter table by the same name as the marker. When batch processes several markers this way at one time, each marker will have its own tables for processing.

Note: In the C:\userroot\batch directory there will be new files that the MmAmBatch program uses named Markplotpt.xml for creating the marker-plot parameter table and Cutpt.xml to help create the cutter parameter table.

The Mm to Am User Interface will help you build your batch files. Work in the section of Mark, Draw or Cut for the type of MicroMark batch file you are starting with.

The Create/Modify options on the right hand side of the dialog box will allow for a new table or a new batch file depending on the option chosen on the left hand side.

If you have a .bat file open, it can be executed from within that dialog window or by selecting Execute .Bat File and doing a lookup to select the .bat file for processing. If you select Cancel in the lookup dialog box, it will retrieve the last batch file you edited.

The Job Status at the bottom of the screen will give you the status of the processing and Log Viewer will allow you to also see the status. See below for more about Log Viewer.

View Batch Table will only allow you to read the batch table, no edits are possible. To edit the Batch table, open Batch from AccuMark Explorer Launch Pad.

Note: In the lookup dialog boxes, you can Right Click / Edit the file that you want to select.

MM to AM Conversion Log Viewer

When a conversion of MicroMark batch file to an Accumark batch entry is processed than the error or success message will be in the Log Viewer. The command line is word wrapped to be able to view it all. The parameters used in the batch are listed. These entries are copied from the system Event Log. This log file will periodically need to be cleaned out. Use the Delete All function at the bottom to do this.

Open: Double click on the icon of Log Viewer

Close: Select the Exit button or the X on the top right corner of the window

Print: Select the job on the left hand side and click on Print to send to the printer

Delete All: Clears all job entries in Log Viewer

Refresh: If Log Viewer is open when a job is processed, Refresh is needed to see the latest entries.

How to set up the Batch Parameter Table:

File/New or File/Open/P-Batch - to open the parameter table and edit the different settings:

1. Storage Area - where is the AccuMark data processed – all pieces and tables must be on this storage area.

2. Marker Method – ‘AUTO’ for AccuNest and AccuMark AutoMark, ‘MED’ to make manually, ‘LAY’ to use Layrules that have been set up. Do not use ‘NONE’ here if you want your order to process to a marker.

3. Priority – 4 is ok for most jobs. Can set it up for 1-3 to process sooner.

4. Plot or Cut can be selected or not depending on if the finished marker should automatically continue on to the plotter or cutter directory specified. More about those settings and the related fields on the sections directed to just Plot or Cut.

5. Annotation Library should be filled in ONLY if the annotation table is to be different than the one used to order the marker with.

6. Batch Option: ‘Manual approval of markers’ can be selected so that a marker finished by ‘AUTO’ or ‘LAY’ has to be approved from the Batch queue before it can continue to plot or cut.

7. Batch Option: ‘Verify marker status before order process’ can be selected if the marker may already be made so that the marker submitted won’t be order processed again erasing the made marker. It will cause the order process to not run on any marker already made.

8. AutoMark Options:

A: Piece Options: If select ‘Eng1’, ‘Eng2’, Eng3’ or ‘All Engs’ than the Auto Marker method will use AccuNest if it is available.

B: Placement Strategy should be ‘Draft’ or ‘Full’ if select and AccuNest Engine.

C: Piece Options for AccuMark AutoMark only: If you choose:

 ‘Apply’ - AutoMark will use the laylimits table restrictions,

 ‘Ignore’ – AccuMark will ignore the laylimits and allow 180 degree rotation only.

 ‘As Ordered’ – will ignore any permissions from laylimits – will not rotate or tilt any pieces.

D: Placement Strategy: If ‘Length’ or ‘Area’ – used for AccuMark AutoMark for strategy of largest

area or largest length placed first down to smallest.

E: Effort is good at 10 for AutoMark, yet it means how long a Time unit when an AccuNest Engine

Share :

Facebook Twitter Google+ Linkedin
0 Comments "Overview of the MicroMark to AccuMark Batch Conversion"

Back To Top