#ifndef APPLICATIONS_SC828_DATA_Table_H #define APPLICATIONS_SC828_DATA_Table_H #include "stdbool.h" #include "language.h" // IO状态结构体(可扩展) typedef struct { int pin; // PLCID unsigned char current_state; // 当前电平:0=低,1=高 str_id_t name; // 名称(可选,用于调试) } IO_State_DIO; typedef struct { int pin; // PLCID unsigned char current_Value; // 当前状态 str_id_t name; // 名称(可选,用于调试) } IO_State_AIO; typedef struct { int pin; // PLCID int current_data; // 当前状态 str_id_t name; // 名称(可选,用于调试) } IO_State_DATA; extern IO_State_DIO dio_table[]; extern IO_State_AIO aio_table[]; extern IO_State_DATA data_table[]; extern const unsigned char DIO_TABLE_SIZE; extern const unsigned char AIO_TABLE_SIZE; extern const unsigned char DATA_TABLE_SIZE; void DATA_Table_Init(void);// #endif