Open Core Interface - MLPI
MLPI-MotionLogicProgrammingInterface(mlpi4COM)  1.26.2
IIo Interface Reference

Inherits IDispatch.

Collaboration diagram for IIo:
Collaboration graph

Public Member Functions

HRESULT ReadFieldbusMasterList ([out, retval] SAFEARRAY(BSTR)*masterList)
 

Properties

IFieldbuses Fieldbuses [get]
 

Detailed Description

Definition of the IIo interface which gives access to input and output devices of the target.

The IIo interface contains various methods of accessing different input and output subsystems of the mlpi target. It makes it possible to read and write data from the connected fieldbus hardware.

Definition at line 72 of file IIo.idl.

Member Function Documentation

HRESULT IIo::ReadFieldbusMasterList ( [out, retval] SAFEARRAY(BSTR)*  masterList)

This function reads all fieldbus masters which are available on the target.

Parameters
[out]masterListReturns an array of strings. Each element is a master name. Use this name to access the IFieldbus interface in order to access the methods of this fieldbus master.
Returns
Return value indicating success (>=0) or error (<0).
Example C#:
// read masterlist and print out each master
string[] masterList = (string[])connection.Io.ReadFieldbusMasterList();
foreach (string master in masterList)
Console.WriteLine("-> " + master);
Note:
This method maps to the mlpiCore function mlpiIoReadFieldbusMasterList, where you can find further documentation.

Property Documentation

IFieldbuses IIo::Fieldbuses
get

This property returns a IFieldbuses object which allows access to different IFieldbus objects and fieldbus-specific methods.

Parameters
[out]applicationsReturns an object of the type IFieldbuses.
Returns
Return value indicating success (>=0) or error (<0).

The documentation for this interface was generated from the following file: