Example) Get the general purpose input signal data of axis number 1.
■ C
long Ret;
short Id;
short InData;
// Get the general purpose input signal data.
Ret = SmcWGetDigitalIn( Id , 1, &InData );
■ Visual Basic
Dim Ret As Integer
Dim Id As Short
Dim InData As Short
' Get the general purpose input signal data.
Ret = SmcWGetDigitalIn( Id , 1, InData )
■ C#
int Ret;
short Id;
short InData;
// Get the general purpose input signal data.
Ret = Smc.WGetDigitalIn( Id , 1, out InData );
■ Python
Ret = ctypes.c_long()
Id = ctypes.c_short()
InData = ctypes.c_short()
# Get the general purpose input signal data.
Ret.value = csmc.SmcWGetDigitalIn( Id , 1, ctypes.byref(InData) )