Ocv tool and the remote command channel, Rcc return values – Banner PresencePLUS P4 COLOR Series User Manual
Page 58

OCV Tool and the Remote Command Channel
Commands
Description
Syntax
Sets the expected string, if it is a constant. The
Value should be a quoted string containing
set ocvtool tool_name|tool_number exp_string value
printable ASCII characters (see
on page 327).
Gets the value of the exptected string.
get ocvtool tool_name|tool_number exp_string
Examples
Assuming that you have two OCV tools, my_ocv_tool_1 and my_ocv_tool_2, each with
their first operand configured as a constant. To set the constant of the second ocvtool to
foobar, issue the following command:
set ocvtool my_ocv_tool_2 "foobar"
Set Command Example
or
set ocvtool 2 "foobar"
To get the constant of the second ocvtool, issue the following command:
get ocvtool my_ocv_tool_2
Get Command Example
or
get ocvtool 2
RCC Return Values
RCC return values are numeric, and are listed below:
• 0 - command accepted. This return code is generated when a valid SET, GET, and EXEC command has been completely
handled by the sensor. It may be followed by a command-specific return value or a completion code.
If the frame tag is enabled, the current frame number will be returned instead of 0 as command acceptance indicator.
• -100 - Invalid command entered by the user.
• Trigger and Product Change error codes:
• -201 - Product change command attempted in the middle of the inspection
• -202 – Trigger command attempted in the middle of product change
• -203 – Trigger command is attempted when the inspection is not executing (sensor is idle)
• -204 – Specified inspection slot is out of range
• -205 – Trigger command attempted in the middle of the inspection
• -206 – Product change command attempted in the middle of a product change
• -207 – Product change command attempted while the sensor is in the Teach mode
• -208 – Product change attempted when the GUI is connected, and the inspection is not executing
• Comm tool error codes
• -301 – get/set tool command attempted while the inspection is not executing
• -302 – get command issued before inspection is triggered for the first time – tool results unavailable
Banner Engineering Corp.
Minneapolis, MN USA
58
2/2010
System Setup Dialog