5 - 2 IAG Project Subroutines in IAG projects are described basically in the same way as those in NA projects. The following is a procedure to assign subroutines to events and actions of onscreen components. 1. Place a button and a data display component on a screen of IAG component. Open IAG user variable view. Enter a variable to be assigned to the data display component in Internal variable table/IO variable table. [Example] A single type variable Disp_Val is registered. NOTE: Internal variable table is for the variables used only within IAG. IO variable table is used when you use the same variable in the screen with the IAG component.
It is necessary to change IO configuration, from In to In/Out. 2. Enter the variable of the previous section, Disp_Val, in Conditional Expression/Operation field in Data display component property. 3. Choose Click in Event field of Event and Action. Enter the subroutine’s name in SubroutineName to assign the subroutine to the action. [Example] SubroutineName: Data_Calc NOTE: The frame of Subroutine Name field is red (means error) because the subroutine code has not been described yet at this point. 27