Sending Data To The Pk-232; Data Polling; The Hpoll Command - AEA PK-232 Technical Reference Manual

Data controller
Hide thumbs Also See for PK-232:
Table of Contents

Advertisement

PK-232 TECHNICAL MANUAL
4.4

Sending Data to the PK-232

Send data to channel 'x' (all modes except Packet assume channel 0) as follows:
SOH
This type of block does not produce an immediate acknowledgement as does a command
block. The data acknowledgement from the PK-232 is sent as a result of a data poll (see be-
low) and produces the following response when the PK-232 can process the data:
SOH
If the PK-232 is busy, the response is delayed until the data can be processed. The host
computer should wait for each data ack before sending more data.
4.4.1

Data Polling

The computer can poll the PK-232 for information such as channel data or status, link
messages, data acknowledgements or monitored frames. To poll the PK-232, send the poll
command as follows:
SOH
If the PK-232 has nothing to send to the computer, the response is:
SOH
If the PK-232 has data to send and information is waiting to be sent, the response is
shown below. Only one block is sent for each poll.
SOH
SOH
SOH
SOH
SOH
SOH
SOH
Here is an example of the Host mode dialog between the computer and the PK-232:
Computer:
Computer:
PK-232:
Computer:
PK-232:
4.4.2

The HPOLL Command

The HPOLL command determines whether the host computer must constantly poll the PK-
232.
o
If HPOLL is ON, the host must poll for everything, as described above.
o
If HPOLL is OFF, the PK-232 sends all blocks to the host computer when they are
formed and the data poll ($4F G G) is not needed.
PK232TM Rev. A 5/87
$2x
(data) ETB
$5F
X
X
$4F
G
G
$4F
G
G
$2F
...............
$3x
...............
$3F
...............
$4x
...............
$5x
...............
$5x
X X
.....
$5F
X X
$00
SOH
$30 (data)
SOH
$4F G G
SOH
$4F G G
SOH
$4F G G
SOH
$5F X X
CHAPTER 4 – HOST MODE AND SPECIAL APPLICATIONS
$00
ETB
ETB
$00
ETB
ETB
echoed data
ETB
data
ETB
monitored data
ETB
link status
ETB
link messages
ETB
status errors
ETB
data acknowledgement
ETB
ETB
$00 ETB
ETB
$00
4-8
data sent
poll
nothing yet
poll
data acknowledged
Page 25

Advertisement

Table of Contents
loading

Table of Contents