4/24/2025 2:34 PM | |
Joined: 3/14/2025 Last visit: 7/29/2025 Posts: 1 Rating:
|
The TM NPU does not connect directly to sensors. Instead, you can use the S7-1500 PLC to collect sensor data such as pH, turbidity, conductivity, and more. This data is then sent to the NPU for processing with the neural network. The NPU supports various input formats, including lists, arrays, dictionaries, and ExternalBuffer objects. For example, if your model expects a vector of six values, you can pass your sensor readings as a list like: [input_ph, input_turbidity, input_conductivity, ..., input_n]
Just make sure that the shape of the data matches what the model was trained on. You can send data from the PLC to the NPU and also return the results back to the PLC. This two-way communication makes the setup highly flexible and suitable for a wide range of applications. For more technical details on the supported input formats, I recommend the official Siemens document TM NPU MicroPython: https://support.industry.siemens.com/cs/de/en/view/109824411 This document clearly explains how to structure input data for the neural network. |
Last edited by: Moderator_Lan at: 04/24/2025 16:20:50link optimized |
|
Follow us on