1234567891011121314151617181920212223 |
- #include "variable.h"
- //线圈缓冲
- byte_bits_t middle_coils[(MIDDLE_COILS_NUMBER + 7) >> 3];
- //X输入的通讯缓冲
- byte_bits_t io_x_reg[(IO_X_NUMBER + 7) >> 3];
- //Y输出的通讯缓冲
- byte_bits_t io_y_reg[(IO_Y_NUMBER + 7) >> 3];
- //用户数据
- unsigned short user_datas[USER_DATA_NUMBER];
- byte_bits_t middle_coils2[(MIDDLE_COILS2_NUMBER + 7) >> 3];
- unsigned short user_datas2[USER_DATA2_NUMBER];
- /**
- * 变量初始化,可以在这里添加一些常用的变量与数据结构
- *
- * @author lxz (2019/5/17/周五)
- */
- void variable_init(void)
- {
- }
|