Inherits IDispatch.
Classes | |
struct | ParameterListLength |
Public Member Functions | |
HRESULT | ReadData ([in] BSTR idn, [in, optional] VARIANT address, [in, optional] VARIANT set, [in, optional] VARIANT block, [in, optional] VARIANT si, [in, optional] VARIANT se, [out, retval] VARIANT *data) |
HRESULT | ReadMinimum ([in] BSTR idn, [in, optional] VARIANT address, [in, optional] VARIANT set, [in, optional] VARIANT block, [in, optional] VARIANT si, [in, optional] VARIANT se, [out, retval] VARIANT *data) |
HRESULT | ReadMaximum ([in] BSTR idn, [in, optional] VARIANT address, [in, optional] VARIANT set, [in, optional] VARIANT block, [in, optional] VARIANT si, [in, optional] VARIANT se, [out, retval] VARIANT *data) |
HRESULT | ReadDefault ([in] BSTR idn, [in, optional] VARIANT address, [in, optional] VARIANT set, [in, optional] VARIANT block, [in, optional] VARIANT si, [in, optional] VARIANT se, [out, retval] VARIANT *data) |
HRESULT | ReadName ([in] BSTR idn, [in, optional] VARIANT address, [in, optional] VARIANT set, [in, optional] VARIANT block, [in, optional] VARIANT si, [in, optional] VARIANT se, [out, retval] BSTR *data) |
HRESULT | ReadUnit ([in] BSTR idn, [in, optional] VARIANT address, [in, optional] VARIANT set, [in, optional] VARIANT block, [in, optional] VARIANT si, [in, optional] VARIANT se, [out, retval] BSTR *data) |
HRESULT | ReadDataStatus ([in] BSTR idn, [in, optional] VARIANT address, [in, optional] VARIANT set, [in, optional] VARIANT block, [in, optional] VARIANT si, [in, optional] VARIANT se, [out, retval] VARIANT_BOOL *data) |
HRESULT | ReadAttribute ([in] BSTR idn, [in, optional] VARIANT address, [in, optional] VARIANT set, [in, optional] VARIANT block, [in, optional] VARIANT si, [in, optional] VARIANT se, [out, retval] VARIANT *data) |
HRESULT | Command ([in] BSTR idn, [in, optional] VARIANT address, [in, optional] VARIANT set, [in, optional] VARIANT block, [in, optional] VARIANT si, [in, optional] VARIANT se) |
HRESULT | WriteData ([in] VARIANT data, [in] BSTR idn, [in, optional] VARIANT address, [in, optional] VARIANT set, [in, optional] VARIANT block, [in, optional] VARIANT si, [in, optional] VARIANT se) |
HRESULT | ReadListLength ([in] BSTR idn, [in, optional] VARIANT address, [in, optional] VARIANT set, [in, optional] VARIANT block, [in, optional] VARIANT si, [in, optional] VARIANT se, [out, retval] struct ParameterListLength *listLength) |
HRESULT | ReadDataAsString ([in] BSTR idn, [in, optional] VARIANT address, [in, optional] VARIANT set, [in, optional] VARIANT block, [in, optional] VARIANT si, [in, optional] VARIANT se, [out, retval] BSTR *data) |
Definition of the IParameter interface used to access the parameter system of the MLPI Device.
Use the IParameter interface to access parameters on the MLPI device or its slave devices, which are connected to the MLPI device.
Definition at line 71 of file IParameter.idl.
HRESULT IParameter::ReadData | ( | [in] BSTR | idn, |
[in, optional] VARIANT | address, | ||
[in, optional] VARIANT | set, | ||
[in, optional] VARIANT | block, | ||
[in, optional] VARIANT | si, | ||
[in, optional] VARIANT | se, | ||
[out, retval] VARIANT * | data | ||
) |
Reads a parameter and returns its content.
[in] | idn | String representation of a SERCOS parameter IDN. For example "S-0-0051", "S-0-1050.0.1", "C-0-0484", "A001:A-0-0100", "S" or "P-100". |
[in] | address | Optional argument for the address instance. Necessary if the address information is not part of the IDN string. |
[in] | set | Optional argument for the set information. Necessary if the set information is not part of the IDN string. |
[in] | block | Optional argument for the block instance. Necessary if the block information is not part of the IDN string. |
[in] | si | Optional argument for the si instance. Necessary if the si information is not part of the IDN string. |
[in] | se | Optional argument for the se instance. Necessary if the se information is not part of the IDN string. |
[out] | data | Return value containing the parameter data requested. |
mlpiParameterReadData
, where you can find further documentation. HRESULT IParameter::ReadMinimum | ( | [in] BSTR | idn, |
[in, optional] VARIANT | address, | ||
[in, optional] VARIANT | set, | ||
[in, optional] VARIANT | block, | ||
[in, optional] VARIANT | si, | ||
[in, optional] VARIANT | se, | ||
[out, retval] VARIANT * | data | ||
) |
Reads the minimum value of a SERCOS parameter.
[in] | idn | String representation of a SERCOS parameter IDN. For example "S-0-0051", "S-0-1050.0.1", "C-0-0484", "A001:A-0-0100", "S" or "P-100". |
[in] | address | Optional argument for the address instance. Necessary if the address information is not part of the IDN string. |
[in] | set | Optional argument for the set information. Necessary if the set information is not part of the IDN string. |
[in] | block | Optional argument for the block instance. Necessary if the block information is not part of the IDN string. |
[in] | si | Optional argument for the si instance. Necessary if the si information is not part of the IDN string. |
[in] | se | Optional argument for the se instance. Necessary if the se information is not part of the IDN string. |
[out] | data | Return value containing the parameter information requested. |
mlpiParameterReadMinimum
, where you can find further documentation. HRESULT IParameter::ReadMaximum | ( | [in] BSTR | idn, |
[in, optional] VARIANT | address, | ||
[in, optional] VARIANT | set, | ||
[in, optional] VARIANT | block, | ||
[in, optional] VARIANT | si, | ||
[in, optional] VARIANT | se, | ||
[out, retval] VARIANT * | data | ||
) |
Reads the maximum value of a SERCOS parameter.
[in] | idn | String representation of a SERCOS parameter IDN. For example "S-0-0051", "S-0-1050.0.1", "C-0-0484", "A001:A-0-0100", "S" or "P-100". |
[in] | address | Optional argument for the address instance. Necessary if the address information is not part of the IDN string. |
[in] | set | Optional argument for the set information. Necessary if the set information is not part of the IDN string. |
[in] | block | Optional argument for the block instance. Necessary if the block information is not part of the IDN string. |
[in] | si | Optional argument for the si instance. Necessary if the si information is not part of the IDN string. |
[in] | se | Optional argument for the se instance. Necessary if the se information is not part of the IDN string. |
[out] | data | Return value containing the parameter information requested. |
mlpiParameterReadMaximum
, where you can find further documentation. HRESULT IParameter::ReadDefault | ( | [in] BSTR | idn, |
[in, optional] VARIANT | address, | ||
[in, optional] VARIANT | set, | ||
[in, optional] VARIANT | block, | ||
[in, optional] VARIANT | si, | ||
[in, optional] VARIANT | se, | ||
[out, retval] VARIANT * | data | ||
) |
Reads the default value of a SERCOS parameter.
[in] | idn | String representation of a SERCOS parameter IDN. For example "S-0-0051", "S-0-1050.0.1", "C-0-0484", "A001:A-0-0100", "S" or "P-100". |
[in] | address | Optional argument for the address instance. Necessary if the address information is not part of the IDN string. |
[in] | set | Optional argument for the set information. Necessary if the set information is not part of the IDN string. |
[in] | block | Optional argument for the block instance. Necessary if the block information is not part of the IDN string. |
[in] | si | Optional argument for the si instance. Necessary if the si information is not part of the IDN string. |
[in] | se | Optional argument for the se instance. Necessary if the se information is not part of the IDN string. |
[in] | data | Return value containing the parameter information requested. |
mlpiParameterReadDefault
, where you can find further documentation. HRESULT IParameter::ReadName | ( | [in] BSTR | idn, |
[in, optional] VARIANT | address, | ||
[in, optional] VARIANT | set, | ||
[in, optional] VARIANT | block, | ||
[in, optional] VARIANT | si, | ||
[in, optional] VARIANT | se, | ||
[out, retval] BSTR * | data | ||
) |
Reads the name of a SERCOS parameter.
[in] | idn | String representation of a SERCOS parameter IDN. For example "S-0-0051", "S-0-1050.0.1", "C-0-0484", "A001:A-0-0100", "S" or "P-100". |
[in] | address | Optional argument for the address instance. Necessary if the address information is not part of the IDN string. |
[in] | set | Optional argument for the set information. Necessary if the set information is not part of the IDN string. |
[in] | block | Optional argument for the block instance. Necessary if the block information is not part of the IDN string. |
[in] | si | Optional argument for the si instance. Necessary if the si information is not part of the IDN string. |
[in] | se | Optional argument for the se instance. Necessary if the se information is not part of the IDN string. |
[out] | data | Return value containing the parameter name requested as string. |
mlpiParameterReadName
, where you can find further documentation. HRESULT IParameter::ReadUnit | ( | [in] BSTR | idn, |
[in, optional] VARIANT | address, | ||
[in, optional] VARIANT | set, | ||
[in, optional] VARIANT | block, | ||
[in, optional] VARIANT | si, | ||
[in, optional] VARIANT | se, | ||
[out, retval] BSTR * | data | ||
) |
Reads the unit of a SERCOS parameter.
[in] | idn | String representation of a SERCOS parameter IDN. For example "S-0-0051", "S-0-1050.0.1", "C-0-0484", "A001:A-0-0100", "S" or "P-100". |
[in] | address | Optional argument for the address instance. Necessary if the address information is not part of the IDN string. |
[in] | set | Optional argument for the set information. Necessary if the set information is not part of the IDN string. |
[in] | block | Optional argument for the block instance. Necessary if the block information is not part of the IDN string. |
[in] | si | Optional argument for the si instance. Necessary if the si information is not part of the IDN string. |
[in] | se | Optional argument for the se instance. Necessary if the se information is not part of the IDN string. |
[out] | data | Return value containing the parameter unit requested as string. |
mlpiParameterReadUnit
, where you can find further documentation. HRESULT IParameter::ReadDataStatus | ( | [in] BSTR | idn, |
[in, optional] VARIANT | address, | ||
[in, optional] VARIANT | set, | ||
[in, optional] VARIANT | block, | ||
[in, optional] VARIANT | si, | ||
[in, optional] VARIANT | se, | ||
[out, retval] VARIANT_BOOL * | data | ||
) |
Reads the data status of a SERCOS parameter.
[in] | idn | String representation of a SERCOS parameter IDN. For example "S-0-0051", "S-0-1050.0.1", "C-0-0484", "A001:A-0-0100", "S" or "P-100". |
[in] | address | Optional argument for the address instance. Necessary if the address information is not part of the IDN string. |
[in] | set | Optional argument for the set information. Necessary if the set information is not part of the IDN string. |
[in] | block | Optional argument for the block instance. Necessary if the block information is not part of the IDN string. |
[in] | si | Optional argument for the si instance. Necessary if the si information is not part of the IDN string. |
[in] | se | Optional argument for the se instance. Necessary if the se information is not part of the IDN string. |
[out] | data | Return value containing the parameter requested. |
mlpiParameterReadDataStatus
, where you can find further documentation. HRESULT IParameter::ReadAttribute | ( | [in] BSTR | idn, |
[in, optional] VARIANT | address, | ||
[in, optional] VARIANT | set, | ||
[in, optional] VARIANT | block, | ||
[in, optional] VARIANT | si, | ||
[in, optional] VARIANT | se, | ||
[out, retval] VARIANT * | data | ||
) |
Reads the attribute of a SERCOS parameter.
[in] | idn | String representation of a SERCOS parameter IDN. For example "S-0-0051", "S-0-1050.0.1", "C-0-0484", "A001:A-0-0100", "S" or "P-100". |
[in] | address | Optional argument for the address instance. Necessary if the address information is not part of the IDN string. |
[in] | set | Optional argument for the set information. Necessary if the set information is not part of the IDN string. |
[in] | block | Optional argument for the block instance. Necessary if the block information is not part of the IDN string. |
[in] | si | Optional argument for the si instance. Necessary if the si information is not part of the IDN string. |
[in] | se | Optional argument for the se instance. Necessary if the se information is not part of the IDN string. |
[out] | data | Return value containing the parameter attribute requested. |
mlpiParameterReadAttribute
, where you can find further documentation. HRESULT IParameter::Command | ( | [in] BSTR | idn, |
[in, optional] VARIANT | address, | ||
[in, optional] VARIANT | set, | ||
[in, optional] VARIANT | block, | ||
[in, optional] VARIANT | si, | ||
[in, optional] VARIANT | se | ||
) |
Executes a parameter command.
[in] | idn | String representation of a SERCOS parameter IDN. For example "S-0-0051", "S-0-1050.0.1", "C-0-0484", "A001:A-0-0100", "S" or "P-100". |
[in] | address | Optional argument for the address instance. Necessary if the address information is not part of the IDN string. |
[in] | set | Optional argument for the set information. Necessary if the set information is not part of the IDN string. |
[in] | block | Optional argument for the block instance. Necessary if the block information is not part of the IDN string. |
[in] | si | Optional argument for the si instance. Necessary if the si information is not part of the IDN string. |
[in] | se | Optional argument for the se instance. Necessary if the se information is not part of the IDN string. |
mlpiParameterCommand
, where you can find further documentation. HRESULT IParameter::WriteData | ( | [in] VARIANT | data, |
[in] BSTR | idn, | ||
[in, optional] VARIANT | address, | ||
[in, optional] VARIANT | set, | ||
[in, optional] VARIANT | block, | ||
[in, optional] VARIANT | si, | ||
[in, optional] VARIANT | se | ||
) |
Writes a SERCOS parameter. Please ensure that the given argument for the parameter data
matches the attribute of the parameter. This means, for example, that it is illegal to write a float value to a non-floating point parameter. Otherwise this function will return an error.
[in] | data | Input data to be written on the parameter. |
[in] | idn | String representation of a SERCOS parameter IDN. For example "S-0-0051", "S-0-1050.0.1", "C-0-0484", "A001:A-0-0100", "S" or "P-100". |
[in] | address | Optional argument for the address instance. Necessary if the address information is not part of the IDN string. |
[in] | set | Optional argument for the set information. Necessary if the set information is not part of the IDN string. |
[in] | block | Optional argument for the block instance. Necessary if the block information is not part of the IDN string. |
[in] | si | Optional argument for the si instance. Necessary if the si information is not part of the IDN string. |
[in] | se | Optional argument for the se instance. Necessary if the se information is not part of the IDN string. |
data
. There are two possibilities to meet this restriction: data
can be given as variable matching the attribute of the parameter. This is shown in the upper part of the example. data
can be given as string. In this case the function converts the string automatically into the proper data type. This is shown in the lower part of the example and is only possible if the conversion is possible. data
should under no circumstances be given as plain number, because the data type assumed by the compiler would probably not match the attribute of the parameter.mlpiParameterWriteData
, where you can find further documentation. HRESULT IParameter::ReadListLength | ( | [in] BSTR | idn, |
[in, optional] VARIANT | address, | ||
[in, optional] VARIANT | set, | ||
[in, optional] VARIANT | block, | ||
[in, optional] VARIANT | si, | ||
[in, optional] VARIANT | se, | ||
[out, retval] struct ParameterListLength * | listLength | ||
) |
Reads the information about the length of list parameter. This method does not work for non-list parameters.
[in] | idn | String representation of a SERCOS parameter IDN. For example "S-0-0051", "S-0-1050.0.1", "C-0-0484", "A001:A-0-0100", "S" or "P-100". |
[in] | address | Optional argument for the address instance. Necessary if the address information is not part of the IDN string. |
[in] | set | Optional argument for the set information. Necessary if the set information is not part of the IDN string. |
[in] | block | Optional argument for the block instance. Necessary if the block information is not part of the IDN string. |
[in] | si | Optional argument for the si instance. Necessary if the si information is not part of the IDN string. |
[in] | se | Optional argument for the se instance. Necessary if the se information is not part of the IDN string. |
[out] | listLength | Information about the length of list parameter. |
mlpiParameterReadListLength
, where you can find further documentation. HRESULT IParameter::ReadDataAsString | ( | [in] BSTR | idn, |
[in, optional] VARIANT | address, | ||
[in, optional] VARIANT | set, | ||
[in, optional] VARIANT | block, | ||
[in, optional] VARIANT | si, | ||
[in, optional] VARIANT | se, | ||
[out, retval] BSTR * | data | ||
) |
Reads a parameter and always returns its content as string. So this method does the same as ReadData, but ALWAYS returns the data to be read converted to string representation. You can use this function not only for string variables, but also for other types. In this case, the function tries to convert the data to a string representation of the given value. This conversion is based on the information about the attribute of the parameter. This can be useful if you only want to display the variable as string and you don't need to know the type of variable. If you want to read the variable with its original type then you have to use the method ReadData.
[in] | idn | String representation of a SERCOS parameter IDN. For example "S-0-0051", "S-0-1050.0.1", "C-0-0484", "A001:A-0-0100", "S" or "P-100". |
[in] | address | Optional argument for the address instance. Necessary if the address information is not part of the IDN string. |
[in] | set | Optional argument for the set information. Necessary if the set information is not part of the IDN string. |
[in] | block | Optional argument for the block instance. Necessary if the block information is not part of the IDN string. |
[in] | si | Optional argument for the si instance. Necessary if the si information is not part of the IDN string. |
[in] | se | Optional argument for the se instance. Necessary if the se information is not part of the IDN string. |
[out] | data | Return value containing the parameter data requested as string. |
mlpiParameterReadData
, where you can find further documentation.