hello everyone we are now at current chapter 19 2
Tips and tricks programming guide line here I have prepared for you 3
couple of Tips annd useful data about simotion 4
So 5
Let's start with the first one 6
simotional status update set operating mode to run state 7
how can we do that just select our simotion CPU 8
And go to system variable startup data and set to 9
RUN it says default in last operating mode 10
What's the case? 11
If you say a face with some problem during your mission working and for 12
For some reason CPU goes to stop mode after you 13
Are not on the field and operator tries to 14
Run the machine switches off and switches is on again but CPU is stand 15
at Stop position and 16
Somebody has to do set the RUN mode go to online 17
PC here set to run mode 18
Maintenance guys can use the rotary PLC switch to set the run 19
switch run again 20
That's why we prefer to choose year 21
Operation mode to run 22
Next one simotion properties web server FTP 23
Old OPC XML 24
All device provides such as functionality here on the properties in the window 25
settings 26
Normally you should select the option boxes Global device variables permit 27
OPC UA symbols active 28
with webserver or OPC server from the outside its writable and readable 29
Both Global Tech device variables and IO variables if you want 30
If you click web server settings in Hardware configuration you can just say 31
If it's activated the OPCUA here in your device if you want activate 32
FTP or telnet 33
So you should settings 34
And download your Hardware configuration 35
How to use CPU set to 36
power on Or reset 37
Although the settings will be effective 38
next number 3 39
Save Scout project with old version format 40
So we already know that you just click here on project and the 41
click old project format 42
That is a 43
Contacts here check the project board on compatibility 44
You have to set up the desired or destination version 45
Project format 4.0 for example 46
to Send your project backup to other system or other PC first unit 47
If it's compatible 48
Just save in old format 49
Before you click your the save maybe you should save as 50
If you want to backup your data you can just your click and project and record your data and 51
Project backup 52
That's it. 53
Next 54
Number 4 configuration of ALARMS error messages and HMI integration 55
So how do we do that? 56
we Open the configuration of the alarms messages to clean the answer 57
Messages 58
And select type 59
Message or operated message there is a checkbox your prompt 60
Printouts with HMI if you said it 61
Then our message will be sent to HMI at the meantime and you see 62
And there is another degree should make on the HMI 63
Unfortunately the new basic panels 64
For example KTP 700 65
Doesn't provide such functionality so that's what I call for panels are able to show 66
simotion alarms messages in alarm window 67
Let's open an example project 68
winccflexible is also support with old HMIs 69
It takes a little bit long 70
i will try version 14 also 71
Under your settings and connections 72
For confort panel 73
here conection 74
with simotion 75
HMI 76
when you click and open your runtime settings 77
here are severel segments here 78
Under the alarms 79
You'll have to set up your HMI connection with to alarms 80
Step 7 and simotion diagnostic than you are able to get the messages 81
in your alarm window that's it 82
So number 5 using language dependent text 83
if you just call your project tree 84
select dependent text 85
for instance 86
That's a new one 87
English Australia accept not okay 88
Turn your alarms messages also will be with 89
Different language 90
Configurable 91
and Your units 92
Support different language so in anytime you want you just can 93
select or switch between the languages 94
current language is turkish I can stay here with English at accept okay 95
then i will see 96
in My programs 97
And alarms 98
The other texts 99
Basicaly 100
So 101
Number 6 setting the system cycle clocks 102
Just right-click on your device 103
select set system cycle clocks 104
What are some factors 105
It depends on your power 106
Or the type of your CPU utilization 107
If you're running 108
Out of the memory or CPU 109
Utilization you have to adjust your cycle clocks here 110
The most effective 111
reference cycle clock is the profibus or profinet data cycle so that's why 112
The others are the factors 113
Maybe you should just go open your Hardware configuration 114
And have to change 115
Your deepest cycle first 116
because it is the base clock cycle and it has 117
influences in your CPU utilization and for the all of the tasks for IPO 118
servo on so lo 119
If you want to create more axis 120
with low level cpu 121
You lost some resolution maybe because you're ipo and servo running 122
This time twice 123
Or maybe 124
Longer than 125
Default values 126
But you can use the same CPU 127
with severeal axixs 128
So you see the factor 129
DP cycle 130
The next thing selecting technology packages 131
It depends on your application and Library you want to use to choose 132
When you right-click your device 133
You can select technology package 134
with different version also 135
if cam is enough because the licenses are different 136
If you need 137
To use the other technology objects you have to save the time extended and so on... 138
Number 8 file system storing project hard drive 139
CF cards 140
when you right click on your device you can click here to load file system 141
So it's possible to save 142
Your project as a compressed zip 143
You can select 144
Additional data if you want 145
Then specify the project directory 146
could be card reader or your folder 147
In your PC 148
And after that you can download your compressed zip file or without compress 149
You can copy all of project data to your CF card 150
Result 151
Connecting you can work offline and 152
Transfer your data from one point to another one 153
Next tip 154
number 9 155
Send a card project or copy archived project from CPU 156
Let's see 157
I'm starting to simosim 158
Solution is running 159
So I want to check accesible nodes 160
Searching for device 161
Normally if your connection established you should see here the CPU and the devices 162
It doesn't download it and compressed zip file 163
in your CF card 164
From the CPU to your system 165
From The Target system menu 166
There's a load context 167
After you go online the system 168
It's been enabled 169
target system and Assistant 170
Archive project to cards and copy archive project from cards possible 171
and First you have to compress your project as a zip file by project archive 172
This is a useful function that you have sufficient memory in your CF cards 173
After you finished your project 174
For prevent data lose or maybe another collegue go on the field for 175
Another machine 176
This is an easy way to get or some projects here, and creating a breakup for sure 177
So creating 178
backups for simotion 179
There are some other windows opened you have to close first 180
And the project is compressed 181
and then reopened 182
I'm going online again 183
Let's say 184
click cpu target system load save archive project cards 185
Let's set a call back up 186
now is sending our project to cards 187
It takes 188
of course couple of minutes because the file size is Maybe 189
40 mb or 190
15 megabytes 191
So it is done 192
I can find my backup in cf cards 193
I guess in user directory or 194
Let's search 195
Actually here 196
User simotion hmi project log 197
You'll see here you can download or upload via FTP 198
it is a source path and the date downloaded file size information 199
and source is possible 200
Next 201
number 10 202
Using context and drag and drop programming 203
If you need some information 204
about some system readable under 205
Axes technology 206
Object you open easy to just set up and click here to get some 207
Information also during program programming we will often use 208
Drag-and-drop functionality of the IDE 209
Is a case sensetive the axis master on your symbol browser 210
You're going to see 211
The items under your 212
Axis you can easily separate one and drag drop 213
without writing it by hand 214
So that's it 215
Number 11 replacing the CPU type with simatic manager in Hardware config 216
so with right click and open Hardware config 217
Is the similar interior TIA Portal Device and networks 218
For config or hardware and devices 219
I can click here and replace object 220
It is possible to select different kind of versions of simotion 221
different CPU types 222
one step it going up is always possible 223
but for the downgrading of your firmware 224
You'll have to follow at another way 225
You just export your technology objects 226
Since you have to create a new project with older firmware version type CPU and 227
after Second Step you can import your objects and manage to do that 228
firmware Project 229
Downgrade this way 230
Next number 12 user Administration for web server 231
with memory firmware versions 232
Let's say 233
I'm going to open the web server of the device 234
For older firmware versions the default password is 235
simotion and username is 236
simotion 237
on Another chapter give already 238
Look into details of the web server but basically 239
On the 240
manage config that are some 241
User and password section on the simotion to manage all of the 242
Users 243
Number 13 managing libraries for different CPU types and firmwares 244
so in our project that are several different kind of libraries for different CPU types 245
if you Right click and go to properties of the library you see which technology package 246
Will be used with this library and for 247
Which 248
Devices and versions Library will be compiled 249
I can select here 250
For update the library 251
I can hit upgrade button 252
now you see 253
It is automatic the upgraded to our version in Project 254
And the next stop 255
The second thing you should do first say ok and close the library 256
And reopen the properties window 257
Have you should say the desired CPU for Library to compile 258
for deep Notes 259
If there's the only one CPU in your project 260
It's always a good way to choose only one CPU and version 261
Because when you start the compile 262
Accepting compare your library it takes time 263
If you do all of the 264
Selected items under the settings 265
So that's where you can just save some time 266
Next number 14 axes technology object expert list usage and 267
config data change 268
If you go under your axes context and Hit 269
Expert list 270
You'll see the configuration data and system vars 271
By the way all of the tips we will 272
this course and training so these are just 273
Prepare list for you to don't forget 274
in the online mode that are some 275
Where was here Effectiveness will be immediately or after TO restart 276
Before you check something in your confirmation sites 277
You should press to collect changes 278
And after you hit the actor changes all the parameters will be written 279
In the 280
Next value here 281
immediately should be effective but if there is some parameter need to be to restart 282
You should eat here to activate To restart 283
So 284
If that's the case 285
It's important to know how do you do it 286
The topic will be 287
detailed 288
Going through during this course 289
It's just a quick information but it's also possible with system variables and 290
command Library functions during system running 291
So 292
Next Programming guide for downloading and run 293
For next steps in advance in programming with simotion I think you should offently the use 294
And the website for getting better and information 295
There's an FAQ 296
prepared in 297
2014 after firmware release of 4.5 298
then download in run is possible and 299
The table and contents are the system relationships 300
What should we use to do to download in run possible 301
So here is the unit concept 302
And for downloading in run mode 303
At this point maybe be 304
Some code added or new variables you should know that 305
cyclic task restarted 306
That means all the sources can be changed during cyclic run motion task 307
At the site cycle control point system determine which TASK are current active 308
That is necessary it inhibits units what for exchanged during run 309
therefore downloading in RUN is important to use separate units 310
POUs and data declarations that's why we are using structure text global 311
You can reach for the more recommendations for Change Of optimised programming at the end of the dictionary 312
Yes see here the logic and 313
How the system works execution system dependencies on other sources 314
Do you need a unit b c 315
What's the interface section is 316
Important for this case 317
First for downloading RUN setting you should set up in your setting 318
Enable 319
Checkbox after that at least you should say only create program instance. 320
So 321
Dependencies on execution system are scientific should be reduced 322
Changes made var Global block and var blocks of programs 323
can be loaded downloading run during run if it's permissible 324
Initialize variable values 325
compiler pragma syndication table saw you should add 326
compiler directive to your ST source 327
for ladder 328
You should right click at inside the paragma 329
And you should double-clicking interface settings 330
modify var retain 331
so when complete the source it's identified if it's not possible to perform in a downloaded in RUN 332
And you should get an warning information about that 333
There's an example 334
Alternative approach of an initialization of a variable value should be avoided 335
You certainly create a global variable avoid the initialization of variables in existence 336
We are leaving at the end of The Declaration section 337
Possible units for Global block 338
Connected with units is also possible 339
Download it in RUN programs in the Motion tasks attached 340
So it's your system possible to control the motion task 341
right click target device 342
Device Diagnostics and Task manager 343
And you can here controller motion task 344
It's empty because we didn't get our project 345
Maybe you should reset or disable the task if it's possible of course 346
Then you're able to download your program in run 347
When you're facing download is not possible during run 348
Changes are made to Hardware config maybe 349
when you modify 350
Your execution system 351
Then you did some modification to the address list 352
or you created or deleted on global device variables 353
And also need the created or deleted techno objects isn't possible to download run 354
So It Begins 355
Let's say yes 356
the system is running 357
First you have to switch to CPU to test mode 358
opearting mode test 359
Then you can just control your motion task 360
sorry debug mode 361
But I can control the Motion task enable task starts 362
Or reset Task normally my motion test 1 is running and waiting 363
I can disable the task starts 364
you see it is locked 365
motion task running 366
Stop 367
It's running 368
and so on... 369
It's possible 370
and recommendations for 371
Optimised programming 372
Do not call program units 373
A unit in cyclic task and motion task 374
It's always better to use the background and cyclic program so that 375
Use the option create program instance data one 376
If it's possible 377
add uses instruction in the implementation section 378
These connections are not inherited by other connected units 379
Decorative remain variables and hmi relevant variables in separate units 380
ST global 381
Create some dummy variables Global variables use Global unit variables 382
Then you have some reservation data after that is possible to rename and so on 383
So... 384
basic information 385
next tip 386
Startup task programming 387
And using startup check 388
so It's important now you should assign a startup program to your startup task 389
Will be executed after power on and CPU set to RUN state 390
After your machine energized 391
there are several models and 392
Communication via profibus or profinet or whatever that are dome drives with control units 393
Simotion maybe go into real estate 394
Before the system get ready 395
Before the communication setup 396
in that case 397
If you use your access technology object or other technology object object in your program 398
If the object is connected with Drive is available then it's okay 399
But sometime the technology object is not ready so CPU goes to 400
stop state 401
You should set up your 402
Execution task and fault task assign some program but it's not enough you should select 403
task config 404
error reactin execution fault tasks it's not the solution 405
So in that case basic then you can just say wait sometimes 406
10 seconds 20 seconds maybe simotion will power up after everything is ready. 407
This is a basic solution which all the technology acknowledge 408
After the wait time but this is a 409
no feedback from real system 410
If you want to know really your system is ready access already 411
encoders or peripheral device already 412
The reason 413
Application ready to use 414
And I think you have ordered it 415
Integrated 416
If the other example so that's why I'm closing this project and I will open the 417
PGEN Example projects 418
and 419
assign on your devices 420
there are some definitons 421
Number of Axes 422
External encoder this peripheral device 423
You can assign your to here reference and the name 424
Set up alarm devices 425
Bus or profinet an so on... 426
With a system function gets safe with you 427
and 428
after that 429
There are some other variable of the function 430
If gbo starter check is set to true that means your system 431
is Ready to go 432
This here 433
if you want to know more detailed information 434
There's another thing 435
For instance access OK or external control this okay 436
And 437
Yes you can see that are some arrays 438
Check access 439
one 440
First axis is ok 441
And use in your program 442
So 443
that way 444
For your digital or outputs 445
If you're using terminal board 30 sometimes it just 446
Get ready a little bit late 447
You 448
Used bytes and boards it's not so important what when you're using 449
Like this 450
Or like this you should use the get safe with you 451
and set safe value function 452
You see the parameters on the 453
context help 454
variable value 455
It takes a little longer time 456
To process 457
Then the classical way 458
but you are to be sure that your simotion CPU don't go to stop state 459
If your TB30 460
Not available 461
So basically that's it 462
And the NEXT TIP is related also with the 16 using the getsafevalue 463
setsafevalue 464
prevent CPU to go to stop States 465
After you have already seen an example here 466
Just say for the available is our drive axis with cyclic interface access mode 467
I'm not going to change it I'm just want to get with value as active 468
Or inactive 469
And it is return value of this function 470
Is true 471
That means 472
My axis is ready to operate 473
Basic that's the idea 474
Let's say next one 475
18 476
assigning sinamics IOs for simotion as measuring input and cam output 477
Let's make an example 478
Under sinamics integrated control unit 479
There's an input and output section 480
And first 481
We have to open 482
and Assign which IOs 483
I want to use in simotion side 484
So in that case 485
This one is assigned as the measuring input this one is assigned as output 486
And this one is assigned as the input 487
For example as normal input 488
After that or I'm going to use the Homing sensor or limit switches whatever 489
After that I will create a variable 490
select IO address type input 491
And assign the variable 492
I can use the similar way for the X142 input and output terminal box so 493
here you see our free 494
Digital input 495
I could assign this 496
Okay the system will create the symbol assignment for telegram 497
and 498
According to our settings telegrams arranged 499
by assistant 500
If you want to go to Look 501
Yeah here is telegram configuration on the communication 502
You'll see here addresses and types located 503
And 504
My 505
Input is ready to use 506
Next Step 507
Using text list and graphic test for enumerators with HMI 508
When you are working with simotion 509
I said before there are enumeration type variables 510
So when you drag and drop variable data type enum 511
simotion 512
To the HMI some integers value 513
For instance 31 means active 514
and 515
16 means inactive that's why you have to create some text list 516
Let's see any active inactive 517
You have to enter values corresponding String type of 518
entry active 519
inactive 520
So that today 521
You can enter an 522
symbol field 523
First select textlist you've created 524
And after the simotion TAG 525
Let's say to 526
Axis Master 527
and control enum active inactive 528
On the HMI sight you'll see is an double integer value 529
On this motion program site you can program with the enumeration as string 530
But for the HMI side you have to create the text list or graphic list 531
After that you are able to use your input output as symbolic or graphical 532
IO field It's possible 533
And the last one web server Administration with 534
Rotary switch to 8 535
from firmware version 4.5 and newer 536
the 4.4 537
I'm not sure that webserver administrations is changed 538
The old password simotion 539
username what's simotions in simotion 540
Afterwards you have to 541
If you have an factory reset or empty 542
firmware Cf carts 543
Then you activate your webserver is not enough to use you have to create your own 544
Administrator name and password for the first time 545
Than 546
You're not able to see this page because we are not logged in and if you try 547
simotion simotion it is not possible 548
Because 549
no administrator is created so 550
For the first time 551
If you 552
Set your simotion rotary switch to 8 553
On the left upper left side a security level you see low 554
That means anyone can reach 555
It each screen on the web server 556
You can create your admin operator or maintenance guys and passwords as well 557
At the second step 558
You just switch your 559
rotary switch to 0 default position again 560
you see here at security level normal 561
Then your users and passwords stored in your web server you can login 562
It's your 563
Username and password is also possible to send file here from your 564
PC 565
Or you can get your user database. XMl file from simotion device 566
for backup 567
Thanks for watching see you at the next chapter