Technical data

Table Of Contents
FBs for Cyclical Access to User Data according to the PNO
System Software for S7-300/400 System and Standard Functions - Volume 1/2
A5E00709327-01
18-3
18.3 Write All Outputs of a DP Standard Slave/PROFINET IO
Device with FB 21 "SETIO"
Description
With the FB 21 "SETIO" you consistently transfer the data from the source area
indicated by OUTPUTS to the addressed DP standard slave/PROFINET IO device,
and, if necessary, to the process image (in the case where you have configured the
affected address area for the DP standard slave as a consistency area in a process
image). In doing so, FB 21 calls the SFC 15 "DPWR_DAT".
The source area must have the same length that you configured with STEP 7 for
the selected component.
In the case of a DP standard slave with a modular structure or with several DP IDs,
you can only access the data for one component/DP ID with an FB 20 call each
time at the configured start address.
Parameter Declaration Data Type Memory Area Description
ID INPUT DWORD I, Q, M, D, L,
constant
Low word: logical address of the DP
slave/ PROFINET IO component
(module or submodule)
High word: irrelevant
LEN INPUT INT I, Q, M, D, L Irrelevant
STATUS OUTPUT DWORD I, Q, M, D, L Contains error information for SFC 15
"DPWR_DAT" in the form
DW#16#40xxxx00
OUTPUTS IN_OUT ANY I, Q, M, D Source area for the data to be read. It
must have the same length as the area
that you configured with STEP 7 for the
selected DP slave/ PROFINET IO
component. Only the data type BYTE is
permitted.
Error Information
See Writing Consistent Data to a DP Standard Slave/PROFINET IO Device with
SFC 15 "DPWR_DAT".