A. Technical appendix
A-48
Festo P.BE-SBO-Q-EN en 1602e
!
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
! Procedure ChangeProgram
! Description:
! Procedure sends an CHANGEPRG command to the camera.
! The argument progNum is the requested program number.
! The telnet server returns ’1 OK: operation successful.’
! if the requested command succeeded, an appropriate error message
! otherwise.
!
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
PROC ChangeProgram( string progNum )
VAR string changeProgReturn := ””;
CheckConnectionStatus;
! Important !
! Any camera command must be terminated by ’\0D\0A’
SocketSend ComSocket \Str := ”CHANGEPRG ” + p ”\0D\0A”;
SocketReceive ComSocket \Str := changeProgReturn;
! Important !
! Any camera response is terminated by ’\0D\0A’
IF changeProgReturn <> ”1 OK: operation successful.\0D\0A” THEN
TPWrite changeProgReturn;
stop;
ENDIF
ENDPROC
!
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
! Procedure GetFlagWord
! Description:
! Procedure sends a RFW command to the camera.
! The argument Offset is the flagword address of the data which
! should be returned.
! The telnet server returns ’1 OK: operation successful.’ if the
! requested command succeeded, an appropriate error message
! otherwise.
!
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
PROC GetFlagWord( string Offset )
VAR string flagWord := ””;
VAR num Value := 0;
VAR bool ok := FALSE;
CheckConnectionStatus;
! Important !
! Any camera command must be terminated by ’\0D\0A’
SocketSend ComSocket \Str := ”RFW ” + ”\0D\0A”;
Содержание 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...