Siemens SIMATIC PCS 7 Function Manual page 49

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

Advertisement

The following inputs are required when you insert ("WREQ_INS") or update ("WREQ_UPD")
a data record:
● INAME
● DESCR
● UOM
● IVERSION
● MATID
● LOSSTAT / LOTSTAT
● MHD / BBD
● MHDB / BBDB
● INT1 (attribute as an example)
● INT2 (attribute as an example)
These data are not required for deleting ("WREQ_DEL").
The "INAME" input is not analyzed upon change or deletion. The data record to be changed
or deleted is selected on the basis of the value at the "WREC_ID" input.
Once the write job has been processed, the "FB_UA_WM" block writes the confirmation data
(including REQ_ID) to the "UDT_UA_W_ST" input structure of the block and sets the
"QWR_OK" bit.
The input data are only assigned to the block's write job if the ID of the block (REQ_ID in the
output structure) matches the "REQ_ID" of the input structure.
Once the input structure data have been assigned to the write job and the "QWR_OK" bit has
been set, the data are checked for validity and plausibility. The system checks whether the
request data in the input and output structure match.
If the data are plausible and valid, the "WR_OK" output is set.
The "WR_OK" output is reset by resetting the "WREC_REQ" request input.
The "FB_UA_WM" communication block reports any errors it detects during execution of the
write job to the "FB_MLOT" block. The "FB_MLOT" block deactivates the write job if an error
occurs ("REC_REQ" = 0). This also happens if the "FB_MLOT" 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.
The material lot ID (WREC_ID) can also be assigned by the OS during insertion (WREQ_INS).
The setting is made with the "OS_REC_ID" input. Assignment is made by the OS when
"OS_REC_ID" = "1". In this case, a value does not need to be entered at the "WREC_ID" input
for inserting. The ID assigned by the OS is available at the "QWREC_ID" output for further
processing.
Once a material lot has been created, you cannot change the corresponding material ID or the
name of the material lot with an update.
Advanced Process Functions (APF)
Function Manual, 07/2016, A5E38719883-AA
Material lot management
4.1 FB_MLOT
49

Advertisement

Table of Contents
loading

Table of Contents