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-6
A5E00709327-01
18.5 Write a Part of the Outputs of a DP Standard
Slave/PROFINET IO Device with FB 23 "SETIO_PART"
Description
With the FB 23 "SETIO_PART" you transfer data from the source area indicated by
OUTPUTS into a part of the process image area belonging to a DP standard
slave/PROFINET IO device. In doing so, FB 23 calls the SFC 81 "UBLKMOV".
Note
You must assign a process image partition for outputs to the OB in which FB 23
"SETIO_PART" is called. Furthermore, before calling FB 23 you must add the
associated DP standard slave or the associated PROFINET IO device to this
process image partition for outputs. If your CPU does not recognize any process
image partitions or you want to call FB 23 in OB 1, you must add the associated
DP standard slave or the associated PROFINET IO device to this process image
partition for outputs before calling FB 23.
You use the OFFSET and LEN parameters to specify the portion of the process
image area to be written for the components addressed by means of their ID.
If there was no error during the data transmission, ERROR receives the value
FALSE.
If there was an error during the data transmission, ERROR receives the value
TRUE, and STATUS receives the SFC 81 error information "UBLKMOV".
If the source area (OUTPUTS parameter ) is smaller than LEN, then as many bytes
as OUTPUTS contains are transferred. ERROR receives the value FALSE. If the
source area is greater than LEN, then the first LEN bytes are transferred from
OUTPUTS. ERROR receives the value FALSE.
Note
The FB 23 "SETIO_PART" does not check the process image for inputs for
delimiters between data that belong to different PROFIBUS DP or PROFINET IO
components. Because of this, you yourself must make sure that the process image
area specified by means of OFFSET and LEN belongs to one component. Writing
of data for more than one component cannot be guaranteed for future systems and
compromises the transferability to systems from other manufacturers.