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

Controlling Communication, Using BUSY or READY Statements

Page 62 highlights

Chapter 4 - Managing Input and Output In case of INPUT# and LINE INPUT#, the input is not accepted until a carriage return is issued. This example demonstrates how the printable character and decimal ASCII value of various keys on the printer keyboard can be printed to the screen of the host. 10 PRINT "Character", "ASCII value" 20 OPEN "console:" FOR INPUT AS 1 30 A$=INPUT$(1,1) 40 B%=ASC(A$) 50 PRINT A$, B% 60 GOTO 30 70 CLOSE 1 RUN Controlling Communication The following Fingerprint commands are used to control the communication between the printer and the host (or other connected devices): • BUSY • READY • ON | OFF LINE • VERBON | VERBOFF • SYSVAR(18) Using BUSY or READY Statements Using these two statements, you can let the program execution turn a selected communication channel on or off. There is a difference between serial and parallel communication: • For serial communication, the type of busy/ready signal is decided in the Setup Mode (Ser-Com; Flowcontrol): • When a BUSY statement is executed, the printer sends a busy signal (for example, XOFF or RTS/CTS low). • When a READY statement is executed, the printer sends a ready signal (for example XON or RTS/CTS high). For more information, see the printer user's guide. • The parallel Centronics communication channel uses the BUSY/READY statements to control the PE (paper end) signal on pin 12: • BUSY = PE high • READY = PE low The status of the PE signal can be read by a PRSTAT statement, as in this example: IF (PRSTAT AND 4) GOTO.....ELSE GOTO..... Note: Issuing a READY statement is no guarantee that the printer will receive data. There may be other conditions that prevent the printer from receiving data, such as a full receive buffer. 50 Fingerprint Developer's Guide

  • 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 4 — Managing Input and Output
50
Fingerprint Developer’s Guide
In case of INPUT# and LINE INPUT#, the input is not accepted until a carriage
return is issued.
This example demonstrates how the printable character and decimal ASCII value of
various keys on the printer keyboard can be printed to the screen of the host.
10
PRINT “Character”, “ASCII value”
20
OPEN “console:” FOR INPUT AS 1
30
A$=INPUT$(1,1)
40
B%=ASC(A$)
50
PRINT A$, B%
60
GOTO 30
70
CLOSE 1
RUN
Controlling Communication
The following Fingerprint commands are used to control the communication
between the printer and the host (or other connected devices):
BUSY
READY
ON | OFF LINE
VERBON | VERBOFF
SYSVAR(18)
Using BUSY or READY Statements
Using these two statements, you can let the program execution turn a selected
communication channel on or off. There is a difference between serial and parallel
communication:
For serial communication, the type of busy/ready signal is decided in the Setup
Mode (Ser-Com; Flowcontrol):
When a BUSY statement is executed, the printer sends a busy signal (for
example, XOFF or RTS/CTS low).
When a READY statement is executed, the printer sends a ready signal (for
example XON or RTS/CTS high).
For more information, see the printer user’s guide.
The parallel Centronics communication channel uses the BUSY/READY
statements to control the PE (paper end) signal on pin 12:
BUSY = PE high
READY = PE low
The status of the PE signal can be read by a PRSTAT statement, as in this
example:
IF (PRSTAT AND 4) GOTO
.....
ELSE GOTO
.....
Note:
Issuing a READY statement is no guarantee that the printer will receive data.
There may be other conditions that prevent the printer from receiving data, such as a
full receive buffer.