CP6100 I/O Process Programming Manual
CPTEST
SEND Command
Examples
1. This example shows a SEND command consisting of a function
(05), a modifier (00), and a Request ID (01).
~SEND 05, 00, 01
CPTEST responds by displaying the information shown below:
Resp: F= 5($05) M= 0($00) ReqID= 1($0001)
Tout= 0($0000) Tin= 36($0024)
0000 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00
................
0010 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00
................
0020 00 00 00 00
....
Request terminated: 09:19:33:36 Elapsed time 2 Tics
First, CPTEST displays the function, status code, request ID,
text output, and text input for the request. (See paragraph
2 of "Considerations," above.) The values that appear in
parentheses are preceded by a dollar sign ($), which
indicates that they are hexadecimal numbers. The values that
appear outside the parentheses (without a prefix) are the
corresponding decimal values.
The text for this response consists of 36 decimal (24
hexadecimal) bytes. The value of each byte is shown as a
group of two hexadecimal characters. CPTEST displays the
bytes in rows of 16 decimal (10 hexadecimal) entries. Each
row is preceded by a four-digit hexadecimal number that
serves as a counter. Thus, the first row starts with the
counter "0000", the second row with the counter "0010", and
so on.
CPTEST also displays the ASCII equivalent for each byte of
the response. These ASCII characters appear to the left of
each row of hexadecimal digits. If there is no ASCII
equivalent for a hexadecimal digit, CPTEST displays a period
(.). Thus in this example, since none of the digits in the
response have ASCII equivalents, CPTEST displays a row of
periods after each line.
Since this is a waited response (that is, a response to the
SEND command), CPTEST displays the request termination time
and the elapsed time in tics (1/100th second) used to process
the request.
2. This example shows another simple request for which there is
an ASCII equivalent for one digit of the response
(hexadecimal 32 is equal to ASCII "2"):
B-21