
124
Epsilon EP-P Drive and FM-3/4 Module Reference Manual
If ((DriveInput.4=ON) AND (DriveOutput.4=OFF)) Then
Index.1.Dist = Index.1.Dist - 0.10 ‘ounces
DriveOutput.4=ON
‘DriveOutput.4 is used to make sure that the distance is
‘incremented only once each time DriveInput.4 is pressed.
If (Index.1.Dist < 12) Then
DriveOutput.2=ON ‘Short index output
Else
DriveOutput.2=OFF
Endif
Endif
If((DriveInput.4=OFF) AND (DriveOutput.4=ON)) Then
DriveOutput.4=OFF
Endif
Loop
Sequence Learn and Playback
This example consists of three programs. The first program is used to learn 3 positions using “Jog+”, “Jog-“, “Jog Fast” and
“Learn” inputs. The second program is called several times by the first program. The third program steps through the learned
positions
Learn Program (Program 0)
Home.0.Initiate ‘Sensor,Offset=0.000in,Vel=-10in/s
Index.1.Initiate ‘Move to position 1
Wait For Index.AnyCommandComplete
Call Program.1 ‘Program 1 allows the axis to be jogged
‘into position
If (DriveInput.1=ON) Then ‘Learn the new position if the “Learn”
‘input is on
Index.1.Dist = PosnCommand ‘Read the Position Command into Index.1’s
‘absolute position.
Endif
Wait For DriveInput.1=OFF ‘Wait until the “Learn” input goes off
Wait For DriveInput.2=OFF ‘Wait until the “Skip” input goes off
Index.2.Initiate ‘Move to position 2
Wait For Index.AnyCommandComplete
Call Program.1 ‘Program 1 allows the axis to be jogged
‘into position
If (DriveInput.1=ON) Then ‘Learn the new position if the “Learn”
‘input is on
Index.2.Dist = PosnCommand ‘Read the Position Command into Index.2’s
‘absolute position.
Endif
Wait For DriveInput.1=OFF ‘Wait until the “Learn” input goes off
Wait For DriveInput.2=OFF ‘Wait until the “Skip” input goes off
Index.3.Initiate ‘Move to position 3
Wait For Index.AnyCommandComplete
Call Program.1 ‘Program 1 allows the axis to be jogged
‘into position
If (DriveInput.1=ON) Then ‘Learn the new position if the “Learn”
‘input is on
Index.3.Dist = PosnCommand ‘Read the Position Command into Index.3’s
‘absolute position.
Endif
Wait For DriveInput.1=OFF ‘Wait until the “Learn” input goes off
Wait For DriveInput.2=OFF ‘Wait until the “Skip” input goes off
Comentarios a estos manuales