Difference between revisions of "MC-Basic:PlcMotionStatusDestroy"
(10 intermediate revisions by 2 users not shown) | |||
Line 31: | Line 31: | ||
|EXAMPLE= | |EXAMPLE= | ||
<pre> | <pre> | ||
− | |||
dim MotStatHanlde as long | dim MotStatHanlde as long | ||
MotStatHanlde = PlcMotionStatusCreate | MotStatHanlde = PlcMotionStatusCreate | ||
− | Move A1 PlcMotionStatus= MotStatHanlde | + | Move A1 100 PlcMotionStatus= MotStatHanlde |
− | + | while A1.isMoving | |
sleep 100 | sleep 100 | ||
− | + | Print PlcMotionStatusQuery(MotStatHanlde, 1) | |
+ | end while | ||
PlcMotionStatusDestroy(MotStatHanlde) | PlcMotionStatusDestroy(MotStatHanlde) | ||
Line 46: | Line 46: | ||
|SEE ALSO= | |SEE ALSO= | ||
− | * [[ | + | * [[MC-Basic:element.PlcMotionStatus|element.PlcMotionStatus]] |
− | * [[ | + | * [[MC-Basic:PlcMotionStatusCreate|PlcMotionStatusCreate]] |
− | * [[ | + | * [[MC-Basic:PlcMotionStatusQuery|PlcMotionStatusQuery]] |
}} | }} | ||
− | [[Category | + | [[Category:PLC]] |
Latest revision as of 09:20, 22 May 2014
Destroys a PlcMotionStatus object and frees its memory.
Syntax
PlcMotionStatusDestroy(<handle>)
Availability
4.10.x
Type
<handle>: 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)