So let's continue with our course 2
current chapter number is 20 3
And the libraries cam pack 4
Let's open our notes on program with simotion 5
This chapter you will learn 6
Libraries 7
PLC open function Library 8
And there are some examples of how do you use enable axis taxes 9
And creating custom libraries how do we do block program in libraries 10
Exporting and importing libraries 11
and Integrity libraries in or use a program 12
So 13
You see here libraries and cam package 14
in your command Library PLCopen io drives 15
There are several PPLC Open Access blocks 16
Single-axis 17
I'm commands for multi axis 18
Four controller IOS on drive side site there are some basic control functions 19
In library 20
And for function modules 21
Encoder models or cam controllers for instance 22
Or communication processors 23
blocks are designs 24
So for using cyclic tasks 25
It's possible also will be used in motion tasks 26
Yep 27
PLc open function Library consists of 28
Single-axis blocks multi axis blocks 29
camming gearing there is also a jog function 30
Ready-to-use 31
Here there's an example and able axis 32
The library is already integrated with Cam package 33
in simotion 34
If you call MC PowerBlock it's looks like this 35
Axis reference 36
Enabling 37
Switch mode stopped mode disable mode and so on that are some up on the right side 38
like status busy active error bits 39
so Other block is move relative to a sign your axis name here 40
If your trigger 41
Some variable 42
Execute 43
If access is enabled and there is no error 44
then job will be started 45
And axis 46
Try to reach as relatively a position and distance given here 47
With this velocity and this Dynamic parameters 48
and you can monitor or so at the meantime if your command is done 49
Or busy or activated 50
Or aborted by another comments 51
ar your error output if there is an error in your block 52
jog is rejected by to for example 53
You gets detailed words related to The error specification 54
The later on you can find what it means in your help system 55
So this is the standard block as PLCopen command 56
jog function block used to Traverse and axis 57
Looks like this forward and backward is possible 58
If your set logic level high in mode increments 59
You'll give yourself some 60
Increment value than 61
You can just 62
Work like 63
Position 64
Or inching better word for that 65
What is possible to 66
Press the button to jog on left and right 67
Also 68
Classical use 69
Next page 70
Creating custom Library 71
First of all we go to libraries folder 72
We just 73
Double click on insert Library 74
we Write the name of our library 75
after that at second tab 76
There are some devices 77
We can Define 78
With which devices or Library will work 79
Which technology packages with which versions needed to 80
run our function with this Library so... 81
if it is configured motion devices and their technology package 82
Property specified in library and error is output by the project compiled 83
project cannot be downloaded to Target device the crate as Library 84
As follows 85
You have to follow these steps 86
Open the library folder Double click insert Library 87
Just answer some name select or technology package 88
It's, device independent 89
That means my library will work in both 3 platforms controller-based Hardware 90
pc based 91
Or I'm going to plan to use some system functions 92
From cam pack I have to select 93
For example if I want to use MC power or PLC open 94
Function blocks I have to include 95
cam technology package 96
Or second example if I want to use Cartesian 3D 97
Path object I have to use Path package 98
Where do I select devices Pacific ? 99
There's a future here I cancelled 100
That'll all of this motion devices with firmware versions possible to create a library 101
With this IDE 102
I am going to select CPU 103
and firmware version 104
This one 105
Then this Library 106
it's only usable with 107
This type of of this version of CPU 108
And it's possible to select here DCB library with simotion 109
Is possible to use also DCC 110
Normally if I do that 111
And the next machine I'm going to use 112
The other type of drive based simotion CPU 113
Then when I try to combine my project I'll get an error your library is not complete 114
for your Device 115
Then I have to go in my library folder 116
Select the Libras and correct my version and 117
Related technology package version selections after that I am able to use the library 118
Let's walk through this way 119
there are some compiler options selecting Linking is always a positive thing 120
click okay 121
We just created or Library 122
Inside our librarian of units 123
Is possible to insert structure text or MCC or LADDER 124
Let's say I'm going to use the structure text 125
it is a new unit 126
here unit code 127
Let's try the it's the same 128
Editor 129
lets try ladder 130
I can create a new program or function block 131
in my ladder 132
Okay 133
Let's say input 1 134
input 2 variable inputs 135
variable 136
outputs... 137
Simple example to show 138
That's how can we use 139
function block from my library 140
Let's save and compile my library 141
right click 142
Accept and compile 143
It is possible to export and import as XML file for 144
Copy and paste to another project or another PC 145
So now there's two units and only one function Block in my library 146
How can I use my lib in my projects I of yet another external library from 147
My college first of all i will imports my library here 148
And after that I have arranged the version of CPU type and Technology packages 149
I have select corresponding with technology package in my CPU with 150
right click and select technology packages 151
I have to check the version so my technology package version is 5.2 152
And the library is difference 153
So let's try 154
I'm going to use this function in my program in ladder 155
So 156
When I drag and drop to this network 157
Let's see what's going on 158
If you catch at the backgrounds it is created at connection 159
Is library library one 160
as automatically 161
After that 162
I'm able to 163
Inserts 164
The function block but I think that is an error 165
Let's try to compile 166
You'll see here 167
error message 168
sources Library 1 reference is a package that is not currently mapped on device 169
TPCAM 5.3 170
5.2 is used by library is another version 171
That's why there is a version conflict I have to correct it 172
So Maybe I have to 173
Go and Right Creek select my technology package here 174
But 175
It's not possible to do that 176
then 177
If it's possible or go to my library 178
Correct my technology package version 179
As 5.2 okay 180
Compile Library again 181
if some function used by creator of this Library belongs to 182
new fw 5.3 183
That is not possible to downgrade technology package cam version to 184
5.1 for example I have to arrange the 185
Is it possible 186
Otherwise I have to change my CPU firmware version 5.3 187
Yes. 188
Let's compile again 189
It says the program ideas already defied that's why you cannot used 190
Yeah I have to arrange the names 191
Okay 192
so... 193
Right-click rename sometimes is not possible in properties function block 194
Exportable 195
At this case 196
Going to change my 197
Project site 198
I have to go out the 1st offline mode 199
Then try again 200
Okay know it's possible 201
Okay let's try again 202
Well looks like it's okay 203
we have created an instance for fashion block 204
So this way I'm calling 205
this function 206
Of this library inside my ladder program or network 5 207
Let's go to you 208
This is the library properties window here 209
And block program in libraries blocks can be created in MCC for testing 210
Yes debug function is not available for the library 211
block Created and tested in programs folder first and then copy to library in normal case 212
All commands except the following can be used 213
all task control, start motion test 214
all the commands for run time measurement cannot be used 215
all commands for message program alarms can be used 216
system functions of simotion device if the library is compiled independently of 217
The device cannot be used 218
So prohibited variable axis variable device available 219
Technology object 220
System variable is prohibited 221
System variables simotion devices if the libraries open independantly 222
It's prohibited 223
So if you choose independent of device it's a plus 224
There are some disadvantages here you cannot use 225
The simotion functionality 226
Some of the functions 227
Exporting and importing Library is 228
shown 229
This page your see XML file 230
Very openly used 231
Integrating libraries in all projects 232
We have to open the library computer store export-import as XML then 233
Set up project device object properties and have to compile 234
Information is quite good enough about Library's right now 235
There's a special Library created by experts in 236
Germany 237
The name is SEB 238
simotion easy-basic library and examples 239
Let's take a look 240
so I'm going to 241
Find 242
simotion set up DVD and 243
Utilization and application folder 244
And start to 245
Main homepage on web browser 246
Let's say 247
example 248
application easy projects 249
Project generator 250
This is another thing 251
tools documentations 252
Let's take a look at folder 253
i see here 254
Application simotion basics 255
applications 256
interbranch solutions 257
and simotion easy basics 258
And the units containing source code for alarm s using the point message 259
Define message example 260
Library basic functions LBASIC 261
handling analog io 262
Blah blah blah 263
That are very useful subunits to 264
Included this Library 265
And another library for CAM HANDLING 266
LTPCAM 267
used for 268
Simplified representation with HMI 269
Or printmarkcorrection 270
There's another basic Library 271
for temperature controller another Library a file axis 272
ready to Use 273
So there's overview of SEB 274
You can see here FAQ 275
German and English language 276
The SEB so what should I do 277
I'm going to copy this folder entirely 278
To my hard drive 279
it can be download 280
The latest version from website siemens support 281
Okay 282
Thanks 283
paste 284
If you wonder first you can just Double click and open FAQs 285
Yep. 286
Source 287
Here 288
Contents of a SEB functional short description and info 289
inFormation here about the library items 290
Subunits 291
Console 292
And the next document 293
Prepared as PDF file here 294
Scripting 295
As English 296
simotion easy Basics applications and tools and scripting doc 297
documents 298
Preparation import the script 299
It's been told in this statement in this PDF file how do we do 300
Important for scripting side 301
And there are some slides 302
Related to this library's the package simotion easy basic package 303
Contnents 304
And presentation 305
Here 306
scripting for units procedure 307
Units including program code library 308
Basic library and other libraries 309
next page 310
Elements 311
What or when we need is Library what's it for 312
So this is some examples on HMI sides and so on... 313
So... 314
manuals as it here you just extract right click 315
and Extract 316
Because you're going to need 317
The manuals of the functions and librarys 318
The first time you use 319
For example 320
the clock memory 321
Okay this is a basic block 322
There are 8 different outputs of this function block 323
You can just use this function to generate some pulse 324
duration 325
100 milliseconds 200 milliseconds or 1 hz 326
Similar to simatic controller 327
Then you can just lighten some valve or 328
Just give it a visual message to operator as red lights or 329
Yellow lights that allows other proposed to use this kind of bits 330
in program to make counting or create your own timers is useful 331
These are help files 332
The next thing 333
scripting 334
Here is the PDF file 335
For your information 336
SEB of elements important script and so 337
Right-click the project and Export inserts script folder 338
After that right click and import SEB. Let's do that 339
Script folder inserts 340
An export from 341
Lets fines are flre here located in my hard drive 342
Letter G 343
simotion system and programming Solutions 344
Script on a text file 345
That's it it's included in my project now you'll see 346
IOs important security procedure 347
An example for translating and executing 348
you will see here some buttons 349
accept that executes 350
Attention please! 351
Please on theselect main folder of SEB units 352
Let's go back 353
Extract units 354
ok This is the main folder 355
Let's select this one 356
okay 357
Executive script here there's a another window popped up 358
you can select the library 359
you see the details and subunits 360
script It's for us 361
Click okay 362
Import has been started please wait while basic library is importing 363
I see the information message in my 364
Window 365
So import has been successfully completed as you can see here 366
a new library is Added 367
script still Executing so I had to wait a little bit longer 368
see here units for device 369
And folder 370
script has finished 371
you can find local things script window 372
It's error messages and so on if you have facing with error 373
These aregood documents for programmers you should use 374
Okay. 375
Now I'm important as LBASIC library to my projects that are some other 376
Libraries for file axis hmi trace 377
For another proposes I just want to show you as an example how do you 378
use The library in our project 379
So I have to do the same thing 380
right click 381
Check the properties about version 382
It is device-specific 383
Okay no technology package is needed 384
At the compilation I have to set up my device type for driver 385
Now I'm using 386
the new version of simotion CPU so I have to correct my version here 387
Settings of this one after that 388
I can find in the combo box 389
By the way I have to say OK and reopen again 390
now it should be visible in my combo box 391
Yes your 5.2 392
And I have to compile the library before I'm going to use 393
accept and compile 394
It takes a little time because the library has become part or all of the 395
Devices with different versions 396
not just once again and again for different devices and versions so 397
That's what you took so long time 398
You can track information messages here 399
When you come by the device type for do I stop other device version and other device and so on 400
The library is ready to use 401
a short and quick example 402
I'm going to create a new network and drag - drop 403
For example 404
clock memory 405
I'm function block clock memory 406
Let's say it looks like not possible 407
No 408
Let's try this way 409
Still not possible 410
Maybe 411
i should 412
Make my own connection 413
manual 414
connections 415
library 416
LBASIC lib 417
Let's create an empty box 418
Let's say FB 419
Not possible to use the control + space so just click the combo box 420
FB 421
clock memory right here with enter 422
done 423
i Edit my function block 424
Yep 425
I can assign some Global device available to outputs 426
as build 427
Let's go online and download our new program 428
and IDE will check which Library are used with Selective Linking 429
and Just downloads if it's used 430
Let's add variables to my trace 431
And see by the way you can save your Trace as 432
External files 433
give a name 434
And you can load or call anytime from your 435
hard disk 436
Your see here some bits are changing 437
with some hz frequency 438
wait and see 439
Okay 440
You see different frequency pulses 441
Outputs from our function block 442
time diagram 443
The purple one is 444
Delta T time is 800 milliseconds 445
The red one 446
Is 1000 milliseconds and one second that means one hertz 447
For instance 448
Okay 449
That's it for now 450
and see you later with other courses.