Welcome all nice to see you again today 2
Chapter 21 3
And with this lecture we're going to learn about how do we use the project generator 4
pgen 5
with simotion scout to create or modify art projects 6
So let's start 7
You can find the project generator inside the folder 8
Of your setup dvds 9
and here 10
Project generator easy project 11
Consists of different libraries and functionality 12
Like startup check access function block 13
TCP IP communication 14
there are some ready to use 15
Libraries and software packages like cam disk creation 16
And so on 17
there is a Tutorial to an executable project 18
You can just watch how do you use the simotion easy project 19
and You will find 20
The setup files from support Industries siemens website project generator 21
With this entry ID 22
you can Download here the menu 23
or simotion or simatic parameter manual is also possible to modify 24
simatic 25
manager project 26
And the last version is 27
1.4.4 28
so... 29
I have already downloaded 30
Project generator to this folder 31
And please copy the files to your root folder of your hard drive 32
Because 33
In your project generator folder 34
That are 35
a lot of files inside a little folders so 36
NTFS or fat 37
32 file system the stack 38
Subfolder inside subfolder is limited to some number 39
So that's why if you copied your project generator 40
Setup files in your desktop 41
it will not work 42
because the executable program couldn't reach the subfolders and it's 43
Not possible to copy some files 44
Let's try and start or project generator 45
It's a small tool consists of 46
XML an pdf files 47
It's looks like us is working 48
Normally used for 49
Creating project for editing some project 50
Adding or removing some libraries 51
at The first step 52
If you need help just press at buttom 53
there are some PDF file 54
You can read 55
You can see what's in there 56
Let's try to create a new project and press the next button 57
Is the default project Paths and project name 58
We have got an error message in file error is not declerated 59
In line in Visual Basic script in column a blah blah blah 60
So our precious do you want the close tool 61
no Assembly 62
And some other errors 63
and go so on... application crush 64
So it's not possible to continue 65
I have to close 66
And the reason is 67
tool Developer German guys 68
So 69
There's something missing we have to go to control panel 70
and regional settings 71
and 72
To make this troll a little program running I have to change 73
My continent region to German 74
and about day time settings I have to change 75
Number formats 76
to german 77
Date and time formats 78
Location 79
and language 80
Set up line 81
Let's try again 82
So now it's working 83
This is a bug 84
Unfortunately you have to do this presetting 85
right now I created a project 86
And I want to add a new device with version 5.3 87
I'm device type training units SIDEMO 88
I'm going to use simotion 89
At the next page you will see all of the possible option models and libraries 90
For instance there's a 91
beginners example 92
For you use training unit to run with real axes 93
You're just start with this one if you want 94
On the leftsite you see here PDF log when you click is opening a PDF file 95
So 96
You can just read the information here 97
There are some user designed websites 98
Web pages in your web server 99
switch Box terminal 100
You can do this exercise if you have a democase 101
Okay 102
So next thing is FAQs related to generate simotion projects 103
Step by step 104
It's the same document project generator 105
So we use module axes FB to control 106
Axes 107
Which one FB the moments jogging enabling disabling and so on 108
Useful asset that are webpages 109
Convert pages to control via virtual the axis 110
in the next chapter 111
Creation of the cam disk at runtime consists of a library 112
Create modify and use 113
Electronic cam profiles in your project 114
module cartoon is a library for cartoon process of communication 115
Library is very useful this model add handle electronic communication with TCP IP 116
converting has its own designs it's very 117
Ready to use package 118
Converting Branch 119
winder line tension control And so on 120
If your click this one and continue you were just 121
Create your project from 122
And download the run the machine kind of 123
Application 124
drive cliq topology viewer is a tool 125
This module as a web page to view the actual Drive cliq topology on your website sinamics unit usefull tool 126
Intelligent belt 127
For control functionality in your application 128
machine data module is a functional to acquire 129
data from the machine from CPU if you want to know even more 130
click pdf 131
Name is LMDALibrary 132
It's about collecting the energy models data to your system 133
The next thing is machine energy acquisition 134
we will use the message handling 135
It will collect all of the alarms and warning messages of axis Drive objects and 136
Handle with a web server 137
as OMAC Is version Standard 138
state manager of your machine 139
specially used in food and beverage industry similar to Weihenstephan 140
so... 141
Packaging Library LPAC is also 142
One of the most advanced 143
Package here you can run your machine just 144
Following some of the steps next and selecting 145
Correct 146
Settings 147
With projects later than you have a complete running program for 148
your system 149
Startup check is just another tool 150
This module adds functionality to collect information about the startup axes 151
External encoders and modules 152
We use this to to be sure 153
About our system is properly powered on and everything is ready 154
Simotion goes to run state 155
But sometimes 156
For example if slave over profibus was goes ready state a little bit 157
If you use some 158
commands from library in your project after CPU goes to run mode 159
There are some failure in your system 160
that may cause your CPU to go to stop that's why I startup check 161
Is necessary in almost each application 162
so i will continiue 163
cam creaton 164
TCP IP drive cliq 165
Message handling 166
Start-up check 167
Next 168
For module access FB 169
You can add here real and virtual access right now is very useful 170
If you don't do that later on 171
After your project is created and library included your project with subprogram folders 172
and program units you have to notify your program 173
by manual 174
Later on during your commissioner if you want at some new axes 175
Then you'll have to modify for your program again 176
keep it in your mind please so just at 177
Virtual Drive axis 178
Axis 179
virtual positioning axis 180
Pos... 181
You can answer add a cam 182
simotion cam 183
Or assign technology object to drive object 184
if there is a sinamics device 185
So 186
Next 187
module access FB 188
this page is for 189
Important to source files 190
via simotion it webpage 191
axis allowed to be controlled via web page 192
if you select this box 193
You have a IP adress it is possible right now to transfer the HTML 194
Web page files via FTP 195
simulation is running 196
Next 197
sedon module of 6 modules creation cam disk at run 198
This module at this motion Library LCAMHDL to our project 199
And that's it 200
3rd ethernet communication LCOM function 201
You'll need to write here and new source file name fb call to your 202
Project 203
And the source files 204
setting your local court number 3 4 5 6 205
simotion the server or the TCP clients 206
next 207
Topology viewer to configure the settings you have to select the Creat IT 208
web page 209
You can also see system variables your problem if you don't want to add every page just 210
deselect In our case 211
Let's select all 212
module 4 next 213
Module 5 message handling and configuration will be set 214
So... 215
We have to configure the following settings and put it next to at message handling to select the device 216
Size of the active message list is default 100 size of the message archive 217
Is the value 100 218
So I'm going to use 219
Full of the Diagnostics possible 220
In English language arts 221
It will be created web pages 222
Next 223
last one Is the startup check 224
I'm going to use 225
Next 226
Now wizard is finished 227
We are at the generating project page 228
So if I want to go back and configure my devices I click this button 229
So it will start to wizard again 230
Okay 231
Yo 232
So I have to do everything all over again 233
If I want to save my template or configuration is possible 234
as XML file 235
Okay that I click to generate button 236
The generation started integrating the step 7 manager project at the background 237
then project generator 238
will be add 239
simotion units 240
After that it will follow the next steps 241
To create and includes 242
Libraries that 243
Or which are selected here 244
It takes couple of minutes 245
after all 6 modlues Finished integrity 246
in new project 247
Is it possible to download 248
Websites or necessary files 249
Real FTP 250
Okay 251
I will go offline with my last project is it different project 252
close all 253
trace has been changed accept changes 254
configuration 255
curve save no 256
Okay 257
There's a little progress so I think the properties of the tasks 258
I'm working right now on hard drive not the SSD 259
That's why it's taking a little bit longer time 260
You can track the progress 261
of pgen here 262
It's also possible to modify 263
Already developed project 264
now we are creating a new project 265
After that it's also possible to migrate 266
Your classic scout project to TIA 267
Or you can just easily export the libraries here or copy and paste 268
Where's the other projects it's also 269
Possible 270
At the meantime 271
Collegues in application center erlangen Germany developing this pgen 272
Maybe next time you will see additional features 273
And you should check by yourself the packaging library and see the visit page 274
day by day it's developing 275
So now it's important libraries in our projects 276
I'm going to 277
Save my project folder 278
in training folder 279
simotion 280
PGEN TEST folder project is here 281
There's a user area is now empty 282
All of the user designed web pages will be here after download via FTP 283
we will 284
Examine chapter 14 FTP and web server or simotion 285
Right now is transferring files to server 286
And project generator creates 287
some Visual Basics scripts and compiles to run as data files 288
After that 289
Execute our scripts to create new projects or modify projects 290
Okay that are some errors for more information after looking to log file do you restore 291
From the scouts 292
I say yes 293
It's already opened 294
Another instance window 295
So you see here 296
The new device 297
inserted there are some Scripts inside the script folder 298
Axis simulation on or off 299
You can use this script execute 300
Select your axes 301
Reset the simulation or and off by Wizards 302
siMotion device 303
On sinamics side that are some axes connected with Drive 304
conveyor and ejector 305
You can just text here 306
conveyor belt 307
I said okay 308
and after that you should download your project again 309
So... 310
There are some other secret scripts for reporting TOs for instance when your click 311
Accept and compile 312
You will get some detailed information about technology objects as a XML file is 313
Possible to print the report or save report as HTML or XML 314
It's just for storing data after project completed 315
So 316
under Device that are some programs 317
there are som cams 318
axes 319
you see pos virtual 320
The other axis created by project generator because we have selected the demo case 321
So... 322
In your library folder that are several Library 323
cam handling 324
Communication 325
And I'm supposed for Axis functionality 326
Modular machines and message Handling 327
also other sinamics lib. 328
deep note when use projects in later it will automatically change startup the operation mode to RUN 329
when you go To your execution system 330
Okay. Some Programs located in your execution 331
system but 332
It's not existed 333
There are some errors 334
Do you want to know 335
So... 336
You see here the error reaction selected as execution fault task 337
and pgen automatically 338
Change this properties to set the CPU at the run mode 339
As could as possible 340
So... 341
First of all we have to compile our programs 342
Before. 343
It's better to set up your Libraries and compile first 344
After that you should compile your project 345
Okay LDPV1 doesn't 346
interfacec for this version 347
Let's correct it! 348
Let's try again 349
I'll got the same error message 350
Okay 351
Let's select Again Properties 352
okay 353
accept and compile 354
Okay next step 355
Okay master library is still compiling for different kind of devices 356
That's why it's takes a longer time 357
It's should be wiser you just select your CPU type 358
to reduce 359
time Required so you can spare time with that way 360
After that I will set up my device and click save and compile 361
So Hardware 362
configuration completed that are some libraries 363
Yep 364
There are some errors let's Correct it 365
Message handling 366
There are some interconnections between Libraries so that's why we are 367
facing Some problems 368
Let's take the same way with the new cam path version for LCAMHDL 369
okay 370
now we to open again to set it 371
correct CPU your type 372
Before I come 373
it is not using any 374
Technology package 375
It said it again 376
okay LMCBASIC 377
APC erlangen and version 378
Using the cam package 379
okay Let's set up the cam package with the same version here 380
Say okay we're reopen and said it's here 381
machine Library 382
cam package 383
First grade the same thing 384
Reopen properties 385
Again for message handling properties 386
Technology object packages 387
So I couldn't see 388
Select cam package 389
Let's say 390
It's done recompile the libraries 391
for drive cliq topology viewer 392
its need 393
LDP1 Library so 394
It's done 395
now Just select the correct technology object package 396
The correct version let's save try again 397
You see here preprocessor messages in our programs its use defined as 398
undefined 399
now My project 400
Created compiled successfully so 401
It's 402
consistent 403
So I can go to execution system 404
So there is no matter anymore 405
There are some program attached to start up task there is no program 406
I'm in background task using startup check drive cliq topology Global buffer management 407
template access FB 408
And several programs 409
As you learned in earlier chapters 410
You need to assign some program to set the CPU in run mode 411
fault tasks 412
technology is already done by message handling 413
we are ready to download 414
go online New device 415
This is another project is trying to connect step 7 online so I have to change the 416
Simulation mode 417
Close 418
and start simosim 419
accept 420
Yes 421
restarting 422
Well we are connected to simulation 423
Let's Download 424
It's resetting 425
simotion system Hardware configuration downloaded 426
you can 427
trace your the opening go for see information 428
So... 429
let set CPU to run mode now running 430
right click target project to us and device Diagnostics 431
Show background tasks running in 100 milisec 432
Or maximum 433
Seven or eight hundred ms 434
These are all access positioning and drive access here in our program 435
What are some program generated and added automatically 436
You can go into the detail 437
Template access FB as a structure test 438
Default password for website is simotion to able to 439
Control 440
via 441
webpage 442
here number of 443
axis ITDIAG 444
It is 2 445
for 446
new axis and new access pos 447
And after that there is a last time for Life sign check 448
Similar as control panel 449
This is the ncesesary assignment here 450
Access name TO name if you want to control more access 451
I have to add 452
By manual 453
So... 454
This is for axis function block 455
There you go Double Click on Startup check 456
symbol browser a lot of variables 457
Is possible to 458
Trace 459
if Start up check axis busy done or okay 460
external encoders... 461
Start up chech is generally is okay or not 462
Peripheral devices are busy 463
Or okay or not it's busy because 464
It's waiting to sinamics side 465
So... 466
Let's go 467
The startup check and see the code there are some changes and in 468
Infomation here 469
Constant variables 470
There are some definitions Global and retain definitions 471
So here is the configuration 472
for 473
Startup check on axes side 474
Master System ID slave adress for sinamics integrator 475
I'm going to change for example 476
Master axis I don't want to check the last axis 477
Or I just 478
because you're used to project to false 479
Because I want to set the startup check okay 480
Yep if you have other control units profibus or profinet have to add here 481
get encoderstate 482
Is there any extra encoder right now in our project no 483
Here is the program code for check encoder states 484
Starttup check axes States 485
Here is a program for check the axis States 486
Next One external encoders States 487
Next one check peripheral of devices 488
In your network 489
and main program pStartupCheck 490
In our execution system is running in background task 491
Iat once 492
If you are set to bit here startup check restart it will run again 493
If you can trace here error state bits and 494
here some arrays 495
Axis okay 496
Or not 497
encoder is okay or not 498
You can ask this variables into your HMI screen to give diagnostic information 499
Operator or maintenance guys 500
The next thing is reading to Drirve cliq topology that are also some settings here 501
And definitions at the beginning 502
You can see the program 503
for Message handling is know how protected so 504
We just 505
Do modifications here on global buffer manager 506
for TCP IP combination there's a program as ST PCOM 507
PCOM 508
here you see 509
The port number of the local partner support number of the partner 510
And the default IP address is 511
Belongs to 512
Same subnet mask as service port 513
When you want to come to a PC with simotion 514
We are going to use this library with kinematics Simulation Center tool 515
To send and receive data so we have to adjust the parameters here 516
To set up connection 517
there are some definitions of message handling 518
and 519
Of course it's possible to make a folder to insert a folder And group 520
These kind of Library elements together 521
To be more organized 522
we did not downloaded our 523
Web pages so... 524
It's not possible to see or web pages on web browser 525
How can I do this procedure? 526
I'm going to 527
Open again 528
My project generator 529
and next 530
there is a option a last option downloads motion-activated pages to simotion 531
Next 532
I can give the project Path As 533
Step 7 534
It's really 535
Here 536
simotion system programming and project generator test 537
Okay 538
ping was ok and when I hit the download button 539
PGEN it is 540
Automatically detect which libraries is installed 541
Or imported in my project and try to transfer all of the 542
webpages via FTP server 543
to simotion CPU 544
This is one way to do that 545
actually 546
There will be additional files in my compact flash cards 547
And for the next machine 548
I have to keep it in my mind 549
It says transfer has been completed okay 550
So 551
These files are not included HTML in our project 552
so Additionally I have to do this procedure to create files 553
You'll see the case folder 554
On the user folder and simotion HMI files 555
simotion IT 556
Or 557
Config not there 558
applications interbranch 559
here see Downloaded folder and files 560
via FTP server from PGEN to simotion 561
Startup check 562
Images script... 563
This is why so now let's go again 564
Now there's additional tab named as user 565
As you can see 566
click that it's required to 567
be logged in before. Username is simotion and 568
password is motion 569
So 570
interbranch 571
Let's try the first one startup check 572
Startup check window 573
Axes is okay 574
External encoders are ok 575
There's an error due to peripheral devices 576
That's why the group startup check is not okay 577
Here is the error ID if you press this rest stop button that means the procedure real 578
List of it and run again 579
Diagnostic details here you see the name of axis 580
for encoders 581
Is it very useful 582
Next thing as second 583
Message handling 584
here a page 585
Similar to your 586
You know output window 587
I'm here in alarms window 588
Yeah you see her some messages but there's no text is because of the language selection 589
I hope it's like the proper language to see this messages 590
both on simotion side 591
and project generator side 592
So it's possible to 593
choose 594
Some filters or is possible to save the dataset or download the messages to your 595
If you see from your website 596
From this page 597
Or you can just show the 598
Archived messages to old messages in your system 599
You'll see the date and time and call 600
It's also very useful to 601
Another thing is 602
drive cliq topology 603
Right now there's no sinamics and drive unit connected in our system if 604
There will be some motor models or 605
sensor modules over drive cliq at the actual temperature 606
You have see also the target topology 607
It's really useful when a failure occurs you can diagnose here if any cable 608
wire is broken or device is not energized to find the problem 609
So the last thing 610
At this chapter is Axis function block 611
This is the faceplate for controlling or axes from the website 612
We are going to 613
See more detail in next chapter 614
on program side so easily I just set up my access and get the assumed control 615
via button 616
The password in my program is simotion 617
And after that 618
I agree. The priority so let's try 619
Just been able to axes 620
So 621
without simotion possible to test 622
Let's try to jog positive 623
There are some parameters here about the jogging 624
Or positioning 625
or set to move 626
Are you just see 627
actual velocity if there is an error 628
right now axis enabled and in standstiill state 629
You'll see here on the right side 630
jog positive selected at axis is running in 600 631
per minutes because the axis is speed axis 632
Is it possible to 633
Jog negative 634
Okay 635
Let's try the other axis give up priority 636
Positioning virtual axis 637
Resume 638
Control the same password 639
And the life sign of 1 second 640
After you lost 641
Your priority normally at this case 642
Let's say enable access 643
there are some parameters here we will use as default 644
Lets jog positive you'll see here actual position and command position and actual speed 645
Let's try to execute Homing 646
then homing is done set to zero 647
Access homed 648
Let's try to position axis as absolute in direction 649
of Position 650
Let's execute pos... 651
Yo 652
It's easy to use faceplate 653
And you don't have to 654
installed scout in your PC to control your axes 655
webside of simotion it features are really powerful 656
Still there are also several other kind of ready to use tools and application 657
Later on on your project generator 658
Open an existing project 659
Select from list and modifier project again it's possible 660
so then 661
For exercise 662
you will create a project and try to other possibilities 663
And that's it for now and see you later