Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:01,080 --> 00:00:10,770
OK, let's continue from the previous example of getting status information from the CPU this term was
2
00:00:10,770 --> 00:00:21,770
try to use a different SSL number to get the status of the LEDs on the modules.
3
00:00:22,680 --> 00:00:23,130
Okay.
4
00:00:23,460 --> 00:00:29,280
Um, we'll also use the, uh, system function called fifty one to do this.
5
00:00:29,760 --> 00:00:32,270
So let's get into it now.
6
00:00:32,590 --> 00:00:41,430
OK, uh, like I said previously, if you want to know more information about this particular MSFC,
7
00:00:41,940 --> 00:00:46,980
you can just highlight put your cursor at the function call and then press F1.
8
00:00:48,900 --> 00:00:50,370
But what I realized is this.
9
00:00:52,170 --> 00:00:53,430
There is one
10
00:00:56,400 --> 00:01:06,690
function that I use quite often, which is not shown here is actually, uh, the number zero one nineteen
11
00:01:06,690 --> 00:01:09,200
zero one one nine one zero zero one nine.
12
00:01:09,870 --> 00:01:11,220
I cannot find it here.
13
00:01:12,400 --> 00:01:15,180
OK, I don't know why not showing this help.
14
00:01:16,260 --> 00:01:30,180
So I have gone onto the Siemens website and that the PDF for us to reference to and I'm using this as
15
00:01:30,180 --> 00:01:36,960
an example so that we can learn how to use the AFSC properly.
16
00:01:37,890 --> 00:01:41,910
Um, let me just go to the
17
00:01:46,260 --> 00:01:47,160
page here.
18
00:01:52,800 --> 00:02:00,210
OK, this is the this is a section I want to focus this video on, we want to wanted the status of the
19
00:02:00,210 --> 00:02:01,400
module LSD.
20
00:02:01,410 --> 00:02:05,210
OK, well, what are we talking about when we talk about stress?
21
00:02:05,220 --> 00:02:13,770
More LSD, we're talking about the are the run, you know, to stop the battery for LSD.
22
00:02:14,790 --> 00:02:19,860
If you're in the redundant system, you want to know what there's zero one right to.
23
00:02:20,910 --> 00:02:23,730
This is what we are trying to do in this video.
24
00:02:24,150 --> 00:02:31,580
And also of this limpets is on his off or on or is it flashing, flashing normally a flashing slowly.
25
00:02:31,590 --> 00:02:34,230
OK, so how do we do this?
26
00:02:34,230 --> 00:02:36,250
OK, like always.
27
00:02:36,250 --> 00:02:43,740
So put both on the same page so that we can reference to it, uh, at the same time.
28
00:02:44,670 --> 00:02:47,610
OK, let's make another
29
00:02:50,220 --> 00:02:52,470
network and then we'll use the same network.
30
00:02:52,470 --> 00:02:56,130
Call same person, call MSFC fifty one.
31
00:02:56,610 --> 00:03:06,210
OK, uh let's open this data block and then because we have already used these, we're not going to
32
00:03:06,470 --> 00:03:08,370
use them, we're going to make a new one.
33
00:03:08,650 --> 00:03:20,670
OK, uh so I can just copy this but I cannot just pace it here because it's going to tell me I have
34
00:03:20,670 --> 00:03:23,550
to duplicate it, uh, declarations.
35
00:03:23,910 --> 00:03:32,750
So I'm going to make, uh, new structure here, uh, let's call it, uh uh, OK.
36
00:03:34,040 --> 00:03:36,270
And then we're going to put everything inside here.
37
00:03:36,300 --> 00:03:44,220
OK, but like I mentioned previously, um, I need to make sure, uh, because the data word, OK,
38
00:03:44,430 --> 00:03:52,590
that data record is different, uh, for each type of SSL ID.
39
00:03:53,160 --> 00:03:56,850
So I cannot just simply defaulted to sixteen.
40
00:03:56,880 --> 00:03:59,850
I have to know exactly how many is going to be OK.
41
00:04:00,870 --> 00:04:04,860
So let's go into this function here.
42
00:04:04,860 --> 00:04:16,350
If we're going to use, uh, uh, let's say zero zero nineteen, OK, the SSL, the data record will
43
00:04:16,350 --> 00:04:24,840
have the following structure, an index of one word and the on one bytes and in the blink of one bytes.
44
00:04:25,830 --> 00:04:27,270
OK, so.
45
00:04:28,710 --> 00:04:31,530
And how many words in total.
46
00:04:32,640 --> 00:04:37,570
OK, let me define the data records structure first.
47
00:04:37,600 --> 00:04:47,160
OK, so I'm going to make it a structure and then it's going to be index of one word.
48
00:04:49,840 --> 00:04:56,080
And then all of one fights.
49
00:05:06,730 --> 00:05:13,290
And then in the blink of one, but.
50
00:05:13,570 --> 00:05:24,460
OK, so this is the data recorder structure now I have to find out how many data structure of maximum,
51
00:05:24,700 --> 00:05:32,620
OK, you always have to define the data recorder to be the maximum because you don't know how many,
52
00:05:33,130 --> 00:05:40,030
because it's too if it's too short, you will get all the information you want to get from it's OK.
53
00:05:40,840 --> 00:05:42,130
If it's longer, it's OK.
54
00:05:42,320 --> 00:05:48,070
You just you just have some spares at the end, but it must be at the maximum possible.
55
00:05:49,780 --> 00:05:50,380
Required.
56
00:05:50,500 --> 00:05:57,550
OK, so in this case, we just go through this and see how many possible.
57
00:06:00,350 --> 00:06:03,980
Lights or LCD is capable of returning.
58
00:06:04,010 --> 00:06:06,710
OK, so one to.
59
00:06:07,830 --> 00:06:14,790
I'm just going to get one, two, three, four, five, six, seven, eight, nine, 10, 11, 12,
60
00:06:15,270 --> 00:06:18,090
13, 14, 15, 16, 17, 18.
61
00:06:18,090 --> 00:06:18,430
Right.
62
00:06:19,380 --> 00:06:21,090
So it must be at least 18.
63
00:06:21,280 --> 00:06:21,740
OK.
64
00:06:22,110 --> 00:06:23,480
Oh, OK.
65
00:06:24,420 --> 00:06:29,110
Once you have this, we have defined this structure here.
66
00:06:29,130 --> 00:06:29,970
We need to save it.
67
00:06:31,940 --> 00:06:33,050
OK, we can tell.
68
00:06:33,100 --> 00:06:36,280
OK, ok.
69
00:06:36,290 --> 00:06:39,340
Now let's put this aside and we can go back to here, ok.
70
00:06:40,350 --> 00:06:48,930
Uh I say OK, just open this as well so that we can refer to it as well.
71
00:06:49,260 --> 00:06:52,820
Uh, but it's like this OK.
72
00:06:58,130 --> 00:06:58,580
OK.
73
00:07:00,080 --> 00:07:00,740
Uh.
74
00:07:04,150 --> 00:07:15,490
The quest we're going to I'm going to use this before request, so it's going to be as MSFC 51 and a
75
00:07:15,490 --> 00:07:21,700
square deep thought, our thoughts are.
76
00:07:22,460 --> 00:07:22,900
OK.
77
00:07:27,430 --> 00:07:33,550
In the address, Stephy, 50 tiebreaks, thirty point zero.
78
00:07:33,850 --> 00:07:35,440
OK, so just double check.
79
00:07:35,580 --> 00:07:44,680
OK, um, instead of hot coding it to be a number here, I'm going to also use a variable so that when
80
00:07:44,680 --> 00:07:51,130
I did, I can change it at the variable is issue the variable table that is easier for us to, uh,
81
00:07:53,260 --> 00:07:55,310
to see when we're doing exercise.
82
00:07:55,330 --> 00:08:01,460
OK, so I'm going to change just to lead the thought ss oh I.
83
00:08:01,500 --> 00:08:07,780
D also going to change this to assist.
84
00:08:08,260 --> 00:08:21,820
Oh for Mrs. L to index the return value atleti dot dot dot like this.
85
00:08:22,220 --> 00:08:24,390
OK, what is that.
86
00:08:24,400 --> 00:08:28,090
I'm going to save might download.
87
00:08:28,100 --> 00:08:28,510
OK.
88
00:08:30,210 --> 00:08:37,590
OK, now let's go let's go into the variable table, actually, you know what, let's make a new variable
89
00:08:37,590 --> 00:08:39,080
table, OK?
90
00:08:41,300 --> 00:08:41,730
OK.
91
00:08:41,840 --> 00:08:50,990
This week, a new variable table call the SBC 51 LTT, OK, double click to open it.
92
00:08:57,170 --> 00:09:09,000
Uh, let's put the data block and the variable table side by side, OK?
93
00:09:12,840 --> 00:09:19,090
So this is going to be deep, 50 thought deep six three zero zero.
94
00:09:20,880 --> 00:09:22,410
This is going to be the request.
95
00:09:23,520 --> 00:09:46,590
And then I'm going to put DP 50, the DP W to SSL I.D. four four index, uh, six for the return value,
96
00:09:47,370 --> 00:09:48,680
eight for the busy busy.
97
00:09:48,700 --> 00:09:53,430
Actually, I don't really care that much because it doesn't help.
98
00:09:53,650 --> 00:09:54,210
Um,
99
00:09:57,100 --> 00:09:59,190
uh, 10 for the.
100
00:10:02,000 --> 00:10:05,450
The length of the terror record.
101
00:10:07,480 --> 00:10:09,430
12 and no records, OK?
102
00:10:09,450 --> 00:10:11,350
And then starting from.
103
00:10:15,100 --> 00:10:17,530
Oh, sorry, this is not correct.
104
00:10:17,780 --> 00:10:27,490
Thirty two, thirty four, thirty six, forty forty two.
105
00:10:28,760 --> 00:10:32,260
OK, we'll make sure that we are looking to let you right the lead one.
106
00:10:32,980 --> 00:10:37,810
We know looking at the, uh, the previous one, we make sure we can do the correct way.
107
00:10:39,040 --> 00:10:51,940
So, um, the next one is deep 50 the DP w uh forty four and then
108
00:10:54,550 --> 00:10:56,200
forty six.
109
00:11:02,470 --> 00:11:04,670
Forty five and forty six, is it right?
110
00:11:06,690 --> 00:11:08,200
Well, sorry, 46 and 47.
111
00:11:10,250 --> 00:11:10,650
All right.
112
00:11:12,420 --> 00:11:17,380
OK, this is this is a data record for one no, Eddie.
113
00:11:17,740 --> 00:11:29,820
OK, we're going to make this for the second Eddie, which will become forty eight and then fifty fifty
114
00:11:29,830 --> 00:11:30,120
one.
115
00:11:33,390 --> 00:11:39,180
OK, so and so forth, OK, let's just do a few more.
116
00:11:41,610 --> 00:11:45,000
In theory, we can make this to be 18.
117
00:11:45,450 --> 00:11:45,870
No.
118
00:12:03,090 --> 00:12:04,810
This is quickly change.
119
00:12:04,830 --> 00:12:05,130
This.
120
00:12:12,500 --> 00:12:16,670
OK, because it's only for exercise, I'm not going to type in or 18.
121
00:12:17,960 --> 00:12:27,770
OK, but I can just change maybe up to six and then jump all the way to the end, OK, because not every
122
00:12:27,770 --> 00:12:32,510
single possie has all 18 anyways, so.
123
00:12:36,740 --> 00:12:37,280
So
124
00:12:40,250 --> 00:12:54,530
depending on your point of you're using, um, then you can decide how many of the how big to deliver
125
00:12:54,710 --> 00:12:55,580
what you want it to be.
126
00:12:56,190 --> 00:13:02,180
OK, now in this case, uh, let me see if I have dealt with everything.
127
00:13:02,180 --> 00:13:06,350
You just make sure everything this is started.
128
00:13:06,390 --> 00:13:12,580
OK, um, if you can go online, OK, that means if you can go online here, that means you've dealt
129
00:13:12,590 --> 00:13:13,940
with the problem properly.
130
00:13:14,140 --> 00:13:15,590
OK, Obi Wan, same thing.
131
00:13:16,490 --> 00:13:22,820
If you can go online and see the data here, uh, you can see the data here is, is, you know, with
132
00:13:22,820 --> 00:13:27,500
everything with this bar running that means you have sell the property.
133
00:13:27,530 --> 00:13:35,750
OK, so now we go back to here and there we see here, OK, now we see immediately it has a value of
134
00:13:35,750 --> 00:13:37,820
seven seven zero zero zero.
135
00:13:38,120 --> 00:13:39,100
OK, what does that mean?
136
00:13:39,710 --> 00:13:47,930
Once again, we go back to the help, go back to the help and love for the area of seven thousand.
137
00:13:47,930 --> 00:13:50,000
OK, seven zero zero zero.
138
00:13:50,750 --> 00:13:53,150
It means that the R equals zero.
139
00:13:53,180 --> 00:13:54,560
OK, the RV QE zero.
140
00:13:54,860 --> 00:13:57,560
OK, so all we have to do is change this to a one.
141
00:13:57,730 --> 00:14:00,120
OK, how do you change it to one.
142
00:14:00,650 --> 00:14:02,690
This first one.
143
00:14:02,720 --> 00:14:07,670
OK, now the return values is eighty one.
144
00:14:11,690 --> 00:14:15,830
What did was the result field is too short.
145
00:14:15,920 --> 00:14:19,340
OK, let me see, was it too short?
146
00:14:24,290 --> 00:14:29,380
Oh, sorry, sorry, sorry, sorry, because we haven't entered the, uh, the SC already.
147
00:14:30,260 --> 00:14:32,800
Like I said, this should be a zero zero 19.
148
00:14:34,760 --> 00:14:38,210
OK, just put it right.
149
00:14:38,270 --> 00:14:38,600
There you go.
150
00:14:38,660 --> 00:14:39,650
There's no more problem.
151
00:14:39,650 --> 00:14:40,910
There's no problem here.
152
00:14:41,630 --> 00:14:42,830
So zero zero 19.
153
00:14:42,830 --> 00:14:43,100
Right.
154
00:14:43,640 --> 00:14:46,660
Zero zero 19 will return all the values here.
155
00:14:46,670 --> 00:14:49,760
So I'll tell you, each of these know like.
156
00:14:49,960 --> 00:15:01,490
OK, so for example, if we look at the LGT lights, let me turn out let me show you this simulator
157
00:15:01,490 --> 00:15:02,380
right now, OK?
158
00:15:02,780 --> 00:15:06,850
It has the run signal on OK to run signal.
159
00:15:07,970 --> 00:15:09,410
OK, not the run.
160
00:15:09,890 --> 00:15:12,200
The run already on.
161
00:15:12,230 --> 00:15:13,290
So that's number four.
162
00:15:13,340 --> 00:15:14,580
OK, listen before.
163
00:15:17,480 --> 00:15:20,680
Well, uh, number four.
164
00:15:21,220 --> 00:15:27,110
OK, so you see here, this is LGT one, which is not defined.
165
00:15:27,380 --> 00:15:35,120
So it's not on it's not linking it to its internal error, which there is no error right now.
166
00:15:36,110 --> 00:15:39,650
So I've got to here.
167
00:15:39,650 --> 00:15:44,030
This is I t and if I a.f..
168
00:15:44,030 --> 00:15:44,390
Sorry.
169
00:15:45,500 --> 00:15:46,250
Oh it's here.
170
00:15:46,610 --> 00:15:49,970
It's not blinking is not on.
171
00:15:49,970 --> 00:15:50,840
It's not blinking.
172
00:15:51,980 --> 00:15:57,360
This is, uh, duplicated this.
173
00:15:57,390 --> 00:16:00,170
So I'm going to remove this number three.
174
00:16:01,280 --> 00:16:02,990
This is the here.
175
00:16:04,190 --> 00:16:05,300
Oh OK.
176
00:16:05,690 --> 00:16:12,650
It's not on, it's not blinking for this is the wrong idea.
177
00:16:13,010 --> 00:16:21,800
OK, you see it's one that means is on and it's not thinking, OK, this is how you look at it.
178
00:16:21,830 --> 00:16:35,060
OK, five, it's the stop, it's not on uh six is see if I see the force.
179
00:16:35,180 --> 00:16:35,540
Oops.
180
00:16:37,780 --> 00:16:44,750
Uh, this is I think this is just.
181
00:16:45,260 --> 00:16:45,770
Yeah.
182
00:16:45,800 --> 00:16:51,470
These are just, uh, residual values from before when I had the SSL idea to be zero.
183
00:16:51,470 --> 00:16:55,570
So so we didn't uh.
184
00:16:55,580 --> 00:16:57,590
It doesn't make any sense to to read them.
185
00:16:57,890 --> 00:17:05,360
Uh, in theory it goes all the way up to from one to eighteen.
186
00:17:05,360 --> 00:17:12,110
OK, with the values inside, like I said, uh, depending on the posture you're using and and obviously
187
00:17:12,110 --> 00:17:13,520
I'm running a simulator right now.
188
00:17:14,690 --> 00:17:23,000
So the quantities of the LSD are different and I can only show you the run LSD here.
189
00:17:24,020 --> 00:17:25,190
Uh, OK.
190
00:17:25,190 --> 00:17:33,230
Um, sometimes if you don't want to get all the LSD status, you can also only get one of them.
191
00:17:34,130 --> 00:17:43,850
Um, and in this case, instead of using zero zero one nine for all the status you can just use, uh,
192
00:17:44,120 --> 00:17:46,270
zero is one one nine.
193
00:17:46,640 --> 00:17:50,630
OK, in this case, just change this, OK?
194
00:17:51,620 --> 00:18:01,250
And then, uh, you can just tell the posse, which now you want to look into.
195
00:18:01,850 --> 00:18:09,500
For example, if you want to look into the stop, uh, LSD tend to stop here is five.
196
00:18:11,540 --> 00:18:14,030
So we put a five here and they put these in.
197
00:18:15,800 --> 00:18:24,590
OK, and then, uh, just everything put it, oh, you can press control zero to clear everything.
198
00:18:25,340 --> 00:18:27,650
OK, OK.
199
00:18:28,280 --> 00:18:29,120
But you can clear this.
200
00:18:29,120 --> 00:18:37,630
Okay, this is is actively being uh uh being red so if you clear it it will be overwritten but it appears
201
00:18:37,640 --> 00:18:43,160
immediately so but everything else, if it's not used, uh, you can clear it.
202
00:18:43,500 --> 00:18:49,820
OK, so if you look in this stability, basically, of course it's not on right now.
203
00:18:50,570 --> 00:18:51,710
So it is.
204
00:18:52,340 --> 00:18:53,140
Stop, stop.
205
00:18:53,540 --> 00:18:54,680
It is not on right now.
206
00:18:55,730 --> 00:18:59,540
OK, so it's zero if you want to read the one already.
207
00:18:59,870 --> 00:19:00,770
There's just the four.
208
00:19:02,480 --> 00:19:06,400
I was just the index for uh.
209
00:19:08,900 --> 00:19:17,240
OK then you can see this changes to one the OED.
210
00:19:17,240 --> 00:19:18,050
Oh OK.
211
00:19:19,320 --> 00:19:23,050
Uh, let me explain this one.
212
00:19:23,120 --> 00:19:27,760
And further, I don't think I've explained this clearly previously.
213
00:19:29,150 --> 00:19:32,140
This is the length of the data record.
214
00:19:32,190 --> 00:19:33,450
OK, this is in bytes.
215
00:19:33,470 --> 00:19:36,410
OK, so is data records for bytes.
216
00:19:36,440 --> 00:19:41,870
OK, so, uh, this is this is call one data record.
217
00:19:42,020 --> 00:19:48,850
OK, so it goes from the forty four to DB forty seven.
218
00:19:49,520 --> 00:19:50,780
So it's forty four.
219
00:19:51,320 --> 00:19:52,040
Forty five.
220
00:19:52,460 --> 00:19:53,180
Forty six.
221
00:19:53,360 --> 00:19:54,210
Forty seven.
222
00:19:54,230 --> 00:19:55,580
OK, that's four bytes.
223
00:19:55,580 --> 00:19:58,550
OK, and it's only returning one record.
224
00:19:58,580 --> 00:20:00,020
OK, this is one record.
225
00:20:00,440 --> 00:20:05,570
So basically how you read this is is one record for each.
226
00:20:05,600 --> 00:20:08,330
OK, so it's only returning what one record.
227
00:20:08,900 --> 00:20:10,850
So basically that means everything else.
228
00:20:12,020 --> 00:20:19,800
All the values after this is uh not relevant is irrelevant.
229
00:20:19,820 --> 00:20:28,730
OK, so it's going back to the zero zero 19 zero zero 19 to be changed to zero zero nineteen, you can
230
00:20:28,730 --> 00:20:29,870
see is actually returning.
231
00:20:29,870 --> 00:20:36,380
Only eight did a record, eight did a record well for each.
232
00:20:36,410 --> 00:20:41,990
OK, so basically there's no point to go anything about
233
00:20:45,710 --> 00:20:45,980
it.
234
00:20:45,980 --> 00:20:46,750
Data records.
235
00:20:46,770 --> 00:20:47,170
OK.
236
00:20:52,370 --> 00:20:53,750
So can change these seven.
237
00:21:05,500 --> 00:21:14,050
OK, so all of this, right, if I try to clear it, it will be overwritten immediately.
238
00:21:14,420 --> 00:21:18,010
OK, OK, I can change it.
239
00:21:19,310 --> 00:21:25,700
OK, but if I have another one extra, let's call it number nine, OK?
240
00:21:25,700 --> 00:21:31,510
If I try to do this, if I try to do this, change it to nine.
241
00:21:33,890 --> 00:21:36,700
OK, it has something you can immediately see.
242
00:21:36,700 --> 00:21:40,510
There's some residual values from before when I had the wrong.
243
00:21:40,840 --> 00:21:48,400
So I'd know if I just control zero, everything would be turned off because it's not being overwritten
244
00:21:49,240 --> 00:21:49,930
repeatedly.
245
00:21:51,640 --> 00:21:57,370
So thank you for watching this, um, video.
246
00:21:57,760 --> 00:22:00,210
I hope you learned something from it.
247
00:22:01,040 --> 00:22:05,650
Um, if you need other helps.
248
00:22:05,870 --> 00:22:09,940
OK, obviously there is no point for me to go through every single one of these.
249
00:22:10,190 --> 00:22:13,930
As I say it, you can look into it and, uh.
250
00:22:16,990 --> 00:22:22,420
All you have to do is to define the state of law correctly.
251
00:22:23,150 --> 00:22:26,740
OK, you have all you have to do is define the step correctly.
252
00:22:26,780 --> 00:22:29,450
OK, make sure you have this, OK.
253
00:22:29,470 --> 00:22:30,980
Everything else is the same.
254
00:22:31,010 --> 00:22:35,760
OK, so from here to here, everything is the same, OK?
255
00:22:35,770 --> 00:22:41,660
It doesn't matter regardless of which SSL it you're using.
256
00:22:41,680 --> 00:22:46,900
OK, the this highlighted part is always the same.
257
00:22:47,020 --> 00:22:49,910
The only difference is the data record.
258
00:22:49,930 --> 00:22:53,560
OK, so let's say you just go one on one.
259
00:22:55,120 --> 00:22:56,940
The data looks something like this.
260
00:22:56,950 --> 00:23:01,150
OK, you just have to change this to what you want.
261
00:23:01,600 --> 00:23:08,230
OK, change it to suit your SSL ID and also the data record.
262
00:23:08,260 --> 00:23:16,090
OK, um for each as I said ID, the data recorder would be different.
263
00:23:16,090 --> 00:23:19,840
The length, the number of records to be returned would also be different.
264
00:23:20,680 --> 00:23:22,870
OK, um.
265
00:23:23,340 --> 00:23:26,830
OK, so this is uh the end of this video.
266
00:23:26,920 --> 00:23:30,790
I hope you learned something from it and I'll see you in the next video.
22517
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.