<8. Detailed Description>
145
TI 34P02K35-02E Jun. 6, 2018-00
4. Conditional Example 1
This sample application combines a condition with a calculation. Using an IF
statement, b=b+1 is executed when variable ‘a’ is OFF.
In the top figure, the FBD application is shown on the left while the LD application on
the right. The two applications, though represented somewhat differently, are
essentially the same. The lower figure shows the ST application.
The FBD and LD applications implement the IF statement using the Return function
and Jump function, which is less intuitive for understanding.
The ST application, in contrast, represents the IF statement as a conditional and a
calculation, which enables intuitive understanding of the application.
TIP
Return function: The Return function is coded as “<RETURN>” in Logic Designer. When the condition
of a Return function is true, logic following “<RETURN>” in the logical POU are skipped over, and
not executed.
Jump function:
The Jump function is implemented using a jump and a label.
In the above picture, “-->> THEN_RETURN” represents the jump. When this part of the logic is true,
control jumps to the “THEN_RETURN:” part, skipping the execution of the logic in between.
For details on the Jump function and Return function, see Section 9.1.7, “Jump, Connector and Return
Functions” of Chapter 9, “Advanced Engineering.”
Summary of Contents for STARDOM FCN-500
Page 2: ...Blank Page...
Page 10: ...Blank Page...
Page 32: ...Blank Page...
Page 36: ...TI 34P02K35 02E Jun 6 2018 00 Blank Page...
Page 76: ...TI 34P02K35 02E Jun 6 2018 00 Blank Page...
Page 163: ...Blank Page...
Page 221: ...Blank Page...
Page 225: ...Blank Page...