<< Prev        Next >>

ID : 3670

Motor

Function

Turn ON/OFF the motor power.

Syntax

Motor ON/OFF

Guaranteed Entry

ON/OFF
Designate ON/OFF by integer type data. To turn ON the motor, enter ON, True, or an integer other than 0.
To turn OFF the motor, enter OFF, False, or 0.

Description

The motor power is turned ON/OFF.

If the motor power is off, all programs other than supervisory tasks stop.
To keep running programs while the motor power is off, set the program parameter "11: Motor off command setting" to "1: No Stop (non-motion command only)".

Related Terms

-

Attention

-

Example

'!TITLE "Switching Motor Power"
' Switch ON/OFF the motor power
Sub Sample_Motor

  ' Turn ON the motor power
  Motor on

  ' Turn OFF the motor power
  Motor off

End Sub

ID : 3670

<< Prev        Next >>