WWW.NNC.IR
Basic Knowledge For Macro Customize Functions
234
Vision System FH/FZ5 Series
User’s Manual (Z340)
Exclusive Control in a Process
This primarily uses the communication command macro and scene control macro.
Macro customize functions can be used to perform exclusive control in a process when a program is executed.
Exclusive control must be performed during measurement and communication in order to prevent incorrect
processing, such as a communication command or screen operation accidentally changing the scene during
measurement, or subsequently received data overwriting the currently received data.
Exclusive Control in a Measurement Process
When executing the setting or acquisition of processing unit data, system data, or other data in a program,
and when executing a process that changes scene data such as a scene change, you must first stop
acceptance of measurement triggers during processing.. If data setting, data acquisition, or a scene change
is executed when measurement triggers can be accepted and a measurement trigger is then input during the
setting process, acquisition process, or scene change, there is a risk that data inconsistencies will occur or an
incorrect measurement result will be output. .
To stop acceptance of measurement trigger input, use the MeasureStop function. To enable acceptance of
measurement trigger input, use the MeasureStart function.
Example
Necessity of referring
to this manual
Unit Macro
Communication
Command Macro
Scene Control
Macro
Unit Calculation
Macro
Not required As needed
Not required
Rem Stop measurement
MeasureStop
Rem Change the scene or set data
Rem Resume measurement
MeasureStart
• When executing a scene change or setting or acquiring processing unit data or other data in a program, always
execute MeasureStop beforehand. If data setting or data acquisition is executed without executing MeasureStop,
there is a risk that measurement may be executed during the setting process or acquisition process and cause
inconsistencies in the data being set or acquired.
• If MeasureStart is not executed after MeasureStop, it will not be possible to accept measurement triggers. The BUSY
signal will remain ON.
• If measurement is to be executed after MeasureStop in a program, execute MeasureStart before executing
measurement. If MeasureStart is not executed after MeasureStop, measurement will not take place when executed.
• With the unit macro or unit calculation macro, create a program that does not require exclusive control. Switching
between the measurement prohibited state and measurement acceptance state during measurement execution may
cause unexpected operation.