Function
Retrieves the setting of logic of origin input.
Format
Ret = SmcWGetOrgLog( Id, AxisNo, OrgLog )
Parameters
Id
[ VB.NET: Short ] [ C, C++: short ] [ C#: short ] [ Python: ctypes.c_short
]
SSpecify the Deice ID retrieved by SmcWInit
function.
AxisNo
[ VB.NET: Short ] [ C, C++: short ] [ C#: short ] [ Python: ctypes.c_short
]
Specify the axis number.
OrgLog
[ VB.NET: Short ] [ C, C++: short * ] [ C#: out short ] [ Python: ctypes.POINTER(ctypes.c_short)
]
Specify the address of a variable to store the logic of origin input.
[ 0 | 0 | 0 | 0 | 0 | 0 | Z | ORG ] Available range: 0 to 3
Z |
0: Falling edge 1: Rising edge |
ORG |
0: Negative logic 1: Positive logic |
Return Value
Ret [ VB.NET: Integer ] [ C, C++: long ] [ C#: int ] [ Python: ctypes.c_long ]
0 |
Terminated normally |
Non-zero |
Terminated abnormally |
See also: Error code details
Initial Value
Z |
0: Falling edge |
ORG |
0: Negative logic |
Remarks
This function can be executed even if the axis is in operation.
Example
The set up information of the starting point input logic of axis number 1 is acquired.
VB.NET
Dim Ret As Integer
Dim OrgLog As Short
Ret = SmcWGetOrgLog( Id , 1, OrgLog )
C, C++
long Ret;
short OrgLog;
Ret = SmcWGetOrgLog( Id , 1, &OrgLog );
C#
int Ret;
short OrgLog;
Ret = Smc.WGetOrgLog( Id , 1, out OrgLog );
Python
Ret = ctypes.c_long()
OrgLog = ctypes.c_short()
Ret.value = csmc.SmcWGetOrgLog( Id , 1, ctypes.byref(OrgLog) )
See Also