Solutions

Omron NJ Tag CSV Gen Tool

4min

Objective of the tool

This tool automates the process of converting an Omron NJ Tag file to CSV format, which saves time and reduces manual efforts in data handling. The tool can be used to easily upload tags to Litmus Edge and simplify the exchange of data between the PLC and Litmus Edge.

Prerequisites

  • Install Python 3 on your Windows 10 machine.

Step by step guide to import tags from Sysmac Studio, convert to CSV and upload to Litmus Edge

Step

Description

1

Download the CSV tag generator solution. Save it in a folder.

2

Open your project in Sysmac Studio and go online.

3

Go to Tools > Export Global Variables > CX-Designer.

All tags get copied to the clipboard.

4

Open notepad or another text editor and paste the text saved to the clipboard. Save the file as a .txt file in the same folder in which the tag generator solution is saved.

5

The tag CSV generator solution is a Python script. Run the script in the command prompt using following command. Replace the parameters in the command with the following:

  • device_name: the device name you set in Litmus Edge DeviceHub.
  • omron_txt_file: the text file you saved from Sysmac Studio.
  • edge_csv_file: the file name you want to give to upload to DeviceHub.

PowerShell

Copy code

python omron_tags_converter.py --device_name "Omron_PLC" --omron_txt_file "Sysmac_Studio_tags.txt" --edge_csv_file "DeviceHub_tags.csv"

6

The CSV file will be generated in the same folder in which the .txt file and tag CSV generator solution is present

7

Go to Litmus Edge DeviceHub > Tags and select the device. Click on + icon, then choose Upload CSV.

All tags of the PLC will be created.

COMPREHENSIVE VIDEO TUTORIAL: Visual guide to walk through each step