Supusa e (Bam)
Supusa e (Bam)
Supusa e (Bam)
0
METALPROGETTI
Perugia, 16/05/2002
1-16
During the various handling phases, BAM modifies its own database so that the position of the
garments is always uniquely identified and at the same time, it also transmits the data on new
statuses to the TP. The TP is responsible for updating its own database to reflect each status
variation it receives.
BAM is connected to the automatic handling installation which includes the automatic delivery gate,
the screen for the customers and the magnetic card reader for identifying the customers. Concerning
the screen, the messages to the customers originate in the TP who transmits to BAM the information
content that should be shown to the customer; similarly, concerning the card reader, BAM is in
charge of implementing the management of the device and of the magnetic card, but once the card
has been read the content of the track is transmitted from BAM to TP, who is responsible for
managing this information.
TYPES OF DATA
BAM manages three kinds of data:
1 data concerning the garments and their change of status during the various management
phases, as well as status of the corresponding conveyor slots;
2 data concerning the content of the magnetic cards which the customers uses to retrieve their
garments at the automatic delivery gate;
3 data concerning the messages to appear on the automatic delivery gate screen once the
customer has asked for his garments by inserting his magnetic card.
DATA EXCHANGE ON GARMENT HANDLING
The exchange of data regarding garment handling takes place through an ASCII format file. Each
line/record has a fixed length of 91 characters (data) + 2 (CR+LF) for the end of the line, with a
possible but not necessary end-of-file character after the last record [chr(27)].
FLOW CHART:
Tp create files
AUTOMAT.IN
BAMEXC
The TP generates an AUTOMAT.IN file in the format described below. BAM takes it for processing
and upon completion cancels it. The TP must monitor the completed cancellation of the file in order
to generate the next one. The TP must make the AUTOMAT.IN visible to BAM only when all the
writing operations on the file have been completed, in order to avoid taking over incomplete data.
The data that the TP must communicate to BAM is:
- each new garment that is recorded
2-16
garments or order to delete; it is not possible to delete a garment or an order that had a status
variation (status <>R)
garments to be delivered to the customer through the automatic delivery gate or, alternatively, by
means of an unloading arm inside the shop
garments to be delivered manually to the customer, i.e. all items that are not stored on the
conveyor; in this case it is possible to deliver a garment even if its status is other than R.
BAM generates an AUTOMAT.OUT file with the same format as AUTOMAT.IN in which it signals
the TP with the data on all the handling operations performed independently or following requests
received in AUTOMAT.IN.
The TP must rapidly use and cancel this file, because for the entire time that BAM sees the existence
of the file it cannot generate another one and in these conditions, the automatic handling operation is
blocked (the installation is not operative).
BAM transmits AUTOMAT.OUT each time that any handling operation is performed on the
garments. The purpose of this is to allow the TP to record the handling operation in its files.
These are the files from which the TP can retrieve information on the status and position of the
garment on the system if the BAM files need to be reconfigured.
The data that BAM communicates to the TP involve:
- list of all handled garments (change in status)
- list of all slots whose status has changed
The format of each file record is shown below:
Field Name
LOT
Type
Character
NGARM
GARMENT
GARCODE
GARDESC
PERC
Numeric
Numeric
Character
Character
Numeric
HUNG
Character
STATUS
Character
W
Format
20 00000001 Code of the lot order #. Unique number for each
3-16
MAG
Character
01
SLOT
OUT
Character
Character
5
5
00001
CUSTOMER
Character
20
ORDERTYPE Character
ORDERKEY
ARM
Character
Character
20
3 Blank
Price
CUSTOMER
Name
STORE
Description
Item
Description 2
Delivery
Character
Character
10
50
Not Used
Define the extraction Arm to use to unload the
order:
Blank = BAM decide automatically the ARM to
use
To assingn a specific ARM use 001, 002 ecc.
Price of the item
Customer Name
Characther
20
Store info
Character
20
Character
CardNumber
Character
254
CardExp
TotPar
Character
Character
4
10
DropDate
Character
4-16
DropTime
Character
PromiseDate
Character
PromiseTIme
Character
To simplify the description, we have defined several key words to show the combination of several
record fields, identifying some of the fundamental garment-management conditions.
STAT
MAG
CAS
OUT
DESCRIPTION
NOT READY just sent from TP to BAM
05
00100
#100#
*100*
05/01
01
01450
1 AUTOMAT.IN
The fields can take on different meanings depending on the context.
1.1
The file must contain a record for each garment comprising the lot.
FIELD
DESCRIPTION
NOTE
Compulsory
LOT
Lot code
yes
NGARM
yes
GARMENT
yes
GARCODE
Garment code
GARDESC
Item description
PERC
yes
HUNG
S/N
yes
STATUS
New record
yes
MAG
Storage conveyor
Blank
MAGSLOT
Slot
Blank
5-16
yes
OUT
Blank
CUSTOME
R
Blank
ORDERTYP
E
Blank
ORDERKEY
Blank
ARM
Blank
For canceling garments, the file must contain a record for each garment to be canceled. To cancel
the entire lot, one single line is sufficient for all the garments of the same lot.
A garment can be canceled only if STATUS = R. To delete one entire order all the garments
belonging to it must be in the status R.
FIELD
DESCRIPTION
NOTE
Compulsory
LOT
Lot code
NGARM
yes
GARM
yes
GARCODE
Garment code
GARDESC
Item description
PERC
yes
HUNG
S/N
yes
STATUS
New record
A in case
garments
D in case
orders
MAGSLOT
Storage conveyor
SPACE
SLOT
Slot
SPACE
OUT
SPACE
of yes
of
When the cancellation has been completed, BAM transmits AUTOMAT.OUT composed of a record
for each garment that has actually been canceled. The record format is identical to the one received
6-16
in AUTOMAT.IN. When deleting entire orders BAM will send back all the deleted items and the
status will always assume the status A.
It is also possible to delete one single garment belonging to a certain order , but the order will have
to be sent back correctly, in a second phase, into the fields NGARM and GARMENT.
1.3
The file has to contain one record for each garment that is being delivered manually.
FIELD
DESCRIPTION
NOTE
Compulsory
LOT
Lot code
NGARM
yes
GARM
yes
GARCODE
Garment code
GARDESC
Item description
PERC
yes
HUNG
S/N
yes
STATUS
New record
M
unloading
MAGSLOT
Storage conveyor
SPACE
SLOT
Slot
SPACE
OUT
SPACE
manual yes
Once the manual delivery has been completed, BAM transmits AUTOMAT.OUT composed of a
record for each garment that has been unloaded. The record format is identical to the one received in
AUTOMAT.IN. If the unloading order refers to a garment, not yet ready, belonging to a lot that
does not exist, the lot is created and then unloaded.
1.3
The file has to contain one record for each garment that is being delivered manually. It is not
possible to delivery manually a single garment that is READY if in the lot several garments are
READY.
It is also possible to deliver manually a single garment if its status is READY OFF CONVEYOR.
FIELD
DESCRIPTION
NOTE
LOT
Lot code
7-16
Compulsory
NGARM
yes
GARM
yes
GARCODE
Garment code
GARDESC
Item description
PERC
yes
HUNG
S/N
yes
STATUS
New record
M
unloading
MAGSLOT
Storage conveyor
as transmitted by
Automat.out file
SLOT
Slot
as transmitted by
Automat.in file
OUT
Position
conveyor
manual yes
off
This command has been simplify, to allow to send only one line for the order to be
unload/Deleted and can be used to DELETE an order not ready or to UNLOAD an order
from conveyor to the manual unloading point:
FIELD
DESCRIPTION
NOTE
LOT
Lot code
NGARM
BLANK
GARM
BLANK
GARCODE
BLANK
GARDESC
BLANK
PERC
BLANK
HUNG
BLANK
STATUS
MAGSLOT
BLANK
SLOT
BLANK
OUT
BLANK
CUSTOMER
BLANK
8-16
Compulsory
yes
ORDERTYPE
0 = Bam optimize
by slot
1 = Bam respect
the sequence given
on the file
ORDERKEY
Not Used
ARM
XXX
Once the manual delivery has been completed, BAM transmits AUTOMAT.OUT composed of a
record for each garment that has been unloaded. READY garments that were hanging on the
conveyor will mean a new record on AUTOMAT.OUT for each new free slot. The record format is
indicated below in paragraph 3 SLOT STATUS RECORD.
1.3
The file has to contain one record for each garment that is READY. It is not possible to delivery
manually a single garment that is READY if in the lot several garments are READY.
FIELD
DESCRIPTION
NOTE
Compulsory
LOT
Lot code
NGARM
yes
GARM
yes
GARCODE
Garment code
GARDESC
Item description
PERC
yes
HUNG
S/N
yes
STATUS
Automatic unloading
yes
MAGSLOT
Storage conveyor
as transmitted by
Automat.out file
SLOT
Slot
as transmitted by
Automat.in file
OUT
SPACE
This command has been simplify, to allow to send only one line for the order to be unload on
the automatic PICK-UP
9-16
FIELD
DESCRIPTION
NOTE
LOT
Lot code
NGARM
BLANK
GARM
BLANK
GARCODE
BLANK
GARDESC
BLANK
PERC
BLANK
HUNG
BLANK
STATUS
MAGSLOT
BLANK
SLOT
BLANK
OUT
BLANK
CUSTOMER
BLANK
ORDERTYPE
0 = Bam optimize
by slot
1 = Bam respect
the sequence given
on the file
ORDERKEY
Not Used
ARM
Compulsory
yes
XXX
Once the automatic delivery has been completed, BAM transmits AUTOMAT.OUT composed of a
record for each garment that has been unloaded. There will also be a new record on
AUTOMAT.OUT for each new free slot. The record format is indicated below in paragraph 3
SLOT STATUS RECORD.
1.6
The first record of the file contains the key word "RESET" in the LOT field; all the other fields are
empty.
This record must be followed by:
- a record for each garment in the stock being managed
- a record for each slot on the conveyor
Record referring to a garment:
LOT
NGARM
GARMENT
GARCODE
Lot code
Total number of garments in the lot
Garment order number in the lot
Garment code
10-16
GARDESC
PERC
HUNG
STATUS
Item description
Percentage occupied by garment/slot
N" or "S"
R or L as transmitted in AUTOMAT.OUT following the last handling
operation for the garment being managed
MAG,SLOT Fields containing data as transmitted in AUTOMAT.OUT following the last
handling operation for the lot/garment being managed
OUT
Fields containing data as transmitted in AUTOMAT.OUT following the last
handling operation for the lot/garment being managed
Record referring to a slot:
see paragraph 3 - SLOT STATUS RECORD
2 AUTOMAT.OUT
In addition to the cases described above, the AUTOMAT.OUT file is also generated whenever BAM
performs any type of handling operation on the garments being managed.
11-16
The TP reads the file CARDREAD.OUT and after reading, cancels it.
BAM expects the file SCREEN.IN with the data listed below, but the restoration for the next
reading originates in the key-words CARDIN or CARDOUT.
The SCREEN.IN file followed by CR+LF includes:
a) Special words:
CLEAR
Clear the screen
CARDOUT Send the card out
CARDIN
Accept the card in
When BAM finds these words, it executes the command and gets ready for a new reading
WAITssc
ss = seconds before clearing the screen
R or G for turning on Red or Green lights (Battista 97)
b)
Screen:
LINE
COLUMN
CHARACTER
COLOUR
2 Numeric
2 Numeric
1 Numeric
1 Numeric
DESC
30 Characters
from 00 to 25
from 00 to 80
0=small, 1=large
from 0 to 7
0=Black
1=Blue
2=Green
3=Light blue
4=Red
5=Purple
6=Yellow
7=White
Text
For the temporary message which is always on the screen, there is a permanent exchange file which
is never cancelled, INSCARD.TXT consisting of three lines with the text:
SCAN THE
BAR CODE
or
INSERT
THE CARD
12-16
13-16
Regular
Trousers
033SR
033SR
---- MP send the commit file (this is an option that you can disable)
C:\BAMEXC\AUTOMAT.OUT 30/12/2002 09:09:46
12000539
020100003389
Regular
12000539
020200003390
Trousers
033SC
033SC
100 O0100028
100SL0100028
0 L0100549
33SU0100549
33SU0100549
00688000000?
15-16
P
P
0 L0100208
33SU0100208
33SU0100208
33SU0100208
16-16