optical/EMBOS/Users/EmbFunc/busmotos/busmotos.h

49 lines
1.0 KiB
C
Raw Normal View History

2025-09-04 01:45:08 +00:00
#ifndef __BUSMOTOSS_H__
#define __BUSMOTOSS_H__
#include "config.h"
#ifndef MOTO_RUNNINT
#define MOTO_RUNNINT 0 //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
#endif
#ifndef MOTO_RUN_FINSH
#define MOTO_RUN_FINSH 1 //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
#endif
#ifndef MOTO_WARNING
#define MOTO_WARNING -1 //<2F><><EFBFBD><EFBFBD>
#endif
#define MOTOX_JOGSPD 100 //X<><58><EFBFBD><EFBFBD><EFBFBD>ֶ<EFBFBD><D6B6>ٶ<EFBFBD>(<28><>λ<EFBFBD><CEBB>rpm)
#define MOTOY_JOGSPD 60 //Y<><59><EFBFBD><EFBFBD><EFBFBD>ֶ<EFBFBD><D6B6>ٶ<EFBFBD>(<28><>λ<EFBFBD><CEBB>mm/s)
void InitBusCtrlMotos(void);
int BusCtrlMotoYtoAbspos(u32 pos, u32 spd);
int BusCtrlMotoXtoRevpos(s32 pos, u32 spd);
int BusCtrlMotoXtoAbspos(s32 pos, u32 spd);
int GetMotoXSta(void);
int GetMotoYSta(void);
int MoveXbyJOG(int dir);
int MoveYbyJOG(int dir);
int MotoXstopEmc(void);
void MotoYstopEmc(void);
//int SetMotoYCurPos(int pos);
int SetMotoYPosZero(void);
int GetMotoYpusPos(s32 * pos);
int GetMotoXpusPos(s32 * pos);
int SetMotoXPosZero(void);
int SetMotoXRetrunPos(void);
int SetMotoYmoveLimt(s32 posp, s32 posn);
int SetMotoXmoveLimt(s32 posp, s32 posn);
int GetLeisaMotoXErrcode(u16 * errcode);
int GetLeisaMotoYErrcode(u16 * errcode);
#endif