Hvordan kan vi hjælpe dig i dag?

How to import Web Designer variables into Unity.

Issue
How to import Web Designer variables into Unity

Product Line
TSXETG30xx, TSXWMY100 BMXNOE0110, 140NOE77111, TSXETY5103
BMXNOR0200

Environment
Unity

Resolution
If an attempt is made to import he Web Designer variables that have been exported to a '.csv, file into Unity, an error will get returned.
The following steps can be used to import variables from a Web Designer application into Unity using the 'Namespace' variables from the Web Designer project.

  • Locate the file named 'Namespace.dat' in the Web Designer application project folder.
  • Copy the file to a temporary file.
zcv nb
  • Open the temporary file with Excel as an XML list.
vx bn

Fg

Arrange the columns into the acceptable format for the Unity variable import function.
  • Insert a new column after the 'address' column.
  • Copy the contents of the 'type' column into the new column.
  • The results is shown below.
SDfg
  • Delete all of the columns except for the ones named columns named 'symbol, address and Column1'.
  • Copy and paste the columns into Notepad.
  • The results is shown below. This is the format that Unity requires.
  • Save the changes.
DSfg
  • Delete all of the rows for any services:
DSg
  • Delete any extra rows.
dbn

The variable listed in the 'symbol' column also has the device name appended to the variable tag name. This needs to modified be either modified to the acceptable format
for the Unity import or it can be deleted.

To delete the device name:
  • Delete the text 'plc.'.by using 'Find and Replace'.
sdn

Delete the text 'device.'.by using 'Find and Replace'.
vgnb

To modify the device name:
  • Delete the text 'MAIN_'.by using 'Find and Replace'.
cfv n
  • Replace the text 'ETG '.with the test 'ETG_'.
cvb nm
  • Replace the text 'ETG3010.'.with the test 'ETG3010_'.
cx nbm

The variable types must be converted to the acceptable variable types for the Unity symbols. (i.e, replacing WORD with INT' type, etc.).
  • Replace the text 'WORD'.with the text 'INT'..
cxv n

Save the changes.
cv nb

When Excel saves the 'Namespace.dat' as a .txt file, it also saves database the index column an appends it to the variable name. This needs to be deleted.
  • Open the text file using Notepad.
  • Delete the extra column created by Excel during the save. (this accomplished by deleting the text '0'.by using 'Find and Replace'.
  • Save the text file.
 vgnh
  • Import the variables into Unity.
dfgch

Note:
  • When you build the Unity application, errors may occur due to overlapping registers assigned to the imported register. If this occurs, the variables will need to be assigned to different register numbers

Legacy KB System (APS) Data: RESL209625 V1.0, Originally authored by AlCh on 11/12/2012, Last Edited by AlCh on 11/12/2012
Related ranges: FactoryCast Gateway

Schneider Electric Danmark

Se mere
Område:
Se mere
Område:

Brug for hjælp?

Brug for hjælp?

Produktvælger

Produktvælger

Find hurtigt og nemt de rette produkter og det rette tilbehør til dine anvendelser.

Få et tilbud

Få et tilbud

Start din salgsforespørgsel online, så vil du blive kontaktet af en ekspert.

Find forhandler

Find forhandler

Find den nærmeste Schneider Electric-distributør.

Hjælpecenter

Hjælpecenter

Find supportressourcer til alle dine behov på ét sted.

  • Produktdokumentation
  • Download af software
  • Produktvælger
  • Udskiftning og erstatning af produkter
  • Hjælp og kontaktcenter
  • Find forhandler
  • Projektrådgivning
  • Find vores kontorer
  • Schneider Electric Community
  • Karriere
  • Virksomhedsprofil
  • Rapportér en forseelse
  • Tilgængelighed
  • Presserum
  • Investorer
  • EcoStruxure
  • Jobsøgning
  • Blog
  • Privatlivspolitik
  • Cookiemeddelelse
  • Vilkår for anvendelse
  • Rediger dine cookieindstillinger