Difference between revisions of "MC-Basic:element.PlcMotionStatus"

From SoftMC-Wiki
Jump to: navigation, search
 
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
{{Languages|MC-Basic:element.PlcMotionStatus}}
 
{{MC-Basic
 
{{MC-Basic
 
|SHORT FORM=
 
|SHORT FORM=
  
 
|SYNTAX=
 
|SYNTAX=
<element>.MotionStatus
+
<element>.PlcMotionStatus
  
 
|AVAILABILITY=
 
|AVAILABILITY=
Line 9: Line 10:
  
 
|DESCRIPTION=
 
|DESCRIPTION=
Transfers a pointer to the MotionStatus object used to implement PLCOpen motion commands.
+
Transfers a pointer to the PlcMotionStatus object used to implement PLCOpen motion commands.
 
Used in:
 
Used in:
 
* MOVE
 
* MOVE
Line 16: Line 17:
 
* TORQUE
 
* TORQUE
 
* CIRCLE
 
* CIRCLE
 +
* SINEWAVE
 +
  
 
|TYPE=
 
|TYPE=
Line 37: Line 40:
 
|EXAMPLE=
 
|EXAMPLE=
 
<pre>
 
<pre>
dim MOT_READY as const long = 123
 
 
dim MotStatHanlde as long
 
dim MotStatHanlde as long
  
MotStatHanlde = MotionStatusCreate
+
MotStatHanlde = PlcMotionStatusCreate
  
Move A1 MotionStatus= MotStatHanlde
+
Move A1 100 PlcMotionStatus= MotStatHanlde
  
do
+
while A1.isMoving
 
   sleep 100
 
   sleep 100
loop until MotionStatusQuery(MotStatHanlde, MOT_READY)
+
  Print PlcMotionStatusQuery(MotStatHanlde, 1)
 +
end while
  
MotionStatusDestroy(MotStatHanlde)
+
PlcMotionStatusDestroy(MotStatHanlde)
 
</pre>
 
</pre>
  
 
|SEE ALSO=
 
|SEE ALSO=
* [[AXY:MC-Basic:PlcMotionStatusCreate|MotionStatusCreate]]
+
* [[MC-Basic:PlcMotionStatusCreate|PlcMotionStatusCreate]]
* [[AXY:MC-Basic:PlcMotionStatusDestroy|MotionStatusDestroy]]
+
* [[MC-Basic:PlcMotionStatusDestroy|PlcMotionStatusDestroy]]
* [[AXY:MC-Basic:PlcMotionStatusQuery|MotionStatusQuery]]
+
* [[MC-Basic:PlcMotionStatusQuery|PlcMotionStatusQuery]]
 
}}
 
}}
  
[[Category:Axystems:PLC]]
+
[[Category:PLC]]

Latest revision as of 02:14, 27 October 2017

Language: English  • 中文(简体)‎

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 100 PlcMotionStatus= MotStatHanlde

while A1.isMoving
  sleep 100
  Print PlcMotionStatusQuery(MotStatHanlde, 1)
end while 

PlcMotionStatusDestroy(MotStatHanlde)

See Also