Difference between revisions of "MC-Basic:PlcMotionStatusCreate"
Line 35: | Line 35: | ||
MotStatHanlde = PlcMotionStatusCreate | MotStatHanlde = PlcMotionStatusCreate | ||
− | Move A1 PlcMotionStatus= MotStatHanlde | + | Move A1 100 PlcMotionStatus= MotStatHanlde |
while A1.isMoving | while A1.isMoving |
Revision as of 09:32, 15 November 2012
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)