Diagnostics with the CP 341
8.1 Diagnostics Functions of the CP 341
CP 341 Point-to-Point Communication, Installation and Parameter Assignment
Manual, 09/2008, A5E02191071-01
199
Displaying and evaluating the STATUS output
You can display and evaluate the actual addresses in the STATUS output of the function
block.
Note
An error message is only output if the ERROR bit (request completed with error) is set at the
same time. In all other cases the STATUS word is zero.
Event class 30
Event class 30 contains error messages that can be output during communication via the S7
backplane bus between the CP 341 and the CPU.
The table below contains a description of event class 30.
Table 8- 2
Event class 30
Event class 30 (1EH):
"Communication error between CP and CPU"
Event no.
Event
Additional information/Remedy
(1E)0DH
Request canceled due to complete restart, restart, or
reset
(1E)0EH
Static error when the RD_REC SFC was called.
Return value RET_VAL of SFC is available for
evaluation in SFCERR variable in instance DB.
Load the SFCERR variable from the instance DB.
(1E)0FH
Static error when the WR_REC SFC was called.
Return value RET_VAL of SFC is available for
evaluation in SFCERR variable in instance DB.
Load the SFCERR variable from the instance DB.
(1E)41H
The number of bytes specified in the LEN parameter
of the FBs is not permissible
You must stay within a range of values of 1 to 4096
bytes.
(1E)42H
FB P_PRINT_RK:
The number of bytes specified for the variable or
format string in the pointer DB under length is not
permissible.
You must specify a permissible length:
32 bytes for variables, 150 bytes for format string
(1E)43H
FB P_PRINT_RK:
No pointer available for format string.
Enter the data block no. and data word no. for the
format string in the pointer DB.
Calling the SFCERR variable
You can obtain more information on errors 14 (1E0EH) and 15 (1E0FH) in event class 30 by
means of the SFCERR variable.
You can load the SFCERR variable from the instance DB of the corresponding function
block. The program example in section "Programming Example for Standard Function Blocks
(Page 205)" demonstrates how to load the SFCERR variable.
The error messages written to the SFCERR variable are listed in the System Software for S7
300/400, System and Standard Functions Reference Manual under the SFC 58 "WR_REC"
and SFC 59 "RD_REC" system functions.
长沙工控帮教育科技有限公司
www.gkbpx.com