W' (Set Data Format) - KoamTac KDC100 Programming Manual

Revision 2.82
Hide thumbs Also See for KDC100:
Table of Contents

Advertisement

'w' (Set data format)

Parameters:
0 or 1
Format:
'w<value>#', where <value> is either 0 or 1, and # means the end of <value>
0: KDC100 sends barcode only to HOST,
1: KDC100 sends PACKET data and wait for response('@') from HOST
Output:
'!' – invalid parameter
'@' – all other times
Purpose:
KDC100 transmits scanned data to HOST if Wedge mode is enabled. User can set
Wedge mode using 'U' command. KDC100 can send barcode data only or PACKET data
[Note]
KDC100 tries multiple transmission up to 10 times if Handshake mode is enabled and
KDC100 doesn't get response from HOST within 1 second
KDC100 supports two kind of data format when sending data to HOST
Barcode only
Barcode data
where:
"None", "CR (0x0d, '\r')", "LF (0x0a, '\n')" or "CR + LF"
PACKET DATA
S
N
C
where:
S : Start byte 0x03(1 byte)
N : Total number of bytes to be sent(3 bytes)
C : Total number of each barcode data(1 byte) including Y/D/T/K bytes (not including C byte)
Y : Type of each barcode(1 byte)
D : Actual barcode data of each barcode(variable size)
T : Timestamp of each barcode(4 bytes)
K : Check sum byte(1 byte). All sum except S should be 0.
value
0
1
Termination Character
Barcode data is the actual read barcode data and termination characters are
Y
D
T
K
Character
"0"
"1"
60
KDC100 Programming Manual
Hex No.
30
31

Advertisement

Table of Contents
loading

Table of Contents