<< Prev        Next >>

ID : 9052

MotorState

Function

To return the motor ON/OFF state of a controller.

Syntax

MotorState

Return value

Return the status of motor by integer type data.

Motor status Return value
Motor OFF 0
Motor ON 1

Description

This command returns the motor on/off state by integer type data.

Related Terms

-

Attention

-

Example

'!TITLE "Acquire the motor state"
' Acquire the motor state
Sub Sample_MotorState

  Dim aaa As Integer

  ' Acquire the motor state
  aaa = MotorState

  ' Display the motor state in the message output window
  PrintDbg aaa

End Sub

ID : 9052

<< Prev        Next >>