Emerson Epsilon EP Drive 400518-01 Manual de instalación Pagina 117

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 240
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 116
105
Programming
Examples:
Do While DriveInput.1=ON ‘Repeat the three lines of code below
‘as long as DriveInput.1 is ON.
Index.1.Initiate ‘Incremental,Dist=5.250in,Vel=10.0in/s
Dwell For Time 1.000 ‘seconds
Loop
Do While (DriveInput.1=ON AND DriveInput.2=OFF)
‘Repeat the three lines of code below
‘as long as DriveInput.1 is ON and
‘DriveInput.2=OFF.
Index.1.Initiate ‘Incremental,Dist=5.250in,Vel=10.0in/s
Dwell For Time 1.000 ‘seconds
Loop
Do While (TRUE) ‘Repeat until the program is halted
Index.1.Initiate ‘Incremental,Dist=5.250in,Vel=10.0in/s
Dwell For Time 1.000 ‘seconds
Loop
Wait For
This program flow instruction is used to halt program execution until an expression becomes true. Once the expression
becomes true the program continues on with the next line of code.
Logical tests (AND, OR, NOT) can be used in the Wait For instruction. Output events (DriveInput=ON, AtVel, etc.) as well
as comparisons (PosnFeedback > 1234, VelFeedback < 100, etc.) can be used in a Wait For instruction.
Examples:
Wait For (DriveInput.1=ON AND DriveInput.2=OFF)
Index.0.Initiate
Wait For Index.AnyCommandComplete
If (DriveInput.2=ON) Then ‘Jog+ when DriveInput.2=ON
Jog.0.PlusInitiate ‘Vel=20in/s
Wait For DriveInput.2=OFF ‘Stop when the input goes OFF
Jog.Stop ‘Decelerate to a stop
Endif
If (DriveInput.3=ON) Then ‘Jog- when DriveInput.3=ON
Jog.0.MinusInitiate ‘Vel=20in/s
Wait For DriveInput.3=OFF ‘Stop when the input goes OFF
Jog.Stop ‘Decelerate to a stop
Endif
Wait For (MasterAxis.PosnFeedback > 1000.00)
DriveOutput.1 = ON
Wait For (VelFeedback > 50.00)
DriveOutput.2 = ON
Wait For Time
This program instruction is used to halt program execution for a specified period of time. This instruction is not a motion
instruction and can be used while a motion instruction is executing. Units: Seconds, Resolution: 0.001 seconds
A comment is automatically inserted after the “Wait For Time” instruction which notes that the time is in units of seconds.
The comment starts with the apostrophe ‘ character.
Examples:
Wait For Time 5.000 ‘seconds
Do While (TRUE) ‘Repeat until the program is halted
Index.1.Initiate ‘Incremental,Dist=25.250in,Vel=10.0in/s
Wait For AtVel
‘Turn Output 1 ON for 1 second, after the ‘index reaches its’ tar-
get velocity
DriveOutput.1=ON
Wait For Time 1.000 ‘seconds
Vista de pagina 116
1 2 ... 112 113 114 115 116 117 118 119 120 121 122 ... 239 240

Comentarios a estos manuales

Sin comentarios