Difference between revisions of "MC-Basic:PlcMotionStatusCreate"

From SoftMC-Wiki
Jump to: navigation, search
Line 3: Line 3:
  
 
|SYNTAX=
 
|SYNTAX=
<''handle''> = MotionStatusCreate
+
<''handle''> = PlcMotionStatusCreate
  
 
|AVAILABILITY=
 
|AVAILABILITY=
Line 9: Line 9:
  
 
|DESCRIPTION=
 
|DESCRIPTION=
Creates a new MotionStatus object and returns a pointer in memory to it.
+
Creates a new PlcMotionStatus object and returns a pointer in memory to it.
  
 
|TYPE=
 
|TYPE=
Line 34: Line 34:
 
dim MotStatHanlde as long
 
dim MotStatHanlde as long
  
MotStatHanlde = MotionStatusCreate
+
MotStatHanlde = PlcMotionStatusCreate
  
Move A1 MotionStatus= MotStatHanlde
+
Move A1 PlcMotionStatus= MotStatHanlde
  
 
do
 
do
 
   sleep 100
 
   sleep 100
loop until MotionStatusQuery(MotStatHanlde, MOT_READY)
+
loop until PlcMotionStatusQuery(MotStatHanlde, MOT_READY)
  
MotionStatusDestroy(MotStatHanlde)
+
PlcMotionStatusDestroy(MotStatHanlde)
 
</pre>
 
</pre>
  
 
|SEE ALSO=
 
|SEE ALSO=
* [[AXY:MC-Basic:element.PlcMotionStatus|element.MotionStatus]]
+
* [[AXY:MC-Basic:element.PlcMotionStatus|element.PlcMotionStatus]]
* [[AXY:MC-Basic:PlcMotionStatusDestroy|MotionStatusDestroy]]
+
* [[AXY:MC-Basic:PlcMotionStatusDestroy|PlcMotionStatusDestroy]]
* [[AXY:MC-Basic:PlcMotionStatusQuery|MotionStatusQuery]]
+
* [[AXY:MC-Basic:PlcMotionStatusQuery|PlcMotionStatusQuery]]
  
 
}}
 
}}
  
 
[[Category:Axystems:PLC]]
 
[[Category:Axystems:PLC]]

Revision as of 09:06, 8 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 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