Function
Retrieves the setting of logic of origin input.
Format
Ret = SmcWGetOrgLog( Id, AxisNo, OrgLog )
Parameters
Id [ C, C++: short ] [ Python: ctypes.c_short ]
Specify the device ID retrieved by SmcWInit function.
AxisNo [ C, C++: short ] [ Python: ctypes.c_short ]
Specify the axis number.
OrgLog [ C, C++: 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 [ C, C++: long ] [ 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 device is in operation.
Example
The set up information of the starting point input logic of axis number 1 is acquired.
C, C++
long Ret;
short OrgLog ;
Ret = SmcWGetOrgLog( Id , 1, &OrgLog );
Python
Ret = ctypes.c_long()
OrgLog = ctypes.c_short()
Ret.value = csmc.SmcWGetOrgLog( Id , 1, ctypes.byref(OrgLog) )
See Also