Extended instructions
9.3 Distributed I/O (PROFINET, PROFIBUS, or AS-i)
S7-1200 Programmable controller
390 System Manual, V4.2, 09/2016, A5E02486680-AK
GETIO_PART (Read process image area)
You use the instruction "GETIO_PART" to consistently read a related part of the inputs of
modules or submodules of DP slaves and PROFINET IO devices. GETIO_PART calls the
instruction "DPRD_DAT (Page 408)".
Table 9- 79 GETIO_PART (Read process image area) instruction
id:=_uint_in_,
offset:=_int_in_,
len:=_int_in_,
status=>_dword_out_,
error=>_bool_out_,
inputs:=_variant_inout_);
Use the instruction GETIO_PART to
consistently read out a related part of
the inputs of an IO module.
STEP 7 automatically creates the DB when you insert the instruction.
2
In the SCL example, "GETIO_PART_DB" is the name of the instance DB.
Use the ID input parameter to select the IO module by means of the hardware ID.
Use the OFFSET and LEN parameters to specify the portion of the process image area to be
read. If the input area spanned by OFFSET and LEN is not completely covered by the
module, the block returns the error code DW#16#40
00.
The length of the destination area must be larger than or equal to the amount of bytes to be
read:
● If there is no error during the data transmission, ERROR receives the value FALSE. The
data that is read is written to the destination area defined at the INPUTS parameter.
● If there is an error during the data transmission, ERROR receives the value TRUE. The
STATUS parameter receives the error information from DPRD_DAT.
● If the destination area is greater than LEN, the instruction writes to the first LEN bytes of
the destination area. ERROR receives the value FALSE.