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