Quick Start Guide to Using HDS1504
| home
Sending barcodes to log files (generic file naming).
To
enable this option, open HDS1504
Host driver
Settings and click on "Send barcodes to log file" check
box.

Than
click on "Setup generic file naming ..." button, in order to setup
location and file name where HDS1504 will store barcodes.

Enter "Directory
name" and "File name" where HDS1503 will store barcodes.
For
generic file/directory naming, HDS1504 provide following macros:
|
Macro |
Description |
|
$YEAR |
Current year |
|
$YEARDAY |
Current year day |
|
$MONTH |
Current Month |
|
$DAY |
Current Day |
|
$DAYNAME |
Monday, Tuesday, ... |
|
$HOUR |
Current Hour |
|
$AM_PM |
AM /
PM indicator |
|
$MINUTE |
Current Minute |
|
$SECOND |
Current Second |
|
$WEEKDAY |
Current week day 1~7 |
|
$WEEK |
Week
of the year |
Note
well: Macros for generic directory / file naming must be entered in UPPER
case!
Example use of macros for generic file naming:
Following example will create new directory each day in format (mmddyyyy)
and will create file barcodes.txt in it.
Directory name: d:\barcodes\dates\$MONTH$DAY$YEAR
File name: barcodes.txt
Following example will create new file each hour in directory
c:\data\barcodes\ and file name will be named data<current hour>.csv
Directory name: c:\data\barcodes\
File name: data$$HOUR.csv
Defining data fields that will be stored in the file.
In the
text box labelled "Data fields" enter data fields and format
according to your requirements.
HDS1504
version 2.x support following data fields:
|
Data
field |
Description |
|
BARCODE |
downloaded barcode |
|
CODTYPE |
textual representation of barcode type (UPC, EAN13, CODABAR ...) |
|
TIMESTAMP |
time
stamp recorder by scanner |
|
SYSTIME |
current system time |
|
SCANNERID |
scanner
id
(assigned by manufacturer) |
It is
possible to use any of data fields in any combination. It is also allowed
to use any character(s) as delimiter.
HDS1504
also supports several prefix/suffix macros. Those macros can be placed
in front or at the end of each data field.
Some of
those functions are: {DAY} {TAB} {CR} ...
For more
information about suffix/prefix macros see (Prefix/Suffix)
link.
Examples of valid "Data fields" selections:
BARCODE{TAB}CODTYPE
- in this case HDS1504 would store only barcode and code type, and
delimiter is TAB
TIMESTAMP+BARCODE+{DAY}/{MONTH}/{YEAR}
- in this case HDS1504 would store time stamp,barcode, and system time
in DD/MM/YYYY format, and delimiter is + character.
See also:
How to get free Technical support.