120
FM-3 Programming Module Reference Manual
Jog.0.PlusInitiate
‘Vel=20in/s
Wait For ModuleInput.2=OFF
‘Stop when the input goes OFF
Jog.Stop
‘Decelerate to a stop
Endif
If (ModuleInput.3=ON) Then
‘Jog- when ModuleInput.3=ON
Jog.0.MinusInitiate
‘Vel=20in/s
Wait For ModuleInput.3=OFF
‘Stop when the input goes OFF
Jog.Stop
‘Decelerate to a stop
Endif
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.
Examples:
If DriveInput.1=ON Then
‘The following two lines are executed if
‘DriveInput.1=ON
DriveOutput.1=ON
DriveOutput.2=OFF
Else
‘The following two lines are executed if
‘DriveInput.1=OFF
DriveOutput.1=OFF
DriveOutput.2=ON
Endif
If (ModuleInput.5=ON) Then
‘Set fast velocity if ModuleInput.5 = ON
Jog.0.Vel = 1.0 ‘in/s
Else
‘Set slow velocity if ModuleInput.5 = OFF
Jog.0.Vel = 0.1 ‘in/s
Endif
For Count/Next
This instruction is used to execute section of code a specific number of times.
Examples:
For Count = 1 to 5
Index.1.Initiate
‘Incremetal,Dist=5.250in,Vel=10.0in/s
Dwell For Time 1.000
‘seconds
Next
For Count = 1 To 10
Wait For ModuleInput.1 = ON
Index.0.Initiate
‘Incremetal,Dist=5.000in,Vel=50in/s
Wait For Index.AnyCommandComplete
ModuleOutput.1=ON
‘Turn ModuleOutput.1 On
Wait For Time 1.000
‘seconds
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: ......