The Festo_PartDetector.lib library
13
1.7 Interfaces – Outputs
Output
Type
Description
Connected
BOOL
This output is TRUE if there is a Telnet connection to the
camera.
PictureDone
BOOL
This output is TRUE for a cycle if a new picture has been taken
and processed. If the module is accessed a further time, it is
FALSE again.
NewPartsCount
INT
This output shows how many new parts were found in the last
picture.
•
Evaluate this output if PictureDone is TRUE.
Example
myPartDetector();
IF myPartDetector.PictureDone THEN
FOR i:=0 TO (myPartDetector.NewPartsCount-1) DO
myID := myPartDetector.NewPartsList[i].ID;
myX :=
myPartDetector.NewPartsList[i].vector[PD_X];
END_FOR
END_IF
NewPartsCumulated DINT
Total of all newly detected parts since the last program reset.
NewPartsList
ARRAY[0..15]
OF
PD_PART
Output of the newly found parts.
(
PD_Part structure)
LastFrameTime
DWORD
Time between the taking of the last and the penultimate picture
(unit: ms).
PictureDistance
LREAL
Movement of the conveyor between the last and the penultimate
picture in the unit of the Compact Vision System.
If this value is greater than ½ x camera field of vision, the
module no longer operates reliably.
•
Increase the frame rate or
•
reduce the speed of the conveyor.
Error
BOOL
Displays an internal error.
This error is reset when the Compact Vision System is
connected to the PLC again.
ErrorID
WORD
Number of the error.
For the meaning of the error numbers, refer to the
documentation for the "Festo_CameraControl.lib"
library(additional errors
Error list table).
PD_PART structure
Component
Data type
Description
EntireVectorValid
BOOL
TRUE if none of the vector scales have an invalid value.
ID
DINT
ID of the new part.
EncoderValue
DINT
Value of the encoder, which was buffered when taking the picture.
Vector
ARRAY[0..7]
OF LREAL
Vector with received values.
Default values: (representation in CoDeSys)
–
Scales not used: 3.4e+38
–
Scales not allocated in the data output: 1.#INF (+
∞
)
Summary of Contents for CECX-X-C1 Series
Page 1: ...Manual Controller Modular CECX CECX X C1 CECX X M1 761886 1112c en ...
Page 2: ...1112c en ...
Page 4: ......
Page 6: ...1112c en ...
Page 7: ...CECX modular control system CECX modular control system ...
Page 46: ...CECX modular control system CECX I 38 ...
Page 47: ...System manual CECX ...
Page 48: ...CECX II ...
Page 56: ...Content System Manual CECX VIII ...
Page 58: ...System manual CECX Product design CECX II 0 2 ...
Page 68: ...System manual CECX Safety notes CECX II 2 6 ...
Page 76: ...System manual CECX System overview CECX II 3 8 ...
Page 84: ...System manual CECX General assembly and installation instructions CECX II 4 8 ...
Page 118: ...System manual CECX Operating behavior CECX II 8 6 ...
Page 122: ...System manual CECX Disposal CECX II 10 2 ...
Page 124: ...System manual CECX Technical data CECX II 11 2 ...
Page 166: ......
Page 180: ......
Page 212: ......
Page 232: ......
Page 248: ......
Page 260: ......
Page 278: ......
Page 294: ......
Page 308: ......
Page 412: ......
Page 426: ......
Page 500: ...System manual CECX Bus link module CECX B CO CECX II 34 64 ...
Page 501: ...The library Ethernet lib The library Ethernet lib ...
Page 505: ...The library EventData lib The library EventData lib ...
Page 511: ...The library IncEnc lib The library IncEnc lib ...
Page 517: ...The Festo_EasyIP lib library ...
Page 532: ......
Page 535: ...The library PLCService lib The library PLCService lib ...
Page 542: ...The library PLCService lib CECX VII 6 ...
Page 543: ...The library SysLibComEx lib The library SysLibComEx lib ...
Page 547: ...The Festo_Motion lib library ...
Page 584: ......
Page 585: ...The Festo_PartDetector lib library ...
Page 601: ...FED VipWin interface ...
Page 630: ......