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
398 System Manual, V4.2, 09/2016, A5E02486680-AK
9.3.8
D_ACT_DP (Enable/disable PROFINET IO devices)
With the "D_ACT_DP" instruction, you can disable and enable configured PROFINET IO
devices in a targeted manner. In addition, you can determine whether each assigned
PROFINET IO device is currently activated or deactivated.
Note
You can only use the D_ACT_DP instruction with PROFINET IO devices. You cannot use
the instruction with PROFIBUS DP slaves.
Table 9- 84 D_ACT_DP instruction
LAD / FBD
SCL
Description
"D_ACT_DP_DB"(
req:=_bool_in_,
mode:=_usint_in_,
laddr:=_uint_in_,
ret_val=>_int_out_,
busy=>_bool_out_);
Use the D_ACT_DP instruction to
disable and enable configured
PROFINET IO devices and determine
whether each assigned PROFINET
IO device is currently activated or
deactivated.
1
STEP 7 automatically creates the DB when you insert the instruction.
2
In the SCL example, "D_ACT_DP_SFB_DB" is the name of the instance DB.
You cannot disable/enable an IE/PB Link PN IO type of gateway using the D_ACT_DP
instruction. If you nevertheless use D_ACT_DP on the gateway named, the CPU returns the
value W#16#8093 (there is no hardware object that can be activated or deactivated for the
address specified in LADDR).
Note
The disabling or enabling
job requires several runs through the cycle control point.
Therefore, you cannot wait for the end of such a job in a programmed loop.
Functional description
D_ACT_DP is an asynchronous instruction, which means that the job processing extends
over multiple D_ACT_DP instruction executions. You start the job by calling D_ACT_DP with
REQ = 1.
The output parameters RET_VAL and BUSY indicate the status of the job.
Application
If you configure PROFINET IO devices in a CPU which are not actually present or not
currently required, the CPU nevertheless continues to access these PROFINET IO devices
at regular intervals. After the devices are deactivated, further CPU accessing stops. The
corresponding error events no longer occur.

Table of Contents

Other manuals for Siemens SIMATIC S7-1200

Related product manuals