Emerson FM-3 Manual de instalación Pagina 110

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 230
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 109
96
FM-3 Programming Module Reference Manual
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 (ModuleInput.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 ModuleInput.1=OFF ‘Wait until the “Learn” input goes off
Wait For ModuleInput.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 (ModuleInput.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 ModuleInput.1=OFF ‘Wait until the “Learn” input goes off
Wait For ModuleInput.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 (ModuleInput.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 ModuleInput.1=OFF ‘Wait until the “Learn” input goes off
Wait For ModuleInput.2=OFF ‘Wait until the “Skip” input goes off
Vista de pagina 109
1 2 ... 105 106 107 108 109 110 111 112 113 114 115 ... 229 230

Comentarios a estos manuales

Sin comentarios