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

Changing the Current Directory, Checking Free Memory, Providing More Free Memory, Formatting

Page 133 highlights

Chapter 7 - Controlling the Printer Changing the Current Directory "Current directory" is the directory which Fingerprint uses unless you specify another directory. By default, the current directory is set to "/c". Use a CHDIR statement to change the current directory. To return the current directory, use the CURDIR$ function. The next example shows how to change the current directory from the default ("/c") to "tmp:" and then back to "/c". 10 ..... 90 CHDIR "tmp:" CHDIR "/c" Checking Free Memory You can check the size of the memory in the current directory and see how much free space there is by issuing a FILES statement in Immediate Mode. Another way is to use the FRE function in a small instruction that returns the number of free bytes in a specified part of the printer memory. Example: PRINT FRE("tmp:") Results in (for example) 2382384 Providing More Free Memory In order to free up memory space in temporary memory, you can use a CLEAR statement to empty all strings, set all variables to zero, and reset all arrays to their default values. If even more memory is required, you will have to consider either to KILL some programs or files, or to use REMOVE IMAGE to delete images stored in "/c" and or "tmp:". If the printer is not equipped with the maximum amount of memory, you have the option to install additional or larger Flash or SDRAM SIMM packages. Note: Make backup copies on the host before you replace memory units or install additional memory in the printer. Formatting the Permanent Memory The printer permanent memory ("/c") can be formatted either partially or completely by using the FORMAT command as follows: FORMAT "/c",A The A parameter indicates that you want to erase all files in the device (hard formatting). However, this does not erase your printer configuration. FORMAT "/c" erases all files, except those starting with a period (.) character (soft formatting). Many Fingerprint system filenames begin with a period character. Fingerprint Developer's Guide 121

  • 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 7 — Controlling the Printer
Fingerprint Developer’s Guide
121
Changing the Current Directory
“Current directory” is the directory which Fingerprint uses unless you specify
another directory. By default, the current directory is set to “/c”.
Use a CHDIR statement to change the current directory. To return the current
directory, use the CURDIR$ function.
The next example shows how to change the current directory from the default (“/c”)
to “tmp:” and then back to “/c”.
10
CHDIR “tmp:”
.....
90
CHDIR “/c”
Checking Free Memory
You can check the size of the memory in the current directory and see how much
free space there is by issuing a FILES statement in Immediate Mode.
Another way is to use the FRE function in a small instruction that returns the
number of free bytes in a specified part of the printer memory.
Example:
PRINT FRE(“tmp:”)
Results in (for example)
2382384
Providing More Free Memory
In order to free up memory space in temporary memory, you can use a CLEAR
statement to empty all strings, set all variables to zero, and reset all arrays to their
default values. If even more memory is required, you will have to consider either to
KILL some programs or files, or to use REMOVE IMAGE to delete images stored in
“/c” and or “tmp:”. If the printer is not equipped with the maximum amount of
memory, you have the option to install additional or larger Flash or SDRAM SIMM
packages.
Formatting the Permanent Memory
The printer permanent memory (“/c”) can be formatted either partially or
completely by using the FORMAT command as follows:
FORMAT “/c”,A
The A parameter indicates that you want to erase all files in the device (hard
formatting). However, this does not erase your printer configuration.
FORMAT “/c”
erases all files, except those starting with a period (.) character (soft formatting).
Many Fingerprint system filenames begin with a period character.
Note:
Make backup copies on the host before you replace memory units or install
additional memory in the printer.