beautypg.com

Vparameter – Adept DeskTop 4.3 User Manual

Page 160

background image

Adept DeskTop 4.3 - Online Help 160

VPARAMETER

real-valued function

Syntax

MicroV+

value =

VPARAMETER

(sequence, tool, parameter, index, object)

V+

value =

VPARAMETER

(

$ip

, sequence, tool, parameter, index, object)

Description

Gets the current value of a vision tool parameter.

Parameters

Details

Parameters sequence, tool, parameter, index, and object are optional. These parameters are 1-based.
If no value is provided for these parameters, they default to 1.

To retrieve specific values

• To retrieve global values: sequence = -1, tool = -1

• To retrieve camera values: sequence = -1, tool = cameraIndex

• To retrieve sequence values: sequence = sequenceIndex, tool = -1

To retrieve Belt-Calibration-related values ( read only )

• Scale (10004): sequence = -1, tool = cameraIndex, index = robotIndex, object = n/a

To retrieve sequence-related values -

• Mode (10200): sequence = sequenceIndex, tool = -1, index = n/a, object = n/a

Example

; Get the Scale value for the Belt Calibration

VPARAMETER ($ip, -1, cameraIndex, 10004, robotIndex )

$ip

IP address of the vision server.

Standard IP address format. For example 255.255.255.255.

This parameter applies to V+ syntax only.

sequence

Index of the vision sequence. First sequence is '1'

tool

Index of the tool in the sequence.

parameter

Identifier (ID) of the parameter. Refer to the

AdeptSight Quick Reference

tables to find the ID for the required parameter.

index

Some parameters require an index. For example, the index of a model, of an
edge pair, or of a blob.

object

Some parameters require an object index to access specific values in an array.