Extended instructions
9.3 Distributed I/O (PROFINET, PROFIBUS, or AS-i)
S7-1200 Programmable controller
System Manual, V4.2, 09/2016, A5E02486680-AK
393
The following table shows the parameters of the SETIO_PART instruction:
ID IN HW_SUBMO
Hardware identifier of the IO module
OFFSET IN Int Number of the first byte to be written in the process image for the compo-
nent (smallest possible value: 0)
Number of bytes to be written
STATUS
1
OUT DWord Contains the error information of DPWR_DAT (Page 408) in the form
DW#16#40xxxx00, if ERROR = TRUE
ERROR OUT Bool Error display: ERROR = TRUE if an error occurs when DPWR_DAT
OUTPUTS IN_OUT Variant Source range for the data to be written: If the source area is greater than
LEN, the first LEN bytes are transferred from OUTPUTS.
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_PART error codes, use the DWord data type.