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;
Summary of Contents for SBO***-Q Series
Page 2: ......
Page 19: ...System overview 1 1 Festo P BE SBO Q EN en 1602e Chapter 1 System overview...
Page 39: ...Mounting 2 1 Festo P BE SBO Q EN en 1602e Chapter 2 Mounting...
Page 47: ...Installation 3 1 Festo P BE SBO Q EN en 1602e Chapter 3 Installation...
Page 62: ...3 Installation 3 16 Festo P BE SBO Q EN en 1602e...
Page 63: ...Commissioning 4 1 Festo P BE SBO Q EN en 1602e Chapter 4 Commissioning...
Page 162: ...4 Commissioning 4 100 Festo P BE SBO Q EN en 1602e Fig 4 34 Structure of an imported data type...
Page 183: ...Technical appendix A 1 Festo P BE SBO Q EN en 1602e Appendix A Technical appendix...
Page 247: ...Index B 1 Festo P BE SBO Q EN en 1602e Appendix B Index...
Page 248: ...B Index B 2 Festo P BE SBO Q EN en 1602e Table of contents B Index B 1...