![background image](http://html1.mh-extra.com/html/omron/fz4-series/fz4-series_user-manual_1633222174.webp)
4
Using
Tool
172
Using Custom Command
FZ4 User's Manual
Syntax error
Wrong format or spelling of command or
function. Or command or function is
used not following the rule.
Check the calling format and description of command or
function using command reference. Check how to use
variables or arrays using Programming rules.
Reference:
Common rules for Macro (p.159)
Type
mismatch
Type of variables mismatch, such as
left-right side of expression, or
parameters of functions.
Please set variables or arrays in correct type. Check if
assigning a string data to a variable for numerical data, or
correct array is used.
Undefined
array
An undefined array is used.
Arrays must be declared before use.
Undefined
label
Referring to an undefined label.
Check correct name of label is specified.
Undefined
line number
Branching to an undefined line number.
Please check if the specified line number exists. Line
number is automatically assigned, therefore use <Label>
as destination position for goto command.
Macro Command Reference
Classified Order
General instruction
Function
Command
name
References
Definition of the array variables is carried out.
Dim
The execution of the statements between Do and Loop are repeated as long as
the conditions continue to be fulfilled.
Do - Loop
While
Free the array variable memory region that was defined by the Dim command.
Erase
Gets the Error occurrence commands during exception handling.
Errcmnd$
(Function)
Gets the error class during exception handling.
Errno
(Function)
Repeats and executes the statements between the For statement and the Next
statement.
For...To...Step -
Next
Moves the processing to the specified subroutine.
Gosub
Moves the processing to the line of the specified Label.
Goto
Controls the flow of processing in accordance with the judgement conditions of the
logical expression.
If...Then - Elseif
- Else - Endif
Controls the flow of processing in accordance with specified conditions.
If...Then - Else
Branches in accordance with the specified condition.
On Gosub
Branches processing in accordance with the specified condition.
On Goto
Inserts comments into the program.
Rem
Controls the branching of processing in accordance with the expression results.
Select ... Case -
Case Else -
End Select
Carries out exception handling.
Try - Catch -
End Try
Returns saved variables.
Varpop
Temporarily saves the value of a variable.
Varpush
Acesst 1.0 6251194
Summary of Contents for FZ4 Series
Page 1: ...User s Manual Cat No Z318 E1 02B Vision Sensor FZ4 Series...
Page 38: ...1 Before Operation 36 Setting Operation Mode FZ4 User s Manual 1 CPU 2 CPUs FZ4 11 H11 only...
Page 330: ...4 Using Tool 328 Remotely Operating the Controller Remote Operation FZ4 User s Manual...
Page 566: ......
Page 648: ...8 Appendixes 646 Manual Revision History FZ4 User s Manual...
Page 654: ...652 FZ4 User s Manual...
Page 655: ......