hello everyone. With this chapter 31 we are going to examine some examples 2
with simotion 3
Actually 4
these examples are basically projects commissioned with simotion and 5
Related to real running machines 6
So my hands I have already opened 7
And my project that's is written by me and programmed by myself 8
For simotion and HMI site 9
As you can see I just opened the device and networks that are 10
several devices here you see or simotion 11
Programmed with TIA scout 12
so as I remember one of the machine is running in China the other one 13
it's in Greece 14
And the other one is in Turkey 15
So basically this is 16
a Project of the Cartooner machine 17
It's working 300 or 400 meters per minute that is a feeder 18
It's a beginning of the machine 19
To feed the cartoons properly 20
That are several servo Motors and axis 21
That's why 22
You see here the three control units 23
Is connected to main simotions CPU also there's a 24
profinet Device et200sp for collecting digital and analog IOs 25
There are two HMI panels one of them is touch panel comfort series 26
12" and the other one is basic panel 7-inch for operator 27
At the end of the line 28
also you see 29
There are two 30
sinamics 31
G120 series compact frequency converters controlling the blowers 32
Of the system 33
So basically 34
I have used to program and parameterize with Tia startdrive 35
You can see here 36
The Parmenter set to view the expert list different windows 37
You when you come here to classical works 38
First let's start simotion TIA side 39
After that Maybe we'll look into HMI design and see the pages 40
For the programmers it's always a good way to learn about different things 41
How did collegues or other users or experts do the programming and we can learn 42
Another from examining or going into detail and see what's going on really there 43
That it's a good way to make a progress 44
From my point of view 45
TIA scout opened 46
You see here that are some watch tables for 47
Groups and different purpose 48
Watch The errors 49
analog values or IOs 50
And there are some Library LBASIC LMCBASIC 51
modular machine and so on 52
sync feature of the simotion is only used with gear on and gear off 53
command so 54
The cam profile actually is not needed 55
That's why there is no cam profile in the program 56
And there's no encoder let's check the axes site 57
You'll see here the several axes 58
for burner units or for delivery and feeder stations 59
Maybe there's an virtual access as master 60
and the all of the other axis is synchronizing to this axis with a Gear ratio 61
Changeable or adjustable 62
there are several control units 63
As you remember if you are using more than six access 64
It is required to extend your performance with control extension or control unit 65
So that are 4 66
Different Servo drives in our sinamics integrated sites 67
and 6 drives for each other three units 68
and controller 69
So let's say that I'm totally 22 real axes and one master 70
axis let's check the cycle clock 71
due to performance of the simotion 72
D435 73
The bus data cycle on servo side and profinet Side Cycle time is 74
Set to 8 miliseconds 75
If you're going to low 76
I think at this case you have to 77
change cpu type to D445 78
Basically that's performance is enough with the settings to run the machine 79
let's check the execution system 80
As you can see several programs attached to motion task 81
Almost each axis 82
That are some programs assigned to background 83
Both ladder MCC and St units I have used 84
So there are some Global variables 85
for memory bits or assignment of input and output that are some Global Bits 86
As Boolean 87
commonly 88
at the address lists window you'll see 89
All of the addresses is defined 90
to use 91
For instance the analog input of terminal board as option 92
And the basic line module 93
Is used with drive cliq interface so 94
Is status and control words are described here 95
For the blower control of 96
Sinamics g120 drives 97
Telegram input and output words is described that means 98
i have usedThe blower to control in the classical way just like and simatic CPU 99
... 100
I didn't create an access a speed axes or drive axis for control the blower 101
At this case it's not required 102
It's not necessarily so 103
It's just a telegram described here and used by a function 104
In the background 105
What can I tell you a little more? 106
Global buffer maintenance and drive cliq topology startup check 107
Software package is generated by 108
PGEN and used in my project 109
So basically the ladder programs are prepared for the 110
Maintenance guys to monitor the system 111
So there are some logic here 112
I'm classical PLC logic 113
to Setting the machine ready that are some preconditions machine main startup 114
ladder conditions emergency button is okay start that check is okay 115
Ready to take off external encoders this peripheral device is okay 116
Basic line module is activated and so on that are some timers 117
There are some information about all axes is enabled or axis is geared or not 118
config Change Is Possible or not and so on that are some status lamps 119
For the line with red green or yellow to inform 120
the Operator 121
clock memories are used 122
For this case 123
As you can see that are some pulse edge 124
analog input and output function blocks 125
For scaling and offsetting and processing used 126
User Define 127
Default messages for bits for HMI alarms and warnings is 128
Basic the Created here is easy to Monitor and it's combined 129
as words to send HMI 130
Will you see the basic line module control the standard function of the library 131
... 132
Some logic here 133
for blower control And the Control Function block 134
emergency ok 135
blower control 136
Emergencies okay system is ready 137
And there is no fault on drive 138
we are using the speed control for telegram 1 139
And this is the user defined function 140
in The library 141
there are Other units on stations like the burner or skiver of the machine 142
These are the mainn Logic for contractor access 143
So basically that's it 144
On the MCC sites that are some programs assigned to execution system like startup and shutdown tasks 145
To prepare the variables or set some data 146
also the background task on the MCC is organizing all other that Motion tasks 147
and Motion task for this project 148
Has 149
The different kind of 150
Function 151
Like alarmS functionality 152
Create an error messages on simotion side 153
And you can configure here your messages 154
axis side register fauts 155
and warnings like this 156
so Another function of used in this project to read the drive data 157
With acyclicc reading functions to check the current 158
axis or current of motor 159
Or the 160
For instance the actual speed action power of the actual temperature of motor or alarm at your fault and 161
of the motor 162
For all the axes 163
so... 164
Change the axis config of the function 165
to Modified the lead screw value for example 166
Is possible to 167
defines a gear ratio 168
Or denominator with this function 169
it will handle all of the technology object that starts steps 170
so 171
Backing up and restoring go to CF card is possible with export unit data set 172
And import unit data set functions 173
and Like this so there's an access function block 174
we have already used 175
There's a logbook 176
for writing down some notes about the 177
Project for other users or in the future to remember what will happened during commissioning 178
it is a good way to take logs 179
There are several programs written in structions text for instance Library 180
Telegram structur status board control words 181
Function blocks analog in out 182
Functions to check if there's an error on Axis or is activated or it's standstill 183
There's a function below required to check access standstill then disable because 184
When you executive command the disabled and your axes actual velocity 185
is not equal to zero that means your axis is not standstill that you get an error 186
alarm message in your technology objects 187
there are some Calculation functions for calculate 188
kicker control and background part check 189
part counters about updating jog 190
velocity 191
These are internal library of the projects 192
Not like this maybe we should create a library 193
to exportable or inmportable next time 194
Is just embedded in our project 195
So... 196
And this other ST text program you'll see here 197
cam package Program units 198
basically we will input and output transfer for transferring the image 199
of Input outputs to memory bits 200
Language extensions are used for this case 201
There is a recipe structural text program for upload and download the setting 202
Of the machine 203
It was a recipe system products 204
There are some Global variables and structures for 205
part data 206
for axis 207
config data of axis configuration and diagnostic data for access mean 208
HMI variilables 209
The single structure is the best way to choose 210
Later on it's easy to use with recipe system 211
And so on 212
Axis definitions made here 213
drive data 214
LMC basic axis function used 215
So all of the axis controls located here 216
And the programs for start up the Axis setup assigning the constant values 217
Assignment of Technology objects 218
leading values to the Axis 219
The other parameters for emergency stop at homing and gearing and so on 220
That are similar Programs located in the one unit access control background access control 221
about for example 222
There are some speed ratio parameter given by operator in HMI screen 223
There are some assignments 224
Gear ratio change function instance 225
So 226
As you can see 227
and let's check one of the axis Configuration 228
There's no external encoder So only one axes data sets 229
Is working in IPO cycle 230
Here you see the drive of the control unit 231
encoder settings and reference variables and so on 232
As mechanics you see here the corrected 233
Lead screw pitch value 234
and for homing 235
no active homing is used 236
It's case 237
So it's not required for breaking Roll 238
And you can see here the monitor settings as middle unit as I said units are 239
changeable so 240
We just used your meter 241
Positioning meter per minutes as well as the setting for instance that's why 242
all of the parameters given here and standstill 243
tolerence 244
Basically as meter unit. 245
so It's enough information for the simotion side 246
It's always easier and faster way to understand a machine from the HMI side 247
That's why I'm going to show you HMI overview with simulation 248
TIA portal crushes verl well ! 249
It's what happened something and he's asking scout must be excited do you want to save project? 250
no 251
Okay 252
Let's try again 253
with older 254
Tia portal version 14 255
As I remember first machine maybe commissioned with version 14 and second machine 256
Yeah maybe I took and upgraded to version 15 257
you see here the CPU is overloaded maybe that's why it's crushed 258
Or RAMUSAGE of my PC to High 259
But this is also the bug of TIA portal of course 260
It will happen on the several PCs 261
So let's try to open to Comfort Panel 262
as runtime 263
So it says the same thing 264
I'm going to show you the 265
Screens only at this case 266
That's why we don't want to continue with the TIA 267
with simotion 268
This is a start page 269
This is the first page of the machine 270
You can hit the Main menu the maintenance 271
with user Administration 272
So let's say 273
Go to main menu 274
As you can see here 275
There's some design 276
line speed and part counter 277
Water in oil temperature 278
Is like a template it's always there you see the reset button 279
other Going back to previous screen 280
there are some information in the top of the screen the screen name 281
Emergency stop status machine is ready or not all access is synchronized 282
Or not infeed unit States and date and time 283
On the left side that are some Buttons to control the menu 284
So... 285
There are some buttons to switch between screen and pages on HMI 286
Let's do this single speed ratio 287
You can here is adjust 288
The speed ratia gear ratio during machine running 289
On the run time 290
For the several servo axes 291
there is a drive cliq topology view For the maintenance guys 292
About the simotion and sinamics products and 293
How do you connect the ports 294
On the HMI 295
For the control units 296
These are useful information for the maintenance team 297
And you can see here to contact info alarm window 298
There's a trend window 299
For monitoring the actual speeds 300
Or current or whatever about 301
And motor 302
Operator can use the recipe screen to organize the recipe 303
So another thing is function trend 304
and diagnostic window already ready to use object of the Comfort HMI 305
So... 306
In the parameter window of the machine you see here that are some parameters sticker time 307
seconds 308
Maximum line speed as meter per minute and so on 309
There's also some section 310
Is password protected you need to be authorized to enter 311
So for the motor and drive 312
This is a 313
Designed screen 314
for... 315
Monitoring actual speed torque power and current of the all of the 316
drives and axes 317
another screen for controlling the burners and the blowers 318
In the middle of the machine 319
For the maintenance adjust click some button to jog to access left 320
or right 321
One by one 322
and you may see here the startup check status of the 323
axes 324
all encoders are okay all axes are okay or not 325
you may see the status of the access is in startup phase 326
or is active 327
By the way 328
We are using here the enumeration type variables so we have to create 329
Text list or image list 330
Use the enumerators 331
Because when you drag-and-drop enumerator available for instance A system variable of axis 332
TO object you should just see 14 or 6 as numeric 333
So if you get to see the string value of the variable 334
Then you have to use a text list 335
Animation startup check TO state and 0 means startup 336
and 1 means ready 337
And to 2 means TO fault and so on 338
So it that way you can use 339
ENUMERATORS in your HMI screen 340
Yep. 341
skiver feeder change screen service parameters Ramps 342
you can assign acceleration and deceleration ramps for 343
Access function block is possible to calibrate from here 344
and calibration steps 345
for-axis config data change and so on... 346
It's possible to enter your password as a maintainer guy and 347
Calibrate your other work input and output radio with offset or multiplier 348
and for monitor Drive fault status 349
That are some sinamics text list for alarm 350
You might see hear the cause and what to do about the remedy for the feeder 351
For side register or whether so on that means in our 352
Program with functions we get the alarm and fault code from the drive itself 353
and used here for 354
diagnostics 355
Contact us information 356
Different job screen for controlling the HMI screen 357
Online and offline mode stopping runtime calibrating the screen 358
it is possible to stop and run CPU from here and so on 359
So basically that's it and the other 360
7 inch HMI 361
There are some 362
Similar Pages for machine Control 363
Design is a little bit different because it's located at end of the line and the comfort 364
HMI Is located in the middle of the line 365
It's like a member I said that is a basic servo drive 366
sinamics V90 367
For the torque control 368
pressing 369
The pieces on the feeder unit 370
So it's not profinet connected that's why you don't see it in our system 371
The vasic panel is used for just the basic proposes 372
you see here 373
The main menu is 374
So much less options than the other one 375
I think we just finished to examine project 376
and If you know and understand what was going on inside the project 377
And how the system works 378
And how to program an approached 379
Create and configure the hardware 380
this Topology is adapted as you can see here the profinet 381
draw with the green 382
Lines the inputs and outputs 383
So 384
When you replace a device that it's possible to automatically to assign the device name and the 385
IP address of the new device 386
There are some safety functionality inside the drive 387
Maybe the profisafe is used 388
sinamics sites 389
Because as you know simotion doesn't 390
Supportive profisafe 391
Only the drive functionality is can be used 392
When you go under the 393
sinamics you can just see 394
Under the drive and safety Integrity functions 395
It's used also as basic sto 396
In the 397
Example here 398
So you may see the name of the drive object 399
Alignment and 400
Telegram addresses in your Hardware 401
i think we have Finished 402
For this project 403
Let's say open the another project 404
As an example 405
Written In classical Scout 406
So 407
As you know Braille is a special alphabet 408
For the disabled 409
friends who just can't see 410
That's why when your buy 411
some medicine from the pharmacy it should be a braille colded 412
For these guys and 413
This machine is used to create and braille codes for the product 414
There's only one or two 415
Servo drives 416
Synchronize to a measuring input during the product is 417
running on conveyor 418
Then you just 419
Take a snapshot with measuring input of your external encoder 420
As an actual position 421
then on the program side your creates buffer for adding 422
Actual values 423
And there's a distance between your sensor and the your station 424
Your station with one rotation or with several rotations is able to 425
Process the braille code into your unit 426
at this case The setup is changeable that's why you are using the recipes system with different patterns 427
As mechanically there are some discs and operator 428
Remove the one code and 429
Replace the other code and enter some parameters in your machine. 430
then able to run again so with a different product and different setup 431
In that case 432
You have to 433
Use the cam profile 434
Because you're synchronizing 435
After you detect the measuring input and the actual product 436
For instance product length is 10mm 437
Distance between your product and station is more than that 10mm 438
That means 439
There might be four or five or more products in your buffer 440
You can see here basically it's sinamics V90 profinet used 441
With the new system 442
So let's open the Scout side 443
It says the project is an older version lets convert 444
We don't want to write protection yes this time I don't want to change 445
anything 446
And there's a virtual Master there's a axis z 447
For adjustment of the height 448
Off the all rollers 449
To make 450
Better scratch on our product 451
It is an adjustment axis 452
Up and down rollers 453
Let's see sometimes it's connected to an access 454
And for this machine that are just one drive to control the 455
2 of both roller together 456
And this is a servo 2 457
With an absolute encoder 458
you may see here 459
So we used 460
sinamics basic drive for just adjustment of the 461
Z axis 462
Okay 463
That are some cams with someone to start up cam there and stop Cam 464
So if your Cam is running with your real system you're not able to interpolate 465
that's why it's the meantime you have to create the other cam 466
to Make your calculations 467
Between actual position settings and so on... 468
It's the end of the cam cycle than you assign and attach Maybe 469
Your other cam for the other products 470
Or continue to process 471
In your buffer 472
So as libraries user library basic converting library 473
Axis function 474
message handling 475
profibus Distributed peripheral library is used 476
There are some scripts that means project generator used to create 477
You'll see here the program units of the library's related 478
There's some MCC units 479
Created by user 480
Make some program codes 481
About the machine 482
There are some structural text embedded in our MCC program that are some calculations 483
you see here case state 484
You see here the case status 485
case auto 486
consist of 487
Several branches 488
Normally we should answer hear some comments about what's the case one 489
Meaning 490
So it's more readable 491
For the other collegues 492
at Case one 493
There are some initialization 494
Two objects in case 2 495
That is just 496
I didn't want to Case auto case home is 0 497
At the chase 4 498
Enable simulation 499
Is set that virtual Master is enabling 500
The testing to machine Maybe 501
Have this case 6 is home if the virtual master 502
There are some motion comments in 13 for example 503
and in Chase 21 For instance if it's not 504
cam create and it is okay and cam creation error not exist. 505
You're just cam on 506
followin axis 507
I opened the project as write protectable read-only so that's why I can change 508
anything for your notes 509
So, name is TO cam real name 510
Actually this is A system variable object is assigned to a real cam 511
So cam direction posisitve evaluating as absolute and no cyclic process 512
Automatic program is structured right here 513
by just a simple case brunch 514
There's a startup program 515
There's a homing program Maybe 516
Before you use absolute camming you have to 517
home your axes 518
What are some disabling, there's an external encoder that on off all functions 519
There are some logic structure here 520
to Jump The Next Step or skip the step or whatever 521
Enabling axes 522
if Is Axis of 523
Active config data 524
And encoder the type is not the cyclic absolute 525
And then you just use the home commands 526
There are some errors here 527
Because 528
After later on the type of the motor is changed the previous parameterization 529
was active homing 530
You see he is an absolute encoder 531
and the last motor encoder was incremental type and it's changed to absolute 532
But I'm so so normally simotion Scott doesn't check 533
The system during compile that's what you have to double click your comments 534
you need to 535
Modify and correct your code 536
So keep it in your mind 537
There are some shifting 538
In the axis up an access down measuring system 539
to Synchronize Maybe 540
If you see the logic 541
of the homing procedure 542
Also for Rolling adjust that are some jogging functions used 543
for axis up 544
Yep. 545
lets see our cams 546
So now by default is empty will be created during runtime 547
Other one cyclic cam also empty its will be calculated and interpolated 548
during runtime with create cam function 549
That's why you don't see 550
Any data in your cam table 551
Let's see the inputs and outputs 552
You'll see here the digital input 2 to is used as measuring input 553
For creating the buffer of external encoder there is an external encoder here 554
It's coming from servo 2 to encoder 2 555
It's resolution is 5000 556
pulse per resolution 557
so in mechanics you define 558
for homing 559
Just incremental Homing used as default setting on encoder type there's no Homing cam inputs 560
Let's see the execution system 561
there are some task 562
added to our 563
System 564
startup task 565
message handling at MCC starter 566
maybe The program is running in the background tasks that are six programs startup 567
Check background test 568
line module control in cam process 569
And is it Z axis Control Maybe 570
So let's see on the structure text 571
Is is like 572
my FB consisted that 2 function 573
User functions 574
There are some Global variables here Defined 575
For the cam process 576
There's a dat type that are some functions created 577
create cam profile and for measuring buffer 578
and user 579
Call cam function from any other program 580
So... 581
There's another structure text as CAMFB 582
For Create cam 583
there is a 584
Function that are some parameters 585
There's a case and loop 586
Is working inside the cam 587
Related for for different 588
Kind of choices with segments types 589
sTraits polinomial 590
5th agree or cycle or 7th degree 591
You will see here the coefficient used to create the segments and 592
Second Step segmented attitude table 593
And after that the cam table need to be interpolated 594
This function deals with all of the necessary things so 595
Other function is used for the 596
Similar reason to resetting the clearing the cam first and adding 597
Segments and interpolating cam 598
Basically 599
so for axis control there is other function here 600
maybe it is not used 601
Because the conveyor is controlling 602
By answer system so 603
Basically that's it Scout project 604
Let's close and take another one 605
to Look into 606
It will be 607
TıA portal version 15.1 project with simotion 608
It's a roll feed of a progressive press decoiler 609
During press running in automatic 610
progress 611
You should just control the 612
Metal Sheets and the coil 613
To feed the Press 614
I want to show you the difference examples 615
To see 616
And compare the projects on The hardware side on the software side so it's important to 617
Different kind of projects because the 618
You know that requirement it's different that you can just use 619
Several functions of the simotion system and firmware provide to you 620
with this way 621
you can use different functions and gain more experience 622
i think for beginners 623
first of all 624
This is a long way 625
A long shot Maybe time passing 626
And I think you should 627
use the tools and add some tools in your toolbox 628
By reading some documents or getting into detail View 629
Other projects and so on 630
So... 631
at this Project I've commissioned 632
one of the our Old customers 633
In Turkey 634
In 635
The beginning of this year so 636
here you see 637
PLC 638
et200sp CPU 639
type is 1500 640
this CPU for collect all of the information as digital and 641
Inputs outputs 642
And specially for the safety regulations 643
basically simotion is communicated with this 644
S7-1500 CPU 645
Sending and receiving some data or profinet 646
Emergency stops 647
Or 648
You know the cell entrance door locks or 649
The switches 650
cam switchs for example 651
Position of the press ram connected here there are some relay 652
outputs and safety signals 653
and 654
Same time 655
You'll see here the press CPU 656
It's programmed and commissioned by simatic manager 657
we use just 658
converting 659
old CPU as a new CPU and 660
make a Profibus communication line 661
Because the profinet of the CPU used for another proposes 662
Between simotion and the Press 663
We are sending and receiving some data 664
for Recipe change or 665
The actual stroke rate of the press and speeding up or down to our system for instance 666
And you can integrate 667
And press and rollfeed together in one project is possible 668
I think we should first look on the HMI sight because it's always 669
easy faster to understand 670
Not the details maybe but the main aspects the main function of the machine 671
So maybe I can just start the runtime here 672
It will take a couple of time 673
a few minutes 674
It's compiling the HMI when I do other thing is a project 675
Or create something new it will be canceled that's why I have to wait right now 676
So normally this is the last example project that I want to show you 677
I hope it's a helpful 678
Or useful to 679
Show you or teach you about how do we configure our projects 680
Or design HMI 681
Or maybe you should get some information 682
and have an idea for the future projects 683
It might be start in a short little time 684
maybe Some seconds afterwards 685
there is not so much screen 686
Just the control 687
roll feed 688
side 689
So this is basic HMI 690
here Adjust screen if you click here 691
You can get some contact picture and information about our company 692
So this is the main screen 693
There are some buttons on right side there are some images about the section of the machine 694
And you see here the name of the page 695
If you click then you go to manual movement screen to control 696
Your 697
coiler car or straighteenr 698
Up and down or break open break close 699
I'm decoiler that are some 700
near side 701
Adjustments 702
Just 703
Use this Buttons to 704
Manually move left or right there are some hydraulic system 705
This is the roll feed 706
and Controlled by are servo motor that are some adjustments 707
There's an external enCoder 708
controlled with pnomatical valve and so on 709
The previous page 710
you will see here 711
manual inching buttons or the roll feed 712
actual and set positions or velocity and some status bits 713
About the Press site 714
You'll see here 715
Some cam outputs related to 716
press movements 717
There are some data taken into account and comes from the profibus 718
communication actual stroke rate stroke rate and there are some states bits 719
And so on 720
And the next thing is is possible to use the motor encoder or the external 721
encoder position 722
And we used access datasets for that 723
So it's basically that's it that are some pages 724
User password entrance 725
There are some pages about the system 726
Control to user Administration and the different jobs 727
and Language change 728
setp CPU to sleep you to stop around mode to adjust the brightness of panel and so on 729
and here 730
This button is the same if you just click the function key or the touch screen is the same 731
There are some parameters 732
For the rollfeed length or automatic speed manual speeds 733
There are some timers for 734
decoiling 735
And here you might see the 736
Acceleration 737
Deceleration ramps or 738
velocity 739
Settings with 740
Limitations for manual or automatic mode 741
Yeah that are some status bits about the axis Drive is enabled or there's an error 742
Or is homed 743
and so on HMI Design 744
let's check and see 745
simotion side 746
it is still running machine 747
By the way 748
As you can see that are here some scripts and variable tables prepared for watch 749
Some groups 750
IOs or variables 751
There are some libraries basic 752
LMC basic or createcam 753
And so on... 754
Maybe the couple of them is used only 755
So on the sinamics integrated side you'll see only one drive 756
For the Rollfeed 757
And it's attached to a axis 758
technology Object 759
You'll see here is the tool that I said any of the book 760
Maybe you'll see here later on there's an external encoder there 761
It's not assigned yet 762
because external encoder is connected here 763
Let's say that 2 cams 764
I'm in the execution of system 765
Some motion tasks attached you see error reaction 766
Axis controlled uncontrolled change axis config data read parameter 767
Programs attached to motion task 768
Alarms is used 769
The definition of the messages 770
and for the background task there's an IO communication structure 771
In our program there's a folder and Library program units is 772
Organize inside the folder 773
For Access Control 774
you may see here 775
Program-related 776
To our axes 777
LMC basic access function used here 778
axis rollfeed 779
you see 780
The inputs and outputs 781
For external encoder control 782
similar way 783
so mainly all of the program code located here 784
On the later side that are some also Logic 785
for smart line module control automatic movements manual movements 786
decoiler movements because I said there's a 787
vector drive for the decoiler that are some speed calculations 788
This is the basic organization block 789
Program for pulse bits selecting manual or automatic mode 790
there are some communication Bits checking the life bits 791
Communication is down or it's okay 792
with input code transfer program block 793
Real inputs to memory bits with filter times 794
Are smart line module Control Function block located its program 795
It's the symbol you're just a sign here your 796
peripheral input and output variables 797
Of course you have to create the symbol first 798
from here input and you just select from the list 799
Is the infeed 800
Status word 801
You know structure is ST_DB 802
With new versions 803
Use the button here to read your program more easily and create some Region 804
That are only available definitions here used as a datablock 805
For IO communication between 806
1500 CPU and 807
simotion 808
There are here some arrays 809
defined on profinet 810
with 811
64 812
actually between the step 7 300 813
Via profibus 814
and the 815
data device your simatic perinpress 816
peroutpress 817
between press and rollfeed 818
That are to see if you see if you communication one of them is press and one of them 819
Step 7 1500 safety side 820
there is a function used for creating a byte from the bool or from the 821
double byte to word 822
There is a marshalling procedure here 823
Getting data and converting to data types from double word to real 824
and double integer and so on in both directions for getting data and sending data 825
with this way 826
And last the variable assignments to structure IO transfer 827
simatic simotion side 828
depends on CPU type 829
if you use Big endian data type and little 830
indian data type than your btyes of the words 831
Rotated that's why you have to correct them 832
normally 833
on simatic side 834
We just created data block with the template or UDT 835
You can see here the basic program 836
There's a FB to write logic to send data and receive data 837
simatic side is really simple you just used a 838
get profinet IO material and set profinet IOs 839
That's it 840
peek and poke commands 841
And there's no marshalling needed on this site 842
Because I have control of is simotion 843
Let's go and see the data block 844
PLC to PLC communication UDT simotion to simatic 845
I didn't named 846
Because 847
I wanted to be 848
It takes a time when you change your variable name 849
So I did make an assignment 850
It's save some time 851
for simotion side all of the assignments located here 852
Unfortunately it 853
take a lot of 854
code lines to 855
arrange and deal with marshalling 856
But the simatic side is very simple you're just using two comments 857
This is the program about communication 858
There's a library structure text here that are some functions and 859
function blocks 860
To check life sign create a 861
Profile or positioning 862
Is position reached check function below contract the telegrams for the control unit 863
All the telegram one and so on... 864
Eventually let's check the MCC program 865
There are some programs in IPO for testing 866
axis 867
Copy ram 2 rom procedure 868
And for startup task maybe resetting the alarms 869
And for background task organizing the motion task 870
if It stopped and restarted by 871
Background task so basically 872
That's what I do 873
So main program is running in St Axis Control 874
and main Logic for manual in automatic mode is running at the ladder 875
So this easy way 876
So everyone to monitor the ladder and if the maintenance guys 877
Don't know 878
Required information about the structure text 879
It's 880
for 881
other maybe hard to monitor and understand so 882
That's why the maintenance guys is 883
not requiered to go here because the motion commands are working axis functions 884
So they can just monitor what's going on on the ladder site 885
that is the main idea 886
To creating the programs with MCC and structure text together 887
So I was just finished 888
For this chapter 889
and you can search and downloads some different programs of different machines 890
or Operations 891
We didn't use the path object in our project maybe there is a project or 892
Handling project with 3D Cartesian so you have to use the path object to create your program 893
In that case you would use the other comments from your library 894
and i think from my point of view you just see and learn how to use 895
the enviroment with simotion scout and logic and approach 896
TIA sites for the simotion 897
You just create your Hardware here 898
With the new version 899
you can Create and commission your sinamics side here 900
Or you choose to go to classical way and 901
maybe create and configure sinamics drive here it's also possible 902
after that On the program side you already 903
Get the 904
All the chapters to learn about the technology objects and the functionality 905
So it's up to your from now 906
Thank you for watching and see you next time