Validity: Rule, Task
This keyword allows reading the duration of the execution of the system management and active rules for axes (rc).
Syntax |
REAL rule_length |
---|---|
Attributes |
Read only |
Notes |
Its unit of measurement is milliseconds |
Time includes execution of cyclic functions:
•Transducer reading
•Field Bus management (Can/Ethernet/Sercos/Profibus)
•Reference management
•RPE management
•Object Block management
•User rule
•Diagnostics
•Synchronous task ladder
•Power management
•Oscilloscope
NOTE: The system can be considered saturated if this variable is >= 75% of the rule period (SI).
Example
; I store in duration_rule the value of rule_length REAL duration_rule ... duration_rule = rule_length |
Example
; I calculate the percentage of rule length respecting SI ; The factor 1000 is needed because rule_lenght is in msec ; while SI is expressed in sec percent_rule = 100 * rule_length / (si * 1000) |