beautypg.com

ProSoft Technology AN-X-PB User Manual

Page 35

background image

AN-X-PBCAPT Page

31

TIP

Use parentheses freely in your equations to avoid problems associated
with precedence of operators.

Keywords

The equation can include the following keywords, which are described in
detail below.

Keyword

Description

STS

Frame status

Len

Date length, does not include the checksum

SD

Start delimiter

DA

Frame destination

SA

Frame source

FC

Frame control

DSAP

Destination SAP

SSAP

Source SAP

DataByte[ofs]

Data byte at byte offset ‘ofs’ into the frame data

DataWord[ofs] Data word at byte offset ‘ofs’ into the frame data

CmdArg[num] Passed parameters, see page 35

GapTme

Gap time, in microseconds, see page 21

Frame Status, STS

The frame status can be one of the following:

Symbolic name

Value

Description

STSSTP

0x01

Stop bit error

STSPAR

0x02

Parity bit error

STSSD

0x04

Invalid Start Delimiter

STSRPT

0x08

Start Delimiter Repeat error

STSUND

0x10

Frame Underrun

STSOVR

0x20

Frame Overrun

STSCHK

0x40

Checksum Incorrect

STSED

0x80

Invalid End Delimiter