MC-Basic:PlcMotionStatusQuery

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

Queries variables of a PlcMotionStatus object.

Syntax

Print PlcMotionStatusQuery(<handle>, <index>)

Availability

4.10.x

Type

Long

Range

  • index: 1 ..

Scope

Task or Terminal

Limitations

  • Read-Only

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