![background image](http://html1.mh-extra.com/html/omron/fh-1-series/fh-1-series_user-manual_742686804.webp)
WWW.NNC.IR
Macro Reference
802
Vision System FH/FZ5 Series
User’s Manual (Z340)
Example
Uses the variables used in subroutines as local variables.
*EXPA
Rem Display the current value of the variable.
Print A&, B&, C&, D#, E#
Rem Use the EXPA subroutine to save the current values of the variables in order to prepare for treating the variable
as local variables.
VarPush A&, B&, C&, D#, E#
Rem Use A&, B&, C&, D#, and E# freely.
GetUnitData 2, "CR", A&
GetUnitData 3, "CR", B&
GetUnitData 4, "CR", C&
GetUnitData 5, "X", D#
GetUnitData 6, "Y", E#
Rem Check the current values of the variables before calling the subroutine.
Print A&, B&, C&, D#, E#
Rem Variables named A&, B&, C& are used in the *EXPB subroutine.
Rem These names are also used for variables in this *EXPA subroutine.
Rem Although being nested with the Gosub statement in this program example,
Rem saving and restoration of variable values are performed with the Varpush and Varpop functions within the *EXPB
subroutine,
Rem so as to prevent variable values from being unintentionally overwritten.
Gosub *EXPB
Rem Check the current value of the variables after calling the subroutine.
Print A&, B&, C&, D#, E#
Rem Restore the current value of the variables that were saved at the beginning of the subroutine EXPA.
VarPop
Return
*EXPB
Содержание fh-1 series
Страница 8: ...WWW NNC IR 6 Vision System FH FZ5 Series User s Manual Z340...
Страница 14: ...WWW NNC IR 12 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 22: ...WWW NNC IR 20 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 48: ...WWW NNC IR Initializing the Controller 46 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 68: ...WWW NNC IR Editing Scene Groups 66 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 132: ...WWW NNC IR Useful Functions for Operation 130 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 172: ...WWW NNC IR Saving Scene Groups in External Memory 170 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 254: ...WWW NNC IR Basic Knowledge For Macro Customize Functions 252 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 650: ...WWW NNC IR Macro Reference 648 Vision System FH FZ5 Series User s Manual Z340 Related Items None...
Страница 881: ...WWW NNC IR...