Data manipulation features, Moves – ProSoft Technology PS-QS-1x10-0781 User Manual

Page 20

Advertising
background image

FieldServer Configuration Manual

Page 20 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

DATA MANIPULATION FEATURES

The features described in this section may or may not be needed depending on the application where the
FieldServer is implemented. If the application calls for straight passing of data without modification through the
FieldServer, then the features in this section will probably not be useful.

5.1

Moves

The Moves function permits data to be moved from one Data Array to another. The function parameter within
moves allows data manipulation to occur while moving the data, e.g: Logic operation, Integer to floating point
conversion, etc. Scaling, Logic and Math are also possible while moving data

With the exception of Conditional Moves (see 5.2.9), each Data Array location may only act as the target location
of one Responsible Move. This ensures that the data source can be uniquely determined in order to establish
source data validity, and so that a write through the target data location is directed to the appropriate location.

Moves will execute whenever the source data changes or the scan interval (if specified) expires. If a task name but
no scan interval is defined, a default scan interval of 1s is assumed.

A Move operation must specify the following elements:
Source_Data_Array

The name of the Data Array from which data is to be copied.

Source_Offset

The offset within the Data Array from which data is to be copied

Target_Data_Array

The name of the Data Array to which data is to be copied

Target_Offset

The offset within the Data Array to which data is to be copied

The following elements are optional:

Length

The number of consecutive source Data Array values to be moved to consecutive
target locations, starting at the respective offsets

Task_Name

If a task name is specified, the move operation becomes a continuous task on the
FieldServer that is executed at the scan interval specified.

Scan_Interval

The time interval at which the task will be repeated. A task name must be specified if
a scan interval is specified.

Function

Defines move functionality, e.g. byte order manipulation. Functions are summarized
in Figure VI.

Conditional_Data_Array

The name of a Data Array to be used for conditional moves. See Section 5.1.1.3 for
more information.

Conditional_Offset

The offset into the Conditional_Data_Array where the conditional bits for the move
are defined. The value found at this specified location must be non-zero for the move
to be executed. If the value is zero, the move is inhibited.

Advertising