0
1
00:00:21,470 --> 00:00:22,150
Hello.
1

2
00:00:22,200 --> 00:00:25,560
In this video we are going to learn communication.
2

3
00:00:25,560 --> 00:00:33,760
What is communication or what is serial communication or what is TCP/IP communication and etc.
3

4
00:00:33,780 --> 00:00:42,060
First of all the exchange of data between two or more devices is called communication.
4

5
00:00:42,120 --> 00:00:43,320
Important point.
5

6
00:00:43,350 --> 00:00:51,960
The exchange of data between two or more device it can be divided into two classed as serial and internet
6

7
00:00:51,960 --> 00:00:52,960
communication.
7

8
00:00:53,070 --> 00:00:58,770
Communication should be handled in two sections as interface and protocol.
8

9
00:00:58,780 --> 00:01:01,170
Another important point.
9

10
00:01:01,170 --> 00:01:05,440
Serial communication interfaces is standard .
10

11
00:01:05,460 --> 00:01:10,380
RS232-RS485-RS422 but this
11

12
00:01:10,380 --> 00:01:16,940
is not common usage but RS232/485 for delta.
12

13
00:01:16,960 --> 00:01:18,650
plcs are really important.
13

14
00:01:18,840 --> 00:01:25,240
You are communicating with the PC-PLC C one by one or point to point communication with rs232
14

15
00:01:25,250 --> 00:01:26,500
RS-232
15

16
00:01:26,520 --> 00:01:34,910
You can communicate more than one or two or a lot of devices with the Delta PLCS.
16

17
00:01:35,010 --> 00:01:44,250
If you are using RS-485 communication or as serial communication RS232 is one to one communication
17

18
00:01:44,250 --> 00:01:48,770
interface consisting of master and slave RS-485
18

19
00:01:48,780 --> 00:01:55,680
One of the master device than the rest of all will be slave and only can send and receive at the same
19

20
00:01:55,680 --> 00:01:59,740
time or interface where it can communicate with the more than one slave.
20

21
00:01:59,760 --> 00:02:05,370
This communication interface uses two wire lines and RS422.
21

22
00:02:05,370 --> 00:02:11,490
Communication is the interface where the both sending and receiving can be made at the same time and
22

23
00:02:11,490 --> 00:02:15,180
the master device can communicate with one or more slaves.
23

24
00:02:15,180 --> 00:02:22,380
This communication interface uses for wire lines the language spoken on the communication interface
24

25
00:02:22,410 --> 00:02:31,480
is called protocol really important the device is to be able to communicate between them but the first
25

26
00:02:31,480 --> 00:02:37,650
thing they must or he must know or it must know and support the same protocol.
26

27
00:02:38,230 --> 00:02:45,880
If you are communicating , trying to communicate with the devices but if you are not adopted or set
27

28
00:02:45,910 --> 00:02:54,130
at the same settings so it will be like a Japan or Turkish language or like one turk.
28

29
00:02:54,120 --> 00:02:59,430
People trying to communicate with the English or British people or something like this.
29

30
00:02:59,430 --> 00:03:04,320
So there will be a confliction and the next thing in here.
30

31
00:03:04,380 --> 00:03:10,760
Modbus  communication protocol basics ;master and slaves for the modbus communication protocol is
31

32
00:03:10,790 --> 00:03:12,000
really important.
32

33
00:03:12,000 --> 00:03:18,930
The master controls the communication really important master control the communication it is the unit
33

34
00:03:18,960 --> 00:03:21,560
that creates writing and reading queries.
34

35
00:03:21,660 --> 00:03:27,770
I mean people and the computers and etc. can be master unit.For Slave
35

36
00:03:28,230 --> 00:03:30,540
They are communicated devices.
36

37
00:03:30,580 --> 00:03:35,190
They are only obligated to answer the queries sent to them.
37

38
00:03:35,190 --> 00:03:43,410
Plcs, AC drivers or VFDs I mean process controllers etc. can be a slave device.
38

39
00:03:43,410 --> 00:03:47,110
Things to consider in modbus communication theoretically.
39

40
00:03:47,520 --> 00:03:52,760
Up to 255 slave device can be addressed on the modbus communication line.
40

41
00:03:52,950 --> 00:03:59,910
Considering the line it is not suitable for a healthy communication on 32 device communication
41

42
00:03:59,910 --> 00:04:05,360
line that is more convenient not to exceed 16 device on lines.
42

43
00:04:05,490 --> 00:04:14,170
If there is a data density if we are trying to read and write a lot of data a lot of words in in your
43

44
00:04:14,180 --> 00:04:15,510
plc projects.
44

45
00:04:15,810 --> 00:04:25,080
It is not suitable to communicate with over 16 device but you can also theoretically communicate with
45

46
00:04:25,410 --> 00:04:32,100
maximum 255 slave device there can only be one master.
46

47
00:04:32,130 --> 00:04:35,340
This is really important in the modbus communication line.
47

48
00:04:35,340 --> 00:04:40,050
If you adapt two master or three master there will be an error.
48

49
00:04:40,200 --> 00:04:50,040
immediately and you need to consider this you need to focus this while you are starting Project.
49

50
00:04:50,040 --> 00:04:58,560
The first thing that you need to select your master immediately or you need to define
50

51
00:04:58,560 --> 00:05:02,170
your master.In the line that a collision occurs.
51

52
00:05:02,280 --> 00:05:08,850
If there is multiple master exists and by the way the communication problems arises
52

53
00:05:09,720 --> 00:05:16,590
and the next thing communication protocol format it expresses the speed of data flow in the system
53

54
00:05:16,590 --> 00:05:17,660
communicated.
54

55
00:05:17,670 --> 00:05:19,800
Speed of data flow.
55

56
00:05:19,800 --> 00:05:21,150
This is really important.
56

57
00:05:21,270 --> 00:05:29,640
If two or more devices are communicating they must be set at the same speed like 9200,
57

58
00:05:29,640 --> 00:05:40,020
19200 etc..
58

59
00:05:40,050 --> 00:05:43,060
This is baudrade, speed of data flow.
59

60
00:05:43,060 --> 00:05:50,000
Equals to baudrade, the digital data encoding sequence refers to the format of the protocol data
60

61
00:05:50,340 --> 00:05:58,590
they must be using the same format to speak in the same language like 7 or 8 bits like
61

62
00:05:58,680 --> 00:06:03,860
even odd or none parity or like 1 or 2 or 0.
62

63
00:06:03,870 --> 00:06:05,110
Stop bits.
63

64
00:06:05,400 --> 00:06:12,170
I mean remember we were adopting for the modbus  communication for Delta plcs.
64

65
00:06:12,170 --> 00:06:19,040
We were deciding the communication protocols and we were writing hexadecimal 86 or we are going
65

66
00:06:19,040 --> 00:06:22,730
to look these ones to next videos.
66

67
00:06:22,730 --> 00:06:28,400
we are going to write for example 86 as hexadecimal for the communication protocol.
67

68
00:06:28,400 --> 00:06:36,830
That moment we are sending to from our plc to devices and also inside of our plc.
68

69
00:06:36,830 --> 00:06:42,750
Okay we will communicate with the speed as the speed of data flow, as baudrate
69

70
00:06:42,770 --> 00:06:50,530
We will use 9600 speed and we will use just one stop bit, and we will use even.
70

71
00:06:50,540 --> 00:06:54,980
And we will use just a seven or eight bit like this.
71

72
00:06:54,970 --> 00:07:02,000
So this is the communication protocol format as basically and the communication distance is the another
72

73
00:07:02,000 --> 00:07:03,620
one important point.
73

74
00:07:03,620 --> 00:07:07,110
Communication distance depends entirely on environment.
74

75
00:07:07,160 --> 00:07:15,230
Environmental conditions magnetic noise emitted by working AC drive cabling quality and grounding
75

76
00:07:15,290 --> 00:07:17,550
are obvious criteria.
76

77
00:07:17,570 --> 00:07:22,190
There may be situations that cannot be communicate from five meters.
77

78
00:07:22,190 --> 00:07:24,980
This is really important and you are going to face it.
78

79
00:07:24,980 --> 00:07:30,830
Believe me or it may be in environments that can be communicate from 500 meters.
79

80
00:07:30,830 --> 00:07:37,730
If communication cannot be achieved due to signal losses at long distances the distance can be increased
80

81
00:07:37,730 --> 00:07:46,540
by using repeaters in between and the next modbus TCP/IP communication.
81

82
00:07:46,670 --> 00:07:53,390
The type of modbus communication , this type TCP/IP communication type is spoken over the
82

83
00:07:53,510 --> 00:08:02,450
Ethernet line is called modbus TCP/IP communication.TCP/IP controls more stable and less affected by
83

84
00:08:02,780 --> 00:08:07,600
interference.Communication speed is at the level of megabit speed.
84

85
00:08:07,610 --> 00:08:18,140
So if you are communicating via modbus TCP/IP communication that will be very very high speed and
85

86
00:08:18,140 --> 00:08:25,940
it will be a little bit more reliable and safe and you can use it if your device is supported this communication
86

87
00:08:26,730 --> 00:08:31,860
You can use it easily and you can think okay.
87

88
00:08:31,870 --> 00:08:33,320
Will it communicate or not.
88

89
00:08:33,320 --> 00:08:40,340
There will be no discussion about the communication using the one network structure devices between
89

90
00:08:40,390 --> 00:08:47,300
cities even countries can communicate with each other and the data collection can be performed one master
90

91
00:08:47,300 --> 00:08:54,140
limitation in the serial communication is not valid for the ethernet communication so I mean according
91

92
00:08:54,140 --> 00:08:59,220
to the device chips used the number can be up to 16.
92

93
00:08:59,220 --> 00:09:06,420
So in the ethernet communication TCP/IP communication you can use two or three or four Master
93

94
00:09:06,930 --> 00:09:13,880
So it is according to devices ,which type device that you are using.
94

95
00:09:14,050 --> 00:09:14,540
--.
95

96
00:09:14,670 --> 00:09:15,300
--.
96

97
00:09:15,420 --> 00:09:23,570
Devices are devices supporting or not according to these you can use more than one
97

98
00:09:23,640 --> 00:09:31,000
Master in your TCP/IP communication so in this video I am finished here.
98

99
00:09:31,000 --> 00:09:32,490
See you in the next video.
