11.3 Optional - Measure Angle in polygon ROI (ProductType 1)
Calculating the ROI
NMZ = None measure zone [mm]
LML = Laser measure length [mm]
Len = (W + NMZ + LML) / cos(22.5°)
| Back Sensor (Angle > 0, DieX > 0) | Front Sensor (Angle < 0, DieX < 0) |
---|---|---|
P0x | DieX + NMZ | DieX - NMZ |
P0y | DieY | DieY |
P1x | DieX + Len | DieX - Len |
P1y | DieY | DieY |
P2x | DieX + Len * cos(45°) | DieX - Len * cos(45°) |
P2y | DieY + Len * cos(45°) | DieY + Len * cos(45°) |
P3x | DieX - W | DieX + W |
P3y | DieY + Len | DieY + Len |
P4x | DieX - W | DieX + W |
P4y | DieY + NMZ + W | DieY + NMZ + W |
Necessary Parameter
Up to 8 polygon points (J00_PolygonNr) are possible.
Up to 4 jobs (J00-J03) at one image acquisition are possible (e. g. angle measurements in 4 ROIs). Typically you only need J00.
Product Parameter:
J00_ProductType = 1
J00_PolygonNr = 5
J00_PolygonPoint_X00_MM = S0x (Converted P0x, see 11.4 for converting)
J00_PolygonPoint_Z00_MM = S0y (Converted P0y)
J00_PolygonPoint_X01_MM = S1x (Converted P1x)
J00_PolygonPoint_Z01_MM = S1y (Converted P1y)
J00_PolygonPoint_X02_MM = S2x (Converted P2x)
J00_PolygonPoint_Z02_MM = S2y (Converted P2y)
J00_PolygonPoint_X03_MM = S3x (Converted P3x)
J00_PolygonPoint_Z03_MM = S3y (Converted P3y)
J00_PolygonPoint_X04_MM = S4x (Converted P4x)
J00_PolygonPoint_Z04_MM = S4y (Converted P4y)
Maybe some more parameters. See chapter “Useful adjustable Parameters”
Sensor Parameter:
DataMode = 8
NbrLines = -1
Maybe some more parameters. See chapter “Useful adjustable Parameters”
Sensor result output of the angle detection
JOB 0.0001: Phi=156.36 Cx=00.4011 Cy=-0.9161 B=-0104.19 LAlgo=2 Points=0501
DetLen=042.6 Filter=100 dPhi=0.03 Error=0 Sh=0012us Gain=000
TimeStamp=0000006468167ms
Job: job number followed by ProductType
Phi: measured line angle [°]
Cx, Cy, B: general straight line equation
LAlgo: line algorithm mode (2 = combination of hough and best line)
Points: detected laser points
DetLen: measured line length [mm]
Filter: use x% of the closest detection points to the line for best line calculation
dPhi: expected angle accuracy
Error: error number
Sh: used shutter time [μs]
Gain: used gain value
TimeStamp: image acquisition time since camera power on [ms]