Control Techniques Epsilon EP-P Reference Manual page 136

Table of Contents

Advertisement

Else
This program flow instruction is used in conjunction with the If/Then/Endif instruction. If the If/Then test condition evaluates to true the code
after the If/Then and before the Else is executed. If the test evaluates to false the code between the Else and the Endif is executed.
Example:
If DriveInput.1=ON Then
DriveOutput.1=ON
DriveOutput.2=OFF
Else
DriveOutput.1=OFF
DriveOutput.2=ON
Endif
Example:
If (DriveInput.5=ON) Then
Jog.0.Vel = 1.0 'in/s
Else
Jog.0.Vel = 0.1 'in/s
Endif
End
This program flow instruction is used to halt the execution of the program. It can be used in multiple places within the program. It is not required
on the last line of every program. It is implied that after the controller executes the last line of code in a program the program will halt. It is
commonly used inside of If/Then/Endif constructs to end the program if a certain condition has been met.
Example:
If DriveInput.1=OFF Then
End
Endif
Example:
If DriveInput.1=ON Then
DriveOutput.1=ON
End
Endif
For Count/Next
This instruction is used to execute section of code a specific number of times.
Example:
For Count = 1 to 5
Index.1.Initiate
Dwell For Time 1.000
Next
Example:
For Count = 1 To 10
Wait For DriveInput.1 = ON
Index.0.Initiate
Wait For Index.AnyCommandComplete
DriveOutput.1=ON
Wait For Time 1.000
DriveOutput.1=OFF
Next
Formula
This program instruction can be used to enter a formula or assignment into a program. All parameters are available for use in a formula. They
may be dragged and dropped into a formula, but the program User Level will determine how many appear for dragging and dropping (see the
section on User Level in the Setting Up Parameters chapter). Formulas can also be created by simply typing them into the program. This
instruction was created to inform the user that formulas can be used in a program.
Examples:
Index.1.Vel = 20.0
Index.0.Dist = Index.2.Dist + 0.1
DriveOutput.1 = ON
Index.0.Accel = (Index.0.Accel*1000)+5.00
122
'The following two lines are executed if
'DriveInput.1=ON
'The following two lines are executed if
'DriveInput.1=OFF
'Set fast velocity if DriveInput.5 = ON
'Set slow velocity if DriveInput.5 = OFF
'Incremetal,Dist=5.250in,Vel=10.0in/s
'seconds
'Incremetal,Dist=5.000in,Vel=50in/s
'Turn DriveOutput.1 On
'seconds
'Turn DriveOutput.1 Off
www.controltechniques.com
Epsilon EP-P Drive Reference Manual
Revision: A4

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Epsilon EP-P and is the answer not in the manual?

Table of Contents