Function
Sets the each mode of Z-phase count motion.
Format
Ret = SmcWSetZCountMotion( Id, AxisNo, ZMoveCount, ZLog )
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 axis number.
ZMoveCount
[ VB.NET: Short ] [ C, C++: short ] [ C#: short ] [ Python: ctypes.c_short
]
Set the number of Z-phase when the Z-phase count motion. (Setting range
1 to 16)
ZLog
[ VB.NET: Short ] [ C, C++: short ] [ C#: short ] [ Python: ctypes.c_short
]
Set the logic of origin input.
0:Falling edge
1:Rising edge
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
ZMoveCount |
1:count one time |
ZLog |
0:Falling edge |
Remarks
- It is not possible to use it by the SMC-2/4/8DL series.
- Z-phase logic and the set each of of content
set by the number of Z-phase counts and the SmcWSetOrgLog
set to execute this function by the SmcWSetOrgMode
are rewritten.
That is, when Z-phase is used at the starting point resume operation, it
is necessary to be Z-phase count numerical set by the repeated SmcWSetOrgMode
Z -phase logical to set by the SmcWSetOrgLog and when "use Z-phase"
is set to OrgType of the SmcWSetOrgMode to execute the SmcWSetInitParam
therefore.
When the SmcWSetReady (MotionType 6:Z -phase count operation) is executed without executing this function, it operates by the number of Z -phase counts and Z -phase logic reflected by executing the SmcWSetInitParam.
- This function cannot be executed when the device is in operation.
See Also