ReadAxisCustomInput2

Reads the second custom input variable you added in IntervalZeroDevices database or UserDevices database, in which you can use KINGSTAR ESI Import Tool to add two custom input variables.

Syntax

KsError ReadAxisCustomInput2(
     int Index,
     DWORD* Value
);

Parameters

Index: the index of an axis. Indexes are zero based. Aliases affect this parameter.

Value: pointer to the value to receive the second custom input variable read.

Return value

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

Usable EtherCAT states

ecatOP

Example

Copy
DWORD customInput2Read = 0;
nRet = ReadAxisCustomInput2(0, &customInput2Read);

Requirements

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

See also

ReadAxisCustomInput1

ReadAxisInputs

WriteAxisCustomOutput1

WriteAxisCustomOutput2

WriteAxisOutputs