51
13-7. Using UFC (Universal Flex Coms) Function
The UFC function allows you to format the print out (UFC format).
The scale can store the UFC format as text data. It will include parameters to
replace with the count data, weight data and so on.
The maximum number of text data is 384 characters.
The terminator for the “PF” command is "C
R
" or "C
R
L
F
".
Using the “PF” command, the text data has to be sent to the scale from the
computer in advance. Then, connect the scale with the printer.
When the
key is pressed or by auto-print mode A/B, the scale will send
the stored text data with the parameters replaced by the original data.
Store Text Data into the Scale Memory
Command
P F
,
$ P C ,
‘
T E X T
‘
,
# 2 0
,
$ S P
½
2
,
&
$ C R ,
$ L F
,
$ W T
,
$ C R ,
$ L F C
R
L
F
Reply
ACK C
R
L
F
The “PF” command sends text data that will include:
Parameters for the scale data and control codes
Parameter
Data & Code
Parameter
Data & Code
$PC
Count
$CD
ID number in use
$WT
Weight
$CP
Comparator result
$UW
Unit weight in use
$CM
Comma
$TR
Tare weight in use
$SP
Space
$TL
Total count
$CR
Carriage Return
$AN
Accumulation numbers
$LF
Line Feed
These parameters must be used in capital letters.
ASCII text string
A text string is described in single quote marks as ‘Data’.
The single quote itself is written as ’’(2 single quotes).
Example:
Text ‘ABC’ is described as ‘’’ABC’’’.
The ASCII hexadecimal code
The ASCII hexadecimal codes are written in the form “#" + 2 hexadecimal digits.
This will mainly be used to send control codes that can’t be described as a text string.
Example:
#04
“EOT” of ASCII code
Repeat data
The control codes $SP, $CR and $LF can be used with “ plus a 1 or 2 digit
number”. That code will be repeated the number of times designated.
Example:
$LF 9
Repeat “$LF” 9 times.
$SP 12
Use 12 “Spaces”.
Link mark “&”
If you will send more than 2 lines of data, attach “&” to the end of the first line. Then,
the scale considers the data to be continued.
A “Space” or “,” will be used to separate these data. You can skip them, but
you cannot skip “,” after “PF”. You must start with “PF,”.
Terminator
Summary of Contents for HC-30Ki
Page 1: ...Counting Scale HC 30Ki HC 15Ki HC 6Ki HC 3Ki WM PD4001164A...
Page 59: ...57 World map...
Page 60: ...58 MEMO...