![background image](http://html1.mh-extra.com/html/omron/fz4-series/fz4-series_user-manual_1633222159.webp)
4
Using
Tool
FZ4 User's Manual
Using Custom Command
157
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
Type
Content
ArgmentsLength&
Integer
Number of parameters
ArgmentString$()
Array of text string
Array of parameters (string)
ArgmentValue#()
Array of real numbers
Array of parameters converted to number
(*)If conversion failes, set to 0.
"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
Type
Content
ResponseString$
Text string
Output data
ResponseCode&
Integer
Result of command
0 : success (returns "OK")
non 0 : fail (returns "ER")
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.
Acesst 1.0 6251194
Содержание FZ4 Series
Страница 1: ...User s Manual Cat No Z318 E1 02B Vision Sensor FZ4 Series...
Страница 12: ...1 Before Operation 10 Operation Flow FZ4 User s Manual Operation Flow Here describes the operation flow...
Страница 38: ...1 Before Operation 36 Setting Operation Mode FZ4 User s Manual 1 CPU 2 CPUs FZ4 11 H11 only...
Страница 112: ...3 Performing Test Measurement Starting Operation 110 Useful Functions for Operation FZ4 User s Manual...
Страница 326: ...4 Using Tool 324 Remotely Operating the Controller Remote Operation FZ4 User s Manual Enter the IP address...
Страница 330: ...4 Using Tool 328 Remotely Operating the Controller Remote Operation FZ4 User s Manual...
Страница 351: ...6 Changing the System Environment FZ4 User s Manual Setting the System Operation Environment 349 Communication...
Страница 566: ......
Страница 648: ...8 Appendixes 646 Manual Revision History FZ4 User s Manual...
Страница 654: ...652 FZ4 User s Manual...
Страница 655: ......