WriteIOAlias

Writes the alias index into a real or simulated I/O module. The alias index allows you to reorder the list of modules if the cabling does not match the program.

Syntax

KsError WriteIOAlias(
     int Index,
     int Alias
);

Parameters

Index: the actual index of an I/O module. Indexes are zero based. Aliases affect this parameter.

Alias: the alias index to use, in place of the index of the I/O module. Indexes are zero based.

Return value

If the function succeeds, it returns errNoError, otherwise an error code. For more information about the error code, see the KsError list.

Remarks

Usable EtherCAT states

ecatOP

Example

N/A

Requirements

  RT Win32
Minimum supported version 4.0 4.0
Header ksapi.h ksapi.h
Library KsApi_Rtss.lib KsApi.lib

See also

ReadIOAlias