Fairbanks X SERIES PR 5410 Process Indicator User Manual

Page 126

Advertising
background image

Section 5: SMA Protocol

10/08 126

51207 Revision 1

5.4.6 Scale Reply with ‘I’ and ‘N’ Commands


Reply format with ‘I' and 'N' commands (variable length):
<LF><xxx>:<yyyyyy><CR>
Reply format and meaning:
<LF>

Start of reply from 'I'/'N' command

<xxx>

The field name is three characters long, left-adjusted and filled up with spaces, if
necessary.

The following fields are sent:

“SMA”

level/revision

(reply from ‘I’ command)

“TYP”

Scale type: ‘S’= scale

(reply from the 1st ‘N” command)

“CAP”

Max, unit, scale interval and decimal position, separated by ‘:’

Meaning: yyyyyy= uuu:c..c:n:d

uuu= unit

n= scale interval (e.g. 1, 2, 5,10,20…) without decimal point

d= decimal point position

‘0’= without, ‘1’= xxxx.x, ‘2’= xxx.xx, ‘3’= xx.xxx , ... etc.

(reply from the 2nd ‘N’ command)

“CMD”

Supported SMA commands

(reply from the 3rd ‘N’ command)

“END”

This is always the last inscription field

(reply from the last ‘N’ command)

‘:’

Separator between field name and field content.

<yyyyyy> The data field contains up to 25 characters.

The SMA field contains <level/revision>

Meaning: level = (1, 2, etc.); revision = (1.0, 1.1, etc.)

<CR>

End of reply from 'I'/'N' command


Example: 6000kg x 1kg platform scale
Command

Reply

<LF> I <CR>

<LF>SMA:2/1.0 <CR>

<LF>N<CR>

<LF>TYP:S <CR>

<LF>N<CR>

<LF>CAP:kg_:6000:1:0 <CR>

<LF>N<CR>

<LF>CMD:HPTMCR <CR>

<LF>N<CR>

<LF>END: <CR>


Example: 5000g x 1g, 10000g x 2, 25000g x 5 multiple range / multi-interval
Command

Reply

<LF> I <CR>

<LF>SMA:2/1.0 <CR>

<LF>N<CR>

<LF>TYP:S <CR>

<LF>N<CR>

<LF>CAP:g__:5000:1:0 <CR>

<LF>CAP:g__:10000:2:0 <CR>

<LF>CAP:g__:25000:5:0 <CR>

<LF>N<CR>

<LF>CMD:HPTMCRQ <CR>

<LF>N<CR>

<LF>END: <CR>

5.4.7 Communication Error


When a communication error due to a parity error or a frame error (if used) was detected, the scale
sends an ASCII ‘!’ character. The only other error is the detection of an unknown or non-supported
command. In this case, an ASCII '?' character is sent as a reply. Dependent on the error messages,
the controlling computer must decide how to continue the scale operation.

Advertising