Intermec PC43d Fingerprint Developer's Guide (PC23d, PC43d/t, PM23c, PM43, PM4 - Page 47

Commands for Transferring Text and Binary Files, Using the TRANSFER KERMIT Statement

Page 47 highlights

Chapter 3 - Managing Files • 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 You can use these methods to transfer files: • PrintSet • the printer web page • a USB storage device • FTP • SmartSystems Text files (such as program files and data files in ASCII format) can be sent to the printer using a communication program. Text files can also be transferred back to the host, such as for backup purposes, by loading the file and using the LIST command to send its contents to a communication program. For binary files, you can also use the TRANSFER KERMIT and ZMODEM commands. 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 Fingerprint Developer's Guide 35

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163

Chapter 3 — Managing Files
Fingerprint Developer’s Guide
35
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
You can use these methods to transfer files:
PrintSet
the printer web page
a USB storage device
FTP
SmartSystems
Text files (such as program files and data files in ASCII format) can be sent to the
printer using a communication program. Text files can also be transferred back to
the host, such as for backup purposes, by loading the file and using the LIST
command to send its contents to a communication program.
For binary files, you can also use the TRANSFER KERMIT and ZMODEM
commands.
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”
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
Note:
There is a 30 second timeout between the issuing of the TRANSFER KERMIT
“R” statement and the start of the transmission.