MC-Basic:PlcMotionStatusCreate

From SoftMC-Wiki
Revision as of 09:06, 8 November 2012 by Arwiebe (talk | contribs)
Jump to: navigation, search

Creates a new PlcMotionStatus object and returns a pointer in memory to it.

Syntax

<handle> = PlcMotionStatusCreate

Availability

4.10.x

Type

Long

Scope

Task or Terminal

Examples

dim MOT_READY as const long = 123
dim MotStatHanlde as long

MotStatHanlde = PlcMotionStatusCreate

Move A1 PlcMotionStatus= MotStatHanlde

do
  sleep 100
loop until PlcMotionStatusQuery(MotStatHanlde, MOT_READY)

PlcMotionStatusDestroy(MotStatHanlde)

See Also