WWW.NNC.IR
Basic Knowledge For Macro Customize
Functions
189
5
Optimizing Scenes (Measurement Flows) (Macro Customize
Functions)
Vision System FH/FZ5 Series
User’s Manual (Z340)
Nothing happens when [DEL], [BS], [Enter], etc., is clicked
Want to include a line feed code in a string
Calculation result is indicated as "Unmeasured"
Measurement Results That Can be Output (Unit Calculation Macro)
The measurement results provided by the unit calculation macro are shown below. The measurement results appear
in the detailed result area, and you can also use a result output processing item to output the measurement results
to an external device.
Refer to the "External Reference Tables" for the parameters that can be referenced, including measurement results.
(Reference: XExternal Reference Tables (Unit Calculation Macro) (p.189))
External Reference Tables (Unit Calculation Macro)
By specifying a number, you can access the following data from processing items that support processing
unit data setting/acquisition, and from control commands.
Parameter to be adjusted Troubleshooting
-
Nothing happens while the focus is not on the code window (key entry cursor is not
displayed). Click the position you want to operate, and then click the button.
Parameter to be adjusted Troubleshooting
Macro code Add (+) CR → Chr$(13) LF → Chr$(10) to the string.
Parameter to be adjusted Troubleshooting
Enabled/disabled Place a check to enable the operator.
Calculation judgement The judgement result may not be set correctly in calculation judgement.
Measurement items Character string Description
Judge JG Judgement result
Calculation result 0 DT00 Calculation result 0
Judgement result 0 JG00 Judgement result 0
:
Calculation result 31 DT31 Calculation result 31
Judgement result 31 JG31 Judgement result 31
No. Data name Set/Get Data range
0 Judge Get only
0: No judgement (unmeasured)
1: Judgement result OK
-1: Judgement result NG
5 + N × 1
(N = 0 to 31)
Calculation result N (N = 0 to
31)
Set/Get -99999.9999 to 99999.9999
37 + N × 1
(N = 0 to 31)
Judgement result N (N = 0 to
31)
Get only -99999.9999 to 99999.9999