EasyManuals Logo

Siemens SIMATIC S7 User Guide

Siemens SIMATIC S7
134 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
Page #76 background imageLoading...
Page #76 background image
SIMATIC Automation Tool API for .NET framework
6.5 The Network class
SIMATIC Automation Tool V2.1 user guide
76 Manual, V2.1.1 07/2016, A5E33042676-AC
6.5.5
ScanNetworkDevices method
Return type
Method name
Result
ScanNetworkDevices
Parameters
Name
Data type
Parameter type
Description
strFile
IProfinetDeviceCollection
Out A collection containing an IProfinetDe-
vice
element for each accessible device
on the industrial network.
Once a network interface is selected, it is possible to query for the devices on the industrial
network. The
ScanNetworkDevices method outputs a collection of items, where each item
represents a device connected directly to the industrial Ethernet network. These devices
may include CPUs and decentralized IO stations.
The following example creates a collection of all accessible devices on the selected network
interface.
IProfinetDeviceCollection scannedDevices = new IProfinetDeviceCollection();
Result retVal = myNetwork.ScanNetworkDevices(out scannedDevices);
if (retVal.Succeeded)
{
//------------------------------------------------
// The action succeeded. Continue with operations.
//------------------------------------------------
}
This method outputs an
IProfinetDeviceCollection. This class is discussed in the next
chapter.

Table of Contents

Other manuals for Siemens SIMATIC S7

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens SIMATIC S7 and is the answer not in the manual?

Siemens SIMATIC S7 Specifications

General IconGeneral
BrandSiemens
ModelSIMATIC S7
CategoryController
LanguageEnglish

Related product manuals