EasyManua.ls Logo

Siemens S7-1200 - STP (Exit Program) Instruction; GET_ERROR and GET_ERROR_ID (Get Error and Error ID Locally) Instructions

Siemens S7-1200
1028 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Basic instructions
7.8 Program control operations
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG
263
7.8.7
STP (Exit program) instruction
Table 7- 106 STP instruction
LAD / FBD
SCL
Description
STP();
STP puts the CPU in STOP mode. When the CPU is in STOP mode, the
execution of your program and physical updates from the process image are
stopped.
For more information see: Configuring the outputs on a RUN-to-STOP transition (Page 104).
If EN = TRUE, then the CPU goes to STOP mode, the program execution stops, and the
ENO state is meaningless. Otherwise, EN = ENO = 0.
7.8.8
GET_ERROR and GET_ERROR_ID (Get error and error ID locally) instructions
The get error instructions provide information about program block execution errors. If you
add a GET_ERROR or GET_ERROR_ID instruction to your code block, you can handle
program errors within your program block.
GET_ERROR
Table 7- 107 GET_ERROR instruction
LAD / FBD
SCL
Description
GET_ERROR(_out_);
Indicates that a local program block execution error has occurred
and fills a predefined error data structure with detailed error
information.
Table 7- 108 Data types for the parameters
Parameter
Data type
Description
ERROR ErrorStruct Error data structure: You can rename the structure, but not the
members within the structure.

Table of Contents

Other manuals for Siemens S7-1200

Related product manuals