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
392 System Manual, V4.2, 09/2016, A5E02486680-AK
9.3.6
SETIO_PART (Transfer process image area)
You can use the "SETIO_PART" instruction to consistently write data from the source area
spanned by OUTPUTS to the outputs of modules or submodules of DP slaves and
PROFINET IO devices. SETIO_PART calls the instruction "DPWR_DAT (Page 408)".
Table 9- 80 SETIO_PART (Transfer process image area) instruction
LAD / FBD
SCL
Description
"SETIO_PART_DB"(
id:=_uint_in_,
offset:=_int_in_,
len:=_int_in_,
status=>_dword_out_,
error=>_bool_out_,
outputs:=_variant_inout_);
Use the instruction SETIO_PART to
consistently write data from the
source area spanned by OUTPUTS
to the outputs of an IO module.
1
STEP 7 automatically creates the DB when you insert the instruction.
2
In the SCL example, "SETIO_PART_DB" is the name of the instance DB.
With the input parameter ID, you select the I/O module based on the hardware identified.
With the parameters OFFSET and LEN, you assign the portion of the process image area to
be written for the component addressed by ID. If the output 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.
If there is an error during the data transmission, ERROR receives the value TRUE, and
STATUS receives the error information of DPWR_DAT.
If the source area is greater than LEN, the instruction transfers the first LEN bytes from
OUTPUTS. ERROR receives the value FALSE.

Table of Contents

Other manuals for Siemens SIMATIC S7-1200

Related product manuals