Difference between revisions of "MC-Basic:element.PlcMotionStatus"
Line 39: | Line 39: | ||
|EXAMPLE= | |EXAMPLE= | ||
<pre> | <pre> | ||
− | |||
dim MotStatHanlde as long | dim MotStatHanlde as long | ||
Line 46: | Line 45: | ||
Move A1 PlcMotionStatus= MotStatHanlde | Move A1 PlcMotionStatus= MotStatHanlde | ||
− | + | while A1.isMoving | |
sleep 100 | sleep 100 | ||
− | + | Print PlcMotionStatusQuery(MotStatHanlde, 1) | |
+ | end while | ||
PlcMotionStatusDestroy(MotStatHanlde) | PlcMotionStatusDestroy(MotStatHanlde) |
Revision as of 09:02, 15 November 2012
Transfers a pointer to the PlcMotionStatus object used to implement PLCOpen motion commands. Used in:
- MOVE
- MOVES
- JOG
- TORQUE
- CIRCLE
- SINEWAVE
Syntax
<element>.PlcMotionStatus
Availability
4.10.x
Type
Long
Units
N/A
Default
0
Scope
Task or Terminal
Limitations
Nodal-Only
Examples
dim MotStatHanlde as long MotStatHanlde = PlcMotionStatusCreate Move A1 PlcMotionStatus= MotStatHanlde while A1.isMoving sleep 100 Print PlcMotionStatusQuery(MotStatHanlde, 1) end while PlcMotionStatusDestroy(MotStatHanlde)