Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ardiextra:calc [2023/11/28 02:38] optrix created |
ardiextra:calc [2025/02/18 03:26] (current) optrix |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====Calc Driver=== | + | ====Calculation |
===Information=== | ===Information=== | ||
Line 26: | Line 26: | ||
{Product Height Sensor.Distance} * {Product Width Sensor.Distance} | {Product Height Sensor.Distance} * {Product Width Sensor.Distance} | ||
</ | </ | ||
+ | |||
+ | ===Converting to Discrete Values=== | ||
+ | |||
+ | |||
+ | If you are looking for // | ||
+ | |||
+ | < | ||
+ | 1 if {Line.Speed} > 20 else 0 | ||
+ | </ | ||
+ | |||
+ | When you have complex logic, you can use multiple ' | ||
+ | |||
+ | < | ||
+ | 0 if {Valve.Closed} == 1 else 1 if {Valve.Open} == 1 else 99 if {Valve.Error} == 1 else 2 | ||
+ | </ | ||
+ | |||
+ | //The above example has three inputs - Open, Closed and Error. It returns a single output that is ' | ||
===Performance Note=== | ===Performance Note=== | ||
Line 32: | Line 49: | ||
Where possible, we suggest calculating these figures in your control system, historian or via a system like ARDI's **ModelHost** package, where it can be recorded back into your data backend. | Where possible, we suggest calculating these figures in your control system, historian or via a system like ARDI's **ModelHost** package, where it can be recorded back into your data backend. | ||
+ | |||
+ | ===Discrete Conversion Notes=== | ||
+ | |||
+ | If using Calculate to convert data from analogue to discrete, you might experience ' | ||
+ | |||
+ | If you need to capture very accurate on/off times for utilisation purposes, we suggest performing this calculation in your backend, or using **ModelHost**. | ||