Querying The Status Of The Dp Slaves And Io Devices Using System Functions - Siemens SIMOTION Function Manual

Motion control basic functions for modular machines
Hide thumbs Also See for SIMOTION:
Table of Contents

Advertisement

5.1.2.2

Querying the status of the DP slaves and IO devices using system functions

System functions
The system functions _getStateOfAllDPStations, _getStateOfAllDpSlaves, and
_getStateOfSingleDpSlave can be used to query the status of all or just one DP slave or IO
device in a user program. In addition to the activation status, information on availability is also
provided.
● With the _getStateOfAllDPStations function you obtain:
● With the _getStateOfAllDpSlaves function you obtain:
● With the _getStateOfSingleDpSlave function you obtain:
The syntax of these system functions is described in detail in the "System Functions/Variables
Devices" Parameter Manual (reference list) and in the online help (see index).
Functions (Page 68) are available for converting a PROFIBUS address or device number for
PROFINET IO into the logical diagnostics address and vice versa.
Status diagram, asynchronous call and synchronous call
As regards the main features, the same information applies as for the _activateDpSlave and
_deactivateDpSlave functions, see:
● Status diagram for the functions _activateDpSlave and _deactivateDpSlave (Page 60)
● Asynchronous call for the functions _activateDpSlave and _deactivateDpSlave (Page 62)
● Synchronous call for the functions _activateDpSlave and _deactivateDpSlave (Page 64)
Basic Functions for Modular Machines
Function Manual, 04/2014
5.1 Activating and deactivating nodes on the PROFIBUS or PROFINET IO
– For PROFIBUS: the status of all DP slaves configured on a DP master with the logical
diagnostics addresses of their PROFIBUS interfaces. You can specify the DP master
using the logical diagnostics address for its PROFIBUS interface.
– For PROFINET IO: the status of all IO devices that you can reach from a controller (also
via routers), as well as the logical diagnostics addresses for their PROFIBUS interfaces.
You can specify the controller using the logical diagnostics address for its PROFINET
IO interface.
With one call of the function, you obtain the status for a maximum of 10 DP slaves or IO
devices. If more DP slaves and/or I/O devices are available, you will receive the value
16#0000_0001 in the functionResult component of the return value. Following this, keep
calling up the function using the parameter RequestMode := REQUEST_FALSE as often
as is necessary until the functionResult component of the return value contains the value
16#0000_0000. Use the same command ID as for the first call.
– For PROFIBUS: for every legal PROFIBUS address on a DP master, whether a DP
slave is configured for this address and, if necessary, its status. You can specify the DP
master using the logical diagnostics address for its PROFIBUS interface.
This function exists only with PROFIBUS DP.
– For PROFIBUS: the status of an individual DP slave that you can specify using the
logical diagnostics address for its PROFIBUS interface.
– For PROFINET IO: the status of an individual IO device that you can specify using the
logical diagnostics address for its PROFINET IO interface.
Activating and deactivating components and technology objects
67

Advertisement

Table of Contents
loading

Table of Contents