<< Prev        Next >>

ID : 7287

GetMotionPreparationState

Function

To obtain the motion preparation complete status.

This command is available in Ver.2.6.* or higher.

Syntax

GetMotionPreparationState

Return Value

Motion preparation complete status is returned by integer type data.

Value Description
0 Incomplete
1 Complete

Description

To obtain the motion preparation complete status. If the motion preparation is not completed, execute MotionPreparation to complete the motion preparation.

Attention

-

Example

Sub Main
  'Execute the following commands in the supervisory task.

  'Recovery procedure from the error occurrence or emergency stop
  If CurErr( 0 ) Then
    ClrErr
  End If
  
  If GetMotionPreparationState = 0 Then
    MotionPreparation
  End If

End Sub

ID : 7287

<< Prev        Next >>