Sync the unit number which using by Macro with flow editing
Overview
After flow editing, it synchronize the unit number which using by Macro with the flow.
Specification of this example
Behavior
Display the unit number (this sample is [Search]) which using by macro.
After the flow edit, display the changed unit number.
How to try this example
1.When cleck the link of file, open the folder.
File
2.The zip file is stored in the folder. When drug & drops on the screen of FJ, read the scene data and the image data.
3.The unit number ( this sample is 1 ) to which [Macro] refers is displayed in Image Window.
When change the position of the unit 1 ( [Search] ) in Flow Edit Window, display the number which synchronized.
How to implement
Scene data
Unit No.
|
Processing Item
|
0.
|
Camera Image Input
|
1.
|
Search
|
3.
|
Macro
|
The Macro Program below segment is to be set in '3.Macro'.
Macro Program
*MCRINIT
UNITNO& = 1 '(1)
Return
*MEASUREPROC
Return
*MEASUREDISPG
SetTextStyle 20, TA_TOP, JUDGE_OK, 0, FONTSTYLE_BOLD
DrawTextG "Target unit no = " + Str$(UNITNO&),10,10,0 '(2)
Return
*RENUMPROC
UNITNO& = RenumUnitNo(UNITNO&) '(3)
Return
The macro program is in
this link.
Explanation
(1)Set the target unit number.
(2)Display the target unit number.
(3)Get the unit number after flow editing.