Generating Errors With Local Error Handling - Siemens SIMATIC S7-1500 Getting Started

Hide thumbs Also See for SIMATIC S7-1500:
Table of Contents

Advertisement

3.2.13.4

Generating errors with local error handling

Introduction
Perform the following steps to use "GET_ERR_ID" instruction and its ENO bit for the local
error handling to respond to the error with an error message. This means the CPU remains
in RUN mode.
Procedure
1. Open the "LAD_Local_Error_Handling" function block.
2. Insert the "GET_ERR_ID" instruction in the second network and interconnect the "ID"
3. Call the "ErrorID_to_ErrorText" function from the project tree.
4. Interconnect the parameters of the "ErrorID_to_ErrorText" function so that they can
5. Load the changes to the CPU.
6. Trigger an error in the "Main" organization block by entering an invalid value, for example,
S7-1500
Getting Started, 05/2014, A5E03981761-AC
output.
convert the error code into an error message.
"101". An error message is output at the "ERROR_MESSAGE" parameter.
Software section
3.2 Creating the program
79

Advertisement

Table of Contents
loading

Table of Contents