The Festo_PartDetector.lib library
14
The vector for the values can be accessed with the enumeration PD_FEATURE.
TYPE PD_FEATURE: (PDPD_X:=0, PD_Y:=1, PD_Z:=2, PD_A:=3, PD_B:=4, PD_C:=5,
PD_M1:=6, PD_M2:=7);
Note
The scales Z, B and C are reserved.
Example
X := myPartDetector.NewPartsList.vector[PD_X];
Y := myPartDetector.NewPartsList.vector[PD_Y];
Error list
Value Constant Note
1000 PD_ENCODER_NOT_READY No value was saved in the encoder latch.
• Check the connection between the flash output of
the camera and the input on the encoder card.
• Check the settings of the encoder card.
1010 PD_IMPLAUSIBLE_PART A part with implausible values was received: only one
of the two scales X and Y has a valid value.
• Check the camera program.
1020 PD_WRONG_CAMERA_VERSION Incorrect version found on the camera: at least
Version 3.5.x is expected ( "Version" field of "cam"
output).