Siemens SIMATIC PCS 7 Function Manual page 48

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

Advertisement

Material lot management
4.1 FB_MLOT
Once the read job has been executed, the communication block "FB_UA_RM" writes the
request data (including RREQ_ID) and the pointer to the material data record to the
"UDT_UA_R_ST" input structure of the block, where it also sets the "NEW_DATA" input bit.
Note
For detailed information on the "UDT_UA_R_REQ_ST" and "UDT_UA_R_ST" structures, see
section Data structures and data formats (Page 241).
The input data are only assigned to the block's read job if the ID of the block (REQ_ID in the
output structure) matches the "REQ_ID" in the input structure.
Once the input structure data have been assigned to the read job, the data are checked for
validity and plausibility. The system evaluates the following:
● Whether the request data in the input and output structure match
● Whether the data length calculated corresponds to the data length of the outputs at the
block
If the data are plausible and valid, the "NEW_DATA" output is set in the FB_MLOT and the
data are written from the "FB_UA_RM" communication block to the outputs of the block, where
they are available for further processing.
The "NEW_DATA" output is reset by resetting the "RREC_REQ" request input.
The "FB_UA_RM" communication block reports any errors it detects during execution of the
read job to the "FB_MLOT" block. The "FB_MLOT" block deactivates the read job if an error
occurs ("RREC_REQ" = 0). This also happens if the "FB_MLOT" block itself detects an error.
A positive edge at the "RRESET" input resets the material data at the block output, the
"NEW_DATA" output and the error messages.
Writing data
This block allows you to create new material lots and modify or delete existing lots. All the
attributes required are available as block inputs.
When a new material lot is created, the system checks that the material lot name entered at
the block and the material lot ID are unique. When a material lot is modified or deleted, only
the material lot ID set at the block must be unique.
Following a request by a positive edge at the request input ("WREQ_INS", "WREQ_UPD" or
"WREQ_DEL"), the request data (REC_ID, ARCH_NA / ARCH_NO, etc.) and the attribute input
data are written to the output structure "UDT_UA_W_REQ_ST". The write job is activated in
the structure by setting the "REC_REQ" bit.
Note
For detailed information on the "UDT_UA_W_REQ_ST" and "UDT_UA_W_ST" structures, see
section Data structures and data formats (Page 241).
48
Advanced Process Functions (APF)
Function Manual, 07/2016, A5E38719883-AA

Advertisement

Table of Contents
loading

Table of Contents