![Interface 9834 Скачать руководство пользователя страница 21](http://html1.mh-extra.com/html/interface/9834/9834_instruction-manual_2076338021.webp)
Page 18
SERIAL RS232 COMMUNICATIONS (CONT)
Examples of Transmitted Data
Byte 1 2 3 4 5 6 7 8
Value in Hex 00 01 FF FF FB EB 03 0A
Value in Decimal 0 1 255 255 251 235 3 10
No SP Exceeded
Instantaneous Display
EOT
Displayed Number = -10.45
Decimal = xxx.xx
Byte 1 2 3 4 5 6 7 8
Value in Hex 02 42 FF FE 76 CE 03 0A
Value in Decimal 2 66 255 254 123 206 3 10
SP 2 Exceeded
Valley Display
EOT
Displayed Number = -993.78
Decimal = xxx.xx
Commands
The XON and XOFF commands only affect the transmission of data from the selected
displayed function. The unit responds to all other commands independent of the XON/
XOFF. All commands are ASCII strings and must terminate with a CR (hex OD) and
only a CR. The RS232 port is active only when in the data display mode and will not
respond to commands if the unit is in the MODE sequence
(S)elect Commands
To select or change the function being displayed and being transmitted by the RS232 port,
send the Model 9830 an ASCII string (S$) consisting of two characters, SX, where X is
a hex number.
S$
Function
S0
Instantaneous
S8
Peak minus Valley
SA
Peak
SB
Valley
SE
Reset
Examples written in Basic. These examples assumed that the RS232 port was opened
with buffer #2. The following code changes the displayed and transmitted function.
Example 1
Print #2, "S0"
Changes the function to Instantaneous
Example 2
X$="SA"
Print #2, X$
Changes the function to Peak