Current topic is chapter 21 2
Simotion vb Script usage and Import and Export XML data 3
You are last pgen project you have already added some libraries 4
and Scripts you see here 5
It's possible to copy all of the text here and paste 6
To other projects 7
By inserting a new script test 8
It's one way to do that 9
So 10
The other way is 11
Exporting and importing to script when I right click 12
there is a You know 13
ASCII exports selection 14
Then I can export as VBS file or text file 15
to My computer 16
from all other project is possible to right click 17
and Import to projects 18
script as ASCII 19
On the other hand folder is exportable 20
XML file for multiple of the contents inside the folder 21
Important 22
for sinamics side here some drives and control unit 23
There's an expert menu here you can insert a script folder 24
If you can insert your script files inside 25
sinamics unit 26
These are commonly used for 27
Modifying the expert list parameters 28
sinamics scripts and simotion scripts 29
The language is the same Visual Basic script 30
but It's not the same way working 31
It's 32
A different topic is 33
topic of another training 34
sinamics side Is possible to compare your expert parameters with 35
Factory settings or online parameters 36
You can save the competition result as executable script 37
For instance you can create scripts from expert list 38
In that way 39
So let's try now 40
It's a script to 41
And you can see here how the script looks like 42
These are common VB 43
Phrases and keywords on error resume next Go to zero 44
Parameters 45
Assignments bico 46
Connections is possible 47
The script will work for this units 48
Itself 49
On the other hand it's possible to use 50
global 51
sinamics scripts by right click and exports 52
It's possible to 53
Create sinamics folder 54
for script 55
script folder 56
You're under the simotion 57
this is Another ssxript located on those motion control units 58
Yep 59
It looks like the same but it's 60
Does the global Script simotion 61
or for the scout 62
These are for local script for driver objects 63
And the next thing is 64
You can also export or import 65
Your technology objects 66
And I'm going to export my one of the 67
Axis 68
new axes 69
Position virtual for instance export 70
Let's say go to offline mode 71
right click 72
Save project and Export object 73
With sub objects 74
Let's select the directory 75
temp axes export tests 76
Yes 77
So I will go to other projects 78
for Imports 79
datafile 80
Let's find 81
Temporary folder axes export test with sub objects 82
yes Well it's importing folder and objects import has been successfully completed 83
Now I see here same tech object as other project 84
by the way versions of 2 Different CPUs 85
One of them is other one 5.2 86
Yes 87
5.3 so let's try the compile 88
It's also case this is virtual axis and 89
The templates 90
Between two versions are the same so that's why we didn't get any error messages 91
But when you try 92
simotion created 93
early version 94
For first last try with real axes 95
Because the real axes some interconnections here 96
For example when you click this button go to assigment partner in your 97
Project Navigator is conveyor drive 98
Set try save project and Export object as sub object 99
Okay 100
Let's say real axis 101
create path 102
Okay 103
This is also and linear electrical access 104
as following axis type so there's a following object here 105
there are some parameters for home monitoring and so on 106
Maybe you're asking why you should just not with the copy 107
paste 108
I said okay here on the axis let's go 109
Yo 110
You'll see here some 111
Parameters and templates we get Maybe something's are missing 112
for instance in configuration we have here on the process image addresses 113
not interconnected to drive that's why I drive interface simulation 114
so Lets delete it 115
Let's try with importing the 116
Data 117
Which is 118
Temporary folder and real axes 119
Okay 120
I can see here import has been completed 121
for conveyor belt 122
I wonder if that has something interconnections yet 123
not 124
But there are some interconnections here 125
and ejector synchronisation 126
so You see the configuration encoder assignments 127
In our conversation is also the same 128
So this is just for your information 129
Copy or export or import objects is 130
Possible to do for the programs are so 131
Export and import 132
I think it's better to use this way 133
Project versioning or creating new projects for different kind of 134
Machine programs 135
You are gaining some time to 136
click and copying and pasting one by one on the other hand 137
That means your siomtion project files are 138
Exportable importable and open-source it's possible to use some scripts 139
Create and modify whole project 140
which is 141
We have already done with project generator use ready to use wizard pages 142
I just appreciate the script for and executed 143
And after you interviewed your project TIA portal some of the features 144
Are lost unfortunately 145
some scripts 146
Are not going to work 147
Just keep it in your mind 148
You lost interconnections during importing and exporting 149
another Important information 150
I guess 151
On the other hand you have to be careful when you are working different kind of 152
or different versions CPUs 153
Because the axis template and configuration. Samples 154
System variables are difference when you go from version 4.5 155
to 5:2 156
to 4.1 for example 157
And after that 158
You're not able to go back 159
From version 5.1 to version 160
4.5 or because the template 161
and structure of the Axis or TOs 162
is Changed 163
Let's try and create here and other CPU 164
with 4.3 165
Save changes 166
Let's say no 167
Close 168
So according to my experience in a real machine 169
running machine 170
siMotion project with version 4.3 171
after siemens releases the 4.4 and 4.5 providers that are some 172
Big changes and radical changes in Axes 173
Technology include the firmware 174
For example the hardware and 175
Positive and negative limit switch 176
Functionality is changed 177
After we converted our project from version 178
4.2 179
to 4.4 180
We are not able to set the CPU in 181
Run mode 182
We spent some time couple of days to solve the problem than we realize 183
Some of the system functionality be used in background task and in startup 184
Program prevent CPU you'd go to RUN so 185
We had the change to 186
Or use a program 187
Normanly 188
It shouldn't be necessary 189
at this Case 190
Just one version change cause the machine will not 191
Running anymore 192
Let's check 193
sasve and compile 194
Okay right-click replace object 195
With the same type or upper higher performance is possible to go up as you can see 196
4.4 4.5 and so on... 197
same mlfb with 4.5 say yes 198
save 199
And 200
It was switch back to scout again 201
If you see your some messages 202
scout project couldn't closed 203
I replaced my module 204
That's why on the Scout site 205
The project will be reloaded with new type of CPU and all of the 206
Existing technology objects will be removed and replaced with new templates 207
but Already answered parameters 208
so Another information 209
Annual project it's forbidden 210
To be the same name of CPU so one of the CPU 211
name is 212
Changed 213
It's also similar for sinamics sides and project in it closed 214
Right now there are two CPUs in my project same type with different version 215
You are going to see similar information window during project 216
Upgrade or downgrade 217
Okay 218
Step7 application 219
Have to be closed 220
Hardware I say yes 221
with new version it handles by Scout as automatic 222
In older versions I have to close or open programs by myself 223
So that's why 224
It will take a couple of minutes more 225
After that Scout try to upgrade 226
our technology objects in my CPU with new firmware 227
4.5 228
and in my computer 229
siemens old 230
software like simatic manager is working slowly 231
With Windows 10 that's why it takes so long 232
Long time than usual it should be completed in couple of seconds 233
Instead of this it takes minutes 234
Maybe in your computer you're not facing with this problem 235
So still waiting to close all of the services related with 236
hardware config of simatic step 7 237
On the other chapter 238
we will 239
Going to do detail with that are some common topics 240
Right now we are talking about 241
So 242
Change of the device version is started 243
And this is another thing 244
right here mentioned about the firmware version of device 245
There's also a scout 246
version 247
right now we are using 248
5.3 249
If you're opening the older 250
Scout projects for example 5.4 we have already done it in early chapter 251
It says step7 applications couldn't be closed 252
This is an abnormal state 253
So that's why Scout it couldn't have changed 254
template 255
What should I do? 256
I have to close my simotion first project 257
I had to reopen again 258
To make the update of firmware and Technology objects 259
For some reason it says the project is 260
Write protected 261
I'm going to close to 262
simosim do you want open project -by -write project no 263
I'm going to close the other project here or Scout 264
simotion will be script report and Export XML data 265
We are almost at the end of this lesson 266
Okay right now there's just want me to Scout let's try to open 267
last project but unfortunately it's not there 268
So let's close this one 269
And reopen again from desktop shortcuts 270
Okay let's try again is not there I have to 271
Click open and find it 272
simotion first project 273
It's still is write-protected I don't want to open as write-protected so 274
That means that are some services in the background is still using some data files 275
of My project so I have to kill or stop the services 276
there is a tool U/SHUTDOWN 277
for Closing all of the services 278
It's located inside the setup folder 279
Program files Simatic step 7 step 7 binary.com 280
So let's try this one 281
it will take couple of seconds also... 282
sometimes You will face with this case 283
Unfortunately 284
The Last solution 285
It's restarting the Windows 286
now I will try again to open the project 287
The services at the background is restarted so that's why 288
maybe I will able to 289
Open my projects 290
without in the right protection 291
Let's see 292
Now I can open my project 293
You'll see here change of device Version started 294
simotion and sinamics 295
Now update procedure begin 296
Device 297
firmware and Technology object updates will be 298
done by scout 299
Yes still running 300
It's finished now all I have to do 301
Recompile my CPU this one 302
It's just an empty CPU 303
There's no program there's nothing 304
After that I can continue to write my programs again 305
So deep note after you replace the CPU type or firmware version 306
in your Hardware config than you have to update your project 307
scout side 308
So let's your properties now it's version 4.5 with sinamics 309
verison 4.8 310
I will right click again to open Hardware configuration 311
To check and see what will be other possibilities with replace objects 312
with Different type 313
So 314
Here I can see 315
going up with firmware version is possible 316
But going backwards and downgrade on verison is not possible 317
So... 318
If you want to run your program 319
already compiled and done 320
with new type of 321
CPUs for instance your version 5.1 322
Programming your CPU everything is done 323
but From some point it is required to replace the CPU because your CPU is defected 324
Or your CF card is not able to run the new firmware version at you have to be 325
firmware version 4.5 at this case 326
You have to use the export and import functionality to your run your program 327
Because the downgrade as automatically is not possible 328
It's similar to TIA portal versioning 329
So just for your information keep it in your mind also 330
going up 331
An upgrade it's always possible you can change your CPU time from drive based 332
D425 333
D435 or backwards is possible 334
c CPUs are different platform 335
Between Hardware conversion is not possible because the hardware is different. 336
On the other hand you're able to copy and paste your program because the program is similar 337
And logic is the same and 338
commands for motion controller 339
Is almost same 340
you can useexport and import Functions to 341
Change your devices 342
run your program on different platforms with this way 343
other thing in my mind I want to tell you 344
We will see similar properties in the next chapter with versioning 345
Have a nice day