Difference between revisions of "Program Examples:Cyclic recording of one Axis"

From SoftMC-Wiki
Jump to: navigation, search
(Created page with "Inon")
 
Line 1: Line 1:
 +
= Introduction =
 
Inon
 
Inon
 +
 +
= Program flow =
 +
Inon
 +
 +
= Program =
 +
 +
 +
'''SETUP.PRG'''
 +
<pre>
 +
Program
 +
Call SetAxis(a1)
 +
Call SetAxis(a2)
 +
 +
End Program
 +
 +
Sub SetAxis(ax as generic axis)
 +
With ax
 +
Attach
 +
En = 0
 +
 +
<stuff goes here>
 +
 +
Detach
 +
End With
 +
End Sub
 +
 +
</pre>
 +
 +
= Plots =
 +
[[Image:GearMotor.png|GearMotor.png]]

Revision as of 13:34, 18 April 2017

Introduction

Inon

Program flow

Inon

Program

SETUP.PRG

Program
	Call SetAxis(a1)
	Call SetAxis(a2)	
	…
End Program

Sub SetAxis(ax as generic axis)
With ax
	Attach
		En = 0
		…
		<stuff goes here>
		…
	Detach
End With
End Sub

Plots

GearMotor.png