Obsidean_VM/04-InLavoro/9..... MASTER Transport/Standard Transport/FB Scan Time OB1 - FB4.md

23 lines
743 B
Markdown
Raw Normal View History

2025-02-18 05:37:27 -03:00
#### FB Scan Time OB1
****************
Calculate the execution time for the PLC of the code between the two call to this function. Normally this Function is used on a OB1 like this:
Example: OB1
-----------------------------------------
```pascal
"FB Scan Time OB1"(CalculateRuntime := false);
...
PROGRAM ..OB1...
...
"FB Scan Time OB1"(CalculateRuntime:=true);
```
* Runtime: Max / Min / Average : of the runtime
* LastScan: Max / Min / Average : of the complete cycles: means the time between two run of the OB1
* ComTime: Max / Min / Average : of the time not used at Runtime. Normally this time corresponds to communications
* Reset: when TRUE resets all values. There is an autoreset also the first 10s of the PLC startup.