Fc 178 "F_Int_Wr": Writing A Value Of The Data Type Int Indirectly Into An F-Db - Siemens SIMATIC S7 Configuration And Programming Manual

Hide thumbs Also See for SIMATIC S7:
Table of Contents

Advertisement

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
Inputs
IN
ADDR_INT POINTER Start address of the INT area in an F-DB
END_INT
OFFS_INT INT
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.
46
INT
Value to be written to the F-DB
POINTER End address of the INT area in an F-DB
Address offset in the INT area
Product Information for the S7 Distributed Safety, Configuring and Programming Manual
A5E00169432-02

Advertisement

Table of Contents
loading

Table of Contents