Hello. 1
In this video we are going to learn for comport1 and 2 and 3 port protocol settings. 2
We have two options for the modbus communication. 3
First of all modbus ASCII communication and the second option is modbus. 4
RTU communication for com1. 5
We can select rs232 communication and imagine we selected as baudrate 19200 6
stop bit is one bit and parity is even and the data length is seven. 7
So this is protocol setting code window. 8
And if you click to right arrow button then you will get a value. 9
So this is our hexadecimal value in the first scan of our plc with the contact of plc M1002. 10
It is going to transfer hexadecimal 96 value to D1036 so this d1036 11
special data registers and it is fixed one and you cannot change it. 12
So for the adapt your port settings for com 1 you need to use D1036 data register. 13
So for the ASCII communication you need to reset and D1029 and you 14
need to set and D1128 auxiliary releay, for RTU 15
communication. 16
Imagine you are using 38400 as baudrate and stop bit is equal to 1 and the 17
parity is none. 18
And the data length is equals to 8 ,after calculation you will get 00A1. 19
So you need to send this or transfer these hexadecimal A1 to the D1036 20
So you need to set now a M1139 for ASCII communication we will be 21
reset it but now we set it and set M1038 you need to set this auxiliary relay also for com2 22
RS485 protocol settings you need to calculate your protocol communication 23
and you can use it again protocol setting code window and 9600 baudrate 24
and one bit is selected for the stop it even selected for parity and seven is selected for 25
the data length and we get our result as hexadecimal H86 so we send it to the D1120 26
but imagine in here it was D1026 so for com2 our special data 27
registers address is changed so also for ASCII communication we are resetting for com 2 and M1 143 28
but it was M1139 for com1 and we are setting 29
and M1120 it was M1138 for the com1 30
and this is for the com2 modbus ASCII a communication for modbus RTU for com2 we are 31
sending H97 why because we selected now 19200 as baudrate 32
one bit for the stop it even for the parity and eight for the data length after our calculation 33
we get 97 value so this is hexadecimal value is sending to the D1120 34
and we are setting now and M1143 auxiliary relay and like similar 35
ASCII communication still same we are setting M1124 modbus RTU 36
communication for com2 port for com3 port imagine we are selected 19200 as baudrate 37
one bit for this stop it even for the parity and the Seven is data length in our calculation 38
we get 96 value as hexadecimal and now we are setting it to the D1109 39
in four com2 it was the 1124 for com1it was the 1036 40
but now it is the 1109 41
So now we are resetting M1320 for com2 it was m1143 42
For Com1 look it was M1139 but 43
for com3 rs485 Port protocol we are resetting M1320 44
we are setting M1136 for modbus RTU 45
communication we are sending B1 as hexadecimal so how do we get this one. 46
We selected as both rate 57600 stop bit is selected as one Bit parity selected 47
as none and the data length is selected eight so we get this value so we are sending this value to the 48
D1109 but according to if we compare with ASCII now we need to set M1320 49
for the modbus RTU communication and it set a similar in 50
here M1136 auxiliary relay set in here. 51
So let's take a look once to these protocol window called in ISPSoft come here click help and come 52
here. 53
Auxiliary Edition 54
And you will see protocol setting code 55
This page will be open. 56
So let's select for example 9600. 57
And two bit and baudrate and a calculate 8B, let's select this one to 57600 and 58
one Bit and none and seven 59
Calculate b0 and let's select it as 8 calculate,00B1. 60
So you can use protocol setting code Window to find your hexadecimal value for the communication 61
for the com 1 and 2 and 3. 62
Port protocol settings and you can use it and you can find it easily for this video. 63
I'm finished here. 64
See you in the next video.