Building the image

AI Model Deployer

Product
AI Model Deployer
Product Version
1.1
Language
en-US

This module generates data for the Program Organization Unit (POU) in the PLC user program. The TM NPU works on the data that is acquired from sensors and fed through the PLC to the model.

If you configured FTP and Debug at “Application configuration” page, AI deployer checks and marks “FTP configuration” and “Debug configuration” at this building page. FTP/Debug configuration could be built together into SD card image or downloaded independently on corresponding configuration view when needed. To enable FTP/Debug function on TM NPU, you must enable FTP/Debug configuration of TM NPU on TIA Portal.

Navigation bar

Online Deployment tab

Current position

"TM NPU build" area

Tool bar

"TIA portal build" area

Build tab

   

Prerequisites

  • You have the trained model converted.

  • You have configured the system and NPU Application.

  • You have configured FTP and Debug of TM NPU (Optional).

Build the image for SD card

You can generate SD card image for TM NPU at this build page. To run your application on TM NPU, build the SD card image and extract the content to the SD card. Reboot of TM NPU to load the application after you plug in the SD card.

  1. Navigate to the Build page by clicking .

    After you configured the converted AI model, system and NPU Application successfully, they are marked with a green tick.

    If you have configured FTP and debug function and want to enable the related features, click the checkbox of “FTP configuration” and/or “Debug configuration”.

  2. Click the Build button to build the SD card image for the TM NPU.

  3. You can use the following tools to download or delete the image.

    Delete built SD card image

    Download built SD card image

Create DataBlock and TextList for TIA Portal

AI Model Deployer converts a simple text label file into a DataBlock file and TextList file. The Label File contains labels for classes of the classification model in rows. The Label DB and TextList files are suitable for the configuration of the TIA Portal project.

  1. Click "..." in the text box below Model label file.

  2. Click the Generate button. The following files are generated:

    • DataBlock for PLC program

    • TextList for HMI program

  3. You can click the download button to download the DataBlock or TextList file.

Online deployment

Besides deploying the image with SD cards, you can also deploy the image online with an FTP server.

Connection chart

Connected and deployed

Not connected or not deployed

Before you can perform a online deployment to a TM NPU, you must have previously deployed an image with FTP configuration to the TM NPU using an SD card.

When you built the image, the check box before ③ will be checked automatically.

  1. Click "Online deployment" after you built the image.

  2. Make sure you previously deployed a package to the TM NPU using an SD card, and check the check box before ②.

  3. Check "Next".

  4. Set the SFTP/FTP configuration (skip this step if you have set the SFTP/FTP configuration).

  5. Click the Next button when you see the message that the built image is deployed to FTP server.

  6. Reset the TM NPU as indicated on the screen, and then click the Confirm button.

    Wait until TM NPU gets the built image from FTP server successfully.

    Shows the deployment status.

    Note: Both the green and yellow words mean the deployment is successful, while the yellow words means the file already exists on the TM NPU, so the step is skipped.

    Go back to the last step.

    The Retry button is enabled when the deployment fails. You can fix the problem and then click this button to continue the deployment.

    The Redeploy button is enabled when the deployment is successful. You can click this button to redeploy a new image to the TM NPU.

  7. Reset the TM NPU as indicated on the screen, and then click the OK button.

Note:

New image built after online deployment

  • If you built a new image after successful online deployment, AI Deployer will ask if you want to deploy the new image to the device each time you go to the online deployment tab.

    You can click OK to start deploying the new image, or click Cancel to keep the old image on TM NPU.

New image built during online deployment

  • If you build a new image while running an online deployment, AI Deployer will stop the current deployment and start a new one.

Built image deleted

  • If you delete the built image, AI Deployer will stop the current deployment.