VRESULT real-valued function VRESULT real-valued function Syntax MicroV+ value = VRESULT (sequence_id, tool_id, instance_id, result_id, index_id, frame_id) V+ value = VRESULT ( $ip , sequence_id, tool_id, instance_id, result_id, index_id, frame_id) Description Returns a specified result of a vision tool, or returns the status of a specified tool. Parameters Details The following parameters are optional: sequence_id, tool_id , instance , index_id , and frame_id . These parameters are 1-based. If no value is provided for these parameters, they default to 1. For V+ systems, the vision server is the PC on which the ACE Sight vision software is running.
When a VRESULT is issued for a specific tool, it checks to see if that tool supports the VRESULT code. If the specified tool does not support the code, VRESULT moves to the parent tool to see if it supports the ACE Reference Guide, 18317-000 Rev A Page 43 $ip IP address of the vision server. Applies to V+ syntax only. Uses standard IP address format, for example: 192.168.1.120. sequence id _ Index of the vision sequence. The first sequence is 1. tool id _ Index of the tool in the vision sequence. The first tool is 1. instance id _ Index of the instance in the specified result frame. If no result frame is specified, it is the index for all instances returned by the tool.
result id _ Identifier (ID) of the result. Refer to the ACE Sight Properties Quick Reference tables to find the ID for the required result. index id _ Reserved for internal use. Value is always 1. frame id _ Index of the frame for which you want to retrieve the result contained in the specified instance.