|
@@ -87,16 +87,18 @@ Error_manager Dispatch_communication::communication_init(int plc_id)
|
|
|
t_index += sizeof(unsigned char)*20;
|
|
|
t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_reserved168_187", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 20 });
|
|
|
t_index += sizeof(unsigned char)*20;
|
|
|
- t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_reserved188_207", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 20 });
|
|
|
- t_index += sizeof(unsigned char)*20;
|
|
|
+ t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_request_car_type", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 1 });
|
|
|
+ t_index += sizeof(unsigned char)*1;
|
|
|
+ t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_reserved189_209", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 21 });
|
|
|
+ t_index += sizeof(unsigned char)*21;
|
|
|
t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_request_anticollision_lidar_flag", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 1 });
|
|
|
t_index += sizeof(unsigned char)*1;
|
|
|
- t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_reserved209_213", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 5 });
|
|
|
+ t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_reserved211_215", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 5 });
|
|
|
t_index += sizeof(unsigned char)*5;
|
|
|
t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_request_car_wheel_base_exact_value", typeid(float).name(), t_index,sizeof(float), 1 });
|
|
|
t_index += sizeof(float)*1;
|
|
|
- t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_reserved218_229", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 12 });
|
|
|
- t_index += sizeof(unsigned char)*12;
|
|
|
+ t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_reserved217_231", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 25 });
|
|
|
+ t_index += sizeof(unsigned char)*25;
|
|
|
|
|
|
t_snap7_buf.init(DISPATCH_REQUEST_FROM_MANAGER_TO_PLC_DBNUMBER_0 +m_plc_id*100, 50, sizeof(Dispatch_request_from_manager_to_plc_for_data), t_variable_information_vector, Snap7_buf::LOOP_COMMUNICATION);
|
|
|
m_send_buf_map[0] = t_snap7_buf;
|
|
@@ -168,16 +170,18 @@ Error_manager Dispatch_communication::communication_init(int plc_id)
|
|
|
t_index += sizeof(unsigned char)*20;
|
|
|
t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_reserved168_187", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 20 });
|
|
|
t_index += sizeof(unsigned char)*20;
|
|
|
- t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_reserved188_207", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 20 });
|
|
|
- t_index += sizeof(unsigned char)*20;
|
|
|
+ t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_request_car_type", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 1 });
|
|
|
+ t_index += sizeof(unsigned char)*1;
|
|
|
+ t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_reserved189_209", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 21 });
|
|
|
+ t_index += sizeof(unsigned char)*21;
|
|
|
t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_request_anticollision_lidar_flag", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 1 });
|
|
|
t_index += sizeof(unsigned char)*1;
|
|
|
- t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_reserved209_213", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 5 });
|
|
|
+ t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_reserved211_215", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 5 });
|
|
|
t_index += sizeof(unsigned char)*5;
|
|
|
t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_request_car_wheel_base_exact_value", typeid(float).name(), t_index,sizeof(float), 1 });
|
|
|
t_index += sizeof(float)*1;
|
|
|
- t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_reserved218_229", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 12 });
|
|
|
- t_index += sizeof(unsigned char)*12;
|
|
|
+ t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_reserved217_231", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 25 });
|
|
|
+ t_index += sizeof(unsigned char)*25;
|
|
|
|
|
|
t_snap7_buf.init(DISPATCH_PLC_STATUS_FROM_MANAGER_TO_PLC_DBNUMBER_0 +m_plc_id*100, 0, sizeof(Dispatch_response_from_plc_to_manager), t_variable_information_vector, Snap7_buf::LOOP_COMMUNICATION);
|
|
|
m_receive_buf_map[0] = t_snap7_buf;
|