Using Variables and Traces
Trace Math Rule 4
For greatest , use single point destinations, such as a trace element or a variable.
If the destination consists of multiple points, the math functions round the sources rst, then perform the requested operation. If the destination is a single point, the math functions compute the results in oating point, and then rounds the results if necessary. The following example shows how the product of 2.45 and 3.45 is 6 or 8 depending on the destination.
50 | OUTPUT | 723;"MPY TRC,2.45,3.45;" | Fill trace C array with 2 X 3, or 6. |
60 | OUTPUT | 723;"TRC[1]?;" | Return 6 to computer . |
70 | OUTPUT | 723;"MPY TRC[1],2.45,3.45;" | Loads trace element with integer value |
|
|
| of 2.45 X 3.45, or 8. |
90 | OUTPUT | 723;"TRC[1]?;" | Return 8 to computer . |