![Festo IFB05-03 Скачать руководство пользователя страница 115](http://html1.mh-extra.com/html/festo/ifb05-03/ifb05-03_manual_2284204115.webp)
5. Diagnosis and error treatment
5−21
Festo P.BE−VIFB5−03−EN en 0503e
Example
Interrogation and evaluation of the diagnostic byte of a field
bus slave.
Field bus address
23
Processor system address:
4
Interrogation:
With faults of V
inputs
(Bit no. 4) is to be branched
in the program.
Solution
With bit−by−bit masking
of the return parameter,
the contents will be
evaluated
(HEX10 = 0001.0000).
Program STL:
STEP
(1)
“Read status byte terminal 23
IF
NOP
THEN
CFM 54
“Function module – call in CZE 4
WITH
C44
“CFM 44 in CFA
WITH
C23
“Address of field bus slave
STEP
(2)
“Bit no. 4 set in status byte?
IF
(FU32
“CFM return parameter
AND
$10)
“Condition: Bit no. 4 = 1
=
K$10
THEN
JMP TO
V_error (3) “Jump to subprogram “Error”
OTHERWISE
NOP
Basic program
CALL
FN54 (44, 23)
:I
Read status byte terminal 23 via CFM
44
IF
@Q0 AND $10 THEN...:I
Condition: Bit no. 4 = 1
Fig.5/16: Example of program with Festo field bus
Содержание IFB05-03
Страница 2: ......
Страница 15: ...Summary of components 1 1 Festo P BE VIFB5 03 EN en 0503e Chapter 1...
Страница 24: ...1 Summary of components 1 10 Festo P BE VIFB5 03 EN en 0503e...
Страница 25: ...Fitting 2 1 Festo P BE VIFB5 03 EN en 0503e Chapter 2...
Страница 35: ...Installation 3 1 Festo P BE VIFB5 03 EN en 0503e Chapter 3...
Страница 63: ...Commissioning 4 1 Festo P BE VIFB5 03 EN en 0503e Chapter 4...
Страница 95: ...Diagnosis and error treatment 5 1 Festo P BE VIFB5 03 EN en 0503e Chapter 5...
Страница 126: ...5 Diagnosis and error treatment 5 32 Festo P BE VIFB5 03 EN en 0503e...
Страница 127: ...Technical appendix A 1 Festo P BE VIFB5 03 EN en 0503e Appendix A...
Страница 141: ...Accessories B 1 Festo P BE VIFB5 03 EN en 0503e Appendix B...
Страница 142: ...B Accessories B 2 Festo P BE VIFB5 03 EN en 0503e Contents B 1 Connecting the cables to the plugs sockets B 3...
Страница 146: ...B Accessories B 6 Festo P BE VIFB5 03 EN en 0503e...
Страница 147: ...Index C 1 Festo P BE VIFB5 03 EN en 0503e Appendix C...
Страница 148: ...C Index C 2 Festo P BE VIFB5 03 EN en 0503e Contents C Index C 1...
Страница 153: ...C Index C 7 Festo P BE VIFB5 03 EN en 0503e MAXI 1 3 1 6 MIDI 1 3 1 5 Voltage Selecting the cables 3 6 3 15...
Страница 154: ...C Index C 8 Festo P BE VIFB5 03 EN en 0503e...