Avertissement

You are reading an old version of this documentation. If you want up-to-date information, please have a look at 5.1 .

Parameters

Parameters are accessible through the commands get_parameter <parameter> and set_parameter <parameter> <value>. The parameters can be read from any EYE+ state. However the parameters can only be changed when EYE+ is in production state.

Important

Changing the parameters value will affect the behavior of the EYE+ commands.

Tableau 29 List of parameters

Parameter

Type 1

Valid value

Default value

state

RO

string

<none>

recipe

RO

string

<none>

timeout

R/W

float

30.0s

image_after_send

R/W

true/false

false

is_prepared

RO

true/false

false

n_parts_prepared

RO

int

0

part_quantity

R/W

int

1

1

RO: Read Only; R/W: Read and Write

state

It is the system state (production, recipe_edition, camera_configuration, handeye_calibration).

start production 21180
200
get_parameter state
200 production.idle

recipe

This command returns the identifier and name of the recipe currently running in production.

Note

If you did not start EYE+ in production, the get_parameter recipe response will be: 200 no recipe.

start production 21180
200
get_parameter recipe
200 21180 'Recipe_name'

timeout

It is the timeout (in seconds) when calling the get_part command. The command stop <state> is sent if the timeout is exceeded during a get_part.

get_parameter timeout
200 30.0
set_parameter timeout 12
200
get_parameter timeout
200 12.0

image_after_send

It forces to acquire an image after a part is picked. Each time you call the get_part or prepare_part commands, the system will automatically take an image just before. It is used to correct the coordinates of the good candidates already found (stored in memory) if you know that the parts have moved in the meantime due to some external disturbance.

get_parameter image_after_send
200 false
set_parameter image_after_send true
200
get_parameter image_after_send
200 true

is_prepared

It returns status of the last prepare_part.

  • true if enough parts are prepared

  • false if not enough parts are prepared

get_parameter is_prepared
200 false

n_parts_prepared

It returns the number of parts prepared during the last prepare_part.

get_parameter n_parts_prepared
200 0

part_quantity

It is the number of parts requested by prepare_part and get_part each time it takes an image. If this number of parts is not found during image acquisition, then the get_part or prepare_part will start again (vibration + image acquisition) until this number of parts is found.

get_parameter part_quantity
200 1
set_parameter part_quantity 8
200
get_parameter part_quantity
200 8