Omron FZ4 Series User Manual page 185

Vision sensor
Table of Contents

Advertisement

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>
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
FZ4 User's Manual
Data ident that is to be add
Data to be add
Using Custom Command
4
183

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fz4 series

Table of Contents