
HyTechWorks©2013 – V3.1 61
fwv – firmware version
sn1 – serial number 1
sn2 – serial number 1
sn3 – serial number 1
Motion Control
BOOL HyCNC_SetMovement(HANDLE hUsb, LPOVERLAPPED olp, double *points, unsigned
char axis, unsigned short num)
HyCNC-4P generates interpolated stepping pulses with 1ms time base.
HyCNC_SetMovement sends the motor 1ms based movement vector data to
HyCNC-4P through USB.
hUsb – the handle of the HyCNC interface.
olp – pointer to OVERLAPPED structure (see FileWrite Visual C++ function for
overlapped I/O access)
points – pointer to the vector data. The vector data is organized in
(x0,[[[y0],z0],a0]), (x1,[[[y1],z1],a1]), (x2,[[[y2],z2],a2])…orde r.
axis – number of axis in vector.
num – number of vectors in data (no more than num return by
HyCNC_GetStatus).
If the function succeeds, the return value is true. Otherwise, it returns false.
BOOL HyCNC_PurgeMovement(HANDLE hUsb)
HyCNC_PurgeMovement clears all pending movement data in HyCNC-4P so that
stepping pulse can be stopped immediately.
hUsb – the handle of the HyCNC interface.
If the function succeeds, the return value is true. Otherwise, it returns false.
BOOL HyCNC_SetCoordinate(HANDLE hUsb, int* coordinate, int* mode)
HyCNC_SetCoordinate manipulates coordinate counters in HyCNC-4P.
Comentarios a estos manuales