![background image](http://html1.mh-extra.com/html/omron/fh-1-series/fh-1-series_user-manual_742686242.webp)
WWW.NNC.IR
Basic Knowledge For Macro Customize Functions
240
Vision System FH/FZ5 Series
User’s Manual (Z340)
Identifying the Error
Based on the error message that appears in the system status console window, check the error in the error
list.
If this gives you sufficient information to identify the cause of the error, remove the error.
Starting Debug
After checking why the error occurred, start Debug. The *MEASUREPROC subroutine of the "Unit Macro"
processing item is used for debugging below as an example.
Open the program editing screen and write the debug function at the beginning of the *MCRINIT subroutine or
the program.
Example:To start Unit Macro Debug, specify 18 in the parameter for the debug function in the *MCRINIT
subroutine.
Example:To start Communication Command Macro Debug, specify 18 in the parameter for the debug
function at the beginning of the communication command program to be debugged.
If you specified 0 or 16 for the debug function parameter, the error information will not appear in the system status console
window. Specify a value other than 0 or 16 for the debug function parameter.
Reference:
Macro Functions Used for Debugging (p.236)
*MCRINIT
Rem Specify 18 for the debug function parameter and execute
Debug 18
Return
Rem Specify 18 for the debug function parameter and execute
Debug 18
Rem The actual communication command process is written from here
ChangeScene 1
SetUnitData 2, 101, 0
• In addition to 1 and 18, other values are available for the parameter for the debug function. Use these when appropriate.
Macro Functions Used for Debugging (p.236)
• If you delete the debug function from the program, the usage mode will remain the usage mode that was set the last time
the debug function was executed. Restart to return the usage mode to its default setting.
IMPORTANT
Note
Summary of Contents for fh-1 series
Page 8: ...WWW NNC IR 6 Vision System FH FZ5 Series User s Manual Z340...
Page 14: ...WWW NNC IR 12 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Page 22: ...WWW NNC IR 20 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Page 48: ...WWW NNC IR Initializing the Controller 46 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Page 68: ...WWW NNC IR Editing Scene Groups 66 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Page 881: ...WWW NNC IR...