139
Programming
ModuleOutput.3=OFF
Endif
‘Decrease the fill amount once every time ModuleInput.4 is pressed.
If ((ModuleInput.4=ON) AND (ModuleOutput.4=OFF)) Then
Index.1.Dist = Index.1.Dist - 0.10 ‘ounces
ModuleOutput.4=ON
‘ModuleOutput.4 is used to make sure that the distance is
‘incremented only once each time ModuleInput.4 is pressed.
If (Index.1.Dist < 12) Then
ModuleOutput.2=ON
‘Short index output
Else
ModuleOutput.2=OFF
Endif
Endif
If((ModuleInput.4=OFF) AND (ModuleOutput.4=ON)) Then
ModuleOutput.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 (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
Содержание FM-3
Страница 2: ......
Страница 14: ...xii ...
Страница 16: ...2 FM 3 Programming Module Reference Manual Figure 2 FM 3 Programming Module Features ...
Страница 128: ...114 FM 3 Programming Module Reference Manual ...
Страница 156: ...142 FM 3 Programming Module Reference Manual ...
Страница 196: ...182 FM 3 Programming Module Reference Manual ...
Страница 238: ...224 FM 3 Programming Module Reference Manual ...
Страница 251: ...237 Diagnostics and Troubleshooting Figure 97 Diagnostic Cable DGNE Diagram ...
Страница 262: ...248 FM 3 Programming Module Reference Manual ...
Страница 264: ...250 FM 3 Programming Module Reference Manual AX4 CEN CDRO ...
Страница 265: ...251 Specifications Cable Diagrams ...
Страница 266: ...252 FM 3 Programming Module Reference Manual SNCE XXX Cable SNCDD 001 5 Cable ...
Страница 267: ...253 Specifications SNCO 003 Cable SNCI 003 Cable ...
Страница 268: ...254 FM 3 Programming Module Reference Manual SNCLI 003 Cable ...
Страница 271: ...257 Specifications CDRO XXX Cable 8 9 24 23 38 37 11 12 34 16 14 15 29 4 19 26 40 18 17 31 33 43 44 41 27 ...
Страница 272: ...258 FM 3 Programming Module Reference Manual TIA XXX Cable DDS XXX Cable ...
Страница 274: ...260 FM 3 Programming Module Reference Manual CMDS XXX Cable CMMS XXX Cable ...
Страница 275: ...261 Specifications CFCS XXX Cable ...
Страница 276: ...262 FM 3 Programming Module Reference Manual CFCO XXX Cable ...
Страница 277: ...263 Specifications CFOS XXX Cable ...
Страница 278: ...264 FM 3 Programming Module Reference Manual ...
Страница 286: ...272 FM 3 Programming Module Reference Manual ...
Страница 290: ...276 FM 3 Programming Module Reference Manual ...
Страница 291: ......