<< Click to Display Table of Contents >> Parameters: Copy From... To |
![]() ![]() ![]() |
This Button/Strategy Controller Action will value of the first variable to the second variable
In the example below the setpoint of Barrel Zone 2 will be copied to Barrel Zone 3:
The Copy Value Button attribute (or Strategy Controller action) will copy a value from one parameter to another. In general, the source and destination of the copy should be the same type, but some type conversions are allowed, as below:
Copy FromType |
Copy To Type |
Result |
Number (with decimals) |
Integer |
Decimals are truncated |
Time/Countdown/Countup |
Number (with decimals) |
Number of seconds is used, for example, copying 00:01:02 gives 62.0 |
Number (with decimals) |
Time/Countdown/Countup |
Number of seconds is used, opposite of above |
Any Type |
Text |
The Text is setup with what would normally be displayed on a GDW for the Copy From type. For example, copying a time might give text with the contents '00:01:02'. Copying a boolean type might result in the word 'Manual' in a Text variable. A DateTime might give 'Sunday, July 8, 1997 08:00:00' |
Text |
Number (with decimals) |
The first number found in the text is used. For example, if the Text contains '66.1', then 66.1 is used. If the text contains '4 5', then 4.0 is taken. If the text has '1.2Fred', then 1.2 is taken. |
Text |
Integer |
See above, but no decimals are used. |
Date |
DateTime |
Only affects the 'Date' part, leaves the 'Time' unaffected. |
Time |
DateTime |
Only affects the 'Time' part unless the time is greater than 23:59:59 then the 'Date is incremented accordingly. |
Enum |
Integer |
The numeric value is copied |
Integer |
Enum |
The numeric value is copied |
Note: Other type conversions not listed above will not work as expected.