Siemens SIMATIC PCS 7 Function Manual page 68

Process control system, advanced process functions apf
Hide thumbs Also See for SIMATIC PCS 7:
Table of Contents

Advertisement

Storage location management
5.1 FB_STOR (FB_STORI, FB_STORR)
The "WR_OK" output of the "FB_STOR" block is only set if the data are plausible and valid.
The "WR_OK" output is reset by resetting the "L_REC_W" request input.
The "FB_UA_WM" communication block reports any errors it detects during execution of the
write job to the "FB_STOR" block. The "FB_STOR" block deactivates the write job if an error
occurs ("REC_REQ" = 0). This also happens if the "FB_STOR" block itself detects an error.
A positive edge at the "WRESET" input resets the "WR_OK" output and the error messages
relating to the write job.
Automatic transfer of values from the user archive
The "FB_STOR" block can automatically trigger reading of storage location data from the user
archive upon a CPU restart. For this function to operate, bit 15 in the "TRIGMODE" input word
must be set.
If an error occurs during reading, the block launches another attempt to read the storage
location data after the time set at the "INIREP_T" input. This process is not interrupted and is
always performed again whenever an error occurs.
Automatic transfer of actual values to the user archive
Because the DB number of the "FB_STOR" block must always be current in the corresponding
data record of the archive, upon initial insertion the block triggers a write request to transfer
its own DB number to the user archive.
If the DB number changes during runtime, for example, following full compilation of the AS,
the block registers this and again automatically triggers a write job.
If an error occurs during writing, the block launches another attempt to write its DB number to
the user archive after the time set at the "INIREP_T" input. This process is not interrupted and
is always performed again whenever an error occurs.
To update actual values in the user archive automatically after certain process value changes,
you can define specific changes at the "TRIGMODE" input after which the block is to
automatically write its process values to the user archive. In accordance with the bits set, the
block monitors the specified inputs and triggers a write job to the user archive if one of these
values is modified.
0
1
2
3
4
5
6
7
8
9
10
68
Bit
Monitored input
Not used
Not used
STOR_STATUS
MAT_STATUS
REL1STAT
REL2STAT
REL3STAT
REL4STAT
REL1DYN
REL2DYN
REL3DYN
Meaning
-
-
Storage location status
Material status
Static procedure enable 1
Static procedure enable 2
Static procedure enable 3
Static procedure enable 4
Dynamic procedure enable 1
Dynamic procedure enable 2
Dynamic procedure enable 3
Advanced Process Functions (APF)
Function Manual, 07/2016, A5E38719883-AA

Advertisement

Table of Contents
loading

Table of Contents