![background image](http://html1.mh-extra.com/html/omron/fh-1-series/fh-1-series_user-manual_742686237.webp)
WWW.NNC.IR
Basic Knowledge For Macro Customize
Functions
235
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)
Exclusive Control in a Communication Process
In communication with external devices, the FH/FZ5 series uses a polling process to monitor statuses and
data transmission/reception. When sending or receiving data, stop the communication polling process before
sending/receiving the data. If data transmission/reception is executed without stopping the polling process,
there is a risk that inconsistencies may occur in the received data, such as data other than the intended data
being received from the external device.
To change the state of the communication polling process, use the SetPollingState function.
Example: Receiving data in serial normal communication
How to Use the Debug Function
Invalid macro function calls and programming bugs in macro customize programs may cause errors in operation.
Identifying the cause and correcting the program when an error occurs is called "debugging". Macro customize
functions have a support function for program debugging, allowing errors to be efficiently removed.
Debug Preparations
Debugging is performed in macro customize functions by changing the execution form of the program and using
macro functions that are effective for debugging. Debugging can be performed by writing a macro function for
debugging in the program and executing the program, and by directly entering a macro function from the system
status console window and executing the program.
Program Execution Mode
Macro customize functions allow the execution mode of the program to be specified for each function. By
varying the execution form of the program as appropriate for the execution conditions, program management
and debugging is made easier.
Rem Stop serial normal communication
SetPollingState "SerialNormal", FALSE
Rem Receive the data
Rem Start serial normal communication
SetPollingState "SerialNormal", TRUE
Necessity of referring
to this manual
Unit Macro
Communication
Command Macro
Scene Control
Macro
Unit Calculation
Macro
Required
• In the FZ5-L3
@@
/FZ5-6
@@
series, the system status console window appears in the full screen. To display the main
screen, program editing screen, and other sensor controller screens, connect a USB keyboard and change the screen
with [ALT] + [TAB].
• Do not close the system status console window by a method such as clicking the "x" button in the upper right corner of
the system status console window. The system may not operate correctly. If the system status console window is
accidentally closed, save your settings and restart the sensor controller.
Execution form
Description
Release mode
Execution form used for program execution and regular use.
In release mode, the macro functions that are entered in the program for debugging are disabled.
Debugging mode
This is a convenient execution form used for program correction and debugging.
Some debugging functions are only enabled in debug mode.
IMPORTANT
Содержание 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...