![background image](http://html1.mh-extra.com/html/omron/fh-1-series/fh-1-series_user-manual_742686199.webp)
WWW.NNC.IR
Basic Knowledge For Macro Customize
Functions
197
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)
Creating serial command
Command parameters
Received text string is split by space character(" ") into command and parameters, and stored in the
predefined variables shown below:
When the system received the string as above, parameters are set like this :
Example: The command "SC 1" that switches scene 1
Response output
Result of the command procedure can be returned to the system by setting the value on these variables.
Example: The command "TEST"
Command and response will be like this :
Variable name
Type
Content
ArgumentsLength&
Integer
Number of parameters (0 to 32)
ArgumentString$()
Array of text string
Array of parameters (string)
Allocate a number of array elements equal to the number
of parameters.
ArgumentValue#()
Array of real numbers
Array of parameters converted to number
*1: If conversion fails, set to 0.
Allocate a number of array elements equal to the number
of parameters.
"AAA param0 param1 param2"
ArgumentsLength&:
3 (number of parameters)
ArgumentString$(0):
param0 (String type)
ArgumentString$(1):
param1 (String type)
ArgumentString$(2):
param2 (String type)
ArgumentValue#(0):
numeric value converted from param0 (0 when conversion failed)
ArgumentValue#(1):
numeric value converted from param1 (0 when conversion failed)
(2):
numeric value converted from param2 (0 when conversion failed)
ScaneChange ArgumentValue#(0)
Variable name
Type
Content
ResponseString$
Text string
Output data
ResponseCode&
Integer
Result of command
• 0 : success (returns "OK")
• non 0 : fail (returns "NG")
ResponseString$ = "TestString"
-> TEST
<- TestString
<- OK
Summary of Contents for fh-1 series
Page 8: ...WWW NNC IR 6 Vision System FH FZ5 Series User s Manual Z340...
Page 14: ...WWW NNC IR 12 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Page 22: ...WWW NNC IR 20 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Page 48: ...WWW NNC IR Initializing the Controller 46 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Page 68: ...WWW NNC IR Editing Scene Groups 66 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Page 881: ...WWW NNC IR...