|
@@ -30,9 +30,9 @@ Error_manager Dispatch_communication::communication_init()
|
|
|
|
|
|
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{"m_reserved", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 1 });
|
|
|
|
|
|
+ t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_reserved50", 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_reserved257_275", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 19 });
|
|
|
|
|
|
+ t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_reserved51_69", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 19 });
|
|
t_index += sizeof(unsigned char)*19;
|
|
t_index += sizeof(unsigned char)*19;
|
|
|
|
|
|
t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_request_x", typeid(float).name(), t_index,sizeof(float), 1 });
|
|
t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_request_x", typeid(float).name(), t_index,sizeof(float), 1 });
|
|
@@ -45,12 +45,8 @@ Error_manager Dispatch_communication::communication_init()
|
|
t_index += sizeof(float)*1;
|
|
t_index += sizeof(float)*1;
|
|
t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_request_clamp_motion", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 1 });
|
|
t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_request_clamp_motion", 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_reserved293", 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_reserved294", 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_reserved295", 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_reserved87_89", 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_request_wheelbase", typeid(float).name(), t_index,sizeof(float), 1 });
|
|
t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_request_wheelbase", typeid(float).name(), t_index,sizeof(float), 1 });
|
|
t_index += sizeof(float)*1;
|
|
t_index += sizeof(float)*1;
|
|
t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_request_d1", typeid(float).name(), t_index,sizeof(float), 1 });
|
|
t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_request_d1", typeid(float).name(), t_index,sizeof(float), 1 });
|
|
@@ -83,7 +79,7 @@ Error_manager Dispatch_communication::communication_init()
|
|
t_index += sizeof(unsigned char)*50;
|
|
t_index += sizeof(unsigned char)*50;
|
|
t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_respons_status", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 1 });
|
|
t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_respons_status", 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_reserved257_275", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 19 });
|
|
|
|
|
|
+ t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_reserved51_69", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 19 });
|
|
t_index += sizeof(unsigned char)*19;
|
|
t_index += sizeof(unsigned char)*19;
|
|
|
|
|
|
t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_respons_x", typeid(float).name(), t_index,sizeof(float), 1 });
|
|
t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_respons_x", typeid(float).name(), t_index,sizeof(float), 1 });
|
|
@@ -96,12 +92,8 @@ Error_manager Dispatch_communication::communication_init()
|
|
t_index += sizeof(float)*1;
|
|
t_index += sizeof(float)*1;
|
|
t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_respons_clamp_motion", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 1 });
|
|
t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_respons_clamp_motion", 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_reserved293", 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_reserved294", 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_reserved295", 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_reserved87_89", 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_respons_wheelbase", typeid(float).name(), t_index,sizeof(float), 1 });
|
|
t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_respons_wheelbase", typeid(float).name(), t_index,sizeof(float), 1 });
|
|
t_index += sizeof(float)*1;
|
|
t_index += sizeof(float)*1;
|
|
t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_respons_d1", typeid(float).name(), t_index,sizeof(float), 1 });
|
|
t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_respons_d1", typeid(float).name(), t_index,sizeof(float), 1 });
|
|
@@ -164,6 +156,161 @@ Error_manager Dispatch_communication::communication_init()
|
|
m_receive_buf_map[3] = t_snap7_buf;
|
|
m_receive_buf_map[3] = t_snap7_buf;
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ t_index = 0;
|
|
|
|
+ t_variable_information_vector.clear();
|
|
|
|
+ t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_reserved50", 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_reserved51_71", 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_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_request_y", typeid(float).name(), t_index,sizeof(float), 1 });
|
|
|
|
+ t_index += sizeof(float)*1;
|
|
|
|
+ t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_request_z", typeid(float).name(), t_index,sizeof(float), 1 });
|
|
|
|
+ t_index += sizeof(float)*1;
|
|
|
|
+ t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_request_y1", typeid(float).name(), t_index,sizeof(float), 1 });
|
|
|
|
+ t_index += sizeof(float)*1;
|
|
|
|
+ t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_request_y2", typeid(float).name(), t_index,sizeof(float), 1 });
|
|
|
|
+ t_index += sizeof(float)*1;
|
|
|
|
+ t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_request_clamp_motion", 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_request_joint_motion_x", 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_request_joint_motion_y", 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_reserved95", 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_request_space_id", typeid(float).name(), t_index,sizeof(float), 1 });
|
|
|
|
+ t_index += sizeof(int)*1;
|
|
|
|
+ t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_request_floor_id", typeid(float).name(), t_index,sizeof(float), 1 });
|
|
|
|
+ t_index += sizeof(int)*1;
|
|
|
|
+ t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_request_wheelbase", typeid(float).name(), t_index,sizeof(float), 1 });
|
|
|
|
+ t_index += sizeof(float)*1;
|
|
|
|
+
|
|
|
|
+ t_snap7_buf.init(CARRIER_REQUEST_FROM_DISPATCH_TO_PLC_DBNUMBER_1, 50, sizeof(Carrier_request_from_dispatch_to_plc_for_data), t_variable_information_vector, Snap7_buf::LOOP_COMMUNICATION);
|
|
|
|
+ m_send_buf_map[4] = t_snap7_buf;
|
|
|
|
+ t_snap7_buf.init(CARRIER_REQUEST_FROM_DISPATCH_TO_PLC_DBNUMBER_2, 50, sizeof(Carrier_request_from_dispatch_to_plc_for_data), t_variable_information_vector, Snap7_buf::NO_COMMUNICATION);
|
|
|
|
+ m_send_buf_map[5] = t_snap7_buf;
|
|
|
|
+ t_snap7_buf.init(CARRIER_REQUEST_FROM_DISPATCH_TO_PLC_DBNUMBER_3, 50, sizeof(Carrier_request_from_dispatch_to_plc_for_data), t_variable_information_vector, Snap7_buf::NO_COMMUNICATION);
|
|
|
|
+ m_send_buf_map[6] = t_snap7_buf;
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ t_index = 0;
|
|
|
|
+ t_variable_information_vector.clear();
|
|
|
|
+ t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_request_key", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 50 });
|
|
|
|
+ t_index += sizeof(unsigned char)*50;
|
|
|
|
+
|
|
|
|
+ t_snap7_buf.init(CARRIER_REQUEST_FROM_DISPATCH_TO_PLC_DBNUMBER_1, 0, sizeof(Carrier_request_from_dispatch_to_plc_for_key), t_variable_information_vector, Snap7_buf::LOOP_COMMUNICATION);
|
|
|
|
+ m_send_buf_map[7] = t_snap7_buf;
|
|
|
|
+ t_snap7_buf.init(CARRIER_REQUEST_FROM_DISPATCH_TO_PLC_DBNUMBER_2, 0, sizeof(Carrier_request_from_dispatch_to_plc_for_key), t_variable_information_vector, Snap7_buf::NO_COMMUNICATION);
|
|
|
|
+ m_send_buf_map[8] = t_snap7_buf;
|
|
|
|
+ t_snap7_buf.init(CARRIER_REQUEST_FROM_DISPATCH_TO_PLC_DBNUMBER_3, 0, sizeof(Carrier_request_from_dispatch_to_plc_for_key), t_variable_information_vector, Snap7_buf::NO_COMMUNICATION);
|
|
|
|
+ m_send_buf_map[9] = t_snap7_buf;
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ t_index = 0;
|
|
|
|
+ t_variable_information_vector.clear();
|
|
|
|
+ t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_respons_key", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 50 });
|
|
|
|
+ t_index += sizeof(unsigned char)*50;
|
|
|
|
+ t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_respons_status", 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_reserved51_71", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 19 });
|
|
|
|
+ t_index += sizeof(unsigned char)*19;
|
|
|
|
+
|
|
|
|
+ t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_respons_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_respons_y", typeid(float).name(), t_index,sizeof(float), 1 });
|
|
|
|
+ t_index += sizeof(float)*1;
|
|
|
|
+ t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_respons_z", typeid(float).name(), t_index,sizeof(float), 1 });
|
|
|
|
+ t_index += sizeof(float)*1;
|
|
|
|
+ t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_respons_y1", typeid(float).name(), t_index,sizeof(float), 1 });
|
|
|
|
+ t_index += sizeof(float)*1;
|
|
|
|
+ t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_respons_y2", typeid(float).name(), t_index,sizeof(float), 1 });
|
|
|
|
+ t_index += sizeof(float)*1;
|
|
|
|
+ t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_respons_clamp_motion", 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_respons_joint_motion_x", 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_respons_joint_motion_y", 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_reserved95", 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_respons_space_id", typeid(float).name(), t_index,sizeof(float), 1 });
|
|
|
|
+ t_index += sizeof(int)*1;
|
|
|
|
+ t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_respons_floor_id", typeid(float).name(), t_index,sizeof(float), 1 });
|
|
|
|
+ t_index += sizeof(int)*1;
|
|
|
|
+ t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_respons_wheelbase", typeid(float).name(), t_index,sizeof(float), 1 });
|
|
|
|
+ t_index += sizeof(float)*1;
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ t_snap7_buf.init(CARRIER_RESPONSE_FROM_PLC_TO_DISPATCH_DBNUMBER_1, 0, sizeof(Carrier_response_from_plc_to_dispatch), t_variable_information_vector, Snap7_buf::LOOP_COMMUNICATION);
|
|
|
|
+ m_receive_buf_map[4] = t_snap7_buf;
|
|
|
|
+ t_snap7_buf.init(CARRIER_RESPONSE_FROM_PLC_TO_DISPATCH_DBNUMBER_2, 0, sizeof(Carrier_response_from_plc_to_dispatch), t_variable_information_vector, Snap7_buf::NO_COMMUNICATION);
|
|
|
|
+ m_receive_buf_map[5] = t_snap7_buf;
|
|
|
|
+ t_snap7_buf.init(CARRIER_RESPONSE_FROM_PLC_TO_DISPATCH_DBNUMBER_3, 0, sizeof(Carrier_response_from_plc_to_dispatch), t_variable_information_vector, Snap7_buf::NO_COMMUNICATION);
|
|
|
|
+ m_receive_buf_map[6] = t_snap7_buf;
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ t_index = 0;
|
|
|
|
+ t_variable_information_vector.clear();
|
|
|
|
+ t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_heartbeat", 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_safe_status", 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_work_status", 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_actual_load_status", 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_reserved4_37", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 34 });
|
|
|
|
+ t_index += sizeof(unsigned char)*34;
|
|
|
|
+
|
|
|
|
+ t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_actual_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_actual_y", typeid(float).name(), t_index,sizeof(float), 1 });
|
|
|
|
+ t_index += sizeof(float)*1;
|
|
|
|
+ t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_actual_z", typeid(float).name(), t_index,sizeof(float), 1 });
|
|
|
|
+ t_index += sizeof(float)*1;
|
|
|
|
+ t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_actual_y1", typeid(float).name(), t_index,sizeof(float), 1 });
|
|
|
|
+ t_index += sizeof(float)*1;
|
|
|
|
+ t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_actual_y2", typeid(float).name(), t_index,sizeof(float), 1 });
|
|
|
|
+ t_index += sizeof(float)*1;
|
|
|
|
+ t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_actual_clamp_motion1", 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_actual_clamp_motion2", 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_actual_small_sports_car_motion", 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_actual_joint_motion_x1", 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_actual_joint_motion_x2", 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_reserved63_99", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 34 });
|
|
|
|
+ t_index += sizeof(unsigned char)*37;
|
|
|
|
+
|
|
|
|
+ t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_actual_error_code", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 50 });
|
|
|
|
+ t_index += sizeof(unsigned char)*50;
|
|
|
|
+ t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_actual_warning_code", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 50 });
|
|
|
|
+ t_index += sizeof(unsigned char)*50;
|
|
|
|
+ t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_actual_error_description", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 256 });
|
|
|
|
+ t_index += sizeof(unsigned char)*256;
|
|
|
|
+
|
|
|
|
+ t_snap7_buf.init(CARRIER_STATUS_FROM_PLC_TO_DISPATCH_DBNUMBER_1, 0, sizeof(Carrier_status_from_plc_to_dispatch), t_variable_information_vector, Snap7_buf::LOOP_COMMUNICATION);
|
|
|
|
+ m_receive_buf_map[7] = t_snap7_buf;
|
|
|
|
+ t_snap7_buf.init(CARRIER_STATUS_FROM_PLC_TO_DISPATCH_DBNUMBER_2, 0, sizeof(Carrier_status_from_plc_to_dispatch), t_variable_information_vector, Snap7_buf::NO_COMMUNICATION);
|
|
|
|
+ m_receive_buf_map[8] = t_snap7_buf;
|
|
|
|
+ t_snap7_buf.init(CARRIER_STATUS_FROM_PLC_TO_DISPATCH_DBNUMBER_2, 0, sizeof(Carrier_status_from_plc_to_dispatch), t_variable_information_vector, Snap7_buf::NO_COMMUNICATION);
|
|
|
|
+ m_receive_buf_map[9] = t_snap7_buf;
|
|
|
|
+
|
|
|
|
+
|
|
return Snap7_communication_base::communication_init();
|
|
return Snap7_communication_base::communication_init();
|
|
}
|
|
}
|
|
|
|
|
|
@@ -186,8 +333,12 @@ Error_manager Dispatch_communication::updata_receive_buf()
|
|
memcpy(&m_catcher_status_from_plc_to_dispatch[0], m_receive_buf_map[2].mp_buf_obverse, m_receive_buf_map[2].m_size);
|
|
memcpy(&m_catcher_status_from_plc_to_dispatch[0], m_receive_buf_map[2].mp_buf_obverse, m_receive_buf_map[2].m_size);
|
|
memcpy(&m_catcher_status_from_plc_to_dispatch[1], m_receive_buf_map[3].mp_buf_obverse, m_receive_buf_map[3].m_size);
|
|
memcpy(&m_catcher_status_from_plc_to_dispatch[1], m_receive_buf_map[3].mp_buf_obverse, m_receive_buf_map[3].m_size);
|
|
|
|
|
|
-// int heat = m_catcher_status_from_plc_to_dispatch[1].m_heartbeat;
|
|
|
|
-// std::cout << " huli test :::: " << " 999999999 = " << heat << std::endl;
|
|
|
|
|
|
+ memcpy(&m_carrier_response_from_plc_to_dispatch[0], m_receive_buf_map[4].mp_buf_obverse, m_receive_buf_map[4].m_size);
|
|
|
|
+ memcpy(&m_carrier_response_from_plc_to_dispatch[1], m_receive_buf_map[5].mp_buf_obverse, m_receive_buf_map[5].m_size);
|
|
|
|
+ memcpy(&m_carrier_response_from_plc_to_dispatch[2], m_receive_buf_map[6].mp_buf_obverse, m_receive_buf_map[6].m_size);
|
|
|
|
+ memcpy(&m_carrier_status_from_plc_to_dispatch[0], m_receive_buf_map[7].mp_buf_obverse, m_receive_buf_map[7].m_size);
|
|
|
|
+ memcpy(&m_carrier_status_from_plc_to_dispatch[1], m_receive_buf_map[8].mp_buf_obverse, m_receive_buf_map[8].m_size);
|
|
|
|
+ memcpy(&m_carrier_status_from_plc_to_dispatch[2], m_receive_buf_map[9].mp_buf_obverse, m_receive_buf_map[9].m_size);
|
|
|
|
|
|
return Error_code::SUCCESS;
|
|
return Error_code::SUCCESS;
|
|
}
|
|
}
|
|
@@ -196,7 +347,8 @@ Error_manager Dispatch_communication::updata_send_buf()
|
|
std::unique_lock<std::mutex> t_lock1(m_send_buf_lock);
|
|
std::unique_lock<std::mutex> t_lock1(m_send_buf_lock);
|
|
std::unique_lock<std::mutex> t_lock2(m_data_lock);
|
|
std::unique_lock<std::mutex> t_lock2(m_data_lock);
|
|
|
|
|
|
- m_catcher_request_from_dispatch_to_plc_for_data[1].m_reserved = 1;
|
|
|
|
|
|
+ m_catcher_request_from_dispatch_to_plc_for_data[0].m_reserved50 = 1;
|
|
|
|
+ m_catcher_request_from_dispatch_to_plc_for_data[1].m_reserved50 = 1;
|
|
|
|
|
|
memcpy(m_send_buf_map[0].mp_buf_obverse, &m_catcher_request_from_dispatch_to_plc_for_data[0], m_send_buf_map[0].m_size);
|
|
memcpy(m_send_buf_map[0].mp_buf_obverse, &m_catcher_request_from_dispatch_to_plc_for_data[0], m_send_buf_map[0].m_size);
|
|
memcpy(m_send_buf_map[1].mp_buf_obverse, &m_catcher_request_from_dispatch_to_plc_for_data[1], m_send_buf_map[1].m_size);
|
|
memcpy(m_send_buf_map[1].mp_buf_obverse, &m_catcher_request_from_dispatch_to_plc_for_data[1], m_send_buf_map[1].m_size);
|
|
@@ -204,6 +356,19 @@ Error_manager Dispatch_communication::updata_send_buf()
|
|
memcpy(m_send_buf_map[3].mp_buf_obverse, &m_catcher_request_from_dispatch_to_plc_for_key[1], m_send_buf_map[3].m_size);
|
|
memcpy(m_send_buf_map[3].mp_buf_obverse, &m_catcher_request_from_dispatch_to_plc_for_key[1], m_send_buf_map[3].m_size);
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
+ m_carrier_request_from_dispatch_to_plc_for_data[0].m_reserved50 = 1;
|
|
|
|
+ m_carrier_request_from_dispatch_to_plc_for_data[1].m_reserved50 = 1;
|
|
|
|
+ m_carrier_request_from_dispatch_to_plc_for_data[2].m_reserved50 = 1;
|
|
|
|
+
|
|
|
|
+ memcpy(m_send_buf_map[4].mp_buf_obverse, &m_carrier_request_from_dispatch_to_plc_for_data[0], m_send_buf_map[4].m_size);
|
|
|
|
+ memcpy(m_send_buf_map[5].mp_buf_obverse, &m_carrier_request_from_dispatch_to_plc_for_data[1], m_send_buf_map[5].m_size);
|
|
|
|
+ memcpy(m_send_buf_map[6].mp_buf_obverse, &m_carrier_request_from_dispatch_to_plc_for_data[2], m_send_buf_map[6].m_size);
|
|
|
|
+ memcpy(m_send_buf_map[7].mp_buf_obverse, &m_carrier_request_from_dispatch_to_plc_for_key[0], m_send_buf_map[7].m_size);
|
|
|
|
+ memcpy(m_send_buf_map[8].mp_buf_obverse, &m_carrier_request_from_dispatch_to_plc_for_key[1], m_send_buf_map[8].m_size);
|
|
|
|
+ memcpy(m_send_buf_map[9].mp_buf_obverse, &m_carrier_request_from_dispatch_to_plc_for_key[2], m_send_buf_map[9].m_size);
|
|
|
|
+
|
|
|
|
+
|
|
// Dispatch_communication::Catcher_request_from_dispatch_to_plc_for_key * tp_catcher_request_from_dispatch_to_plc_for_key =
|
|
// Dispatch_communication::Catcher_request_from_dispatch_to_plc_for_key * tp_catcher_request_from_dispatch_to_plc_for_key =
|
|
// & Dispatch_communication::get_instance_references().m_catcher_request_from_dispatch_to_plc_for_key[1];
|
|
// & Dispatch_communication::get_instance_references().m_catcher_request_from_dispatch_to_plc_for_key[1];
|
|
// int k1 = tp_catcher_request_from_dispatch_to_plc_for_key->m_request_key[0];
|
|
// int k1 = tp_catcher_request_from_dispatch_to_plc_for_key->m_request_key[0];
|