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