beautypg.com

Examples – Kistler-Morse KM STXPlus User Manual

Page 24

background image

APPENDIX B: KISTLER-MORSE

®

PROTOCOL SERIAL COMMANDS

Response

The response to a request for gross engineering units is:
A(-)dddddddssr

If the weight is +6384, the response is:
A+0006384ssr

Calculating the checksum ‘ss’ as the sum of the Hex values of all characters between ‘A’ and
‘ss’:
+0006384 ASCII = 2B Hex+30 Hex+30 Hex+30 Hex+36 Hex+33 Hex+38 Hex+34 Hex = 190 Hex
‘+’ ‘0’ ‘0’ ‘0’ ‘6’ ‘3’ ‘8’ ‘4’

Ignoring the overflow, the checksum is 90 Hex. Therefore, the ASCII string transmitted back to
the master is:
A + 0 0 0 6 3 8 4 9 0 CR
41 2B 30 30 30 36 33 38 34 39 30 0D Hex

EXAMPLES

For each command below, the general format of the command is shown above the example.

‘#’ Command — Kistler-Morse

®

Product Identification Number

This command is sent by the master to request the STXplus to send its Kistler-Morse

®

product

identification code (code is 36 for the STXplus). For this example, the master requests the code
from an STXplus at address 01, which returns a code of 36 and a checksum of 69.

Request from Master

Response from STXplus

>aa#ssr

Addssr

Format

>01#84r

A3669r

Example

‘u1’ Command — Request Raw Counts
This command is sent by the master to request the STXplus to send the raw A/D counts. The
range of this value can be ±8,388,607. For this example, the master requests the raw counts
from an STXplus at address 01, which returns a raw count of 1147226 and a checksum of 67.

Request from Master

Response from STXplus

>aau1ssr

A(-)dddddddssr

Format

>01u107r

A114722667r

Example

‘u2’ Command — Request Filtered Counts
This command is sent by the master to request the STXplus to send the filtered A/D counts. The
range of this value can be ±8,388,607. For this example, the master requests the raw counts
from an STXplus at address 01, which returns a raw count of -17226 and a checksum of 2F.

B-5