DIGIWTCP.EXE (NEW DRIVER)

Driver to send/receive data to/from scales.

EXEcutable Type

The format of the syntax is:

TWSWTCP command file_num machine_1 [machine_2 ... machine_n]

where the items inside the square backets are optional.

If an input/output file is needed, the format of the input/output filename is:
SM + ip_address_or_name + F + file_number + .DAT

 

IP Address of Name : The full IP address of the scale. With this new driver no hosts file entry needed for the scale definitions.

File Number : If the file indicated as 25H (Hex value) in the driver manual, it will be used as 37 (decimal value of Hex(25))

See example below for the usage.


Example: machine dairy sending PLU records, the input file is
SMdairyF37.DAT
command line is
TWSWTCP WR 37 dairy

Example: machine 192.168.1.2 sending PLU records from PC to scale,;

The input file name is :
SM192.168.1.2F37.DAT
Upload command line is :
TWSWTCP WR 37 192.168.1.2

Input files should not have control characters embedded.

Parameters:

command 

Can be any of the following
RD - read
WR - write
DEL - delete
DELFI - delete file
RD_DEL - read and then delete

file_num 

file number in decimal(base 10) form

machine_1 

machine IP address and/or host name to operate on

[machine_2 

machine_n] additional IP addresses or host names to operate on

Returns:

A file named result or the value of gcResult that contains the return code and the machine that returned the error. Format of the file is

machine_1:return_code;machine_2:return_code;machine_n:return_code.

return_code - can be any of the following 0 = no error
-1 = Open file error
-2 = Read from file error
-3 = Write to file error
-4 = Network initialize error
-5 = Network open error
-6 = Network read error
-7 = Network write error
-8 = Machine read error
-9 = Machine write error
-10 = Machine no record error
-11 = Machine space error
-12 = Undefined error