How To Use The Debug Function; Debug Preparations - Omron SYSMAC FH Series User Manual

Vision sensor vision system
Hide thumbs Also See for SYSMAC FH Series:
Table of Contents

Advertisement

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
Rem Stop serial normal communication
SetPollingState "SerialNormal", FALSE
Rem Receive the data
Rem Start serial normal communication
SetPollingState "SerialNormal", TRUE

How to Use the Debug Function

Necessity of referring
to this manual
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.
IMPORTANT
• 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.

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.
Execution form
Release mode
Debugging mode
Vision System FH/FZ5 Series
User's Manual (Z340)
Unit Macro
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.
This is a convenient execution form used for program correction and debugging.
Some debugging functions are only enabled in debug mode.
WWW.NNC.IR
Communication
Scene Control
Command Macro
Macro
Required
Description
Basic Knowledge For Macro Customize
Unit Calculation
Macro
5
235
Functions

Advertisement

Table of Contents
loading

Table of Contents