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 (+
∞
)
Содержание CECX-X-C1 Series
Страница 1: ...Manual Controller Modular CECX CECX X C1 CECX X M1 761886 1112c en ...
Страница 2: ...1112c en ...
Страница 4: ......
Страница 6: ...1112c en ...
Страница 7: ...CECX modular control system CECX modular control system ...
Страница 46: ...CECX modular control system CECX I 38 ...
Страница 47: ...System manual CECX ...
Страница 48: ...CECX II ...
Страница 56: ...Content System Manual CECX VIII ...
Страница 58: ...System manual CECX Product design CECX II 0 2 ...
Страница 68: ...System manual CECX Safety notes CECX II 2 6 ...
Страница 76: ...System manual CECX System overview CECX II 3 8 ...
Страница 84: ...System manual CECX General assembly and installation instructions CECX II 4 8 ...
Страница 118: ...System manual CECX Operating behavior CECX II 8 6 ...
Страница 122: ...System manual CECX Disposal CECX II 10 2 ...
Страница 124: ...System manual CECX Technical data CECX II 11 2 ...
Страница 166: ......
Страница 180: ......
Страница 212: ......
Страница 219: ...System manual CECX Digital input output module CECX D 6E8A PN 2 CECX II 18 7 18 4 2 3 Connection diagram Input diagram ...
Страница 232: ......
Страница 248: ......
Страница 260: ......
Страница 278: ......
Страница 294: ......
Страница 308: ......
Страница 412: ......
Страница 426: ......
Страница 500: ...System manual CECX Bus link module CECX B CO CECX II 34 64 ...
Страница 501: ...The library Ethernet lib The library Ethernet lib ...
Страница 505: ...The library EventData lib The library EventData lib ...
Страница 511: ...The library IncEnc lib The library IncEnc lib ...
Страница 517: ...The Festo_EasyIP lib library ...
Страница 532: ......
Страница 535: ...The library PLCService lib The library PLCService lib ...
Страница 542: ...The library PLCService lib CECX VII 6 ...
Страница 543: ...The library SysLibComEx lib The library SysLibComEx lib ...
Страница 547: ...The Festo_Motion lib library ...
Страница 584: ......
Страница 585: ...The Festo_PartDetector lib library ...
Страница 601: ...FED VipWin interface ...
Страница 630: ......