Intermec PB50 Fingerprint Developer's Guide (old) - Page 53
Commands for Transferring Text and Binary Files, Using the TRANSFER KERMIT Statement
View all Intermec PB50 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 53 highlights
Chapter 3 - Managing Files • COPY copies a file to another name and/or directory. • KILL deletes a file. • LOC returns the position in an OPENed file. • LOF returns the length in bytes of an OPENed file. Commands for Transferring Text and Binary Files Text files (such as program files and data files in ASCII format) can be downloaded to the printer via a communication program in the host. Text files can also be transferred back to the host, such as for backup purposes, by LOADing the file and LISTing it to a communication program in the host. Font files and certain image files in binary format can be downloaded from the host to the printer (or vice versa) using the Kermit or ZModem file transfer protocols, which are commonly used for binary transfer of data and are included in many communication programs. Binary files can also be downloaded to the printer using the FILE& LOAD statement. Using the TRANSFER KERMIT Statement The TRANSFER KERMIT statement allows you to specify direction (Send or Receive), file name, input device, and output device. By default, a file name designated "KERMIT.FILE" will be transferred on the standard IN or OUT channel. In this example, the printer is set up to receive a file on the standard IN channel: TRANSFER KERMIT "R" Note: There is a 30 second timeout between the issuing of the TRANSFER KERMIT "R" statement and the start of the transmission. Using the ZMODEM Protocol Files can be sent from host to printer (or vice versa) with the ZMODEM protocol. For more information, see the Fingerprint Command Reference Manual. Using a TRANSFER STATUS Statement After a file has been transferred using a TRANSFER KERMIT or TRANSFER ZMODEM statement, the transfer can be checked using the TRANSFER STATUS statement. The statement places the result into two one-dimensional arrays: 5-element numeric array (requires a DIM statement) Element 0 returns: Number of packets Element 1 returns: Number of NAKs Element 2 returns: ASCII value of last character Element 3 returns: Last error Element 4 returns: Block check type used Intermec Fingerprint Developer's Guide 37