0
1
00:00:21,570 --> 00:00:23,000
Hello In this video.
1

2
00:00:23,040 --> 00:00:29,270
We are going to learn modbus serial communication between plc and drives link communication performed
2

3
00:00:29,310 --> 00:00:36,020
standard modbus  read and write operation for DVP series plc modbus addresses COM2 rs485
3

4
00:00:36,030 --> 00:00:38,410
connection port.
4

5
00:00:38,520 --> 00:00:46,280
Important point is here is supported by Delta DVP series plcs up to 16 stations.
5

6
00:00:46,410 --> 00:00:56,780
Normally for Delta DVP series Plcs support 16 stations for com2 RS485 communication.
6

7
00:00:57,150 --> 00:01:09,780
So if you are using EH2/SV/EH3/SV2 Plc models supports 32 stations in the link and reading
7

8
00:01:09,780 --> 00:01:19,890
and writing of more than 16 data when m1353 is on SA/SX/SS supports sixteen devices in the link
8

9
00:01:19,920 --> 00:01:23,410
and reading writing of sixteen data.
9

10
00:01:23,500 --> 00:01:26,730
So we need a Master PLC.
10

11
00:01:26,730 --> 00:01:27,840
This is the first thing.
11

12
00:01:27,900 --> 00:01:31,810
So and then we have slaves.
12

13
00:01:31,860 --> 00:01:41,260
We need slaves so we can communicate with servo drives or normal AC drives or vfds with
13

14
00:01:41,260 --> 00:01:50,070
the delta plcs or another places we can use two different communication link system first thing M
14

15
00:01:50,130 --> 00:01:55,110
1350 and M1351
15

16
00:01:55,170 --> 00:02:05,160
These are plc link, easy plc link that I can say to you, you can set these plc link auxiliary
16

17
00:02:05,670 --> 00:02:08,320
relays inside of the plc.
17

18
00:02:08,340 --> 00:02:19,690
So that moment these auxiliary relays are going to start plc link or communication or serial communications
18

19
00:02:19,690 --> 00:02:20,870
start bits
19

20
00:02:21,100 --> 00:02:31,690
Then after these bits set it in the plc you can read and write data as between slaves and master.
20

21
00:02:31,690 --> 00:02:37,840
Also you can use these commands modbus data read, write and modbusrw
21

22
00:02:37,870 --> 00:02:38,700
Read and write.
22

23
00:02:38,710 --> 00:02:44,450
ModbusRW modbus data write mode w r commands.
23

24
00:02:44,470 --> 00:02:46,490
So what is the difference between it.
24

25
00:02:46,810 --> 00:02:49,300
First thing in here.
25

26
00:02:49,300 --> 00:02:58,150
You can create your communication link system so you can communicate with 50 device or 75 device with
26

27
00:02:58,150 --> 00:03:00,060
these commands in here.
27

28
00:03:00,130 --> 00:03:06,380
You can communicate with 16 stations or 16 device or if your CPU
28

29
00:03:06,400 --> 00:03:15,250
As I told you before these ones so you can communicate with 32 device and in here for easy or enable
29

30
00:03:15,400 --> 00:03:25,080
plc link or just for these two bits you can see complete special data registers and auxiliary relays.
30

31
00:03:25,120 --> 00:03:32,950
For example for communication two Mone thousand one hundred twenty retained communication settings
31

32
00:03:33,310 --> 00:03:42,010
for com2 again M1143 decides ASCII or RTU ode selection for  communication
32

33
00:03:42,010 --> 00:03:42,920
protocol.
33

34
00:03:43,060 --> 00:03:47,540
D1120 inside of these data registers.
34

35
00:03:47,560 --> 00:03:54,280
We need to put our communication protocol d1121 plc communication
35

36
00:03:54,280 --> 00:03:54,910
address.
36

37
00:03:54,910 --> 00:03:57,340
So that means master plc
37

38
00:03:57,380 --> 00:04:05,380
address, for example to send request read and write request means M1122
38

39
00:04:05,380 --> 00:04:05,730
M1122
39

40
00:04:05,740 --> 00:04:14,350
This is for com2 sending request so you can see a complete table in here so you can get errors and
40

41
00:04:14,350 --> 00:04:22,000
also after reading and writing completed or receiving completed I mean you can see this auxiliary relays
41

42
00:04:22,030 --> 00:04:31,960
you can use these auxiliary relays in your program or in your project in here too.
42

43
00:04:32,440 --> 00:04:34,920
I can divide this page to two.
43

44
00:04:35,200 --> 00:04:37,500
First thing these ones.
44

45
00:04:39,830 --> 00:04:46,910
Supported by Delta or created by Delta so we can use communication protocol.
45

46
00:04:46,910 --> 00:04:49,880
Function block  inside of ISPSOFT
46

47
00:04:50,270 --> 00:04:52,680
So it is equals to  this.
47

48
00:04:52,760 --> 00:05:00,740
You can write your communication protocol as manual like this for plc communication address D1121
48

49
00:05:00,740 --> 00:05:03,480
D1121
49

50
00:05:03,580 --> 00:05:06,410
Like in here for com2
50

51
00:05:06,470 --> 00:05:09,390
This is our Master plc address is 1
51

52
00:05:09,470 --> 00:05:15,400
So in here hexadecimal 86 we are sending it to D1120.
52

53
00:05:15,440 --> 00:05:16,490
Let's take a look.
53

54
00:05:16,490 --> 00:05:25,180
d1120 in here communication protocol settings we are writing it in D 1120
54

55
00:05:25,280 --> 00:05:31,600
data register and in here we are retaining the communication M1120
55

56
00:05:31,610 --> 00:05:36,310
Let's take a look where it is in here retain communication settings.
56

57
00:05:36,510 --> 00:05:39,020
So in here also.
57

58
00:05:39,050 --> 00:05:41,200
D1129
58

59
00:05:41,210 --> 00:05:41,980
Let's take a look.
59

60
00:05:41,990 --> 00:05:43,420
What is it.
60

61
00:05:43,550 --> 00:05:46,320
1129
61

62
00:05:46,330 --> 00:05:51,530
where it is in here in here.
62

63
00:05:51,530 --> 00:05:54,070
Set value for data receiving timeout.
63

64
00:05:54,170 --> 00:05:58,300
So in here we are deciding time our time.
64

65
00:05:58,310 --> 00:06:00,850
So this is just millisecond.
65

66
00:06:00,950 --> 00:06:02,180
So let's take a look.
66

67
00:06:02,240 --> 00:06:08,630
Where can we find communication protocol function block in ıspsoft let's create a new project
67

68
00:06:08,660 --> 00:06:13,900
in ıspsoft of new project is created.
68

69
00:06:13,990 --> 00:06:19,200
Let's create the programs a new leave it like this.
69

70
00:06:19,200 --> 00:06:20,430
Say OK.
70

71
00:06:20,440 --> 00:06:23,600
A new program is created in the right site.
71

72
00:06:23,610 --> 00:06:27,240
You will see Delta library in Delta library.
72

73
00:06:27,240 --> 00:06:29,610
You're going to see comm protocol settings.
73

74
00:06:29,610 --> 00:06:31,530
Let's take a look in here.
74

75
00:06:31,530 --> 00:06:37,710
In here you can see COM1-2-3 protocol function blocks
75

76
00:06:37,710 --> 00:06:45,390
If you are communicating with your slaves via com2 ,you need to you can drop this function
76

77
00:06:45,390 --> 00:06:57,480
block like this press left mouse left click press clicked on in here drag and drop say OK or you can
77

78
00:06:57,480 --> 00:07:04,530
give a name to your function block in here you're going to see if you're if you bring your mouse to baud
78

79
00:07:04,530 --> 00:07:13,220
rate you will see if you're using a rate as 9600 you need to write here.
79

80
00:07:13,440 --> 00:07:13,830
1
80

81
00:07:16,860 --> 00:07:24,050
I need to write here my numlock was closed.
81

82
00:07:24,160 --> 00:07:33,880
for this data length if we are using your data length as say 7 you need to write here 1 for parity
82

83
00:07:34,120 --> 00:07:37,810
let's say let's take a look you can come here for example.
83

84
00:07:37,810 --> 00:07:41,700
Even for even we need to write year 3 for Stop Bit
84

85
00:07:41,860 --> 00:07:46,780
We need to write here for example one is like this we can fulfill it.
85

86
00:07:46,870 --> 00:07:51,730
So for after this function block is created.
86

87
00:07:51,850 --> 00:07:54,490
You don't need this one.
87

88
00:07:54,830 --> 00:07:57,740
You don't need this one if you are using this.
88

89
00:07:57,740 --> 00:08:06,890
You don't need this or you cannot use this so you need to assign your parameters for communication for
89

90
00:08:06,950 --> 00:08:09,120
modbus communication in here.
90

91
00:08:09,200 --> 00:08:10,240
Just an example.
91

92
00:08:10,250 --> 00:08:11,970
And in here to usage of it.
92

93
00:08:12,080 --> 00:08:14,790
So m1122
93

94
00:08:14,810 --> 00:08:19,360
Let's go back m1122 is sending request.
94

95
00:08:19,400 --> 00:08:22,370
So in here we are sending request.
95

96
00:08:22,380 --> 00:08:23,700
Read and write.
96

97
00:08:23,920 --> 00:08:26,470
And in here how we are detecting.
97

98
00:08:26,510 --> 00:08:27,620
Read and write.
98

99
00:08:27,740 --> 00:08:31,690
So hexadecimal 10 and hexadecimal three.
99

100
00:08:31,820 --> 00:08:37,540
Read and write commands or values for modbus communication.
100

101
00:08:37,640 --> 00:08:47,750
So we are reading and writing datas and we are writing these ones 4001 
101

102
00:08:47,750 --> 00:08:54,530
in here as to what is it , the function two, function code function
102

103
00:08:54,530 --> 00:09:04,970
code is should be hexadecimal three hexadecimal six or hexadecimal ten or K three as decimal K six as
103

104
00:09:04,970 --> 00:09:08,510
decimal K 16 as decimal in here.
104

105
00:09:08,510 --> 00:09:10,220
D4000 for example.
105

106
00:09:10,220 --> 00:09:12,320
These are all assigned by me.
106

107
00:09:12,650 --> 00:09:21,460
External device addresses which address that we are going to read and write values or data.
107

108
00:09:21,650 --> 00:09:27,230
So for example second slave we are going to write or read a data.
108

109
00:09:27,230 --> 00:09:29,280
So we need to put here two.
109

110
00:09:29,420 --> 00:09:37,550
And like this after you've fulfilled your mode read write function in here your data is according to
110

111
00:09:37,550 --> 00:09:44,080
this reading a register of being read and write or length of read and write data so you can communicate.
111

112
00:09:44,150 --> 00:09:45,270
via modbus
112

113
00:09:45,290 --> 00:09:46,660
Read and write command.
113

114
00:09:46,880 --> 00:09:49,370
So what is the difference between it also.
114

115
00:09:49,440 --> 00:10:00,590
For modbus read and write a function or instruction you need to assign your communication parameters you
115

116
00:10:00,590 --> 00:10:10,910
can use mode read and write a function or instruction if you want to communicate above 32 slave or
116

117
00:10:11,000 --> 00:10:12,140
16 slave
117

118
00:10:12,260 --> 00:10:21,610
You need this if you are communicating  with five or six or ten slave you can use PLC link
118

119
00:10:21,740 --> 00:10:22,600
easily.
119

120
00:10:22,610 --> 00:10:33,460
So with these plc link bits or internally auxiliary relays you can communicate easily with your
120

121
00:10:33,790 --> 00:10:35,490
slaves in here.
121

122
00:10:35,500 --> 00:10:40,890
Also we are going to learn communication protocol how to say so.
122

123
00:10:40,960 --> 00:10:46,770
You Need data link you need parity bit you need stop bits and you need baudrate.
123

124
00:10:46,780 --> 00:10:55,510
These are the most important four parameter in ıspsoft you're going to see auxiliary additions in help
124

125
00:10:55,510 --> 00:10:59,050
section and in auxiliary edition.
125

126
00:10:59,290 --> 00:11:01,950
You are going to see protocol setting code
126

127
00:11:01,960 --> 00:11:07,280
Let's take a look in here help- auxiliary edition- and protocol setting code
127

128
00:11:07,300 --> 00:11:10,180
This is what we need in here.
128

129
00:11:10,180 --> 00:11:15,610
Imagine you are you needas data length 8 parity OK.
129

130
00:11:15,660 --> 00:11:17,550
And stop bit two baud rate.
130

131
00:11:17,760 --> 00:11:23,320
Let's say 57600 and just click this one.
131

132
00:11:23,370 --> 00:11:31,020
You need to write as hexadecimal BB in D1120 data register in here
132

133
00:11:31,260 --> 00:11:35,300
we can calculated with our calculator.
133

134
00:11:35,630 --> 00:11:43,010
So these are 0 1 2 3 4 5 6 and 7.
134

135
00:11:43,010 --> 00:11:46,520
how we know this bit in here.
135

136
00:11:46,520 --> 00:11:54,980
You can see bit 0 detecting data link bit 1 and 2 assigned to parity bit , bit 3 is
136

137
00:11:57,930 --> 00:12:08,560
knowing or getting stop bits value bit 4 ,5 and 6 and 7 detecting as baudrate so we can knows
137

138
00:12:08,580 --> 00:12:14,820
or calculate our communication protocol setttings like this in here.
138

139
00:12:15,210 --> 00:12:16,500
We have an example.
139

140
00:12:16,590 --> 00:12:23,790
we have a table this is for plc link remember this one.
140

141
00:12:23,970 --> 00:12:31,260
If you are using this for easy communicating in here you're going to see Station Number four station
141

142
00:12:31,260 --> 00:12:41,430
number one reading address is d 1355 number of read data should be inside D1434 and reading
142

143
00:12:41,430 --> 00:12:50,700
data values will be stored in between D1480 and D1495 in here.
143

144
00:12:50,730 --> 00:12:51,540
Let's take a look.
144

145
00:12:51,540 --> 00:12:58,080
Our example 16 data read from hex 1000 adress in here.
145

146
00:12:58,080 --> 00:13:05,250
So and write this data to starting from the one thousand three hundred fifty five sequential data
146

147
00:13:05,250 --> 00:13:13,690
registers and how many data we are going to read we send this answer to here D1434
147

148
00:13:13,930 --> 00:13:15,920
D1434
148

149
00:13:16,000 --> 00:13:20,410
Here because we are communicating with first slave.
149

150
00:13:20,740 --> 00:13:27,990
So how many data we are going to read number of read data is assigned for the first station is D1434
150

151
00:13:27,990 --> 00:13:29,350
D1434
151

152
00:13:29,440 --> 00:13:31,920
These are cannot be changeable.
152

153
00:13:32,170 --> 00:13:35,290
So you cannot change these data registers.
153

154
00:13:35,290 --> 00:13:41,930
If we are using plclink M1350  M1351.
154

155
00:13:42,070 --> 00:13:45,450
So you need to use these data registers.
155

156
00:13:45,520 --> 00:13:54,130
So we are going to read from hexadecimal 1000 and starting reference address is here that we assigned
156

157
00:13:54,130 --> 00:14:00,430
in here so reading addresses also assigned also implemented in here.
157

158
00:14:00,490 --> 00:14:10,900
So we are going to read 16 data after we read 16 data from hexadecimal 1000 address reading data will
158

159
00:14:10,900 --> 00:14:19,260
be stored in D1480-95
159

160
00:14:19,360 --> 00:14:22,750
Between these data registers sixteen data is stored.
160

161
00:14:23,020 --> 00:14:33,460
So we are always moving these data these 16 data to D0, starting from D0 16 sequential
161

162
00:14:33,460 --> 00:14:41,930
data registers will be give us or show us readed values or readed datas
162

163
00:14:42,130 --> 00:14:46,170
So in here also let's take a look once to writing.
163

164
00:14:46,180 --> 00:14:54,850
Example for first station we are going to we are going to write some data how can we do this.
164

165
00:14:54,850 --> 00:15:03,750
How can we write data to our slaves writing address is for the first station D1415 number of write
165

166
00:15:03,760 --> 00:15:12,090
data is D1450 writing data values is here d1496 between the d1511
166

167
00:15:12,090 --> 00:15:13,520
d1511
167

168
00:15:13,630 --> 00:15:22,810
So in the first scan of plc we are writing hexadecimal 2000 to d1450
168

169
00:15:22,810 --> 00:15:26,470
writing address here.
169

170
00:15:26,470 --> 00:15:30,610
So how many data we are going to write 16 data.
170

171
00:15:30,610 --> 00:15:35,560
We are going to write to d1450 is here.
171

172
00:15:35,560 --> 00:15:37,600
So this is the second thing.
172

173
00:15:37,600 --> 00:15:48,910
So always  you can see M1000 normally open contact always on contact we are moving starting
173

174
00:15:48,910 --> 00:15:53,240
from D0 till D15 also D15 included.
174

175
00:15:53,440 --> 00:16:01,860
I mean 16 data register sixteen data or sixteen value we are writing these values from starting from
175

176
00:16:01,870 --> 00:16:07,090
D0 to D1496 these areas.
176

177
00:16:07,090 --> 00:16:15,700
So if you write inside of D0 is 1 D1496 will be
177

178
00:16:16,030 --> 00:16:28,660
1if you are writing for D1 let's say equals three so also the one thousand four hundred ninety seven
178

179
00:16:29,830 --> 00:16:33,900
will be three also it will be equal.
179

180
00:16:33,990 --> 00:16:42,780
So we are always writing this data to our slave for first station imagine you want to write
180

181
00:16:42,780 --> 00:16:52,860
to some data to 10. station so you need to use this writing address to here you need to use this number
181

182
00:16:52,860 --> 00:17:06,690
of write that the 1459 to here and in here we are going to write data to D1784 D1799 so sixteen
182

183
00:17:06,690 --> 00:17:17,320
data will be written to these data registers completely and in here how can we know how many .
183

184
00:17:17,400 --> 00:17:29,110
control type of the VFD's. for example for the vfd-e drive or Delta vfd-e
184

185
00:17:29,670 --> 00:17:30,290
modbus
185

186
00:17:30,290 --> 00:17:39,580
Read areas and write areas in here for example if you want to run your vfd and you
186

187
00:17:39,580 --> 00:17:42,390
want to communicate via your vfd or drive
187

188
00:17:42,700 --> 00:17:46,080
So you want to send to run command to your drive
188

189
00:17:46,270 --> 00:17:48,910
So which data you need to write to drive.
189

190
00:17:48,940 --> 00:17:56,830
This is the explanation complete table of explanation of vfde modbus write and read areas for
190

191
00:17:57,190 --> 00:17:58,360
run command.
191

192
00:17:58,360 --> 00:18:05,340
You need to write bit zero and one you need use bitzero and bit one.
192

193
00:18:05,380 --> 00:18:11,460
You need to put here 1 and 0 1 and 0 equals 2.
193

194
00:18:11,630 --> 00:18:22,510
K 2 This is binary system in binary system you if you calculate between is 1 and 0 equals 2 
194

195
00:18:22,630 --> 00:18:34,130
So that means as hexadecimal or decimal 2 for example if you want to write for forward command so you
195

196
00:18:34,130 --> 00:18:36,270
want to turn your motors forward.
196

197
00:18:36,590 --> 00:18:41,570
So you need to use bit 4 and 5 in here.
197

198
00:18:41,570 --> 00:18:53,770
If you write 0 and 1 imagine these are all zeros so binary ten thousand it equals to in our calculation
198

199
00:18:54,170 --> 00:18:55,150
sixteen.
199

200
00:18:55,300 --> 00:19:04,170
So you can write your commands to your vfd with this table.
200

201
00:19:04,170 --> 00:19:10,980
Support of this table and you can calculate your commands which commands that you need.
201

202
00:19:11,130 --> 00:19:15,050
So you can write these values to your vfd.
202

203
00:19:15,270 --> 00:19:18,620
So in here important point command.
203

204
00:19:18,720 --> 00:19:19,290
write
204

205
00:19:19,320 --> 00:19:22,180
Only so these areas until here.
205

206
00:19:22,310 --> 00:19:30,960
Just writable and also you need to use hexadecimal 2000 2001 and 2002.
206

207
00:19:30,960 --> 00:19:39,860
These are all addresses of vfd-e so you can read some datas from your vfd what you can read.
207

208
00:19:39,900 --> 00:19:47,910
For example the error codes and also completely in here the error codes but in the next page you will
208

209
00:19:47,910 --> 00:19:57,630
see still errors and also if your status of AC  drive or VFD the status of your vfd and also
209

210
00:19:58,340 --> 00:20:03,520
run stop off etc.  on the AC motor drive stops.
210

211
00:20:03,780 --> 00:20:11,790
Something like this whole  status or monitoring values that you can read from your vfd and also
211

212
00:20:12,090 --> 00:20:13,930
important point in here.
212

213
00:20:14,010 --> 00:20:17,590
You can read this address two thousand one hundred and two.
213

214
00:20:17,580 --> 00:20:19,330
So this is frequency command.
214

215
00:20:19,380 --> 00:20:27,090
For example if you need output frequency you need to read two thousand one hundred three address.
215

216
00:20:27,150 --> 00:20:33,810
For example if you want to know output voltage of your vfd  you need to read two thousand one hundred
216

217
00:20:33,900 --> 00:20:37,800
nine hexadecimal address for this video.
217

218
00:20:37,820 --> 00:20:39,090
I'm finished here.
218

219
00:20:39,090 --> 00:20:40,640
See you in the next video.
219

220
00:20:40,650 --> 00:20:47,840
we  will do some applications some examples to understand this communication.
220

221
00:20:48,420 --> 00:21:00,120
So just watch the example videos and then write similar codes in your plc project and test once and
221

222
00:21:00,420 --> 00:21:08,190
we will continue and we will put a little bit information about it and we will completely understand.
222

223
00:21:08,190 --> 00:21:15,450
Communication serial communication between plc  and drives and another external devices.
