Rockwell Automation Publication 1756-RM003N-EN-P - October 2011 461
Program Control Instructions (JMP, LBL, JSR, RET, SBR, JXR, TND, MCR, UID, UIE, AFI, NOP, EOT, SFP, SFR, EVENT) Chapter 11
Example 3:
Function Block
42973
42972
2.The ADD instructions add Input_A, Input_B, and Input_C and place the result in Sum_A_B_C.
JSR instruction in Routine_A
Function blocks of the Add_Three_Inputs routine
1.The val ues in Add_Input_1,
Add_Input_2, an d Add_Input_3
are co pied to Input_A, Input_B,
and Input_C, re spectively.
3.The value of Sum_A_B_C is co pied t o
Add_Three_Result.