CP6100 I/O Process Programming Manual

CPTEST
SEND Command
~SEND 02, 00, 02,40
Resp: F= 2($02) M= 0($00) ReqID= 2($0002)
Tout= 0($0000) Tin= 36($0024)
0000 00 00 00 00 02 0E 0C 00 00 32 00 00 01 03 18 00
.........2......
0010 00 00 00 0A 01 00
......
Request terminated: 09:19:33:96 Elapsed time: 2 Tics
3. This example illustrates a request that contains a text
string and a repetition of a character string. The ampersand
is used to extend the command line.
SEND C0, 00, F2, FF, &
03, "Text Message.", *3[" "], 16
CPTEST displays the following response:
Resp: F= 192($C0) M= 0($00) ReqID= 242($00F2)
Tout= 0($0000) Tin= 21($0015)
0000 03 54 65 78 74 20 4D 65 73 73 61 67 65 2E 20 20
.Text Message.^^
0010 20 20 20 20 16
^^^^.
Request terminated: 10:02:31:13 Elapsed time: 2 Tics
The first line of the response shows the hexadecimal
equivalents of the text message. The string to the right
displays the text message "Text Message." (For reasons of
space, the text strings shown in the examples appear
beneath the hexadecimal numbers, rather than to their right
as they do on your screen display). Observe that the text is
preceded by a single period, which indicates there is no
ASCII equivalent for the first input character ("03").
The next part of the response consists of three repetitions
of the string hexadecimal 20 hexadecimal 20, followed by
hexadecimal 16. The ASCII equivalent appears as six blanks
(one for each hexadecimal 20) followed by a period (since
there is no ASCII equivalent for hexadecimal 16). For
reasons of illustration, each blank is represented by the
symbol ^ in this example. Blanks appear as blanks on your
screen display.
B-22