Omron FZ4 Series User Manual page 159

Vision sensor
Table of Contents

Advertisement

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:
Variable name
ArgmentsLength&
ArgmentString$()
ArgmentValue#()
"AAA param0 param1 param2"
When the system redeived the string as above, parameters are set like this :
ArgmentsLength&: 3 (number of parameters)
ArgmentString$(0): param0 (String type)
ArgmentString$(1): param1 (String type)
ArgmentString$(2): param2 (String type)
ArgmentValue#(0): numeric value converted from param0 (0 when conversion failed)
ArgmentValue#(1): numeric value converted from param1 (0 when conversion failed)
ArgmentValue#(2): numeric value converted from param2 (0 when conversion failed)
Example) The command "SC 1" that switches scene 1
ScaneChange ArgmentValue#(0)
Response output
Result of the command procedure can be returned to the system by setting the value on these variables.
Variable name
ResponseString$
ResponseCode&
Example) The command "TEST"
ResponseString$ = "TestString"
Command and response will be like this :
-> TEST
<- TestString
<- OK
Creating Parallel Command
Response output
Result of the command procedure can be returned to the system by setting the value on these variables.
FZ4 User's Manual
Type
Integer
Number of parameters
Array of text string
Array of parameters (string)
Array of parameters converted to number
Array of real numbers
(*)If conversion failes, set to 0.
Type
Text string
Output data
Result of command
Integer
0 : success (returns "OK")
non 0 : fail (returns "ER")
Content
Content
Using Custom Command
4
157

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fz4 series

Table of Contents