Standard function blocks
398
IF
(10103)
Illustration
Execution time
-
Operation
The IF, ELSE, ELSEIF and ENDIF blocks define, by Boolean logic, which parts of the
application program are executed.
If the condition input (COND) is true, the blocks between the IF block and the next
ELSEIF, ELSE or ENDIF block (in execution order) are run. If the condition input
(COND) is false, the blocks between the IF block and the next ELSEIF, ELSE or ENDIF
block are skipped.
The outputs of the “branches” are collected and selected by using the
block.
Example:
Bit 4 of
(digital input DI5) controls the branching of the application
program. If the input is 0, the blocks between the IF and ELSE blocks are skipped but
the blocks between ELSE and ENDIF are run. If the input is 1, the blocks between IF
and ELSE are run. The program execution then jumps to the block that follows ENDIF,
which is a BOP. The BOP block outputs the value from the branch that was executed. If
the digital input is 0, the BOP block output is 2; if the digital input is 1, the BOP block
output is 1.
Inputs
Input (COND): Boolean
Outputs
-
Содержание ACSM1 Series
Страница 1: ...ABB motion control drives Firmware manual ACSM1 motion control program ...
Страница 4: ......
Страница 34: ...Drive programming using PC tools 34 ...
Страница 86: ...Drive control and features 86 ...
Страница 265: ...Parameters and firmware blocks 265 1 100 us 100 µs 2 1 ms 1 ms 3 50 ms 50 ms ...
Страница 302: ...Parameter data 302 ...
Страница 422: ...Application program template 422 ...
Страница 430: ...Appendix A Fieldbus control 430 ...
Страница 500: ...Appendix D Application examples 500 ...
Страница 508: ...Appendix E Control chain and drive logic diagrams 508 ...
Страница 510: ...3AFE68848270 REV H EN 2015 06 26 Contact us www abb com drives www abb com drivespartners ...