PRD Module
Application Program Interface
2-293
❏
mode
. If "continuous" is used, the function executes every "period"
number of ticks. If "one-shot" is used, the function executes just once
after "period" ticks.
Tconf Name: mode
Type: EnumString
Options:
"continuous", "one-shot"
Example:
myPrd.mode = "continuous";
❏
function
. The function to be executed. The total time required to
perform all PRD functions must be less than the number of
microseconds between ticks.
Tconf Name: fxn
Type: Extern
Example:
myPrd.fxn = prog.extern("prdFxn");
❏
arg0, arg1
. Two Arg type arguments for the user-specified function
above.
Tconf Name: arg0
Type: Arg
Tconf Name: arg1
Type: Arg
Example:
myPrd.arg0 = 0;
❏
period (ms)
. The number of milliseconds represented by the period
specified above. This is an informational property only.
Tconf Name: N/A
❏
order
. Set this property to all PRD objects so that the numbers match
the sequence in which PRD functions should be executed.
Tconf Name: order
Type: Int16
Example:
myPrd.order = 2;