Extended instructions
9.3 Distributed I/O (PROFINET, PROFIBUS, or AS-i)
S7-1200 Programmable controller
System Manual, V4.2, 09/2016, A5E02486680-AK
389
SETIO (Transfer process image)
You use the instruction "SETIO" to consistently transfer data from the source range defined
by the OUTPUTS parameter to the addressed modules or submodules of DP slaves and
PROFINET IO devices. If you have configured the relevant address area of the
DP standard slave / PROFINET IO device as a consistent range in a process image, the
data is transferred to the process image. "SETIO" calls the "DPWR_DAT (Page 408)"
instruction during this transfer.
Table 9- 78 SETIO (Read process image) instruction
id:=_uint_in_,
status=>_dword_out_,
outputs:=_variant_inout_);
Use the instruction "SETIO" to con-
sistently transfer data from the
source range defined by the param-
eter OUTPUTS to the addressed
DP standard slave /
PROFINET IO device.
STEP 7 automatically creates the DB when you insert the instruction.
2
In the SCL example, "SETIO_DB" is the name of the instance DB.
The source range must have a length that is greater than or equal to the length of the
selected component.
In the case of a DP standard slave / PROFINET IO device with modular configuration or with
several DP identifiers, you can only access one DP identifier / component per "SETIO" call.
The following table shows the parameters of the "SETIO" instruction:
ID IN HW_SUBMOD
Hardware ID of the DP standard slave / PROFINET IO device
STATUS
1
OUT DWord Contains the error information of "DPWR_DAT (Page 408)" in the form
OUTPUTS IN_OUT Variant Source range for the data to be written: The source range must have a
length that is greater than or equal to the length of the selected DP stand-
ard slave / PROFINET IO device.
You can use the following data types:
• System data types and array of system data types: BYTE, CHAR,
SINT, USINT, WORD, INT, UINT, DWORD, DINT, UDINT, REAL,
LREAL, LWORD, LINT, ULINT
• User Defined Types (UDT)
• Structures (STRUCT), but only in non-optimized data blocks (DB)
1
When displaying the "SETIO"error codes, use the DWord data type.