![background image](http://html1.mh-extra.com/html/omron/fh-1-series/fh-1-series_user-manual_742686251.webp)
WWW.NNC.IR
Basic Knowledge For Macro Customize
Functions
249
5
Optimizing Scene
s (
M
ea
su
re
men
t Flo
w
s)
(M
acr
o
Custo
m
ize
Fu
ncti
ons)
Vision System FH/FZ5 Series
User’s Manual (Z340)
Troubleshooting during debugging
Problems that are commonly encountered when debugging programs with the macro customize functions are
described below, along with the actions to take.
An error such as "Illegal function
call" or "zero divide" occurs
when the sensor controller is
started
It is possible that a value is used
that has not been initialized in
the display process subroutine.
If executed with the display process subroutine in the
unmeasured state, a data acquire process such as
GetGlobalData may fail, or a variable may be used
without a set value. Change the program for the display
process subroutine so that the drawing process is only
executed after measurement.
The processing result of the Unit
Macro processing unit text
display process and screen
display process do not appear
The position list display may be
ON.
When the position list display is ON, the text display
subroutine and image display subroutine are not
executed. Set the position list display to OFF.
Reference:
Changing the Image Mode and Other
An "illegal function call" error
sometimes occurs when search
process unit measurement is
executed with the MeasureProc
function
It is possible that no objects
were found in the search
process.
An "illegal function call" error occurs if there are 0
detections in the measurement process of the search
process unit executed with the MeasureProc function.
Use the Try - Catch - End Try function to create a
process that handles the occurrence of 0 detections in
the program.
Reference:
X
Try - Catch - End Try function (p.773)
Problem
Cause
Action
An error message appears in the
system status console window
An error occurred when the
program was executed.
Check the error message and correct the error.
Reference:
If it is difficult to identify the error, use Debug to
determine the cause and correct the error.
Reference:
How to Use the Debug Function (p.235)
The system status console
window appears in the full
screen
In the FZ5-L35
@
/FZ5-6
@@
series, the system status
console window appears in the
full screen.
Connect a USB keyboard to the sensor controller and
change the screen with [Alt] + [Tab].
A comment or character string
output with the Print function
changes to nonsense
characters.
Characters other than Japanese
or English characters may be
used in the Print function or
comment.
Characters other than Japanese or English characters
cannot be used in the Print function or a comment. Use
either Japanese characters or English characters.
The Stop function does not stop
the program
It is possible that release mode
is specified in the Debug
function.
When release mode is specified in the Debug function,
functions such as the Stop function and DebugPrint
function are not enabled.
Execute the Debug function in the *Mcrinit subroutine to
change from release mode to debug mode.
Reference:
How to Use the Debug Function (p.235)
A debug character string cannot
be output to the system status
console window with the
DebugPrint function
It is possible that release mode
is specified in the Debug
function.
When release mode is specified in the Debug function,
functions such as the Stop function and DebugPrint
function are not enabled.
Execute the Debug function to change from release
mode to debug mode.
Reference:
How to Use the Debug Function (p.235)
Problem
Cause
Action
Содержание fh-1 series
Страница 8: ...WWW NNC IR 6 Vision System FH FZ5 Series User s Manual Z340...
Страница 14: ...WWW NNC IR 12 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 22: ...WWW NNC IR 20 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 48: ...WWW NNC IR Initializing the Controller 46 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 68: ...WWW NNC IR Editing Scene Groups 66 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 132: ...WWW NNC IR Useful Functions for Operation 130 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 172: ...WWW NNC IR Saving Scene Groups in External Memory 170 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 254: ...WWW NNC IR Basic Knowledge For Macro Customize Functions 252 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 650: ...WWW NNC IR Macro Reference 648 Vision System FH FZ5 Series User s Manual Z340 Related Items None...
Страница 881: ...WWW NNC IR...