140
FM-3 Programming Module Reference Manual
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
Subroutine for Jogging the Axis into the Desired Position (Program 1)
‘Allow jogging until either the “Learn” input (ModuleInput.1)
‘or the “Skip” input (ModuleInput.2) goes ON.
Do While ((ModuleInput.1=OFF) AND (ModuleInput.2=OFF))
If (ModuleInput.3=ON) Then
‘Jog+ if the Jog+ input is on
Jog.0.PlusInitiate
‘Vel=0.1in/s
Do While (ModuleInput.3=ON)
If (ModuleInput.5=ON) Then
‘ModuleInput.5 = “Jog Fast”
Jog.0.Vel = 1.0
‘in/s
Else
Jog.0.Vel = 0.1
‘in/s
Endif
Loop
Jog.Stop
‘Stop jogging when the Jog+ input goes off.
Endif
If (ModuleInput.4=ON) Then
‘Jog- if the Jog- input is on
Jog.0.MinusInitiate
‘Vel=0.1in/s
Do While (ModuleInput.4=ON)
If (ModuleInput.5=ON) Then
‘ModuleInput.5 = “Jog Fast”
Jog.0.Vel = 1.0
‘in/s
Else
Jog.0.Vel = 0.1
‘in/s
Summary of Contents for FM-3
Page 2: ......
Page 14: ...xii ...
Page 16: ...2 FM 3 Programming Module Reference Manual Figure 2 FM 3 Programming Module Features ...
Page 128: ...114 FM 3 Programming Module Reference Manual ...
Page 156: ...142 FM 3 Programming Module Reference Manual ...
Page 196: ...182 FM 3 Programming Module Reference Manual ...
Page 238: ...224 FM 3 Programming Module Reference Manual ...
Page 251: ...237 Diagnostics and Troubleshooting Figure 97 Diagnostic Cable DGNE Diagram ...
Page 262: ...248 FM 3 Programming Module Reference Manual ...
Page 264: ...250 FM 3 Programming Module Reference Manual AX4 CEN CDRO ...
Page 265: ...251 Specifications Cable Diagrams ...
Page 266: ...252 FM 3 Programming Module Reference Manual SNCE XXX Cable SNCDD 001 5 Cable ...
Page 267: ...253 Specifications SNCO 003 Cable SNCI 003 Cable ...
Page 268: ...254 FM 3 Programming Module Reference Manual SNCLI 003 Cable ...
Page 272: ...258 FM 3 Programming Module Reference Manual TIA XXX Cable DDS XXX Cable ...
Page 274: ...260 FM 3 Programming Module Reference Manual CMDS XXX Cable CMMS XXX Cable ...
Page 275: ...261 Specifications CFCS XXX Cable ...
Page 276: ...262 FM 3 Programming Module Reference Manual CFCO XXX Cable ...
Page 277: ...263 Specifications CFOS XXX Cable ...
Page 278: ...264 FM 3 Programming Module Reference Manual ...
Page 286: ...272 FM 3 Programming Module Reference Manual ...
Page 290: ...276 FM 3 Programming Module Reference Manual ...
Page 291: ......