When Using Measurement Results Externally (Scan Edge Position)

Values Available in Expression

When this processing unit is selected in the "Unit" area of the Setting Expression window, the measurement items available in expressions are displayed in the sub-menu.
The measurement items displayed in the sub-menu are explained below.
For how to set up expression, see Structure and Creation of Expression.
Table: Values Available in Expressions (Scan Edge Position)
Measurement items
Character string
Description
Judge
JG
Judgement result
Peak edge position X
PEAKX
X-coordinate of the edge that is the furthest from the start point of the measurement region
Peak edge position Y
PEAKY
Y-coordinate of the edge that is the furthest from the start point of the measurement region
Bottom edge position X
BOTTOMX
X-coordinate of the edge that is the closest from the start point of the measurement region
Bottom edge position Y
BOTTOMY
Y-coordinate of the edge that is the closest from the start point of the measurement region
Edge position X Ave.
X
The average of X-coordinates of all the edges
Edge position Y Ave.
Y
The average of Y-coordinates of all the edges
Long distance Max.
PMAXD
The maximum distance between the approximate straight line and edge position (plus direction)
Long distance Min.
PMIND
The minimum distance between the approximate straight line and the edge position (plus direction)
Short distance Max.
BMAXD
The maximum distance between the approximate straight line and the edge position (minus direction)
Short distance Min.
BMIND
The minimum distance between the approximate straight line and the edge position (minus direction)
Deviation
DEV
Deviations of concavity and convex
Line angle
TH
The straight line's inclination against the measurement region does not include 180, which is displayed as -180.
Lost point count
LOST
Number of parts for which the detection of edges have failed
Linear coefficient A
A
A in the expression for the approximate straight line AX+BY+C=0.
Linear coefficient B
B
B in the expression for the approximate straight line AX+BY+C=0.
Linear coefficient C
C
C in the expression for the approximate straight line AX+BY+C=0.
Reference coordinate X
SX
X-coordinate of the reference coordinates
Reference coordinate Y
SY
Y-coordinate of the reference coordinates

External Reference List

The data types and their numbers that are available to refer from other processing units and external devices are shown below. For the input method, see "Input Format" in User's Manual, "How To Connect & Communicate With External Devices".
Table: External Reference Data List (Scan Edge Position)
No.
Data Name
Set/Get
Data Range
0
Judge
Get only
0: No judgement (unmeasured)
1: Judgement result OK
-1: Judgement result NG
1
Peak edge position X
Set/Get
0 to 99999.9999
2
Peak edge position Y
Set/Get
0 to 99999.9999
3
Bottom edge position X
Set/Get
0 to 99999.9999
4
Bottom edge position Y
Set/Get
0 to 99999.9999
5
Edge position X Ave.
Set/Get
-1 to 99999.9999
6
Edge position Y Ave.
Set/Get
-1 to 99999.9999
7
Long distance Max.
Set/Get
-1 to dist (X_MAX,Y_MAX)
8
Long distance Min.
Set/Get
-1 to dist (X_MAX,Y_MAX)
9
Short distance Max.
Set/Get
-1 to dist (X_MAX,Y_MAX)
10
Short distance Min.
Set/Get
-1 to dist (X_MAX,Y_MAX)
11
Deviation
Set/Get
-1 to dist (X_MAX,Y_MAX)
12
Line angle
Set/Get
-180 to 180
13
Lost point count
Set/Get
0 to 100
14
Linear coefficient A
Set/Get
-99999.9999 to 99999.9999
15
Linear coefficient B
Set/Get
-99999.9999 to 99999.9999
16
Linear coefficient C
Set/Get
-99999.9999 to 99999.9999
17
Reference coordinate X
Get only
0 to 99999.9999
18
Reference coordinate Y
Get only
0 to 99999.9999
101
Output coordinates
Set/Get
0: After scroll
1: Before scroll
102
Calibration
Set/Get
0: OFF
1: ON
103
Reflect to overall judgement
Set/Get
0: ON
1: OFF
120
Edge color specification
Set/Get
0: OFF
1: ON
121
Edge color R
Set/Get
0 to 255
122
Edge color G
Set/Get
0 to 255
123
Edge color B
Set/Get
0 to 255
124
Defference R
Set/Get
0 to 127
125
Defference G
Set/Get
0 to 127
126
Defference B
Set/Get
0 to 127
127
Detection mode
Set/Get
0: Color IN
1: Color OUT
129
Reference coordinate X
Set/Get
0 to 99999.9999
130
Reference coordinate Y
Set/Get
0 to 99999.9999
131
Edge No.
Set/Get
0 to 99
132
Edge level
Set/Get
0 to 100
133
Noise level
Set/Get
0 to 442
134
Noise width
Set/Get
0 to 9999
135
Edge color level
Set/Get
0 to 442
136
Upper limit of the maximum edge position X
Set/Get
-99999.9999 to 99999.9999
137
Lower limit of the maximum edge position X
Set/Get
-99999.9999 to 99999.9999
138
Upper limit of the maximum edge position Y
Set/Get
-99999.9999 to 99999.9999
139
Lower limit of the maximum edge position Y
Set/Get
-99999.9999 to 99999.9999
140
Upper limit of the minimum edge position X
Set/Get
-99999.9999 to 99999.9999
141
Lower limit of the minimum edge position X
Set/Get
-99999.9999 to 99999.9999
142
Upper limit of the minimum edge position Y
Set/Get
-99999.9999 to 99999.9999
143
Lower limit of the minimum edge position Y
Set/Get
-99999.9999 to 99999.9999
144
Upper limit of the average edge position X
Set/Get
-99999.9999 to 99999.9999
145
Lower limit of the average edge position X
Set/Get
-99999.9999 to 99999.9999
146
Upper limit of the average edge position Y
Set/Get
-99999.9999 to 99999.9999
147
Lower limit of the average edge position Y
Set/Get
-99999.9999 to 99999.9999
148
Upper limit of the long distance maximum
Set/Get
0 to dist (X_MAX,Y_MAX)
149
Lower limit of the long distance minimum
Set/Get
0 to dist (X_MAX,Y_MAX)
150
Upper limit of the song distance minimum
Set/Get
0 to dist (X_MAX,Y_MAX)
151
Lower limit of the short distance minimum
Set/Get
0 to dist (X_MAX,Y_MAX)
152
Upper limit of the deviation
Set/Get
0 to dist (X_MAX,Y_MAX)
153
Lower limit of the deviation
Set/Get
0 to dist (X_MAX,Y_MAX)
154
Upper limit of the line angle
Set/Get
-180 to 180
155
Lower limit of the line angle
Set/Get
-180 to 180
156
Upper limit of the lost point count
Set/Get
0 to 100
157
Lower limit of the lost point count
Set/Get
0 to 100
158
Monochrome edge detection mode
Set/Get
0: Light Icon Dark
1: Dark Icon Light
159
Edge level absolute value
Set/Get
0 to 442
160
Edge level specification mode
Set/Get
0: %
1: Absolute value
161
Clockwise/Counter clockwise
Set/Get
0: Clockwise
1: Counterclockwise
162
Scan lines
Set/Get
1 to 100
163
Scan width
Set/Get
1 to 200
164
Display Area
Set/Get
0 to 99
165
Noise cancel
Set/Get
0: OFF
1: ON
*dist(X_MAX,Y_MAX)=sqrt(X_MAX*X_MAX+Y_MAX*Y_MAX)