“Space” or “,” will be used to separate these data. You can skip them, but you cannot skip “,” after “PF”. You must start with “PF,”.
Data Format for the Scale Data
“ [
” in examples below shows “Space” (20H).
Parameters for the scale data will be replaced by the format below when the scale sends them out.
Data has a fixed number of digits including a sign and a decimal point. The insignificant zeros are replaced by “Space (20H)” (except the ID number).
$PC $WT $UW $TR $TL $AN $CD $CP
[ | [ |
|
|
| |
[ | [ |
+ |
|
| |
1 | |
| |
[ | [ |
|
|
| |
[ | [ |
|
|
| |
[ | [ |
0 |
|
| |
0 | |
| |
O | K |
[ | [ |
|
|
[ | [ | + | 1 | 2 | 3 | 4 | [ | P |
| C |
| 1234 pcs / 9 digit data + 3 digit unit |
|
|
|
|
|
|
|
|
|
|
|
| |
+ | 4 | . | 3 | 2 | 1 | 0 | [ | k |
| g |
| 4.3210 kg / 9 digit data + 3 digit unit |
. |
|
|
|
|
|
|
|
| g |
| 1.234567 g / 9 digit data + 3 digit unit | |
2 | 3 | 4 | 5 | 6 | 7 | [ | [ |
|
| |||
|
|
|
|
|
|
|
|
|
|
|
| |
+ | 1 | . | 2 | 3 | 4 | 5 | [ | k |
| g |
| 1.2345 kg / 9 digit data + 3 digit unit |
+ |
|
|
|
|
|
|
| P |
| C |
| 999999 pcs / 9 digit data + 3 digit unit |
9 | 9 | 9 | 9 | 9 | 9 | [ |
|
| ||||
|
|
|
|
| 1234 times / 8 digit data | |||||||
[ | [ | 1 | 2 | 3 | 4 | |||||||
0 |
|
|
| ID Number 000012 / 6 digit data | ||||||||
0 | 1 | 2 |
Result is “OK” / 2 characters
Result is not available.
Examples of PF command and AD-8121 Printout Sample
| “PF” Command | ||
(Computer Æ | |||
,' | PF,‘ID~’,$CD,$CR,$LF,& | ||
$CR,$LF,& | |||
‘Count’,$CR,$LF,& | |||
&RXQW | |||
$SP | 4,$PC,$CR,$LF,& | ||
3& | |||
‘Unit~Weight’,$CR,$LF,& | |||
8QLW:HLJKW | |||
$SP | 4,$UW,$CR,$LF,& | ||
J | |||
‘Weight’,$CR,$LF,& | |||
:HLJKW | |||
$SP | 4,$WT,$CR,$LF,& | ||
NJ | |||
$CR,$LF,& | |||
|
#1B,#44,$CR,$LF,&
'$7( 7,0(
#1B,#54,$CR,$LF,&
$CR,$LF,&
$ '+&.L Terminator codes
"~" shows "Space.".
Normally the printer needs to receive the terminator, and do not forget to add the terminator code(s) to the end of text data.
52