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