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
18-2
A5E00709327-01
18.2 Read All Inputs of a DP Standard Slave/PROFINET IO
Device with FB 20 "GETIO"
Description
With the FB 20 "GETIO" you consistently read out all inputs of a DP standard
slave/PROFINET IO device. In doing so, FB 20 calls the SFC 14 "DPRD_DAT". If
there was no error during the data transmission, the data that have been read are
entered in the target area indicated by INPUTS.
The target 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
STATUS OUTPUT DWORD I, Q, M, D, L Contains error information for SFC 14
"DPRD_DAT" in the form
DW#16#40xxxx00
LEN OUTPUT INT I, Q, M, D, L Amount of data read in bytes
INPUTS IN_OUT ANY I, Q, M, D Target area for the read data. 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 Reading Consistent Data of a DP Standard Slave//PROFINET IO Device with
SFC 14 "DPRD_DAT".