You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
1.5 KiB
C

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#ifndef MACRO_DEF_H
#define MACRO_DEF_H
#define LEVEL_OPERATOR 1
//#define LEVEL_OPADMIN 2
#define LEVEL_ENGINEER 2
#define LEVEL_EQUIPMENT 3
#define LEVEL_ADMINISTRATOR 4
#define LEVEL_FACTORAY 5
//激光开关定义
#define LASER_ON 1
#define LASER_OFF 0
#define IO_TRIGGER_ON 1
#define IO_TRIGGER_OFF 0
#define FUNC_START(info) LOG_INFO(__FUNCTION__##" Start"##info);
#define FUNC_END(info) LOG_INFO(__FUNCTION__##" End"##info);
//!特殊控制,因为全切光路之前的S_WIDE理解成了D_NARROW所以需要特殊处理
#define __IO_FULL_CUT__
#define __IO_214LOWK_CUT__NOT //!214所用IO配置点位不一样
#ifdef __LOWK_SOLUTION__
/*!使用哪些光路,不使用则加后缀NOT*/
#define __USE_L_NARROW__
#define __USE_D_WIDE__
#define __USE_D_NARROW__
#define __USE_S_NARROW__
#define __USE_JIG_MODULE__NOT //!使用JIG模块
#define __USE_G5_G6__ //!使用G5 G6
#define __USE_HALFCUT_CHECK__NOT //!使用半切检测
#else
/*!使用哪些光路,不使用则加后缀NOT*/
#define __USE_D_WIDE__
//#define __USE_S_WIDE__
#define __USE_L_NARROW__
#define __USE_D_NARROW__NOT
#define __USE_S_NARROW__NOT
#define __USE_JIG_MODULE__ //!使用JIG模块
#define __USE_G5_G6__NOT //!使用G5 G6
#define __USE_HALFCUT_CHECK__ //!使用半切检测
#endif
#define __USE_DWIDE_BEAM_WIDTH__ //!< 使用挡板宽度配置
#define __USE_LASER_BAEM__POWER__ //!< 光路功率比配置
#define CALIBLASERPOWER_PICK_G2
#endif //MACRO_DEF_H