Festo CPX-FB33 Manual page 136

Cpx bus node
Hide thumbs Also See for CPX-FB33:
Table of Contents

Advertisement

3. Diagnostics
IL
CALL "RALRM" , DB54
MODE :=2
F_ID :=DW#16#7F3
MLEN :=255
NEW
:=M54.0
STATUS:="DB_ALARM".STATUS Error code of the SFB
ID
:="DB_ALARM".ID
LEN
:="DB_ALARM".LEN
TINFO:="DB_ALARM".TINFO
AINFO:="DB_ALARM".AINFO
Fig. 3/3: Program example in instruction list for reading diagnostics information
3-20
Basic approaches – Diagnostics with user programs
Call the function block SFB54 RALRM within the error OB that
was started by the controller, e.g. OB 82 or OB 86. A program
example can be found in Fig. 3/3.
1. Call up SFB 54 initially with the operating mode MODE = 0
in order to determine the logical address of the I/O device
triggering the diagnostics.
2. For determining the diagnostics details:
Call up SFB 54 with the operating mode MODE = 2.
Enter the diagnostics address of the bus node in the
parameter F_ID (accept diagnostics address from
step 1.).
3. SFB 54 writes the diagnostics information to the AINFO
output parameter.
Explanation
Call SFB 54
Operating mode check of the IO device with address in F_ID
Logical address of the bus node (diagnostics address)
Max. Length in bytes
New alarm received
Starting address of the module with alarm
Length of alarm information
Target range OB start information (Task information)
Target range header/additional information
(alarm information)
Festo P.BE-CPX-PNIO-EN en 1407c English

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cpx-fb35Cpx-m-fb33Cpx-m-fb34Cpx-m-fb35Cpx-fb34

Table of Contents