![background image](http://html1.mh-extra.com/html/omron/fz4-series/fz4-series_user-manual_1633222185.webp)
4
Using
Tool
FZ4 User's Manual
Using Custom Command
183
Description
It is possible to specify an integer type or double-precision type as the storage destination for the return
value.
When an integet type has been specified, a rounded integer value is stored.
Example
Gets the difference between each coordinate of 2 points (X1,Y1)(X2,Y2).
X1#=100
Y1#=200
X2#=200
Y2#=100
DX#=Abs(X1#-X2#)
DY#=Abs(Y1#-Y2#)
The results are as follows:
DX#=100
DY#=100
Adds global data
AddGlobalData <dataIdent>, <data>
Parameters
<dataIdent>
Data ident that is to be add
<data>
Data to be add
Return Value
None.
Description
Adds global data.
Difference with system data addition.
・
GlobalData : It must be initialized when being start next time.(The value would not be saved.)
・
SystemData : If "Data save" is done, the value when "Data save" was done is set when being start
next time.
Example
information of "GsetData, 10" to global data.
AddGlobalData "GsetData", 10
Acesst 1.0 6251194
Summary of Contents for FZ4 Series
Page 1: ...User s Manual Cat No Z318 E1 02B Vision Sensor FZ4 Series...
Page 38: ...1 Before Operation 36 Setting Operation Mode FZ4 User s Manual 1 CPU 2 CPUs FZ4 11 H11 only...
Page 330: ...4 Using Tool 328 Remotely Operating the Controller Remote Operation FZ4 User s Manual...
Page 566: ......
Page 648: ...8 Appendixes 646 Manual Revision History FZ4 User s Manual...
Page 654: ...652 FZ4 User s Manual...
Page 655: ......