Difference between revisions of "MC-Basic:PlcMotionStatusQuery"
m (Arwiebe moved page AXY:MC-Basic:MotionStatusQuery to AXY:MC-Basic:PlcMotionStatusQuery) |
|||
Line 3: | Line 3: | ||
|SYNTAX= | |SYNTAX= | ||
− | Print | + | Print PlcMotionStatusQuery(<''handle''>, <''index''>) |
|AVAILABILITY= | |AVAILABILITY= | ||
Line 9: | Line 9: | ||
|DESCRIPTION= | |DESCRIPTION= | ||
− | Queries variables of a | + | Queries variables of a PlcMotionStatus object. |
|TYPE= | |TYPE= | ||
Line 34: | Line 34: | ||
dim MotStatHanlde as long | dim MotStatHanlde as long | ||
− | MotStatHanlde = | + | MotStatHanlde = PlcMotionStatusCreate |
− | Move A1 | + | Move A1 PlcMotionStatus= MotStatHanlde |
do | do | ||
sleep 100 | sleep 100 | ||
− | loop until | + | loop until PlcMotionStatusQuery(MotStatHanlde, MOT_READY) |
− | + | PlcMotionStatusDestroy(MotStatHanlde) | |
</pre> | </pre> | ||
|SEE ALSO= | |SEE ALSO= | ||
− | * [[AXY:MC-Basic:element.PlcMotionStatus|element. | + | * [[AXY:MC-Basic:element.PlcMotionStatus|element.PlcMotionStatus]] |
− | * [[AXY:MC-Basic:PlcMotionStatusCreate| | + | * [[AXY:MC-Basic:PlcMotionStatusCreate|PlcMotionStatusCreate]] |
− | * [[AXY:MC-Basic:PlcMotionStatusDestroy| | + | * [[AXY:MC-Basic:PlcMotionStatusDestroy|PlcMotionStatusDestroy]] |
}} | }} | ||
[[Category:Axystems:PLC]] | [[Category:Axystems:PLC]] |
Revision as of 09:06, 8 November 2012
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)