A. Technical appendix
A−22
Festo P.BE−SBO−Q−EN en 0702a
A.6.10 Example of program
The following program code shows as an example how a
trigger can be actuated with the aid of an FST program and a
Festo FEC controller in the camera via EasyIP, and subsequently
how 2 feature values can be read.
””****************************************************
””
”” Example IP of camera: 192.168.2.10
”” Example IP of PLC: 192.168.2.77
”” Result is in FW400/401 and FW479
””
””****************************************************
STEP ” Ini of all needed FWs
”****************************
THEN LOAD V0 ”Ini of FWs with value 0
TO FW0 ’Flagword 0 in PLC
TO FW400 ’Double Value 1
TO FW401 ’Double Wert 2
TO FW479 ’Word Pre Comma
TO FW255 ’FW for Status
STEP ” Communicate IP of camera and type in tabele
”**************************************************************
THEN CFM 2 ” type/interrogate IP in/of tabele
WITH V1 ” 1:type; 2:interrogate
WITH V1 ” Index number in IP–tabele
WITH V192 ” IP–adress
WITH V168 ” IP–adress
WITH V2 ” IP–adress
WITH V10 ” IP–adress
IF FU32 ’first transfer
= V0 ” 0 if successful
THEN CMP 0 ’time Bap with T1
”–––––––––––––––––––––––––––––––––––––––––––––
WITH V1000 ” delay time of 10s until camera has rebooted
”–––––––––––––––––––––––––––––––––––––––––––––
””********************************************************************************************
””********************************************************************************************
STEP loop ” Set trigger to camera logical 1 and send ––> Easy–Send
”********************************************************
THEN SET F0.0 ’ Trigger Merker in der SPS erstes Bit
CFM 1 ’ EASY_S
WITH V1 ” Index number in IP–tabele
WITH V1 ” Operand, 1:M; 2:E; 3:A; 4:R; 5:TV; 11:Str
WITH V1 ” Number of operands to send (256 max.)
WITH V0 ” No. of first operand to send
WITH V0 ” No. of first operand in CPU
WITH V255 ” Adress of Flagword for status
IF FU32 ’ first transfer
= V0 ” 0 if success
THEN CMP 0 ’ Time Bap with T1
WITH V100 ” 1 Sec
Содержание SBO Q Series
Страница 2: ......
Страница 8: ...Contents and general instructions VI Festo P BE SBO Q EN en 0702a ...
Страница 19: ...System summary 1 1 Festo P BE SBO Q EN en 0702a Chapter 1 ...
Страница 37: ...Fitting 2 1 Festo P BE SBO Q EN en 0702a Chapter 2 ...
Страница 45: ...Installation 3 1 Festo P BE SBO Q EN en 0702a Chapter 3 ...
Страница 60: ...3 Installation 3 16 Festo P BE SBO Q EN en 0702a ...
Страница 61: ...Commissioning 4 1 Festo P BE SBO Q EN en 0702a Chapter 4 ...
Страница 114: ...4 Commissioning 4 54 Festo P BE SBO Q EN en 0702a ...
Страница 115: ...Diagnosis and error treatment 5 1 Festo P BE SBO Q EN en 0702a Chapter 5 ...
Страница 122: ...5 Diagnosis and error treatment 5 8 Festo P BE SBO Q EN en 0702a ...
Страница 123: ...Technical appendix A 1 Festo P BE SBO Q EN en 0702a Appendix A ...
Страница 146: ...A Technical appendix A 24 Festo P BE SBO Q EN en 0702a ...
Страница 147: ...Index B 1 Festo P BE SBO Q EN en 0702a Appendix B ...
Страница 148: ...B Index B 2 Festo P BE SBO Q EN en 0702a Contents B Index B 1 B 1 Index B 3 ...
Страница 156: ...B Index B 10 Festo P BE SBO Q EN en 0702a Z Zoom 1 14 ...