123
Programming
In the diagram below, => Represents a Call Program instruction
Examples:
Call Program.10
‘Program 10 contains a complex home
‘routine.
Call Program.100
‘Program 100 contains a “teach position”
‘routine.
End
This program flow instruction is used to halt the execution of the program. It can be used in
multiple places within the program. It is not required on the last line of every program. It is
implied that after the controller executes the last line of code in a program the program will halt.
It is commonly used inside of If/Then/Endif constructs to end the program if a certain condition
has been met.
Examples:
If DriveInput.1=OFF Then
End
Endif
If DriveInput.1=ON Then
DriveOutput.1=ON
End
Endif
Formula
This program instruction can be used to enter a formula or assignment into a program. All
FM-3 parameters are available for use in a formula. They may be dragged and dropped into a
formula, but the program User Level will determine how many appear for dragging and
dropping (see the section on User Level in the Setting Up Parameters chapter). Formulas can
also be created by simply typing them into the program. This instruction was created to
inform the user that formulas can be used in a program.
Examples:
Index.1.Vel = 20.0
Index.0.Dist = Index.2.Dist + 0.1
ModuleOutput.1 = ON
Index.0.Accel = (Index.0.Accel*1000)+5.00
Program0=>Program1=>Program2=>Program3=>Program4 => NO MORE THAN 4!
Содержание 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: ......