|
@@ -226,9 +226,9 @@ Error_manager Dispatch_communication::communication_init(int plc_id)
|
|
t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_response_locate_correct", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 1 });
|
|
t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_response_locate_correct", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 1 });
|
|
t_index += sizeof(unsigned char)*1;
|
|
t_index += sizeof(unsigned char)*1;
|
|
|
|
|
|
- t_snap7_buf.init(GROUND_LIDAR_RESPONSE_FROM_MANAGER_TO_PLC_DBNUMBER_0 +m_plc_id*100, 0, sizeof(Ground_lidar_response_from_manager_to_plc_for_data), t_variable_information_vector, Snap7_buf::LOOP_COMMUNICATION);
|
|
|
|
|
|
+ t_snap7_buf.init(GROUND_LIDAR_RESPONSE_FROM_MANAGER_TO_PLC_DBNUMBER_0 +m_plc_id*100, 4, sizeof(Ground_lidar_response_from_manager_to_plc_for_data), t_variable_information_vector, Snap7_buf::LOOP_COMMUNICATION);
|
|
m_send_buf_map[3] = t_snap7_buf;
|
|
m_send_buf_map[3] = t_snap7_buf;
|
|
- t_snap7_buf.init(GROUND_LIDAR_RESPONSE_FROM_MANAGER_TO_PLC_DBNUMBER_1 +m_plc_id*100, 0, sizeof(Ground_lidar_response_from_manager_to_plc_for_data), t_variable_information_vector, Snap7_buf::LOOP_COMMUNICATION);
|
|
|
|
|
|
+ t_snap7_buf.init(GROUND_LIDAR_RESPONSE_FROM_MANAGER_TO_PLC_DBNUMBER_1 +m_plc_id*100, 4, sizeof(Ground_lidar_response_from_manager_to_plc_for_data), t_variable_information_vector, Snap7_buf::LOOP_COMMUNICATION);
|
|
m_send_buf_map[4] = t_snap7_buf;
|
|
m_send_buf_map[4] = t_snap7_buf;
|
|
|
|
|
|
t_index = 0;
|
|
t_index = 0;
|
|
@@ -239,6 +239,8 @@ Error_manager Dispatch_communication::communication_init(int plc_id)
|
|
t_index += sizeof(unsigned char)*1;
|
|
t_index += sizeof(unsigned char)*1;
|
|
t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_refresh_command", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 1 });
|
|
t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_refresh_command", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 1 });
|
|
t_index += sizeof(unsigned char)*1;
|
|
t_index += sizeof(unsigned char)*1;
|
|
|
|
+ t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_data_validity", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 1 });
|
|
|
|
+ t_index += sizeof(unsigned char)*1;
|
|
|
|
|
|
t_snap7_buf.init(GROUND_LIDAR_RESPONSE_FROM_MANAGER_TO_PLC_DBNUMBER_0 +m_plc_id*100, 0, sizeof(Ground_lidar_response_from_manager_to_plc_for_key), t_variable_information_vector, Snap7_buf::LOOP_COMMUNICATION);
|
|
t_snap7_buf.init(GROUND_LIDAR_RESPONSE_FROM_MANAGER_TO_PLC_DBNUMBER_0 +m_plc_id*100, 0, sizeof(Ground_lidar_response_from_manager_to_plc_for_key), t_variable_information_vector, Snap7_buf::LOOP_COMMUNICATION);
|
|
m_send_buf_map[5] = t_snap7_buf;
|
|
m_send_buf_map[5] = t_snap7_buf;
|
|
@@ -253,6 +255,8 @@ Error_manager Dispatch_communication::communication_init(int plc_id)
|
|
t_index += sizeof(unsigned char)*1;
|
|
t_index += sizeof(unsigned char)*1;
|
|
t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_refresh_command", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 1 });
|
|
t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_refresh_command", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 1 });
|
|
t_index += sizeof(unsigned char)*1;
|
|
t_index += sizeof(unsigned char)*1;
|
|
|
|
+ t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_data_validity", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 1 });
|
|
|
|
+ t_index += sizeof(unsigned char)*1;
|
|
|
|
|
|
t_snap7_buf.init(GROUND_LIDAR_REQUEST_FROM_PLC_TO_MANAGER_DBNUMBER_0 +m_plc_id*100, 0, sizeof(Ground_lidar_request_from_plc_to_manager), t_variable_information_vector, Snap7_buf::NO_COMMUNICATION);
|
|
t_snap7_buf.init(GROUND_LIDAR_REQUEST_FROM_PLC_TO_MANAGER_DBNUMBER_0 +m_plc_id*100, 0, sizeof(Ground_lidar_request_from_plc_to_manager), t_variable_information_vector, Snap7_buf::NO_COMMUNICATION);
|
|
m_receive_buf_map[2] = t_snap7_buf;
|
|
m_receive_buf_map[2] = t_snap7_buf;
|
|
@@ -264,10 +268,16 @@ Error_manager Dispatch_communication::communication_init(int plc_id)
|
|
//防撞雷达
|
|
//防撞雷达
|
|
t_index = 0;
|
|
t_index = 0;
|
|
t_variable_information_vector.clear();
|
|
t_variable_information_vector.clear();
|
|
- t_variable_information_vector.push_back(Snap7_buf::Variable_information{"Anticollision_lidar_response_from_manager_to_plc_for_data", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 1 });
|
|
|
|
|
|
+ t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_response_anticollision_lidar_flag", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 1 });
|
|
t_index += sizeof(unsigned char)*1;
|
|
t_index += sizeof(unsigned char)*1;
|
|
|
|
+ t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_reserved5_7", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 3 });
|
|
|
|
+ t_index += sizeof(unsigned char)*3;
|
|
|
|
+ t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_response_offset_x", typeid(float).name(), t_index,sizeof(float), 1 });
|
|
|
|
+ t_index += sizeof(float)*1;
|
|
|
|
+ t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_response_offset_angle", typeid(float).name(), t_index,sizeof(float), 1 });
|
|
|
|
+ t_index += sizeof(float)*1;
|
|
|
|
|
|
- t_snap7_buf.init(GROUND_LIDAR_RESPONSE_FROM_MANAGER_TO_PLC_DBNUMBER_0 +m_plc_id*100, 0, sizeof(Anticollision_lidar_response_from_manager_to_plc_for_data), t_variable_information_vector, Snap7_buf::LOOP_COMMUNICATION);
|
|
|
|
|
|
+ t_snap7_buf.init(GROUND_LIDAR_RESPONSE_FROM_MANAGER_TO_PLC_DBNUMBER_0 +m_plc_id*100, 4, sizeof(Anticollision_lidar_response_from_manager_to_plc_for_data), t_variable_information_vector, Snap7_buf::LOOP_COMMUNICATION);
|
|
m_send_buf_map[7] = t_snap7_buf;
|
|
m_send_buf_map[7] = t_snap7_buf;
|
|
|
|
|
|
t_index = 0;
|
|
t_index = 0;
|
|
@@ -278,6 +288,8 @@ Error_manager Dispatch_communication::communication_init(int plc_id)
|
|
t_index += sizeof(unsigned char)*1;
|
|
t_index += sizeof(unsigned char)*1;
|
|
t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_refresh_command", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 1 });
|
|
t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_refresh_command", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 1 });
|
|
t_index += sizeof(unsigned char)*1;
|
|
t_index += sizeof(unsigned char)*1;
|
|
|
|
+ t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_data_validity", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 1 });
|
|
|
|
+ t_index += sizeof(unsigned char)*1;
|
|
|
|
|
|
t_snap7_buf.init(GROUND_LIDAR_RESPONSE_FROM_MANAGER_TO_PLC_DBNUMBER_0 +m_plc_id*100, 0, sizeof(Anticollision_lidar_response_from_manager_to_plc_for_key), t_variable_information_vector, Snap7_buf::LOOP_COMMUNICATION);
|
|
t_snap7_buf.init(GROUND_LIDAR_RESPONSE_FROM_MANAGER_TO_PLC_DBNUMBER_0 +m_plc_id*100, 0, sizeof(Anticollision_lidar_response_from_manager_to_plc_for_key), t_variable_information_vector, Snap7_buf::LOOP_COMMUNICATION);
|
|
m_send_buf_map[8] = t_snap7_buf;
|
|
m_send_buf_map[8] = t_snap7_buf;
|
|
@@ -291,6 +303,8 @@ Error_manager Dispatch_communication::communication_init(int plc_id)
|
|
t_index += sizeof(unsigned char)*1;
|
|
t_index += sizeof(unsigned char)*1;
|
|
t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_refresh_command", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 1 });
|
|
t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_refresh_command", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 1 });
|
|
t_index += sizeof(unsigned char)*1;
|
|
t_index += sizeof(unsigned char)*1;
|
|
|
|
+ t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_data_validity", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 1 });
|
|
|
|
+ t_index += sizeof(unsigned char)*1;
|
|
|
|
|
|
t_snap7_buf.init(GROUND_LIDAR_REQUEST_FROM_PLC_TO_MANAGER_DBNUMBER_0 +m_plc_id*100, 0, sizeof(Anticollision_lidar_request_from_plc_to_manager), t_variable_information_vector, Snap7_buf::NO_COMMUNICATION);
|
|
t_snap7_buf.init(GROUND_LIDAR_REQUEST_FROM_PLC_TO_MANAGER_DBNUMBER_0 +m_plc_id*100, 0, sizeof(Anticollision_lidar_request_from_plc_to_manager), t_variable_information_vector, Snap7_buf::NO_COMMUNICATION);
|
|
m_receive_buf_map[4] = t_snap7_buf;
|
|
m_receive_buf_map[4] = t_snap7_buf;
|