日本語 English

How to Convert NX/NJ Structure Data to Sysmac Studio Trace CSV

Overview

The primary task (FastTask) adds the data you want to record to a structure every scan, and when the structure is full it is saved to SD
The saved binary file can be converted on a PC with RecSSConvert to a CSV file for Sysmac Studio trace, then imported into Sysmac Studio data trace for graph display

plcpc

RecSSConvert screen for converting to Sysmac Studio trace CSV

1. Preparation

Rules for the structure to record

Model Maximum number of variables Data type
NX701
NJ501
192 Basic data types (except strings)
Arrays
NX102
NX1P2
NJ301
NJ101
48

Set DATE_AND_TIME as the first item
Set the offset type to "CJ"
Example:
Example definition of a structure for recorder recording

Create two structure arrays for storage
Example:
Example of creating structure arrays for the recorder

2. Collecting Data on the PLC

Flow of collecting (recording) data and writing it to a file

  1. Put data into RecData, a single variable of structure sData
  2. Insert RecData in order into the array of structure Data0, the storage destination
  3. Repeat 1 and 2 from the next scan onward
  4. When Data0 is full, issue a command to write it to the SD card with the FileWriteVar instruction
  5. At the same time, switch the storage destination to Data1
    (saving takes multiple scans, so data is added on the Data1 side)
  6. When Data1 is full, switch the storage destination to Data0 and write Data1 to the SD card under a different file name
  7. Repeat this
CSV import screen in Sysmac Studio data trace

3. Conversion

Binary file

The file created by the PLC looks like this
File created by the PLC

Converting the binary file to a CSV file for Sysmac Studio trace

  1. Start RecSSConvert
  2. Specify the binary file saved by the PLC as the record file to convert
  3. Paste the shape of the structure set in Sysmac Studio into the record structure area
  4. Pressing the [Convert] button creates a file with the same name and the .csv extension in the same folder as the binary file
    RecSSConvert screen

Importing into Sysmac Studio data trace

The converted csv file can be imported in the Sysmac Studio data trace screen
Importing into Sysmac Studio data trace

How-to navigator

Procedure for converting to a csv file for data trace

Download

Comments