A. Technical appendix
A-45
Festo P.BE-SBO-Q-EN en 1602e
Demo program
MODULE CAMERACOM
! DATA DECLARATIONS
! Camera settings
CONST string CameraIPAddress := ”192.168.2.10”;
CONST num CameraTelnetPortNo := 9999;
! General communication declarations
VAR socketdev ComSocket;
VAR string stReceived;
VAR socketstatus Status;
!
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
! Procedure Main
! Description:
! This demo program shows a telnet communication between controler
! an ABB robot and a Festo camera SBO...
−
Q
!
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
PROC Main()
! Clear the display of the FlexPendant.
TPErase;
! Connect to the cameras telnet server.
ConnectToCamera;
! Get the version from the camera.
GetVersion;
! Let the camera perform a complete evaluation.
! This is only possible if the camera is in ready state.
Wait4Ready;
ImageTrigger;
! Get the first feature result from the camera.
Wait4Ready;
GetFlagWord ”10100”;
! Get a user defined data collection from the camera.
! This data collection has to be defined previously.
GetDataCollection ”RDC”;
! Change check program of the camera.
Wait4Ready;
ChangeProgram ”2”;
! Let the camera perform a complete evaluation.
! This is only possible if the camera is in ready state.
Wait4Ready;
ImageTrigger;
Содержание SBO***-Q Series
Страница 2: ......
Страница 19: ...System overview 1 1 Festo P BE SBO Q EN en 1602e Chapter 1 System overview...
Страница 39: ...Mounting 2 1 Festo P BE SBO Q EN en 1602e Chapter 2 Mounting...
Страница 47: ...Installation 3 1 Festo P BE SBO Q EN en 1602e Chapter 3 Installation...
Страница 62: ...3 Installation 3 16 Festo P BE SBO Q EN en 1602e...
Страница 63: ...Commissioning 4 1 Festo P BE SBO Q EN en 1602e Chapter 4 Commissioning...
Страница 162: ...4 Commissioning 4 100 Festo P BE SBO Q EN en 1602e Fig 4 34 Structure of an imported data type...
Страница 175: ...Diagnostics and error handling 5 1 Festo P BE SBO Q EN en 1602e Chapter 5 Diagnostics and error handling...
Страница 183: ...Technical appendix A 1 Festo P BE SBO Q EN en 1602e Appendix A Technical appendix...
Страница 247: ...Index B 1 Festo P BE SBO Q EN en 1602e Appendix B Index...
Страница 248: ...B Index B 2 Festo P BE SBO Q EN en 1602e Table of contents B Index B 1...