An apparatus and method for processing edge traceable data of a lower computer of an aluminum magnesium melt and solid testing device

By deploying a data processing device inside the lower-level machine of the aluminum-magnesium melt and solid testing equipment, the problems of insufficient communication capabilities and storage management defects are solved, and the traceability and integrity of the data are realized, meeting the ALCOA+ standard and applicable to a variety of testing equipment.

CN123178157APending Publication Date: 2026-11-27刘尉汉
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611338883.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-31
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

The existing lower-level machines of aluminum and magnesium melt and solid sample testing equipment have problems such as insufficient communication capabilities, defects in storage management mechanisms, and lack of data integrity assurance. They cannot meet the ALCOA+ data integrity specifications. In particular, in unattended smelting scenarios, they are prone to losing original records and cannot achieve the collection, verification, and audit tracking of multi-source test data.

Method used

The lower-level machine is equipped with a data acquisition and binding module, a verification and disk writing module, a storage policy configuration module, a network status detection module, and a Modbus-TCP protocol extension response module. This enables data acquisition, verification, secure storage, and data anti-tampering and audit tracing at the edge. The Modbus-TCP protocol extension enables the reading and archiving of historical records.

Benefits of technology

It achieves compliance with the ALCOA+ data integrity specification without modifying the original sensor hardware, ensuring the traceability and integrity of the detection data, solving the risk of data loss due to limited storage space, and providing efficient data anti-tampering and audit traceability capabilities, applicable to a variety of detection equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure FT_1
    Figure FT_1
  • Figure FT_2
    Figure FT_2
  • Figure FT_3
    Figure FT_3
Patent Text Reader

Abstract

The application discloses an aluminum-magnesium melt and solid testing equipment lower computer edge traceable data processing device and method, and belongs to the field of non-ferrous metal measurement and control and data security. In view of the problems that the history data bus of the lower computer of the aluminum-magnesium alloy casting furnace front detection equipment is difficult to read, the original record is easy to lose, there is lack of anti-tampering audit tracking, and it is difficult to meet the ALCOA+ specification, the application adopts a lower computer integrated edge data processing architecture. A collection and binding module acquires multi-source detection data and binds traceable metadata; a verification and disk writing module generates a verification code, writes protection of original data and generates an audit log; an alarm stop writing and annular archiving dual storage mode is adopted to adapt to small-capacity equipment. Based on a Modbus-TCP custom sub-function code, the original polling is compatible, and offline history data retrieval is supported. The scheme does not need to change the sensor hardware, adapts to the furnace front detection equipment, meets the ALCOA+ specification, and improves the casting quality traceability and audit reliability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of non-ferrous metal melt and solid sample testing and industrial measurement and control technology, and particularly relates to a traceable data processing device and method for lower-level machines of aluminum and magnesium melt and solid testing equipment. It is applicable to the reliable acquisition, storage and uploading of test data from lower-level machines of various online and offline testing instruments in non-ferrous metal casting workshops. Background Technology

[0002] In the aluminum-magnesium alloy smelting and casting process, multi-dimensional quality testing is required for both the molten aluminum-magnesium alloy and solid aluminum-magnesium alloy samples. Melt testing mainly includes hydrogen content, thermal analysis solidification characteristics, slag inclusion state, melt temperature, and melt density. Solid sample testing mainly includes hydrogen content and metallographic parameters. Corresponding specialized testing equipment includes thermal analyzers, slag analyzers, electrochemical hydrogen analyzers, closed-loop circulating hydrogen analyzers, and solid hydrogen analyzers.

[0003] Meanwhile, the aluminum-magnesium alloy casting production line is also equipped with a large number of pre-furnace process testing equipment, including thermometers, online component spectrometers, chromatographs, online slag inclusion monitors, pre-furnace rapid component analyzers, and vacuum hydrogen measurement devices. Among these, spectrometers are used for rapid analysis of the melt's elemental composition; chromatographs are mainly used for detecting the components of gases released from the melt, with a relatively long single testing cycle, outputting batch data of multiple components such as hydrogen, nitrogen, and oxygen in a single analysis, resulting in a large data volume per record. All of the above-mentioned testing equipment is equipped with a slave computer, which is used to store measurement values, time-series curves, batch traceability metadata, and the testing data is used for production monitoring, process closed-loop adjustment, quality auditing, and tracing evidence of casting quality problems.

[0004] The high-end aluminum-magnesium alloy casting industry has introduced ALCOA+ data integrity specifications for electronic records of melt, solid samples, and pre-furnace process inspections. The ALCOA+ principle requires data to be attributable, clearly readable, synchronously recorded, original, and accurate, while also meeting additional requirements for data integrity, consistency, persistent storage, and retrieval. The specifications require that inspection records can pinpoint the operator, original records cannot be arbitrarily erased, and historical records can be retrieved at any time to meet the needs of quality audits and evidence in casting quality disputes.

[0005] The existing lower-level machines of aluminum and magnesium melt and solid sample testing equipment, as well as furnace-front process testing equipment, generally have the following defects: 1. Insufficient communication capabilities. Some devices, such as solid hydrogen analyzers, chromatographs, rapid component analyzers for furnaces, and online slag inclusion monitors, lack native Modbus-TCP communication services on their lower-level machines. They only provide RS232 and RS422 serial port ASCII message output, enabling only real-time output of instantaneous measurement data. While some devices support Modbus-TCP, they only support real-time register polling and do not support historical data retrieval. The timestamped historical time-series data and batch cache data stored in the lower-level machine's Flash memory cannot be directly uploaded to the SCADA / MES system via the industrial bus. They can only be exported via the local HMI interface, USB flash drive, or the manufacturer's accompanying upper-level software, which cannot meet the needs of networked auditing in the workshop. Some field operations use third-party protocol gateways for protocol conversion, but these gateways only forward real-time data and cannot read the archived historical detection records in the lower-level machine's local Flash memory.

[0006] 2. Deficiencies in Storage Management Mechanisms. The flash memory storage space of various testing devices is limited. When storage space is exhausted, the device directly prompts for manual intervention, requiring manual selection to overwrite old data or clear logs; there is no automated and controlled archiving mechanism. Under continuous unattended smelting conditions, multiple types of testing tasks, such as melt testing, solid sample testing, furnace composition testing, and chromatographic testing, are executed alternately, easily leading to problems such as new test data not being able to be written and the loss of original records. Ordinary circular caching mechanisms directly overwrite unarchived traceability records, violating the ALCOA+ persistent storage requirements and posing a risk of invalidation of casting quality traceability evidence. This problem is particularly prominent for devices such as solid hydrogen analyzers and chromatographs, which generate large amounts of data per test, making flash memory fill up more quickly.

[0007] 3. Lack of data integrity assurance. The existing lower-level machines lack data verification and audit trail mechanisms when storing test data, making it impossible to verify whether the stored records have been tampered with; there is also a lack of complete audit logs, which cannot fully record events such as melt testing, solid sample testing, furnace composition testing, chromatographic testing, data reading, and archiving confirmation, making it difficult to meet the ALCOA+ traceability requirements.

[0008] In summary, existing technologies lack an integrated solution that can be built into the lower-level machine of various detection devices without modifying the original sensor hardware, and can realize multi-source detection data acquisition, verification, local secure caching, controlled circular archiving, and Modbus-TCP-based extended historical record reading, thereby achieving ALCOA + data integrity management from the local edge side of the lower-level machine. Summary of the Invention

[0009] Purpose of the invention To address the shortcomings of existing technologies, this invention provides a traceable edge data processing device and method for aluminum and magnesium melt and solid testing equipment. This solves the problems of historical data from various furnace-front testing equipment being unreadable via industrial bus, the easy loss of original records in local storage, and the lack of tamper-proof and audit traceability capabilities for testing data. Without modifying the original detection sensor hardware, the device is deployed on the edge lower-level machines of melt and solid testing equipment, spectrometers, chromatographs, and other supporting process testing equipment. Data packaging, verification, and secure storage are completed locally on the edge lower-level machine, ensuring that multi-source testing data meets the ALCOA+ data integrity standard. Technical solution

[0010] A traceable data processing device for the lower-level machine of an aluminum-magnesium melt and solid testing equipment is deployed inside the lower-level machine of the aluminum-magnesium melt and solid testing equipment, or it can be deployed in the lower-level machine of the supporting process testing equipment in a casting production line; the aluminum-magnesium melt and solid testing equipment includes a thermal analyzer, a slag analyzer, an electrochemical hydrogen analyzer, a closed-loop circulating hydrogen analyzer, and a solid hydrogen analyzer; the supporting process testing equipment includes a thermometer, an online component spectrometer, a chromatograph, an online slag inclusion monitor, a furnace-front rapid component analyzer, and a vacuum hydrogen measurement device; The device includes: a data acquisition and binding module, a verification and disk writing module, a storage strategy configuration module, a network status detection module, and a Modbus-TCP protocol extended response module; The data acquisition and binding module is used to collect raw measurement data of aluminum-magnesium melt and solid tests, as well as furnace-front process detection data, and bind traceability metadata. The raw measurement data includes melt hydrogen content, thermal analysis characteristic temperature, slag inclusion detection results, melt temperature, melt density equivalent, and hydrogen content of aluminum-magnesium solid samples. The furnace-front process detection data includes melt spectral composition data, chromatographic component content data, furnace temperature data, and online slag inclusion index. The traceability metadata includes at least a timestamp, furnace batch number, aluminum-magnesium alloy grade, detection object identifier, equipment type identifier, detection probe diagnostic status, and operator identifier. The detection object identifier is used to distinguish between melt testing and solid sample testing. The equipment type identifier is used to distinguish the type of detection equipment from which the data originates. For chromatographs, the multi-component batch data obtained from a single test is packaged into a single test record and uniformly bound to the traceability metadata. The verification and disk placement module is used to generate a CRC-32 checksum for each packaged original record, and write the record along with the checksum into the local non-volatile memory of the lower-level machine; set a write protection flag for original records that have not received an archiving confirmation instruction from the upper-level machine to prevent overwriting and erasure; and synchronously generate an unalterable audit trail log, which records melt measurement events, solid sample measurement events, furnace front process detection events, data reading events, and archiving confirmation events. The storage policy configuration module can configure two optional working modes: alarm stop write mode and controlled ring archive storage mode. In the controlled ring archive storage mode, only historical records that have received a confirmation flag from the upper archiver are allowed to be overwritten by new data; unarchived confirmation records are write-protected and cannot be overwritten regardless of the remaining storage space. The network status detection module is used to continuously monitor the connectivity status of the Modbus-TCP communication link; when the link is disconnected, it continuously collects various detection data, completes verification, packaging, disk writing and writes to local flash memory, and continuously saves audit logs. The Modbus-TCP protocol extended response module retains the standard Modbus-TCP real-time register response logic; it adds three sets of custom sub-function codes: sub-function code 0x01 is used to query the time index of the local cache record of the lower-level machine; sub-function code 0x02 is used to read historical data packets carrying CRC checksums and corresponding audit trace logs according to time intervals; sub-function code 0x03 is used to receive the archiving confirmation instruction issued by the upper-level machine and add archiving confirmation markers to records within a specified time period; the lower-level machine, as a Modbus slave, only responds to requests from the upper-level master station and does not actively initiate network packets.

[0011] This invention also provides a lower-level edge traceable data processing method for aluminum-magnesium melt and solid testing equipment, executed by the aforementioned lower-level edge traceable data processing device, comprising the following steps: S1. Data Acquisition and Metadata Binding: The lower-level machine acquires raw measurement data of aluminum-magnesium melt and solid, as well as furnace pre-furnace process detection data; packages multi-component batch data output by the chromatograph into a single record; binds traceability metadata to each detection record, which includes at least the timestamp, furnace batch number, aluminum-magnesium alloy grade, detection object identifier, equipment type identifier, detection probe diagnostic status, and operator identifier; S2. Record Verification and Local Disk Writing: The verification and disk writing module generates a CRC-32 checksum for a single complete record, writes the detection record and checksum to the lower-level non-volatile flash memory; adds an unarchived write protection flag to the record; and synchronously writes the detection event to the audit trail log. S3. Storage mode determination: Read storage policy configuration parameters; if it is alarm stop write mode, when the flash memory utilization rate reaches the preset threshold, trigger the HMI pop-up alarm and stop writing new records; if it is controlled ring archive storage mode, execute the controlled ring storage logic, only old records with archive confirmation marks are allowed to be overwritten, and unarchived records are kept write protected. S4. Real-time Modbus Response: The lower-level machine continuously acts as a Modbus slave, responding to the real-time register polling request from the upper-level SCADA / MES master station and uploading real-time measurement values ​​without affecting the original equipment monitoring interlocking logic; S5. Network Disconnection Edge Cache: When the network status detection module identifies a communication link disconnection, it continues to collect, verify, and store all detection data, and continuously saves detection records and audit logs locally; S6. Historical data interaction after network recovery: After the communication link is restored, the upper master station issues sub-function code 0x01 to query the local cache time index; the upper master selects a time range and issues sub-function code 0x02, and the lower master uploads historical detection data packets and audit logs with CRC checksums in packets; after the upper master verifies that the data packets are correct, it issues sub-function code 0x03 to confirm archiving; the lower master adds an archiving confirmation mark to the records in the specified time period and removes the write protection of the batch of records.

[0012] Beneficial effects 1. High versatility, requiring no modification to existing sensor hardware. The software logic of this device is deployed within the lower-level machines of various detection equipment, unlike external protocol gateways; the upper-level SCADA / MES system only needs to support extended Modbus-TCP custom sub-function codes to read historical data. In addition to being compatible with specialized molten and solid detection equipment such as thermal analyzers, slag analyzers, and various hydrogen analyzers, it can also be deployed on the lower-level machines of thermometers, online component spectrometers, chromatographs, online slag inclusion monitors, furnace-front rapid component analyzers, and vacuum hydrogen measurement devices. For solid hydrogen analyzers and chromatographs with limited flash memory capacity, the controlled circular archiving mechanism can make full use of limited storage space while protecting unarchived original records.

[0013] 2. Mitigating storage loss risks and meeting the needs of unattended smelting scenarios. A controlled ring-shaped archiving storage mechanism is adopted, preventing indiscriminate overwriting of historical data; only data confirmed by the higher-level authority to be archived is allowed to be overwritten, and unarchived original records are permanently write-protected, avoiding the loss of original traceability records when multiple types of detection tasks are collected alternately, thus ensuring ALCOA+ persistent storage requirements.

[0014] 3. Achieve edge-side data tamper-proofing and complete audit trail. Each test record is accompanied by a CRC checksum, supporting upper-level verification of data integrity; the complete audit log records the entire process of melt testing, solid sample testing, spectral testing, chromatographic testing, data access, and archiving confirmation; it supports retrieving historical data packets by time interval, meeting the needs of quality auditing and traceability of casting issues.

[0015] 4. Compatible with existing real-time communication, low risk of modification. It retains the original standard Modbus-TCP real-time register function, and the existing workshop real-time monitoring and equipment interlocking logic remain unchanged; only custom sub-function codes are added for historical data query and archiving marking, resulting in minimal changes to the existing production line control system and low implementation cost. Attached Figure Description

[0016] Figure 1 is a block diagram of the lower-level machine edge traceable data processing device of the present invention; Figure 2 is a schematic diagram of the lower-level machine edge traceable data processing method of the present invention.

[0017] Figure 3 Flowchart of Lower-Level Machine Edge Traceable Data Processing Method Figure 4 Dual storage strategy and controlled ring archiving logic diagram Explanation of reference numerals in the attached figures: 10 - Data acquisition and binding module; 20 - Verification and disk persistence module; 30 - Storage policy configuration module; 40 - Network status detection module; 50 - Modbus-TCP protocol extended response module. Detailed Implementation

[0018] The present invention will be further described in detail below with reference to the accompanying drawings. The embodiments described are only for explaining the present invention and are not intended to limit the scope of protection of the present invention.

[0019] Example 1 (Device Example) A traceable data processing device for lower-level edge computing in aluminum-magnesium melt and solid testing equipment is deployed on the embedded lower-level computer of the testing equipment. The lower-level computer hardware includes an MCU main control unit, non-volatile Flash memory, Ethernet communication unit, and local HMI human-machine interface unit. This device can be deployed on thermal analyzers, slag analyzers, electrochemical hydrogen analyzers, closed-loop circulating hydrogen analyzers, and solid hydrogen analyzers. It can also be deployed on lower-level computers of thermometers, online component spectrometers, chromatographs, online slag inclusion monitors, furnace-front rapid component analyzers, and vacuum hydrogen testing devices. For solid hydrogen analyzers and chromatographs with limited flash memory capacity, a controlled ring archive storage mode is prioritized.

[0020] The device comprises five main modules: data acquisition and binding module 10, verification and disk writing module 20, storage strategy configuration module 30, network status detection module 40, and Modbus-TCP protocol extended response module 50.

[0021] The data acquisition and binding module 10 receives raw measurement data output from the melt solid detection sensor and the furnace front process sensor. The raw data includes melt hydrogen content, thermal analysis characteristic temperature, slag inclusion detection results, melt temperature, melt density equivalent, hydrogen content of aluminum-magnesium solid sample, melt spectral composition data, chromatographic component content data, furnace temperature data, and online slag inclusion index. The module binds traceability metadata to each record: timestamp, furnace batch number, aluminum-magnesium alloy grade, detection object identifier, equipment type identifier, detection probe diagnostic status, and operator identifier. The detection object identifier indicates whether the record belongs to melt detection or solid sample detection. The equipment type identifier indicates that the data comes from equipment such as thermal analyzer / spectrometer / chromatograph. When a single analysis by the chromatograph generates multi-component batch data, the module packages a set of multi-component results into a single detection record and binds it to a complete set of traceability metadata.

[0022] The verification and disk storage module 20 generates a CRC-32 checksum for each packaged record and writes the "Detection Record + CRC Checksum" to the lower-level Flash memory. Records that have not received confirmation from the upper-level archiving department are marked with a write protection flag and cannot be erased or overwritten. The audit trail log is written synchronously, recording the detection type, time, operator, and equipment number. The audit log also includes a checksum to prevent log tampering.

[0023] Storage policy configuration module 30 provides two modes, which operators can select via the HMI: Mode 1: Alarm-based write stop mode; When the Flash storage space occupancy rate reaches 90% threshold, the HMI pop-up alarm stops writing new detection records to protect existing original data; Mode 2: Controlled ring archive storage mode; when storage space reaches its limit, only historical records with higher-level archive confirmation marks can be overwritten by new data; all unarchived confirmation records, regardless of remaining space, remain write-protected and cannot be overwritten. This mode is enabled by default for solid hydrogen analyzers and chromatographs.

[0024] The network status detection module 40 periodically detects the connectivity status of the Ethernet Modbus-TCP link; when the network is disconnected, the lower-level machine continues to collect various detection data such as melt, solid sample, spectrum, and chromatography, and continuously completes verification, packaging, and local disk storage. The audit log is continuously saved to achieve local caching at the edge of network disconnection.

[0025] Modbus-TCP Protocol Extended Response Module 50 retains the original standard Modbus-TCP slave function, responding to real-time register reads from the host computer; it also adds three sets of custom sub-function codes: Sub-function code 0x01: Query the start and end time index of the local cache record of the lower-level machine; Sub-function code 0x02: Receive the start and end times sent by the upper control, and upload the detection data packets with CRC checksums and audit logs within the specified time period in packets; Sub-function code 0x03: Receives archiving confirmation instruction from the higher authority, adds archiving confirmation markers to all records within the specified time interval, and removes write protection for this batch of records; The lower-level device acts only as a Modbus slave, passively responding to requests from the upper-level master station, and does not actively send messages outward.

[0026] The external SCADA / MES host system accesses the slave device via Modbus-TCP: First, it calls 0x01 to obtain the time index, selects the time period to be retrieved, calls 0x02 to read historical data packets, and the host uses CRC checksum to verify the integrity of the records; after verification, it sends 0x03 to confirm archiving, and the batch of records is archived, allowing subsequent circular overlay.

[0027] Example 2 (Method Example) A method for processing traceable edge data of a lower-level machine in an aluminum-magnesium melt and solid testing device, running on the aforementioned device, includes the following steps: S1. Data Acquisition and Metadata Binding: The lower-level machine acquires the original detection data of aluminum-magnesium melt and solid sample, as well as the furnace pre-furnace process detection data; the single multi-component detection data of the chromatograph is packaged into a single record; and traceability metadata is bound to the record: timestamp, furnace batch number, aluminum-magnesium alloy grade, detection object identifier, equipment type identifier, detection probe diagnostic status, and operator identifier.

[0028] S2. Record Verification and Local Disk Writing: The verification and disk writing module generates a CRC-32 checksum, writes the detection record and checksum to Flash, adds an unarchived write protection flag, and synchronously writes to the audit trail log to record this detection event.

[0029] S3. Storage Mode Judgment: Read storage policy configuration parameters; if it is alarm stop write mode, the HMI pop-up alarm is triggered when the Flash occupancy rate reaches the 90% threshold, and new records are stopped being written; if it is controlled ring archive storage mode, only old records that have been archived are allowed to be overwritten, and unarchived records are kept write-protected; solid hydrogen analyzers and chromatographs enable controlled ring archive storage mode by default.

[0030] S4. Real-time Modbus Response: The lower-level machine continuously responds to the SCADA / MES master station's standard Modbus register polling and uploads real-time measurement values, while the original equipment monitoring and interlocking logic remains unchanged.

[0031] S5. Offline Edge Caching: The network status detection module identifies a communication link disconnection, continuously collects melt, solid sample, spectral, and chromatographic detection data, completes verification, packaging, and local storage, and continuously records audit logs to realize local data storage during network outages.

[0032] S6. Historical Data Retrieval and Archiving Upon Network Recovery: After network recovery, the upper computer sends sub-function code 0x01 to query the cached time index; the upper computer selects a time range and sends sub-function code 0x02, and the lower computer uploads detection data packets with CRC check codes and audit logs in subpackets; after the upper computer completes CRC verification of the data and confirms no errors, it sends sub-function code 0x03 as an archiving confirmation instruction; the lower computer adds an archiving confirmation mark to the records for that time period and removes write protection, so this batch of records can be overwritten later when storage space is insufficient. Application Scenario Description The device of this embodiment can be deployed on lower computers of special aluminum and magnesium melt-solid detection equipment and various process detection equipment supporting casting production lines, including thermal analyzers, slag testers, electrochemical hydrogen testers, closed-loop circulating hydrogen testers, solid hydrogen testers, thermometers, online component spectral analyzers, chromatographs, online slag inclusion monitors, furnace front rapid component analyzers, and vacuum hydrogen testers, without requiring modification of sensor hardware such as probes and sample cups.

[0033] Under continuous smelting conditions for aluminum and magnesium alloys, melt detection, solid sample metallographic / hydrogen measurement detection, spectral component analysis, and chromatographic gas component detection tasks are performed alternately; when short-term jitter or network disconnection occurs in the workshop Ethernet, the lower computer's edge side continuously saves the full set of original detection records with check codes and audit logs; after network recovery, the MES system can batch retrieve historical detection data through extended Modbus-TCP sub-function codes, and the entire set of records meets ALCOA+ data integrity specifications for casting quality traceability and factory quality audits.

[0034] The above are only preferred embodiments of the present invention and do not limit the present invention; any modifications, equivalent replacements, and improvements made within the spirit and principles of the present invention shall be included in the protection scope of the present invention.

Claims

1. A lower-level edge-traceable data processing device for aluminum-magnesium melt and solid testing equipment, characterized in that, Deployed within the lower-level machine of aluminum-magnesium melt and solid testing equipment or as a supporting process testing equipment in the casting production line; the aluminum-magnesium melt and solid testing equipment includes a thermal analyzer, a slag analyzer, an electrochemical hydrogen analyzer, a closed-loop circulating hydrogen analyzer, and a solid hydrogen analyzer; the supporting process testing equipment includes a thermometer, an online component spectrometer, a chromatograph, an online slag inclusion monitor, a furnace-front rapid component analyzer, and a vacuum hydrogen measurement device; The device includes: a data acquisition and binding module, a verification and disk persistence module, a storage strategy configuration module, a network status detection module, and a Modbus-TCP protocol extended response module; The data acquisition and binding module is used to collect raw measurement data of aluminum-magnesium melt and solid tests, as well as furnace-front process detection data, and bind traceability metadata. The raw measurement data includes melt hydrogen content, thermal analysis characteristic temperature, slag inclusion detection results, melt temperature, melt density equivalent, and hydrogen content of aluminum-magnesium solid samples. The furnace-front process detection data includes melt spectral composition data, chromatographic component content data, furnace temperature data, and online slag inclusion index. The traceability metadata includes at least a timestamp, furnace batch number, aluminum-magnesium alloy grade, detection object identifier, equipment type identifier, detection probe diagnostic status, and operator identifier. The detection object identifier is used to distinguish between melt detection and solid sample detection, and the equipment type identifier is used to distinguish the detection equipment type corresponding to the data. For multi-component batch data output by the chromatograph in a single run, it is uniformly packaged into a single complete detection record and bound with a complete set of traceability metadata. The verification and disk writing module is used to generate a verification code for each original test record, write the complete record carrying the verification code into the local non-volatile memory of the lower-level machine; set a write protection flag for original records that have not received an archiving confirmation instruction from the upper level to prevent overwriting and erasure; and synchronously generate an unalterable audit trail log to record the entire process of melt detection, solid sample detection, spectral detection, chromatographic detection, data reading and archiving confirmation. The storage policy configuration module is configured with two switchable working modes: alarm stop write mode and controlled ring archive storage mode. In the controlled ring archive storage mode, only historical records that have received a confirmation mark from the upper level are allowed to be overwritten by new data, while unconfirmed records are permanently write-protected. The network status detection module is used to monitor the Modbus-TCP communication link status in real time. When the link is disconnected, the lower-level machine continues to complete the acquisition, verification, disking and log recording of melt, solid sample, spectrum, chromatography and furnace front process detection data, realizing local caching at the edge of network disconnection. The Modbus-TCP protocol extended response module retains the standard Modbus-TCP real-time register response logic and is configured with three sets of custom sub-function codes. Sub-function code 0x01 is used to query the time index of the local cache record of the lower-level machine; sub-function code 0x02 is used to upload historical data packets with checksums and audit trace logs in packets according to time intervals; sub-function code 0x03 is used to receive the upper-level archiving confirmation instruction and mark the archiving status of the corresponding time period record. The lower-level machine only acts as a Modbus-TCP slave and passively responds to the upper-level request, without actively initiating network connections.

2. The lower-level machine edge-traceable data processing device for the aluminum-magnesium melt and solid testing equipment according to claim 1, characterized in that, The verification code is either a CRC-32 checksum or a SHA-256 hash checksum. Each detection record is associated with and stored with the corresponding verification code, traceability metadata, and audit log to achieve data tamper-proof verification.

3. The lower-level machine edge-traceable data processing device for the aluminum-magnesium melt and solid testing equipment according to claim 1, characterized in that, When the Flash storage space occupancy rate reaches a threshold of 90%, the storage policy configuration module triggers an alarm pop-up to stop writing and suspends new data writing to prevent the loss of original traceability records.

4. The lower-level machine edge-traceable data processing device for the aluminum-magnesium melt and solid testing equipment according to claim 1, characterized in that, The solid hydrogen analyzer and chromatograph are enabled by default in a controlled ring archive storage mode, which is suitable for their small-capacity Flash storage and multi-component large-volume data detection characteristics.

5. The lower-level machine edge-traceable data processing device for the aluminum-magnesium melt and solid testing equipment according to claim 1, characterized in that, The audit trail log is also configured with a write protection mechanism, preventing manual deletion, overwriting, and modification. It fully retains records of device testing, data access, and archiving operations, meeting the ALCOA+ data integrity specifications.

6. A method for processing traceable edge data of a lower-level machine in an aluminum-magnesium melt and solid testing device, characterized in that, Applied to the apparatus according to any one of claims 1-5, comprising the following steps: S1. The lower-level machine collects raw measurement data of aluminum-magnesium melt and solid, as well as furnace front process detection data. It packages the multi-component batch data of the chromatograph into individual records and binds traceability metadata to all detection records. S2. Generate a checksum for each detection record, write the record and checksum to local non-volatile memory, set write protection for unarchived records, and generate audit trail logs simultaneously. S3. Select either alarm stop write mode or controlled ring archive storage mode according to the preset storage policy; in controlled ring archive storage mode, only archived records are allowed to be overwritten. S4. The lower-level machine continuously responds to the polling of the standard Modbus-TCP real-time register of the upper-level master station, maintaining the original real-time monitoring and equipment interlocking functions unchanged. S5. When a network link is detected to be disconnected, the lower-level machine continues to collect, verify, locally write to disk and log the full range of test data; S6. After the network is restored, the host computer queries the cache time index, reads historical data packets with checksums and audit logs in segments through a custom sub-function code; S7. After verifying that the upper-level data is correct, an archiving confirmation command is issued. The lower-level machine marks the records for the corresponding time period as archived and updates the audit log, and removes the write protection status of the corresponding records.

7. The lower-level machine edge traceable data processing method for the aluminum-magnesium melt and solid testing equipment according to claim 6, characterized in that, The multi-component gas data output from a single chromatograph test is uniformly packaged into an independent traceability record, enabling overall verification, archiving, and traceability of multi-component data.

8. The lower-level machine edge traceable data processing method for the aluminum-magnesium melt and solid testing equipment according to claim 6, characterized in that, All network interactions follow the Modbus-TCP master-slave query-response mechanism, with the slave device only passively responding and not actively sending messages, ensuring the stability of industrial measurement and control.