EasyManua.ls Logo

Siemens SIMATIC S7 - FC 178 F_INT_WR: Writing a Value of the Data Type INT Indirectly into an F-DB

Siemens SIMATIC S7
70 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...
1.2.12 FC 178 "F_INT_WR": Writing a Value of the Data Type INT
indirectly into an F-DB
Connectors
Parameter Data Type Description
IN INT Value to be written to the F-DB
ADDR_INT POINTER Start address of the INT area in an F-DB
END_INT POINTER End address of the INT area in an F-DB
Inputs
OFFS_INT INT Address offset in the INT area
Mode of Operation
This F application block writes the value applied to input IN of the data type INT to
the tag in an F-DB addressed by ADDR_INT and OFFS_INT.
Via the ADDR_INT input, the start address of the area with tags of the data type
INT is transferred to an F-DB in which the value is written to the IN input. The
address offset in this area is transferred via the OFFS_INT input.
The addresses transferred at the ADDR_INT or END_INT inputs must point to a
tag of the INT data type in an F-DB. There must only be tags of the INT data type
between the addresses ADDR_INT and END_INT. The ADDR_INT address must
be lower than the END_INT address. The transfer of the ADDR_INT and END_INT
addresses must be fully qualified as "DBx.DBWy" or in the corresponding symbolic
representation. Transfers in other forms are not permitted.
Diagnostic Result
The F application block checks whether the address of the tag addressed with
ADDR_INT and OFFS_INT is outside the address area defined by the addresses
ADDR_INT and END_INT. If this is the case, the F-CPU changes to STOP.
The following diagnostic event is then entered in the diagnostic buffer of the
F-CPU:
Event ID 16#75E2
Safety program: area length error
occurred in: F application block F_INT_WR
word access to F-DB
F-DB number: x
access address: y
previous operating mode: RUN
requested operating mode: STOP
internal error, event entering state
Note the following: When using STEP 7, V 5.2 + SP 1, the diagnostic event is
displayed only in hexadecimal without textual information. You then receive the
F-DB number in hexadecimal as additional information 1, the access address in
hexadecimal as additional information 3.
Product Information for the S7 Distributed Safety, Configuring and Programming Manual
46 A5E00169432-02

Table of Contents

Other manuals for Siemens SIMATIC S7

Related product manuals