![background image](http://html1.mh-extra.com/html/omron/fh-1-series/fh-1-series_user-manual_742686246.webp)
WWW.NNC.IR
Basic Knowledge For Macro Customize Functions
244
Vision System FH/FZ5 Series
User’s Manual (Z340)
Removing the Error
Once you have identified the cause of the error, correct the program to remove the error.
After correcting the program, check operation and verify that the error has been removed.
Example:Use "If" to prevent the denominator from becoming 0 in the *MEASUREPROC subroutine of the
Unit Macro.
Exiting Debug
When the error has been removed, exit Debug.
Open the program editing screen and change the parameter of the debug function at the beginning of the *MCRINIT
subroutine or the program.
Example:To exit Unit Macro Debug, change the parameter for the debug function in the *MCRINIT
subroutine to 1.
*MEASUERPROC
Rem Execute the Stop function and stop the program at this line
Stop
Rem The actual measurement process is written from here
POS.X#=(POS0.X@ + POS1.X@) / 2
POS.Y#=(POS0.Y@ + POS1.Y@) / 2
Rem Add an "If" statement so that division is only executed when POS.X# is not 0
If POS.X# <> 0 Then
Print POS.Y# / POS.X#
EndIf
Return
*MCRINIT
Rem Specify 1 for the debug function parameter and execute
Debug 1
Return
• 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.
Note
Содержание 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...