49 Mdibalcomen01
49 Mdibalcomen01
V – 10.00
49-MDIBALCOMEN01
Manual
Table of Content
1. PROGRAM DESCRIPTION ..................................................................................................... 2
49-MDIBALCOMEN01 1
Dibalcom
1. PROGRAM DESCRIPTION
This program allows establishing communication with DIBAL scales and other weighing and
labelling equipment, hereinafter called "scales". It was developed specifically to work under
Windows 95, 98, NT, 2000 and XP.
In the program’s main screen, you can select the following parameters:
• Name of the data file to be transmitted (TX.TXT by default).
• Name of the file where the messages received from the scales are stored (RX.TXT by
default).
• Addresses of the scales with which you wish to communicate (00 by default).
• Type of communication (Ethernet, TCP or UDP and RS-232)
2
Manual
The program allows communication with a maximum of 16 scales per port in the case of
communication via RS-232 and 50 scales via Ethernet. With communication through RS-232, if you
select only one communications port, the scales’ addresses will be between 00 and 30, whereas if
communications use 2 ports, they will between 00 and 62.
The format of the files can be chosen in the Configuration-File Format menu. By default, it is
DIBAL’s.
To enter in the Configuration Menu, select in Main Menu File--Edit Communication.
Then the option Configuration is enabled in the Main Menu
49-MDIBALCOMEN01 3
Dibalcom
In Configuration – General Configuration menu you decide if a code needs to be entered to modify
parameters, stop communication and/or quit the program. When the program is installed a code is
not used by default. Where a code is requested to quit the program, the said code is only
requested when you attempt to quit the application by pressing the END button. If you attempt to
terminate the execution of the program by means other than those of Dibalcom, the code is not
requested.
The default value of this code will be null (press <enter>). Go to Configuration – Change code menu
to change the value of this code.
It is also possible to change the language of the Interface. To do it select menu Language, and
choose Spanish or English.
All the program’s parameters can be selected from the control file "Dibctrl.txt", which can be
modified by the user availing of the text editor.
In addition, commands can be sent to the program by means of a command file (CTRL.TXT by
default).
Once the program has started executing, it maintains communication with the scales, even when
there is a change in tasks.
4
Manual
2. DATA FILE MANAGEMENT
2.1. Control file (DIBCTRL.TXT)
It allows you to select most of the program’s control parameters. Its name is fixed "DIBCTRL.TXT"
and it must be in the same directory as the “DibalCom.Exe” program.
If the first character is “*”, it means that the whole line is a comment and it will not be taken into
account. If the line starts with "-", it shows that is a command line.
The list of commands is:
To serial communication
2. . –p COM1 Communications port: COM1 / COM2 / COM3 / COM4.
5. –e 0 Parity
0, Even
1, Odd
2, None
3, Flag
4, Space
6. –T 02,50 Polling timeout and message timeout (in ms*100). By default the polling timeout is 2
and the message timeout is 50
8. –F XXX.XXX.XXX.XXX PC’s IP address. It is used when the computer has multiple network
cards, to identify where we want to communicate
49-MDIBALCOMEN01 5
Dibalcom
10. –k Pescucha, Penvio Communication ports through UDP
Pescucha: Port by which DibalCOM receives through UDP. 25500 by default.
Penvio: Port by which DibalCOM sends information through UDP. 4660 by
default.
11. –E 1 Configuration of ping to determine if the scale is present or not. By default this
parameter is set to 1. This parameter must be disabled in case of ADSL
communications. In the case of not having opened that port on the router the Ping
service would not release and the program would be caught.
0: Disable
1: Enable
12. –s 0 Enable DoPing.exe pin’s program that determines if the scales are constantly
discharged with the-d parameter are present or not.
0: Disable
1: Enable
Other parameters:
13. –a 0 Automatic start-up of the program:
0 = No
1 = Yes
14. –A 0 Start-up the Dibalcom that appears in the task’s bar minimised.
0: Normal start.
1: Minimised start.
15. –I 0 Language:
0 = Spanish
1 = English
19. –P ***** Password CODED (DO NOT CHANGE ITS VALUE HERE: USE DIBALCOM)
6
Manual
22. – x X 0: Dibal format file disabled (RX.txt is not generated)
1: Dibal format file enabled (RX.txt is generated) (By default)
23. C 0 Sales exportation format to several files, one file for each sale.
0: Exportation disabled.
1: Exportation “Format 2.1” Output files. “2NNNNGGEEEEEC.txt”
2: Exportation “Format 2.2” Output files. “2NNNNGGEEEEECDD.txt”
3: Exportation “Format 2.3” Output files. “2DDNNNNNNEEEEEEEEEC.txt”
24. –i path InfoService Path (only valid for communication with InfoService)
27. –Q dir1, dir2, ... , dirn Indicates which scales are from the L series and which are the
ones we want that the Dibalcom translate the message from A to
L..
28. –K dir1, dir2, ... , dirn Indicates which scales are from the K series and which are the
ones we want that the Dibalcom translate the message from A to K
(The messages translate are only from 22 to X1).
34. –Z XXX Reserved for PCscale’s driver. Process delay Timer Tx, Rx.
49-MDIBALCOMEN01 7
Dibalcom
2.2. Input file (TX.TXT)
This file contains the messages that are to be sent to the scales. Each line must be a message
written following a given structure. The first two characters of the line are the scale’s address. With
RS-232 communication, if these characters are “AA” or “aa”, this message will be sent to all the
selected scales. If they are “ZZ” or “zz”, the program terminates its execution. When the message
has been sent correctly, it is marked with a “*” in the third position.
Example: 002250A0000101LETTUCE 000250000000000000000
It sends scale 00 register 22 with item 00001, PLU 01, the name lettuce and price 25.
Once all messages have been sent, the date and time of the file is checked, as is its size. If any of
these characteristics have changed, open the file and seek the next message to be sent.
This program opens the input file, reads the message to be sent and closes it, to allow other
applications to add more messages. These applications must take into account the fact that when,
on trying to open the file, an error message may appear as you are accessing the DibalCom
program. If this occurs, re-try opening. If an application is going to write in this file, it must be
opened for the addition, and remain open as short a time as possible.
8
Manual
Depending on the modem’s type of dialling, one or other of these two commands is written:
TATDTxxxxxxx The call is made to the remote MODEM number xxxxxxx. Tone
dialling.
TATDPxxxxxxx The call is made to the remote MODEM number xxxxxxx. Pulse
dialling.
s (Start) It starts polling the scales’ addresses.
S (Stop) It terminates polling.
Other options:
C It closes communication.
X (Restart but without sin cutting off communication) It prompts the DibalCom
program to read configuration file “DIBCTRL.TXT” to take control parameters.
G Close the Dibalcom
49-MDIBALCOMEN01 9
Dibalcom
3. SALES EXPORTATION
There are 2 types of sales exportation:
Export to a single file: In this functionality, there are two types of format. The format File per Scale
and Day that generates many files as scales we have, and in each of these files introduces the
sales of the day. The next day the file’s name is different. The other format, Dibal Format, is actually
a copy of RX.txt but it will not be deleted by the RMS.
Export of each sale to a file: It generates a file for each scale’s sale. This way of working is
designed for removing the sales when are processed by the server, otherwise it can lead to trouble
for having files on different days with the same name.
Therefore, we can have stored in files the receipts of a year. The following year, the files’ names
star to repeat.
10
Manual
The information in the sales line appears formatted in the file in the following way:
Field Length
Scales Address 2
Receipt Number 5
Item Code 6
Quantity or Sale Weight (The first digit indicates the sale sign, 6
0:positive, – :negative)
Vendor. You take the last two digits of the vendor’s code 2
Client code. Only for the scale that has implemented that is the L, 5
the rest set to cero.
Format 1.2 – f 2
49-MDIBALCOMEN01 11
Dibalcom
EEEEE: It is the total sale amount (5 digits)
C: It is the checksum (1 digit)
.txt: It is the file extension
Format 2.2 – C 2
If we select this option the file includes the master address, the files name is
2NNNNGGEEEEECDD.txt,
2: Fix
NNNN: It is the scale receipt name (4 digits)
GG: It is the scales group (2 digits)
EEEEE: It is the sales total amount (5 digits)
C: It is the checksum (1 digit)
DD: Scale Address (2 digits)
.txt: It is the files extension
In both cases the sales line information appears formatted in the file in the following way:
Field Length
Item Code 5
Quantity or weight sold (The first digit indicates the sign of the sale, 6
0 positive, - negative.
Amount sold in the ticket line (The first digit indicates the sign of 6
sale, 0 positive, - negative.
Vendor 5
Group 2
Ticket Number 4
Format 2.3 – C 3
If we select this option, the file name is: 2DDNNNNNNEEEEEEEEEC.txt,
2: Fix
DD: Scales Address (2 digits)
NNNNNN: It is the scale receipt number (6 digits)
EEEEEEEEE: It is the sales total amount (9 digits)
C: It is the checksum (1 digit)
.txt: It is the files extension
12
Manual
In this case the information of each label appears in the file with the following format:
Field Length
Ticket Number 6
Item Code 6
Weight 6
Price 7
Amount 9
Order 6
Client 5
Lot 24
Tare 6
Animal 3
49-MDIBALCOMEN01 13
Dibalcom
4. ADSL COMMUNICATIONS
It has been implemented the possibility of communication with the scales connected by ADSL by
means of DIBALCOM.
Due to the characteristics of the ADSL connections, from the PC all the scales will have the same
IP address (Public IP address of the router where the scales are installed) so for having a complete
identification of the scales in this case, every scale will have its own IP address and a different
communications port.
From version 126 of DIBALCOM it is possible, when it is created a communication with a scale, to
program its IP address and the transmission port through which the PC will communicate with the
scale.
If the information is entered in the file dibctrl.txt, it must be added a line showing the master
address, the IP address and the port. Example:
-d 00#10.1.2.207:3000
If the communication is ADSL, the parameter -E must be set to 0 in the file dibctrl.txt. With this
parameter to 0 the functioning is the following:
- There is not make ping to the scales
- Increase of the Timeouts in ADSL communications.
This parameter can be set up in the RMS WHEN the connection with the shop is set up.
14
Manual
49-MDIBALCOMEN01 15
Dibalcom
The remaining keyboard simulations is filtered to “” in order to avoid problems.
- The Dibalcom will translate the received messages of the L series to the A series receipts
according to the following table:
LA 25 Receipt sales
2M 2J Receipt sales per section
5.3. Functioning
Every time we start the communication with the Dibalcom either through the graphic interface or
through commands in the file ctrl.txt the Dibalcom performs the processing of the transmission file
and transforms the scales’ records set in the dibctrl.txt (Option – Q).
To carry out the registers transformation from A to L when we work with a file ctrl.txt we must write
the following commands sequence.
To process each command we generate a ctrl.txt file with its order and we wait until the file
disappears.
On the other hand, every time a sale is done in a scale, if it is configured to transform the records, it
will be done online.
16
Manual
6.3. Functioning
Every time we start the communication with the Dibalcom either through the graphic interface or
through commands in the file ctrl.txt, the Dibalcom performs the file transmission process and
transforms the scales’ records set in the dibctrl.txt (Option – K).
To carry out the registers transformation from A to K when we work with a file ctrl.txt we must write
the following commands sequence.
To process each command we generate a ctrl.txt file with its order and we wait until the file
disappears.
It is possible to have in the same shop L series and K series scales and generate for all of them the
record 22 of items. Configure correctly the parameter – Q and –K.
49-MDIBALCOMEN01 17
Dibalcom
Send Process
6) As a general rule, every time you want to send the content of the file “Tx.txt”, the process
is divided into three steps:
6.1) Create the file “ctrl.txt” and write ‘S’, indicating Stop, save. The Dibalcom will
remove once the instruction is collected.
6.2) Create a new file “ctrl.txt” and write ‘R’, indicating Restart, save. The Dibalcom will
remove once the instruction is collected.
6.3) Create a new file “ctrl.txt” and write ‘S’, indicating Start, save. The Dibalcom will
remove once the instruction is collected.
7) When the Dibalcom reads ‘S’ loads the structures with the configuration that reads from
the file “dibctrl.txt”. Then the Dibalcom starts reading the “Tx.txt” file and look at the
master address of the record send, it checks that it is for a defined scale and sends
8) Once the communication is establish, the scale will start downloading the sales to the
“Rx.txt” file.
9) If you spend more than 5 seconds without receiving sale we must send the record P0
asking to the scale if you have more sales.
10) The scale only accepts the records in which the group matches with its group number, so
the first thing to do is send the records that configured the scale and defined this group
number. These are Z0 and ZA.
11) To ask to the scale if you have something to send we use the record P0 with the following
format:
Ex.: To a scale with the master address 04 and group 00: 04P000ASK000000000001
12) We will use this communication to send Z0, ZA and P0. For this matter, open the “Tx.txt”
and write the records Z0, ZA and P0 and repeat the Send Process.
18
Manual
13) Once sent, poll the content of the “Rx.txt” until receive the P0 answer record.
Approximately the answer lasts about 3 seconds.
To see whether it is completed it will wait a 5 seconds since the last sale received. After
this time, it is written another P0 record in the following line of the “Tx.txt”.
Ex: 04P000ASK000000000002
th
NOTE 1: In the 14 position of the record P0 we have 6 bytes which defined the
message number. This code ensures that the answer corresponds to the question,
when the scale answers with a P0 always puts the same number you received in the
P0 question.
NOTE 2: If the Dibalcom is polling whenever you add lines at the end of the file, the
Dibalcom detects them and sends them.
14) When the answer of P0 is NO, the scale will no longer have to download sales so that we
can run to the following action (initialization, start of day, end of day…)
The scale can be configured to send to the Dibalcom some or other records depending on the
needs we have. By default the L series download the sales through the LA record (See the
record description in Dibal’s record data base, Communication Registers.mdb).
49-MDIBALCOMEN01 19
Dibalcom
7.2. Initialization
1) To do an initialization the first thing is download from the scale all the sales it could have
stored. To that end, it will need to execute all the steps of the previous point “Download
Sales”.
2) Once received the record P0 saying that there are no more sales we create a “ctrl.txt” file
and write ‘S’, indicating Stop, save.
3) Create again the “ctrl.txt” file and write ‘R’, indicating Restart, save.
5) Open the file “Tx.txt” and write the configuration records Z0 and ZA followed by the
record KB which is in charge of doing the initialization. The KB record for an initialization
will always have the same form varying only the master address and group, if necessary.
The Dibalcom will be in charge of completing the record with zeros until 130.
Send process
8) When the Dibalcom reads ‘S’ loads the structures with the configuration that reads from
the file “dibctrl.txt”. Then the Dibalcom starts reading the “Tx.txt” file and look at the
master address of the record send, it checks that it is for a defined scale and sends.
9) The Dibalcom will indicate in the “Tx.txt” file in the record’s corresponding line with an
rd
asterisk (*) in the 3 line position.
10) When the 3 records (Z0, ZA and KB) have been sent, we keep polling from time to time
the “Rx.txt” file until receive the record 30.
For example: 0430L870ESP VC32D
The scale approximately takes 15 seconds in initialize and send the record 30.
11) Once received this record with the key 30 will indicate that the scale has finished its
initialization and it is ready to receive the record we send.
20
Manual
12) The first thing will be to send again the configuration records Z0 and ZA to configure
correctly the scale as it has been deleted. And then, all the records with the data we want
to load (PLU’s, vendors…) For that open the file “Tx.txt” (from programming open with
“Append”) and write in the following line to KB the records Z0, ZA, L2, L3…
NOTE: If the Dibalcom is polling whenever you add lines at the end of the file and saves
the file “Tx.txt”, the Dibalcom detects them and sends them.
14) We must check that all the line has been sent. To this end, we read the file “Tx.txt” and
we check that all the lines have an asterisk (*) in the position 3.
15) If any line has not been sent by any reason, we repeat the procedure from the step 6.
49-MDIBALCOMEN01 21
Dibalcom
2) Once we receive the record P0 telling us that there is no more sales, create a file “ctrl.txt”
and write ‘S’, indicating Stop, save.
3) Create again the file “ctrl.txt” and write ‘R’, indicating Restart, save.
5) Open the file “Tx.txt” and write all the records that we want to send preceded by the
master address which we want to communicate with.
NOTE: If we have several scales, to optimize the data sending process to them, you have
to write the records ordering them by the master address, that is, firstly, those who have
the same master, then all of the following one.
Send Process
7) As a general rule, every time you want to send the content of a file “Tx.txt”, the process is
divided into three steps:
7.1) Create the file “ctrl.txt” and write ‘S’, indicating Stop, save. The Dibalcom will
remove once the instruction is collected.
7.2) Create a new file “ctrl.txt” and write ‘R’, indicating Restart, save. The Dibalcom will
remove once the instruction is collected.
7.3) Create a new file “ctrl.txt” and write ‘S’, indicating Start, save. The Dibalcom will
remove once the instruction is collected.
8) When the Dibalcom reads ‘S’ loads the structures with the configuration that reads from
the file “dibctrl.txt”. Then the Dibalcom starts reading the “Tx.txt” file and look at the
master address of the record send, it checks that it is for a defined scale and sends.
9) The Dibalcom will indicate in the “Tx.txt” file in the record’s corresponding line with an
rd
asterisk (*) in the 3 line position.
10) We must check that all the line has been sent. To this end, we read the file “Tx.txt” and
we check that all the lines have an asterisk (*) in the position 3.
11) If any line has not been sent by any reason, we repeat the procedure from the step 6.
22
Manual
2) Once we receive the record P0 telling us that there is no sales, we create a file “ctrl.txt”
and write ‘S’, indicate Stop, save. The Dibalcom will remove once the instruction is
collected.
3) Create again the file “ctrl.txt” and write ‘R’, indicating Restart, save. The Dibalcom will
remove once the instruction is collected.
5) Open the file “Tx.txt” and write the start of day records Z0, ZA, P0, KB for the Grand Total
Group list and end of day KB.
- The record KB for the listing of the Grand Total Group is:
04KB 0006644921595961
The Dibalcom will complete with zeros the records until 130.
Send Process
6) Save the file “Tx.txt”.
7) As a general rule, every time you want to send the content of a file “Tx.txt”, the process is
divided into three steps:
7.1) Create the file “ctrl.txt” and write ‘S’, indicating Stop, save. The Dibalcom will
remove once the instruction is collected.
7.2) Create a new file “ctrl.txt” and write ‘R’, indicating Restart, save. The Dibalcom will
remove once the instruction is collected.
7.3) Create a new file “ctrl.txt” and write ‘S’, indicating Start, save. The Dibalcom will
remove once the instruction is collected.
8) When the Dibalcom reads ‘S’ loads the structures with the configuration that reads from
the file “dibctrl.txt”. Then the Dibalcom starts reading the “Tx.txt” file and look at the
master address of the record send, it checks that it is for a defined scale and sends.
9) The Dibalcom will indicate in the “Tx.txt” file in the record’s corresponding line with an
rd
asterisk (*) in the 3 line position.
49-MDIBALCOMEN01 23
Dibalcom
The F9 record is the Total Accumulated Sales. The receiving time will vary depending on
the accumulated sales.
11) Once received the F9, in order to delete the scale’s accumulated, we have to send the
P0 record indicating that the End of Day is over, the scale waits for a minute the
reception of the end of P0, if in this time the scale does not receive it, the sales will not
be deleted and it is necessary to repeat the process. When the scale receive this
record, it will delete all the stored accumulated.
To send the record P0 of End of day, open the “Tx.txt” file (from programming open with
“Append”) and write in the following line to KB the records Z0, ZA, and End of day of P0.
The Dibalcom will be in charge of completing the record with zeros until 130.
NOTE: When we save the file “Tx.txt”, if the Dibalcom is communicating, the lines that are
added at the end of the “Tx.txt” file will be sent automatically.
13) If there is any line that is not sent, we repeat the process starting from the point 6.
24
Manual
2) In the file “dibctrl.txt” will have to modify certain parameters depending on the
communication type that we will use. See section 2.1 Configuration.
Send process
6) Save the file "Tx.txt”.
7) As a general rule, every time you want to send the content of the file “Tx.txt”, the process
is divided into three steps:
7.1) Create the file “ctrl.txt” and write ‘S’, indicating Stop, save. The Dibalcom will
remove once the instruction is collected.
7.2) Create a new file “ctrl.txt” and write ‘R’, indicating Restart, save. The Dibalcom will
remove once the instruction is collected.
7.3) Create a new file “ctrl.txt” and write ‘S’, indicating Start, save. The Dibalcom will
remove once the instruction is collected.
8) When the Dibalcom reads ‘S’ loads the structures with the configuration that reads from
the file “dibctrl.txt”. Then the Dibalcom starts reading the “Tx.txt” file and look at the
master address of the record send, it checks that it is for a defined scale and sends.
9) The Dibalcom will indicate in the “Tx.txt” file in the record’s corresponding line with an
rd
asterisk (*) in the 3 line position.
End Send Process
10) If we configure the scale to send the sales to the PC, all you have to do is communicate
with it so every time you print a receipt, it will send a record 78 with the data sales.
49-MDIBALCOMEN01 25
Dibalcom
8.2. Initialization
1) To do an initialization the first thing is to download from the scale all the sales it could
have stored. To that end, it will need to execute all the steps of the previous point
“Download Sales”.
2) Once received all the sales, we create a “ctrl.txt” file and write ‘S’, indicating Stop. Save.
3) Create again the “ctrl.txt” file and write ‘R’, indicating Restart, save.
5) Open the file “Tx.txt” and write the configuration record 21 followed by the record KB
which is in charge of doing the initialization. This KB record for K series initialization will
always have the same form only varying the master address and group, if necessary.
Configuration record
00210009082809240000002000000000000000000000000000000000000000000000000
0000000000
KB initialization record for the master 00 and group 00.
00KB00115660605642431427252727
The Dibalcom will in charge of completing the record with zeros until 130.
Send Process
6) Save the ”Tx.txt”.
7) As a general rule, every time you want to send the content of the file “Tx.txt”, the process
is divided into three steps:
7.1) Create the file “ctrl.txt” and write ‘S’, indicating Stop, save. The Dibalcom will
remove once the instruction is collected.
7.2) Create a new file “ctrl.txt” and write ‘R’, indicating Restart, save. The Dibalcom will
remove once the instruction is collected.
7.3) Create a new file “ctrl.txt” and write ‘S’, indicating Start, save. The Dibalcom will
remove once the instruction is collected.
8) When the Dibalcom reads ‘S’ loads the structures with the configuration that reads from
the file “dibctrl.txt”. Then the Dibalcom starts reading the “Tx.txt” file and look at the
master address of the record send, it checks that it is for a defined scale and sends.
9) The Dibalcom will indicate in the “Tx.txt” file in the record’s corresponding line with an
rd
asterisk (*) in the 3 line position.
10) When the 2 records (21 and KB) have been sent, we keep polling from time to time the
“Rx.txt” file until receive the record 30.
0030VERSION V A.05000000000000000000000000000000000000000000000000000
11) Once received this record with the key 30 will indicate that the scale has finished its
initialization and it is ready to receive the record we send.
26
Manual
12) The first thing will be to send again the configuration record 21 to configure correctly the
scale as it has been deleted. And then, the rest of records (PLU’s, vendors…).
For that, open the file “Tx.txt” (from programming open with “Append”) and write in the
following line to KB the records 21, X1, X2…
14) We must check that all the line has been sent. To this end, we read the file “Tx.txt” and
we check that all the lines have an asterisk (*) in the position 3.
15) If any line has not been sent by any reason, we repeat the procedure from the step 6.
49-MDIBALCOMEN01 27
Dibalcom
2) Once received all the sales, we create a “ctrl.txt” file and write ‘S’, indicating Stop. Save.
3) Create again the “ctrl.txt” file and write ‘R’, indicating Restart, save.
5) Open the file “Tx.txt” and write all the records we want to send preceded by the master
address we want to communicate with.
5.1) Configuration:
002100090828092400000020000000000000000000000000000000000000000000
000000000000000
28
Manual
NOTE: If we have several scales, to optimize the data sending process to them,
you have to write the records ordering them by the master address, that is, firstly,
those that have the same master, then all of the following one.
Send Process
7) As a general rule, every time you want to send the content of the file “Tx.txt”, the process
is divided into three steps:
7.1) Create the file “ctrl.txt” and write ‘S’, indicating Stop, save. The Dibalcom will
remove once the instruction is collected.
7.2) Create a new file “ctrl.txt” and write ‘R’, indicating Restart, save. The Dibalcom will
remove once the instruction is collected.
7.3) Create a new file “ctrl.txt” and write ‘S’, indicating Start, save. The Dibalcom will
remove once the instruction is collected.
8) When the Dibalcom reads ‘S’ loads the structures with the configuration that reads from
the file “dibctrl.txt”. Then the Dibalcom starts reading the “Tx.txt” file and look at the
master address of the record send, it checks that it is for a defined scale and sends.
9) The Dibalcom will indicate in the “Tx.txt” file in the record’s corresponding line with an
asterisk (*) in the 3rd line position.
10) We must check that all the line has been sent. To this end, we read the file “Tx.txt” and
we check that all the lines have an asterisk (*) in the position 3.
11) If any line has not been sent by any reason, we repeat the procedure from the step 6.
49-MDIBALCOMEN01 29
Dibalcom
NOTA: The end of day will remove the vendors and will reset the scale’s accumulated. To
work in the next start of day we have to register the vendors.
Send Process
6) Save the file ”Tx.txt”.
7) As a general rule, every time you want to send the content of the file “Tx.txt”, the process
is divided into three steps:
7.1) Create the file “ctrl.txt” and write ‘S’, indicating Stop, save. The Dibalcom will
remove once the instruction is collected.
7.2) Create a new file “ctrl.txt” and write ‘R’, indicating Restart, save. The Dibalcom will
remove once the instruction is collected.
7.3) Create a new file “ctrl.txt” and write ‘S’, indicating Start, save. The Dibalcom will
remove once the instruction is collected.
8) When the Dibalcom reads ‘S’ loads the structures with the configuration that reads from
the file “dibctrl.txt”. Then the Dibalcom starts reading the “Tx.txt” file and look at the
master address of the record send, it checks that it is for a defined scale and sends.
9) The Dibalcom will indicate in the “Tx.txt” file in the record’s corresponding line with an
rd
asterisk (*) in the 3 line position.
End Send Process
10) From time to time we poll the file “Rx.txt” until receive the record 29.
NOTE: The record 29 is Total Accumulated sales. The receiving time will vary depending
on the accumulated sales.
11) Once received the record 29 we concluded the process end of day.
30
Manual
9. LP/LS INTEGRATION STEP BY STEP
9.1. Download Sales
1) Configure the file “dibctrl.txt” with the with the appropriate parameters for the
communication. In this file the master addresses, IP, path files ports are defined (See
point 2.1 Configuration File).
For example, if we want to communicate with the labeller by Ethernet with the following
values:
IP:192.168.1.12
Master address: 04
TX Port: 3001
RX Port: 3000
You have to edit the file “dibctrl.txt” with the following values:
- d 04#10.1.8.41:3000
- j 3001,3000
6) Create the file “ctrl.txt” and write ‘S’, indicating Stop, save. The Dibalcom will remove
once the instruction is collected.
7) Create a new file “ctrl.txt” and write ‘R’, indicating Restart, save. The Dibalcom will
remove once the instruction is collected.
8) Create a new file “ctrl.txt” and write ‘S’, indicating Start, save. The Dibalcom will remove
once the instruction is collected.
9) When the Dibalcom reads ‘S’ loads the structures with the configuration that reads from
the file “dibctrl.txt”. Then the Dibalcom starts reading the “Tx.txt” file and look at the
master address of the record send, it checks that it is for a defined scale and sends.
10) When communicating with the LP/LS, is automatically release all the sales that we have
accumulated.
11) Once received the first sale, if the scale spends 8 seconds without receiving we finalize
the sales download .
12) By default the LP/LS download the sales through the record 53, 2P, LE, LY, MH, MK, MS
(See Dibal’s database record description, Communication Registers.mdb). The record
we want to download the sales from the menu.
49-MDIBALCOMEN01 31
Dibalcom
9.2. Initialization
1) To do an initialization the first thing is download from the scale all the sales it could have
stored. To that end, it will need to execute all the steps of the previous point “Download
Sales”.
2) Once received the record P0 saying that there are no more sales we create a “ctrl.txt” file
and write ‘S’, indicating Stop, save.
3) Create again the “ctrl.txt” file and write ‘R’, indicating Restart, save.
5) Open the file “Tx.txt” and write the specific KB which is in charge of doing the
initialization. This record for an initialization will always have the same form only varying
the master address, depending on the scale we want to communicate with.
The initialization KB record for the master 04.
04KB00116337373737373737373761
The Dibalcom will in charge of completing the record with zeros until 130.
NOTE: The LP/LS ignores the group that is defined in each record. It accepts all the
records it receives.
Send Process
6) Save the file “Tx.txt”.
7) As a general rule, every time you want to send the content of the file “Tx.txt”, the process
is divided into three steps:
7.1) Create the file “ctrl.txt” and write ‘S’, indicating Stop, save. The Dibalcom will
remove once the instruction is collected.
7.2) Create a new file “ctrl.txt” and write ‘R’, indicating Restart, save. The Dibalcom will
remove once the instruction is collected.
7.3) Create a new file “ctrl.txt” and write ‘S’, indicating Start, save. The Dibalcom will
remove once the instruction is collected.
8) When The Dibalcom reads ‘S’ loads the structures with the configuration that reads from
the file “dibctrl.txt”. Then the Dibalcom starts reading the “Tx.txt” file and look at the
master address of the record send, it checks that it is for a defined scale and sends.
9) The Dibalcom will indicate in the “Tx.txt” file in the record’s corresponding line with an
rd
asterisk (*) in the 3 line position.
32
Manual
11) Once this record with the key 30 is received, it will indicate that the scale has finished its
initialization and it is ready to receive the records that we send to it.
12) Now, we will send the records 2L, 2J and 2N. Then, all the record with the data we want
to load (PLU’s, vendors…)
For this, open the file “Tx.txt” (from programming open with “Append”) and write in the
following line in the KB record 2L,2J,2N,L2, L3...
14) We must check that all the line has been sent. To this end, we read the file “Tx.txt” and
we check that all the lines have an asterisk (*) in the position 3.
15) If there is any reason why any line is not sent, we repeat the Send Process.
49-MDIBALCOMEN01 33
Dibalcom
2) Once received the record P0 saying that there are no more sales we create a “ctrl.txt” file
and write ‘S’, indicating Stop, save.
3) Create again the “ctrl.txt” file and write ‘R’, indicating Restart, save.
5) Open the file “Tx.txt” and write all the records that we want to send preceded by the
master address that we want to communicate with. See the description in Dibal’s record’s
database “Communication Registers.mdb”.
NOTE: If we have several scales, to optimize the data sending process to them, you have
to write the records ordering them by the master address, that is, firstly, those that have
the same master, then all of the following one…
Send Process
6) Save the file “Tx.txt”.
7) As a general rule, every time you want to send the content of the file “Tx.txt”, the process
is divided into three steps:
7.1) Create the file “ctrl.txt” and write ‘S’, indicating Stop, save. The Dibalcom will
remove once the instruction is collected.
7.2) Create a new file “ctrl.txt” and write ‘R’, indicating Restart, save. The Dibalcom will
remove once the instruction is collected.
7.3) Create a new file “ctrl.txt” and write ‘S’, indicating Start, save. The Dibalcom will
remove once the instruction is collected.
8) When the Dibalcom reads ‘S’ loads the structures with the configuration that reads from
the file “dibctrl.txt”. Then the Dibalcom starts reading the “Tx.txt” file and look at the
master address of the record send, it checks that it is for a defined scale and sends.
9) The Dibalcom will indicate in the “Tx.txt” file in the record’s corresponding line with an
rd
asterisk (*) in the 3 line position.
11) If any line has not been sent by any reason, we repeat the procedure from the step 6.
34
Manual
3) Create again the “ctrl.txt” file and write ‘R’, indicating Restart, save. The Dibalcom will
remove once the instruction is collected.
5) Open the file “Tx.txt” the end of day KB record and the KB in charge of deleting the
accumulated.
- The end of day KB record is:
04KB0006631313131361
- The KB record for deleting the accumulated is:
04KB001064491212121212121261
The Dibalcom will in charge of completing the record with zeros until 130.
Send Process
6) Save the file “Tx.txt”.
7) As a general rule, every time you want to send the content of the file “Tx.txt”, the process
is divided into three steps:
7.1) Create the file “ctrl.txt” and write ‘S’, indicating Stop, save. The Dibalcom will
remove once the instruction is collected.
7.2) Create a new file “ctrl.txt” and write ‘R’, indicating Restart, save. The Dibalcom will
remove once the instruction is collected.
7.3) Create a new file “ctrl.txt” and write ‘S’, indicating Start, save. The Dibalcom will
remove once the instruction is collected.
8) When the Dibalcom reads ‘S’ loads the structures with the configuration that reads from
the file “dibctrl.txt”. Then the Dibalcom starts reading the “Tx.txt” file and look at the
master address of the record send, it checks that it is for a defined scale and sends.
9) The Dibalcom will indicate in the “Tx.txt” file in the record’s corresponding line with an
rd
asterisk (*) in the 3 line position.
End Send Process
10) When the record KB have been sent, we keep polling from time to time the “Rx.txt” file
until receive the record F9, which is the last record that the scale sends.
The record F9 is the Total Accumulated Sales. The receiving time will vary depending on
the accumulated sales.
11) If any line has not been sent by any reason, we repeat the procedure from the step 6.
49-MDIBALCOMEN01 35
Dibalcom
10. A SERIES’ SCALES COMMUNICATION EXAMPLES
Some examples are shown below where you can display the different records that must be sent to
an A series’ scale with address 02 to perform different operations.
The records for the End of Day with deletion, Without deletion, Sales Deletion and Initialization
(Keyboard Simulations, KB) are the same for all Dibal scales, what changes is the rest of the
records that are documented in ComunicationRegister.mdb document and is recommended to
determine the structure of the records that are handled in communications.
The information contained in the records of the following examples are that in situations of Polling
and Selecting explained above appears as Data.
Keyboard Simulation Record for the End of day with deletion (PCScale)
02KB0006630101010161
The scale will send the accumulated items, vendors and the total group, before deleting these
accumulated.
Removing Employees Records (Scale PC)
0224000000100890000300000364780000300000364780000000000000000000300000338820000
400000025960000000000000000089000100000001235190402
36
Manual
Total Records for payment mode (Scale PC)
02Y500?100127171?200000000?300000000?400000000?50000000000000000000000000000000
000000000000000000000000000000000000000000000000000
Once received the Record 29, we know that the scale have just delete all the accumulated and it is
ready to begin with the Start of day.
49-MDIBALCOMEN01 37
Dibalcom
Registering employees Records (Scale PC)
0223000000100000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000001236190402
0223000000200000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000001236190402
0223000000300000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000001236190402
38
Manual
Keyboard Simulation Record for the End of day without deletion (PCScale)
02KB0006631313131361
The scale will send the accumulated items, vendors and the total group, before deleting these
accumulated.
49-MDIBALCOMEN01 39
Dibalcom
Once received the Record 29, we know that the scale does not send more accumulated information
and we delete the sales.
02KB0006631313131361
02KB001064491212121212121261
Having received the information, the scale deletes all the accumulated and it is ready to begin with
the Start of day.
40
Manual
Registering employees Records (Scale PC)
0223000000100000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000001236190402
0223000000200000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000001236190402
0223000000300000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000001236190402
49-MDIBALCOMEN01 41
Dibalcom
10.3. Initialization
When we connect to the scale, the first thing is to give us the sales it has in the communications
buffer.
Sales’ Records (Scales PC)
02F500A000010001683200001000127001150000914300012900110000076890000000000000000
000000000000000000000000000000000000000001106190402
02F500A000020000914300002000127001150000914300000000000000000000000000000000000
000000000000000000000000000000000000000001106190402
After a series of polls (fifty exactly) in which they do not reach more sales we send the keyboard
simulation to the scale in order to do an Initialization. First of all, we send the record Z0 in order to
make the scales’ group and the records we send to the scales the same.
42
Manual
02Z10010 11 12 13 14
02Z10015 16 17 18 19
49-MDIBALCOMEN01 43
Dibalcom
The records for the End of Day with deletion, Without deletion, Sales Deletion and Initialization
(Keyboard Simulations, KB) are the same for all Dibal scales, what changes is the rest of the
records that are documented in ComunicationRegister.mdb document and is recommended to
determine the structure of the records that are handled in communications.
Keyboard Simulation Record for the End of day with deletion (PCScale)
16KB0906630101010161
The scale will send the accumulated items, vendors and the total group, before deleting these
accumulated.
Removing Employees Records (Scale PC)
16F4090000102340000300000002760000300000002760000000000000000000000000000000000
000000000000000000000000000235000000000001536060409
44
Manual
16Y509?100000276?200000000?300000000?400000000?50000000002370000000000000000000
000000000000000000000000000000000000000000000000000
Once received the Record F9, we know that the scale have just delete all the accumulated and it is
ready to begin with the Start of day.
49-MDIBALCOMEN01 45
Dibalcom
Receipts’ Headers and Footers Records (PC Scale)
16L709A02020100050001SUPERMERCADO
16L709A02030100000001SECCION PANADERIA
16L709A02040100000000
16L709A02050101000051GRACIAS POR SU COMPRA
46
Manual
After a series of polls (fifty exactly) in which they do not reach more sales we send the keyboard
simulation to the scale in order to do the End of day without Sales deletion. First of all, we send the
record Z0 in order to make the scales’ group and the records we send to the scales the same.
Keyboard Simulation Record for the End of day without deletion (PCScale)
16KB0906631313131361
The scale will send the accumulated items, vendors and the total group, before deleting these
accumulated.
Removing Employees Records (Scale PC)
16F4090000102340000300000002760000300000002760000000000000000000000000000000000
000000000000000000000000000235000000000001536060409
49-MDIBALCOMEN01 47
Dibalcom
Once received the Record F9, we know that the scale have just delete all the accumulated and it is
ready to begin with the Sales deletion.
16KB091064491212121212121261
Received this information the scale deletes the accumulated and we can begin with the Start of day.
48
Manual
Registering employees Records (PC Scale)
16X50900001vendor1 0100002vendor2 0200003vendor3
030000000000000000000000000
16X50900004vendor4 0400005vendor5 0500006vendor6
060000000000000000000000000
16X50900007vendor7 0700008vendor8 0800009vendor9
090000000000000000000000000
16X50900010vendor10 1000011vendor11 1100012vendor12
120000000000000000000000000
16X50900013vendor13 1300014vendor14 1400015vendor15
150000000000000000000000000
16X50900016vendor16 1600017vendor17 1700018vendor18
180000000000000000000000000
16X50900019vendor19 1900020vendor20
200000000000000000000000000000000000000000000000000000000000
49-MDIBALCOMEN01 49
Dibalcom
11.3. Initialization
When we connect to the scale, the first thing is to give us the sales it has in the communications
buffer.
50
Manual
Records with the departments’ names (PC Scale)
16Z2090 1 2 3 4 5 6
00000000000000000000000000000000000000000000000
49-MDIBALCOMEN01 51
The information content in this manual can be modified without previous notification.
Ref.: 49-MDIBALCOMES01 13/01/2011
Version: 10.00