125
Programming
DriveOutput.1 = ON
End
See GoTo instruction for additional examples.
GoTo
The GoTo instruction is used in conjunction with the Label: instruction to cause program flow
to transfer to a specified location within a program. The destination label is allowed to be
above or below the GoTo instruction within the same program. It is not possible to GoTo a
label outside of the program containing the GoTo instruction, nor is it possible to use a GoTo/
Label: to exit out of a For Count/Next loop. In either of these conditions, a RedDot error will
be generated.
The Label to which program flow transfers is a character string up to 50 characters in length
and can be made up of any alphanumeric character. The label name must not start with a
number, and must end with a colon character “:”.
Labels are not case sensitive.
Example:
Do While (TRUE)
If (DriveInput.1 = ON) Then
GoTo RunIndex1: ‘Go to RunIndex1 label
Else
GoTo RunIndex2: ‘Go to RunIndex2 label
EndIf
RunIndex1:‘ If Input.1 is on, resume here
Index.1.Initiate
GoTo EndLoop: ‘GoTo EndLoop label
RunIndex2:‘ If Input.1 is off, resume here
Index.2.Initiate
EndLoop:
Wait For Index.AnyCommandComplete
Loop
See the Label: instruction for additional examples.
Motion Instructions
Dwell For Time
This motion instruction is used to pause program execution for a very precise amount of time.
It operates as a motion instruction – similar to an index, home or jog. Like all other motion
instructions it will not start until the preceding motion instruction has completed. A “Wait for
Index.AnyCommandComplete” is not required. Likewise, any subsequent motion commands
will wait and start after the dwell has completed. The total time required to complete a sequence
of indexes and “Dwell For Time” instructions is extremely repeatable.
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: ......