background top icon
background center wave icon
background filled rhombus icon
background two lines icon
background stroke rhombus icon

Download "№ 5. Pro-relay EKF. Знакомство с ModBus. Программа QModbus."

input logo icon
Video tags
|

Video tags

pro-relay
ekf
знакомство
modbus
программа
qmodbus
Subtitles
|

Subtitles

subtitles menu arrow
  • ruRussian
Download
00:00:02
look at the control of the programmable
00:00:04
were on the four hundred and eighty-fifth
00:00:07
interface on such 2 circus,
00:00:08
initially I wanted to tell you that it does not
00:00:10
have hardware, but you constantly see this
00:00:14
controller and in addition to it there is an
00:00:16
extension module, this module
00:00:20
has a cream and about the middle one with this right here, the
00:00:23
485 interface additionally also
00:00:29
has a closer look, there are 8
00:00:33
switches they are responsible for the parameters of the
00:00:36
modbus rtu protocol, that is, there is the
00:00:39
data transfer rate, the number of
00:00:43
top bits and so on, but now
00:00:44
we’ll talk about this in more detail and,
00:00:49
accordingly, cream and Abe
00:00:52
data transfer from this earth
00:00:54
then I have an
00:00:59
interface converter, this is what it looks like,
00:01:03
my colleague was standing there, you can buy a similar
00:01:06
interface converter in stores
00:01:09
such as a few people, some other
00:01:11
electronics stores, some companies
00:01:15
produce, for example, there are companies that hurt
00:01:19
that the converters should be sealed, it will
00:01:21
sound and 185 interface in selfishness, but
00:01:25
if we have a system without a computer, we have
00:01:28
one control there that controls another, then there is
00:01:33
no need to convert and old age tour in the hut 485
00:01:38
also at our stand we have settings
00:01:41
for analog inputs see 1 2 3 4
00:01:45
meters from today we will try to
00:01:48
read the state of the analog inputs if
00:01:52
this is a closer look and a stone, then we can
00:01:55
see how the analog inputs change
00:02:00
here, analog input 5 under analog
00:02:03
input 1
00:02:04
on the first one is now 9 volts 9910 will
00:02:09
maximum, that is, the rest I rotate
00:02:12
these potentiometers and the value changes on the
00:02:17
rest of the analog inputs on now
00:02:24
let's move on to the design and
00:02:28
the program that allows you to control the
00:02:33
480 office,
00:02:36
let's look at the manual that you
00:02:38
can download in the description under the video
00:02:41
manual on the four hundred and eighty-
00:02:43
fifth interface, or rather on the
00:02:46
modbus rtu protocol itself,
00:02:48
here on page 7 you can find a
00:02:52
description of just these switches
00:02:55
that I showed you here first the
00:02:57
second third switch is responsible
00:02:59
for the data transfer speed, that is,
00:03:01
on four hundred and eighty-five you can
00:03:02
transfer data and baht slowly or
00:03:05
fast 4,800 this is slow for man bass
00:03:10
but 9:00 to the same standard will soon
00:03:12
be considered and you can change it from 19200
00:03:15
to 38400 kilobit second there are also two
00:03:21
switches, the fourth and fifth, they
00:03:23
are responsible for such indicators of the number of
00:03:26
stops, it ruins it and checking for the parity bit
00:03:29
or setting the parity bit, that is, there
00:03:33
are also four options here and the 6th
00:03:35
switch is the switch that is
00:03:38
responsible for the standard settings if
00:03:41
we set the 6th switch then
00:03:45
It doesn’t matter to us what state the
00:03:47
rest of the switches are in; we will have
00:03:50
standard indicators,
00:03:51
this is 38400 kilobits second, speed is 2
00:03:54
drain bits and checks for
00:03:58
parity,
00:04:02
but then let’s go straight to the
00:04:06
table of variables and I’ll go to
00:04:08
the program, it’s actually the table of
00:04:11
variables for discrete inputs
00:04:15
[music]
00:04:18
here are the addresses for analog inputs, but
00:04:22
now let's move on to the program
00:04:24
today, such training is more phrases, I
00:04:29
want to tell the protocol itself,
00:04:34
its structure, and we will make a couple of
00:04:38
requests there, and in the future I made a video about
00:04:40
this with a lot of questions and
00:04:43
will tell you how to interrogate discrete inputs,
00:04:46
but today the task will be to ask for
00:04:48
analog inputs input means the program
00:04:52
is called Puma 2, you can find it on
00:04:54
the Internet, you can use some
00:04:56
similar programs,
00:04:57
what’s good about it, it’s simple, it’s not
00:05:01
convenient if you work with a large
00:05:02
amount of data, in this regard, it’s
00:05:05
better to use what programs for
00:05:08
losses or scada systems where
00:05:11
the records are saved parameters in
00:05:13
this case we configure only one
00:05:15
command sent we receive something in
00:05:17
response
00:05:18
means according to the settings here
00:05:20
when you start the program the
00:05:25
com port appears it appears in the case
00:05:27
when you connect the
00:05:29
interface converter 425 people and is given a choice of
00:05:33
comfort but in this case I only
00:05:34
this one com port is why it
00:05:36
automatically comes up immediately, I’ll draw
00:05:39
your attention to the fact that if you set the
00:05:40
converter interface,
00:05:42
it often requires drivers and the
00:05:45
next indicator is the speed is 38400,
00:05:48
our standard speed, don’t look
00:05:52
at the instructions in our manual,
00:05:55
the switch Darren said
00:05:56
the switch, I cocked it as much as 6, that is,
00:05:59
I have standard settings for a
00:06:02
programmed one like
00:06:04
the number of bits is 8 for a programmed
00:06:06
relay this is standard the number of top
00:06:10
bits is also determined cannot be
00:06:12
either 1 or 2
00:06:13
which is knocked out in our case these are two
00:06:16
pillars knocked out as we looked and
00:06:18
the check for parity this code can be
00:06:20
turned off the parity check or
00:06:22
you can change it to check and parity
00:06:25
or even parity or even disable it
00:06:28
further, here we have
00:06:31
the structure of the modbus protocol, here you
00:06:34
can still see it, but the first column
00:06:38
received this direction, sent it, but
00:06:41
in fact, here is the package itself, these are the
00:06:44
zeros and ones that are sewn on the
00:06:47
four hundred and eighty-fifth interface,
00:06:51
if you decipher them, what the
00:06:55
first zeroes and ones that
00:06:57
will go along our wire will not represent is the number of
00:07:01
devices here is the slave and here he
00:07:03
is asked about the number of devices if
00:07:07
we are talking about the modbus protocol,
00:07:10
he has the following hierarchy there can
00:07:12
be only one device master
00:07:14
who can
00:07:16
be the initiator she can ask
00:07:19
her own she can order something glory
00:07:21
and the rest are layers in our case
00:07:26
we will have a computer suit well and besides the
00:07:29
layers he can also send something but he
00:07:31
can become only in response, that is, if
00:07:33
his master asks something, he answers,
00:07:35
let’s say we will ask for the state of the
00:07:39
analog input, he will respond to
00:07:41
the state of the output tax, but he himself does
00:07:43
n’t say anything and doesn’t give any commands to
00:07:48
the people,
00:07:50
so if you, as it were, have your own layers
00:07:53
number, that is, when the master sends a
00:07:56
command, he says to the first 2 for a
00:07:59
programmable role, you can set up to 99
00:08:02
addresses in principle and the protocol
00:08:04
supports 256 devices there by
00:08:08
default, the address is 1, it can be
00:08:11
changed by the program in pro design, but for us it makes
00:08:13
no sense to have one device
00:08:15
to change this address there are a couple of up to 5
00:08:17
devices, we set 1 2 3 4 5,
00:08:20
respectively, when the package is sent, it
00:08:23
first speaks first next next,
00:08:26
we have the entire structure of the table of variables in the
00:08:31
modbus rtu protocol presented from
00:08:35
these 4 segments, you can say, well,
00:08:39
firstly, these are
00:08:40
discrete and analog signals and the
00:08:45
inputs-outputs are the output, this is essentially there
00:08:48
if it is with them, the output is the output, these are
00:08:50
the coils, the voice is in English, that is, here
00:08:53
they are, the coils, these are the discrete outputs, they
00:08:57
can only have a state of 0 one
00:09:01
discrete output in which we save there
00:09:09
some value different from 0 or even
00:09:11
units cannot go further, there are discrete
00:09:14
inputs discrete empty horses are called
00:09:18
here next there are
00:09:21
analog signals analog outputs they
00:09:24
are called in the holding register from the analog
00:09:27
input there are three business but they are actually
00:09:31
not analog after all discrete but they
00:09:34
carry two bytes of data in principle,
00:09:38
quite a lot relative to option 0, one is
00:09:43
definitely a lot, this
00:09:46
structure is a control structure,
00:09:48
that is, the controller has coil outputs,
00:09:51
there are discrete inputs, and there are analog
00:09:54
inputs, there are analog outputs, but now
00:09:58
this is all conditional because in fact,
00:10:01
in these sections you can store any
00:10:08
values, that is, let’s say the state of
00:10:10
our outputs on a programmable steering wheel,
00:10:13
they can be stored in a cell there
00:10:18
holding a register, that’s why even though it’s
00:10:23
divided, in fact, in reality
00:10:27
you can write all the data, folding
00:10:30
register isn’t necessarily all files,
00:10:32
you can’t write them because they’re all zeros and
00:10:34
units there it is difficult to record an analog
00:10:37
signal, but often the table of
00:10:41
variables consists only of the
00:10:43
holding register itself and there is reading and
00:10:47
writing about we can read everything and
00:10:50
we can write, but here the logic is that
00:10:52
we
00:10:53
cannot record the progress at the input or there is some kind of
00:10:56
signal 0 1 is it discrete or
00:10:58
is there some kind of analog signal there, we
00:11:01
give a potentiometer there 5 volts
00:11:03
conditionally, but we can only read it,
00:11:06
but we can’t write it because
00:11:09
but we physically helped you, we can’t
00:11:11
give the potentiometer a command so that it
00:11:13
changes the input, so here The
00:11:17
logic goes that we only record coils, that
00:11:21
is, discrete and holding registers come out, that
00:11:24
is, analog outputs, that
00:11:28
is, we can output, we can force
00:11:30
the switch to work, and accordingly, there
00:11:34
is also a recording type like
00:11:37
recording several coils and recording several
00:11:40
registers, this way it is presented
00:11:44
more functionally q well the most popular one
00:11:47
for me is this 3 commands the
00:11:49
first command, well, even most often 3 6
00:11:58
then next we have the address of this cell,
00:12:03
that is, we have selected a segment from where we
00:12:06
will read something and this next
00:12:08
indicator is over and
00:12:10
if we read something there by to the
00:12:12
fifth address of the coils, then this is unambiguous;
00:12:15
if at the fifth address the holding register
00:12:18
is already different keys, that is, this is
00:12:21
essentially a different memory area,
00:12:23
but then you can take into account several
00:12:26
memory cells in a row, but this is not always
00:12:31
supported by devices and
00:12:33
see the Messi according to the instructions, then in some
00:12:35
cases you can read several
00:12:38
memory cells in a row are not possible in some cases,
00:12:43
and accordingly, at home letters and 3 chose the
00:12:46
sixth reading, this is where we have records here, we can
00:12:49
write to
00:12:51
well, then we also have a
00:12:54
checksum, that is,
00:12:56
look here at our number, the
00:12:58
functional code, this is actually
00:13:01
our parcel which
00:13:03
we will send via 48 fifth, then the address,
00:13:06
then the number of cells and the
00:13:09
checksum is needed to make sure that the
00:13:12
data has not been damaged, that is, when the
00:13:15
checksum converges, it means everything has
00:13:19
arrived as it was carried out on Now,
00:13:24
accordingly, let's try to
00:13:26
poll our controller, here we have already
00:13:31
switched to table of changes for
00:13:36
analog inputs and they are stored
00:13:40
here in the holding registers, that is, they need to be
00:13:45
taken into account
00:13:47
3 commands, but accordingly, if we
00:13:49
want to read the first analog input,
00:13:51
we need to send a parcel to
00:13:55
address 231,
00:13:59
this is the length, but what does 230 have to do with it and at the end of the AH
00:14:02
this means that we have
00:14:06
addresses to given in the hexadecimal system, if
00:14:13
we go to our program
00:14:15
mind from you, then the address is set here in the
00:14:19
decimal system, so to
00:14:23
translate 4 hexadecimal system
00:14:27
to decimal, we will need a calculator,
00:14:30
or you can do it like you did in me, but of
00:14:33
course if you have large numbers it will be
00:14:36
difficult,
00:14:39
the easiest way is to take a calculator, you need to
00:14:42
turn the calculator into
00:14:45
programmer mode, press the text, that is, this is
00:14:48
our speech, this is in the hexadecimal system,
00:14:51
we had the address 230 there, sign 230 and
00:14:54
see how much it is in the decimal
00:14:56
system, this is 560 10 vich, that is,
00:14:59
we set it here accordingly 560 but if in the
00:15:01
mba program it was possible
00:15:03
to set
00:15:04
16 personal address, they could not translate anything,
00:15:06
they simply wrote 203 passed 560 now we
00:15:12
have to count the state and set the entry angle
00:15:14
to a C number of which we
00:15:18
can read one cell, but here,
00:15:21
according to the instructions, it is clear that
00:15:23
we are alone 2 we won’t be able to read, we’ll get
00:15:25
an error in response, but accordingly everything is
00:15:31
ready for reading, let’s turn on
00:15:33
the camera with a programmable goal so that you
00:15:35
can see what values ​​we have now,
00:15:39
now we look accordingly and I
00:15:42
showed you that you can change the value of the
00:15:44
analog inputs there, each of the four
00:15:47
I can change
00:15:48
let's set the first analog input 2
00:15:51
now nine point thirty-two
00:15:55
volts and now let's send the command
00:15:58
press stand and get 932
00:16:02
that is, in fact, the range is
00:16:04
in the description up to 999 and that is,
00:16:07
9.99 volts
00:16:10
it will be 90 the maximum value
00:16:13
turned up costs 999 now
00:16:18
we send again already when we receive the answer 999
00:16:21
let's move on to the next analogue
00:16:23
leaving this will be the address 561 and read
00:16:27
counted 86 means it should be 086 and
00:16:31
look at the programmable let the data
00:16:33
086 let's count the next 792 means it
00:16:40
should be 7.92
00:16:44
is from the next 4 read
00:16:48
376 well and accordingly, if you constantly
00:16:55
send something and rotate the potentiometer, there
00:16:59
we see how the data is constantly
00:17:01
updated on the four hundred and eighty-
00:17:05
fifth interface.
00:17:06
I wanted to finish with this today, write
00:17:10
your wishes for questions in the comments, I
00:17:12
think the next few videos will also
00:17:15
be devoted to the modbus protocol of cards in everything
00:17:18
for now

Description:

Расскажу про самые азы протокола, покажу как наладить связь с Pro-Relay. Таблица переменных. https://drive.google.com/file/d/14GuHeUs2L6uDieJg4LpoNkTy_Kf_kqPZ/view?usp=drive_open

Preparing download options

popular icon
Popular
hd icon
HD video
audio icon
Only sound
total icon
All
* — If the video is playing in a new tab, go to it, then right-click on the video and select "Save video as..."
** — Link intended for online playback in specialized players

Questions about downloading video

mobile menu iconHow can I download "№ 5. Pro-relay EKF. Знакомство с ModBus. Программа QModbus." video?mobile menu icon

  • http://unidownloader.com/ website is the best way to download a video or a separate audio track if you want to do without installing programs and extensions.

  • The UDL Helper extension is a convenient button that is seamlessly integrated into YouTube, Instagram and OK.ru sites for fast content download.

  • UDL Client program (for Windows) is the most powerful solution that supports more than 900 websites, social networks and video hosting sites, as well as any video quality that is available in the source.

  • UDL Lite is a really convenient way to access a website from your mobile device. With its help, you can easily download videos directly to your smartphone.

mobile menu iconWhich format of "№ 5. Pro-relay EKF. Знакомство с ModBus. Программа QModbus." video should I choose?mobile menu icon

  • The best quality formats are FullHD (1080p), 2K (1440p), 4K (2160p) and 8K (4320p). The higher the resolution of your screen, the higher the video quality should be. However, there are other factors to consider: download speed, amount of free space, and device performance during playback.

mobile menu iconWhy does my computer freeze when loading a "№ 5. Pro-relay EKF. Знакомство с ModBus. Программа QModbus." video?mobile menu icon

  • The browser/computer should not freeze completely! If this happens, please report it with a link to the video. Sometimes videos cannot be downloaded directly in a suitable format, so we have added the ability to convert the file to the desired format. In some cases, this process may actively use computer resources.

mobile menu iconHow can I download "№ 5. Pro-relay EKF. Знакомство с ModBus. Программа QModbus." video to my phone?mobile menu icon

  • You can download a video to your smartphone using the website or the PWA application UDL Lite. It is also possible to send a download link via QR code using the UDL Helper extension.

mobile menu iconHow can I download an audio track (music) to MP3 "№ 5. Pro-relay EKF. Знакомство с ModBus. Программа QModbus."?mobile menu icon

  • The most convenient way is to use the UDL Client program, which supports converting video to MP3 format. In some cases, MP3 can also be downloaded through the UDL Helper extension.

mobile menu iconHow can I save a frame from a video "№ 5. Pro-relay EKF. Знакомство с ModBus. Программа QModbus."?mobile menu icon

  • This feature is available in the UDL Helper extension. Make sure that "Show the video snapshot button" is checked in the settings. A camera icon should appear in the lower right corner of the player to the left of the "Settings" icon. When you click on it, the current frame from the video will be saved to your computer in JPEG format.

mobile menu iconWhat's the price of all this stuff?mobile menu icon

  • It costs nothing. Our services are absolutely free for all users. There are no PRO subscriptions, no restrictions on the number or maximum length of downloaded videos.