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