![background image](http://html1.mh-extra.com/html/omron/fz4-series/fz4-series_user-manual_1633222295.webp)
4
Using
Tool
FZ4 User's Manual
Using Custom Command
293
*EXPA
' Save the variable content of a variable to be used as an internal variable
' --> The content of the specified variable will be stored in the storage region managed by the YVM system
Varpush A&,B&,C&,D#,E#
' The content of the variable stored by Varpush can be changed at will.
GetUnitData 2,"CR",A&
GetUnitData 3,"CR",B&
GetUnitData 4,"CR",C&
GetUnitData 5,"X",D#
GetUnitData 6,"Y",E#
' In the case where nesting is used in processing,
' the variables with the same names of A&,B&,C& are used in Subroutine *EXPB.
' however, the variable content will be used in *EXPB Varpush/Varpop
' saving/returning, so there will be no arbitrary rewriting of the variable content.
Gosub *EXPB
Print A&,B&,C&,D#,E#
' The content of the saved variable is returned
' --> When Varpop is executed, the variable content
saved by the nearby Varpush will be returned.
Varpop
Return
*EXPB
' The content of variables A&,B&,C&,D#,E# is stored to a different region by
' Varpush which is executed at the beginning of the *EXPA Subroutine
' so there is no danger of the content returned before disappearing.
' Varpush can be executed up to a maximum of 16 times.
Varpush A&,B&,C&,D#,E#
GetUnitData 2,"X",A&
GetUnitData 3,"X",B&
GetUnitData 4,"X",C&
D#=3
E#=100/512
Print A&,B&,C&,D#,E#
Varpop
Return
Acesst 1.0 6251194
Содержание FZ4 Series
Страница 1: ...User s Manual Cat No Z318 E1 02B Vision Sensor FZ4 Series...
Страница 12: ...1 Before Operation 10 Operation Flow FZ4 User s Manual Operation Flow Here describes the operation flow...
Страница 38: ...1 Before Operation 36 Setting Operation Mode FZ4 User s Manual 1 CPU 2 CPUs FZ4 11 H11 only...
Страница 112: ...3 Performing Test Measurement Starting Operation 110 Useful Functions for Operation FZ4 User s Manual...
Страница 326: ...4 Using Tool 324 Remotely Operating the Controller Remote Operation FZ4 User s Manual Enter the IP address...
Страница 330: ...4 Using Tool 328 Remotely Operating the Controller Remote Operation FZ4 User s Manual...
Страница 351: ...6 Changing the System Environment FZ4 User s Manual Setting the System Operation Environment 349 Communication...
Страница 566: ......
Страница 648: ...8 Appendixes 646 Manual Revision History FZ4 User s Manual...
Страница 654: ...652 FZ4 User s Manual...
Страница 655: ......