Presentation is loading. Please wait.

Presentation is loading. Please wait.

Unity Application Generator

Similar presentations


Presentation on theme: "Unity Application Generator"— Presentation transcript:

1 Unity Application Generator
How Can I… Generate Control Module with Link using nxslt.exe

2 Issue I want to Extract specifics information from the SCOD parameters with UAG. and reimport it with an other name what it allows to replace in another in the UAG project I should have the processlibrary V2 I should make a copy/past from the SCOD named “MOT1D1S_Com”. The name of the past files will be for example “MOT1D1S_Com1”.

3 How to do.. Basic explanation
UAG supports exporting of project using XML and text format. The format of the exported file with XML can be customized using style sheet. Generation of the a text file can be done by: Exporting the project in XML format. By using standard tool for transforming the XML file into text file with pre defined format can be done by using standard software utilities like nxslt.exe. Using this utility and style sheet, the exported file from UAG can be transformed into text file with required format.

4 How to do.. In Windows Create a file named “conv” on the “C:” root
Copy “nxslt.exe” and “Assig_1_Mode_Manu.xsl” from powerpoint into the folder “conv”. Create an “transformPAL.cmd shortcut” on the desktop. This command file is available in the powerpoint. Using an UAG export File with CiExp variable Modify the stylesheet

5 How to do.. In Windows In Windows, on “c” drive, please create a folder “conv”

6 How to do.. In Windows Copy these files : Into the folder “conv”
“nxslt.exe”, “2010_07_30_Multi_Export.xsl” “transformPAL.cmd” Into the folder “conv” Please open the style sheet with any editor to have more details

7 How to do.. In Windows Create a shortcut of a “tranformPAL.cmd” in desktop of your computer

8 How to do.. On the style sheet
Below, highlighted in blue, put the same name of SCOD that you past before. In your example “MOT1D1S_com1”

9 How to do.. In UAG There are two possibilities : First possibility
We already have the “MOT1D1S_com1” SCOD with all parameters on your UAG, in this case you can go to the slide à remplir Second possibility you don’t have it, go to the next slide and follow the procedure.

10 How to do.. In SCOD Editor Open the Scod Editor, open “UAGProcessLibVCV2.0.osl”: Usually the path is : C:\Program Files\Schneider Electric\Unity Application Generator\Db

11 How to do.. In SCOD Editor We have this windows
We can see all SCoDs in the library We are going to create a new SCoDe with all parameters we need

12 How to do.. In SCOD Editor We Copy/past the SCoDe “MOT1D1S_com”

13 How to do.. In SCOD Editor We have a new SCoDe
It name is SCoD1, so we have to remane it. (For example : MOT1D1S.com1)

14 How to do.. In SCOD Editor To rename this variable, the procedure is :
Rigth click on SCoD1 => Properties Modify the name

15 How to do.. In SCOD Editor The result is…

16 How to do.. In SCOD Editor Now we create all a new variable
See below in blue To create a new variable the procedure is : Right click on variable Chose new variable

17 How to do.. In SCOD Editor After we create new properties
See below in blue To create a new variable the procedure is : Right click on variable Chose new variable

18 How to do.. In SCOD Editor You put properties in a tab named “Sub CM”
See below in blue You set in this order See below in red You set in this order See below in red We can see an example to create a property in the 2 next slides

19 How to do.. In SCOD Editor You put properties in a tab named “LINK”
See below in blue You set in this order See below in red You set in this order See below in red We can see an example to create a property in the 2 next slides

20 How to do.. In SCOD Editor Create properties
EXAMPLE : Goes to the properties tab To create a new property the procedure is : Right click on property Chose new SCoD property In general tab Follow the animation In position tab Follow the animation

21 How to do.. In SCOD Editor Create properties
EXAMPLE : Goes to the properties tab To create a new property the procedure is : Right click on property Chose new SCoD property Click In general tab Follow the animation In position tab Follow the animation

22 How to do.. In UAG We created a new SCoD on the process Library, but it can not be used on UAG. To make the SCoD available we are going to validate the new scod. Open the project in UAG. There will be a message to update the customization. Use the new SCoD Check the variables created, Properties etc.

23 How to do.. In UAG We create a new project on UAG with our updated Process Library as Below and use MOT1D1S_com1 SCOD

24 How to do.. In UAG We fill up the Sub CM property, like below for example.

25 How to do.. In UAG We fill up the LINK property, like below for example.

26 How to do.. In UAG Export MOT1D1S_com1 ..

27 How to do.. In UAG …on the “conv” document
Chose an export file name for example How can I UAG_Export.xml

28 How to do.. In UAG After a success export…

29 How to do.. In UAG …file was created in a “conv” document here

30 How to do.. In UAG In the CONV folder, drag the exported file and..

31 How to do.. In UAG … and drop on the shortcut “transformPAL”

32 How to do.. In UAG A windows appear, the conversion work
When its done press a key

33 How to do.. In UAG A new file is created on the conv file here

34 How to do.. In UAG The file should look like this:
NOTE: The path and the name of exported file can be modified by: Right Click on the cmd file (transformPAL.cmd) Change words in BOLD on the command line : “nxslt.exe %1 PALInitialvalues.xsl -o c:\conv\PALUAG.txt”

35 Importation without error
How to do.. In UAG To reimport this file into UAG you have to open your project in exclusive and after make your importation Importation without error

36 How to do.. In UAG And the result is…
You can extract and re-import parameters from UAG


Download ppt "Unity Application Generator"

Similar presentations


Ads by Google