0
1
00:00:21,390 --> 00:00:22,040
Hello.
1

2
00:00:22,140 --> 00:00:29,420
In this video we are going to learn for comport1 and 2 and  3 port protocol settings.
2

3
00:00:29,430 --> 00:00:32,820
We have two options for the modbus communication.
3

4
00:00:32,820 --> 00:00:38,970
First of all modbus ASCII communication and the second option is modbus.
4

5
00:00:38,970 --> 00:00:42,060
RTU communication for com1.
5

6
00:00:42,090 --> 00:00:50,280
We can select rs232 communication and imagine we selected as baudrate 19200
6

7
00:00:50,280 --> 00:00:57,300
stop bit is one bit and parity is even and the data length is seven.
7

8
00:00:57,300 --> 00:01:00,690
So this is protocol setting code window.
8

9
00:01:00,690 --> 00:01:04,850
And if you click to right arrow button then you will get a value.
9

10
00:01:04,860 --> 00:01:14,500
So this is our hexadecimal value in the first scan of our plc with the contact of plc M1002.
10

11
00:01:14,610 --> 00:01:25,000
It is going to transfer hexadecimal 96 value to D1036 so this d1036
11

12
00:01:25,000 --> 00:01:32,020
special data registers and it is fixed one and you cannot change it.
12

13
00:01:32,040 --> 00:01:40,900
So for the adapt your port settings for com 1 you need to use D1036 data register.
13

14
00:01:41,040 --> 00:01:48,600
So for the ASCII communication you need to reset and D1029 and you
14

15
00:01:48,600 --> 00:01:56,580
need to set and D1128 auxiliary releay, for RTU
15

16
00:01:56,610 --> 00:01:58,030
communication.
16

17
00:01:58,050 --> 00:02:07,170
Imagine you are using 38400 as baudrate and stop bit is equal to 1 and the
17

18
00:02:07,170 --> 00:02:08,660
parity is none.
18

19
00:02:08,730 --> 00:02:16,110
And the data length is equals to 8 ,after calculation you will get 00A1.
19

20
00:02:16,110 --> 00:02:24,320
So you need to send this or transfer these hexadecimal A1 to the D1036
20

21
00:02:24,460 --> 00:02:33,180
So you need to set now a M1139 for ASCII communication we will be
21

22
00:02:33,180 --> 00:02:43,410
reset it but now we set it and set M1038  you need to set this auxiliary relay also for com2
22

23
00:02:43,410 --> 00:02:52,500
RS485 protocol settings you need to calculate your protocol communication
23

24
00:02:52,500 --> 00:03:00,590
and you can use it again protocol setting code window and 9600 baudrate
24

25
00:03:00,590 --> 00:03:07,440
and one bit is selected for the stop it even selected for parity and seven is selected for
25

26
00:03:07,440 --> 00:03:17,370
the data length and we get our result as hexadecimal H86 so we send it to the D1120
26

27
00:03:17,370 --> 00:03:25,170
but imagine in here it was D1026 so for com2 our special data
27

28
00:03:25,170 --> 00:03:34,590
registers address is changed so also for ASCII communication we are resetting for com 2 and M1 143
28

29
00:03:34,650 --> 00:03:43,020
but it was M1139 for com1 and we are setting
29

30
00:03:43,020 --> 00:03:49,740
and M1120 it was M1138 for the com1
30

31
00:03:49,740 --> 00:03:58,260
and this is for the com2 modbus ASCII a communication for modbus RTU for com2 we are
31

32
00:03:58,320 --> 00:04:06,920
sending H97 why because we selected now 19200 as baudrate
32

33
00:04:06,930 --> 00:04:14,730
one bit for the stop it even for the parity and eight for the data length after our calculation
33

34
00:04:15,030 --> 00:04:22,530
we get 97 value so this is hexadecimal value is sending to the D1120
34

35
00:04:22,530 --> 00:04:30,780
and we are setting now and M1143 auxiliary relay and like similar
35

36
00:04:30,930 --> 00:04:39,280
ASCII communication still same we are setting M1124 modbus RTU
36

37
00:04:39,310 --> 00:04:47,490
communication for com2 port for com3 port imagine we are selected 19200 as baudrate
37

38
00:04:47,490 --> 00:04:56,280
one bit for this stop it even for the parity and the Seven is data length in our calculation
38

39
00:04:56,520 --> 00:05:04,080
we get 96 value as hexadecimal and now we are setting it to the D1109
39

40
00:05:04,140 --> 00:05:12,090
in four com2 it was the 1124 for com1it was the 1036
40

41
00:05:12,600 --> 00:05:18,440
but now it is the 1109
41

42
00:05:18,540 --> 00:05:25,310
So now we are resetting M1320 for com2 it was m1143
42

43
00:05:25,310 --> 00:05:32,180
For Com1 look it was M1139 but
43

44
00:05:32,180 --> 00:05:40,310
for com3 rs485 Port protocol we are resetting M1320
44

45
00:05:40,310 --> 00:05:45,710
we are setting  M1136 for modbus RTU
45

46
00:05:45,710 --> 00:05:53,540
communication we are sending B1 as hexadecimal so how do we get this one.
46

47
00:05:53,720 --> 00:06:01,700
We selected as both rate 57600 stop bit is selected as one Bit parity selected
47

48
00:06:01,730 --> 00:06:08,960
as none and the data length is selected eight so we get this value so we are sending this value to the
48

49
00:06:08,960 --> 00:06:16,710
D1109 but according to if we compare with ASCII now we need to set M1320
49

50
00:06:16,700 --> 00:06:25,430
for the modbus RTU communication and it set a similar in
50

51
00:06:25,430 --> 00:06:32,510
here M1136 auxiliary relay set in here.
51

52
00:06:32,720 --> 00:06:44,080
So let's take a look once to these protocol window called in ISPSoft come here click help and come
52

53
00:06:44,080 --> 00:06:44,370
here.
53

54
00:06:44,410 --> 00:06:46,160
Auxiliary Edition
54

55
00:06:46,360 --> 00:06:49,450
And you will see protocol setting code 
55

56
00:06:49,450 --> 00:06:51,100
This page will be open.
56

57
00:06:51,100 --> 00:06:54,640
So let's select for example 9600.
57

58
00:06:54,760 --> 00:07:04,410
And two bit and baudrate and a calculate 8B, let's select this one to 57600 and
58

59
00:07:04,420 --> 00:07:08,180
one Bit  and none and seven
59

60
00:07:08,350 --> 00:07:16,520
Calculate b0 and let's select it as 8 calculate,00B1.
60

61
00:07:16,540 --> 00:07:26,650
So you can use protocol setting code Window to  find your hexadecimal value for the communication
61

62
00:07:26,650 --> 00:07:29,100
for the com 1 and 2 and 3.
62

63
00:07:29,230 --> 00:07:35,450
Port protocol settings and you can use it and you can find it easily for this video.
63

64
00:07:35,740 --> 00:07:36,910
I'm finished here.
64

65
00:07:36,910 --> 00:07:38,710
See you in the next video.
