Technical data

Table Of Contents
SFCs/SFBs for Transferring Data Records
System Software for S7-300/400 System and Standard Functions - Volume 1/2
7-8
A5E00709327-01
7.6 Assigning Parameters to a Module with SFC 57
"PARM_MOD"
Description
With SFC 57 "PARM_MOD" (assign parameters to a module) you transfer all the
data records of a module that you configured with STEP 7 to the module. With this
function, it is irrelevant whether the data records are static or dynamic.
Parameter Declaration Data Type Memory Area Description
REQ INPUT BOOL I, Q, M, D, L,
constant
REQ = 1: Write request
IOID INPUT BYTE I, Q, M, D, L,
constant
ID of the address area:
B#16#54 = Peripheral input (PI)
B#16#55 = Peripheral output (PQ)
If the module is a mixed module,
specify the area ID of the lowest
address. If the addresses are the
same,
specify B#16#54.
LADDR INPUT WORD I, Q, M, D, L,
constant
Logical base address of the module.
With mixed modules, specify the lower
of the two addresses.
RET_VAL OUTPUT INT I, Q, M, D, L If an error occurs while the function is
active, the return value contains an
error code.
BUSY OUTPUT BOOL I, Q, M, D, L BUSY = 1: Writing is not yet
completed.
Error Information
The "real" error information (error codes W#16#8xyz) can be divided into two
classes:
Temporary errors (error codes W#16#80A2 to 80A4, 80Cx):
With this type of error, it is possible that the error will be eliminated without you
taking any action, in other words, it is advisable to call the SFC again (if
necessary more than once).
An example of a temporary error is when required resources are currently
being used (W#16#80C3).
Permanent errors (error codes W#16#809x, 80A1, 80Bx, 80Dx):
This type of error will not be eliminated without you taking action. Retries to call
SFC will only be successful after the error has been eliminated.
An example of a permanent error is entering the wrong length in RECORD
(W#16#80B1).