|
User Programs
Why may user programs be needed?
For proper machine flow control and to react to external situations that may take place in the machine.
What can affect the execution speed of the user program?
CPU loads. Servo is the highest priority, communication is higher than the user program, and automatic routines can interrupt the program.
How can we measure the execution speed of a given code segment within a user program?
With tdif commands, TM or tick-tock
Can we execute a software interrupt routine (AUTO) when the program is not running?
No, we must use “while” infinite loop
Explain at least two possible structures for a user program.
Wait execute wait
Infinite loop waiting for a condition
Use autoroutines
Explain the usage and the syntax of the “until” command. Can you create an infinite “until” by mistake? If yes, give an example.
Until waits for a condition to be true.
“until (0)” will never end
Which types of variable are supported by the SimplIQ drive?
Float, integer, functions, global functions, operands (conditional, rational, mathematical)
What are the means/tools for user program debugging?
Step by step, break points
Explain the usage of the “if” command.
An expression or iteration that filters or executes a specified routine when the conditions are met.
|