beautypg.com

Table of patterns” configuration example, Moves definition, Table string composition – ProSoft Technology PS-QS-1x10-0781 User Manual

Page 30

background image

FieldServer Configuration Manual

Page 30 of 90

FieldServer Technologies 1991 Tarob Court Milpitas, California 95035 USA Web: www.fieldserver.com

Tel: (408) 262-2299 Fax: (408) 262-2269 Toll Free: (888) 509-1970 email: [email protected]

5.2.9.1 “Table of Patterns” Configuration example

Section Title
Offset_Table
Column Title

Function

Legal Values

Offset_Table_Name Provide name for Offset Table

Up to 32 alphanumeric characters

Table_Index_Value

A unique value that will be stored if the pattern
matches

1-16

Table_String

The pattern:
“–“ is the delimiter which separates tokens in a
pattern and should not be considered as part of
pattern.
“*” means ignore this token

1-10, 000

Length*

The number of Data Array items to be used to
build the pattern to compare with the Table
string

Number of tokens in table string should
be the same as length under Moves, 1.

Offset_Table

Offset_Table_Name , Table_String

, Table_Index_Value , Length

SPR4052

, 37-46-46-20

, 0

, 4

SPR4052

, 36-*-*-20

, 1

, 4

SPR4052

, *-45-*-20

, 2

, 4

SPR4052

, *-43-*-20

, 3

, 4

SPR4052

, *-*-45-20

, 4

, 4

SPR4052

, *-*-43-20

, 5

, 4

SPR4052

, *-*-42-20

, 6

, 4

SPR4052

, *-*-37-20

, 7

, 4

SPR4052

, 00-00-00-00

, 8

, 4

SPR4052

, PATTERN DID NOT MATCH , 111

, 1

5.2.9.2 Moves Definition

Moves

Source_Data_Array , Source_Offset , Target_Data_Array , Target_Offset , Length , Function

, Offset_Table_Name

Tokens

, 0

, Status

, 0

, 4

, Match-pattern , SPR4052


The “Status” Data Array will contain only the numbers 0 thru 8 or 111 depending upon the combinations existing in
the “Tokens” Data Array

5.2.9.3 Table String Composition

Source Data Array
Values

Source

Data

Array

Format

Build Pattern

5

Description

55 15 0 255

Byte

37-0F-00-FF

Two Hex Characters

555 15 0 -2550

INT, UINT16, UINT32

555-15-0--2550

6

Just as decimal values

55.12 15.123 0 255

FLOAT

55.12-15.12-0.00-
255.00

Requires period and two decimal
places.

1 1 0 1

Bit

1-1-0-1

Binary pattern

5

You could insert “*” in place of any token if the value for that token is unimportant.

6

2550 is negative; -- two negative signs, one is considered as delimiter