Instruction that allows a rule to be sent to execution after a set time from its call. The rule must be written in an appropriate file beginning with the metacommand $RULE_TIME. This rule has higher priority than the synchronous rules, consequently the code written in it must be the minimum necessary!
Syntax |
int_after (i32 tempo, stru_int struct) |
---|---|
tempo |
Time after which to send the asynchronous rule into execution [1 - 65535 micro-seconds] |
struct |
Structure type stru_int that contains related information (optional, if omitted disables instruction) |
Validity |
Rule, Task |
Note |
Instruction must be called only once. To change the time, the instruction must be called again. If the instruction is called with time value 0 or without the supporting data structure is disabled |
Example of use: You want to output a digital output for a specified time. In the file mytask.r3: In the main program (main program):
|