MC-Basic:PlcMotionStatusCreate

From SoftMC-Wiki
Revision as of 09:20, 22 May 2014 by Miborich (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 MotStatHanlde as long

MotStatHanlde = PlcMotionStatusCreate

Move A1 100 PlcMotionStatus= MotStatHanlde

while A1.isMoving
  sleep 100
  Print PlcMotionStatusQuery(MotStatHanlde, 1)
end while 

PlcMotionStatusDestroy(MotStatHanlde)

See Also