Difference between revisions of "MC-Basic:group.CIRCLEPOINT"

From SoftMC-Wiki
Jump to: navigation, search
(added circlePoint example)
Line 38: Line 38:
 
|EXAMPLE=
 
|EXAMPLE=
 
CIRCLE g1 CirclePoint = #{10,20} TargetPoint = #{100,200}
 
CIRCLE g1 CirclePoint = #{10,20} TargetPoint = #{100,200}
 +
 +
=''Half Circle''=
 +
Here is a simple example for generating half circle motion with a delta (XYZR) robot.
 +
<syntaxhighlight lang="vb">
 +
Attach DELTA
 +
DELTA.En=1
 +
Record circPnt.rec 100000 Gap=1 RecData = DELTA.SetPoint{1},DELTA.SetPoint{2}, Sys.Clock
 +
Move DELTA #{100,0,426,0}
 +
Delay DELTA 3000
 +
RecordOn
 +
Circle DELTA CirclePoint=#{0,100,426,0} TargetPoint=#{-100,0,426,0}
 +
Delay DELTA 3000
 +
RecordClose
 +
Detach DELTA
 +
</syntaxhighlight>
 +
 +
[[File:circPnt.JPG|left|caption|450px]]
 +
 +
 +
 +
  
 
|SEE ALSO=
 
|SEE ALSO=

Revision as of 08:58, 13 June 2016

Sets a point of the circle arc executed by CIRCLE command. If this is given, the angle and circlecenter are not required, but the TargetPoint is.

Data Type           point (location or joint)

Syntax

<group>.CirclePoint

Availability

All versions

Units

location-units

Non-Volatile        No

Scope

Task, Terminal

Write Access       Write – Nodal Only

Limitations

Can only be given in the CIRCLE command

Examples

CIRCLE g1 CirclePoint = #{10,20} TargetPoint = #{100,200}

Half Circle

Here is a simple example for generating half circle motion with a delta (XYZR) robot.

Attach DELTA
	DELTA.En=1
	Record circPnt.rec 100000 Gap=1 RecData = DELTA.SetPoint{1},DELTA.SetPoint{2}, Sys.Clock
	Move DELTA #{100,0,426,0}
	Delay DELTA 3000
	RecordOn
	Circle DELTA CirclePoint=#{0,100,426,0} TargetPoint=#{-100,0,426,0}
	Delay DELTA 3000
	RecordClose
Detach DELTA
caption

See Also