Technical data

Table Of Contents
Copy and Block Functions
System Software for S7-300/400 System and Standard Functions - Volume 1/2
3-22
A5E00709327-01
Operating principle
The SFC 84 "WRIT_DBL" operates asynchronously, that is, processing covers
multiple SFC calls. Start the job by calling SFC 84 with REQ = 1.
The job status is displayed via the output parameters RET_VAL and BUSY.
Refer also to Meaning of the Parameters REQ, RET_VAL and BUSY with
Asynchronous SFCs
Parameters Declaration Data type Memory area Description
REQ INPUT BOOL I, Q, M, D, L REQ = 1: Write request
SRCBLK INPUT ANY D Pointer to DB in the work memory from which
is to be read
RET_VAL OUTPUT INT I, Q, M, D, L Error information
BUSY OUTPUT BOOL I, Q, M, D, L BUSY = 1: The write process is not yet
terminated.
DSTBLK OUTPUT ANY D Pointer to the data block in the load memory
that is to be written to
Error Information
Error code
(W#16#...):
Description
0000 no error
0081 The target range is larger than the source range.
The source area is written completely to the target area. The remaining bytes of
the target area are not changed.
7000 First call with REQ=0: no data transfer active; BUSY has the value 0.
7001 First call with REQ=1: no data transfer active; BUSY has the value 1.
7002 Intermediate call (REQ irrelevant): data transfer already active; BUSY has the
value 1.
8081 The source range is larger than the target range.
The target range is fully written. The remaining bytes of the source area are
ignored.
8092 Incorrect operating mode: While the SFC 84 was active, the CPU went into STOP
mode. This error code is supplied at the next transition to RUN. Call SFC 84
again.
8093 No data block or a data block that is not in the work memory is indicated for the
parameter SRCBLK.
80B1 No data block is indicated for the parameter DSTBLK, or the data block indicated
there is not an object in the load memory (e.g. a DB generated by SFC 22).
80B4 A DB with F attribute must not be changed
80C0 The target is currently being processed by another SFC or communication
operation. Example: You upload a DB from the CPU to the programming device
(PG). You want to change the contents of this DB with SFC 84.
80C3 The maximum number of simultaneously active SFC 84 is currently reached.
8xyy General error codes, see Evaluating Errors with Output Parameter RET_VAL