EasyManua.ls Logo

Siemens SIMATIC S7-1200

Siemens SIMATIC S7-1200
1614 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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
9.3.5
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
LAD / FBD
SCL
Description
"GETIO_PART_DB"(
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.
1
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
80B7
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.

Table of Contents

Other manuals for Siemens SIMATIC S7-1200

Related product manuals