<< Prev        Next >>

ID : 206

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 stop other than supervisory tasks and TP panel tasks.
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

Turning ON Motor

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 : 206

<< Prev        Next >>