MOTOR?
Syntax MOTOR? number-or-list
(MOTOR?)
 
Explanation Use the MOTOR? command to check whether one or more motors of a robot device are currently turned on. The input is the motor number or a list of motor numbers to check. If the command is used without any inputs, all motors are checked. The result is TRUE if any one of the motors are turned on. If no motor is on, the result is FALSE.

For the number of motors a robot device supports, use the command ROBOTFACTS.

Examples MOTOR? 1
Result: TRUE

TopIndex