beautypg.com

Optional parameters, Truncate result example – ProSoft Technology PS-QS-1x10-0781 User Manual

Page 35

background image

FieldServer Configuration Manual

Page 35 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]

Math

Task_Name , Scan_Interval , DAI1

, DOI1 , DAI2

, DOI2 , FN1 , DAO

, DOO

Task_105

, 1

, DA_1 , 0

, DA_2 , 0

, Per

, DA_5 , 0


This definition will result in the following operation:
DA_5[0] = DA_1[0] Per(%) DA_2[0]
Or
DA_5[0] = (DA_1[0] /DA_2[0]) * 100
i.e. if DA_1[0] = 10 and DA_2[0] = 20 then this means Da_1[0] is 50 % of Da_2[0] so DA_5[0] will contain 50.

5.3.4 Optional Parameters

Parameter

Description

Legal
Values

Length*

Specifies the number of consecutive source Data Array values from all defined
source Data Arrays (egg DAI1 …DAI4) to be operated on and to store a result at
consecutive target locations, starting at the respective offsets.

Any
positive
integer

Task_Name*

If a task name is specified, the move operation becomes a repetitive task on the
FieldServer and the data will be updated on a regular basis.

Any string

Scan_Interval*

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

>0.1s, 2s

Truncate
Result*

This function causes all intermediate and final results to be stored after
truncating. Refer to the example in Section 5.3.4.1

Yes, -

5.3.4.1 Truncate Result Example

Math
DAI1 , DAI2

, DAI3

, FN1 , FN2

, DAO , DOI1 , DOI2 , DOI3 , DOO , Length , Truncate_Results

DA_X , DA_17 , DA_17 , DIV , MULT , DA_Z , 0

, 0

, 0

, 0

, 1

, Yes

If DA_17[0] = 17 and DA_X[0]=100=x

DA_Z[0]=(x/17)*17 will be = 85 NOT 100