IMO Precision Controls K7 Series User Manual page 199

Programmable logic controller
Table of Contents

Advertisement

Chapter 8 Communication Function
Example program 1
It ' s supposed that MK80S base unit is the master and it reads Coil Status of the station no. 17, a Modicon product.
The master reads status of the Coil 00020 ~ 00056 of the slave station no. 17. The Coil of the slave station is supposed to be as follows
and the data that are read is saved in D1000
Coil
Status
Hex
Coil
Status
Hex
The status of Coil 57, 58, 59 are redundancy.
Data is sent starting from the low bit by byte unit. If the deficient bit of a byte is filled with 0. An example of sending the above data is
as follows.
Example 1) CD B2 0E 1B
Program
: It designates slave station and function code
No. of station : h11(17) , function code : h01
: Address setting
Address ' 0 ' at MODBUS protocol means address ' 1 ' actually .So if you want to designate address ' 20 ' , write address ' 19 '
: Reading number setting
Reading number is 37 from 20 to 56.
: This is MODBUS Communication instruction.
Data is sent starting from the low bit by byte unit. If the deficient bit of a byte is filled with 0. An example of sending
the above data is as follows.
The data transmission starts lower byte. The remnant part of byte is filled with ' 0
Example 1) CD B2 0E 1B
Stored data at D1000,D1001,D1002
59
58
57
56
55
54
X
X
X
1
1
0
1
B
39
38
37
36
35
34
0
0
1
0
0
1
2
6
<Data status of the Modicon product ' s Coil 00020-00059>
Device
Stored data
D1000
h CD 6B
D1001
h B2 CE
D1002
h 00 1B
8-76
53
52
51
50
49
48
1
1
0
0
0
0
0
33
32
31
30
29
28
1
0
1
0
1
1
B
47
46
45
44
43
42
41
1
1
1
0
1
0
E
B
27
26
25
24
23
22
21
1
1
0
0
1
1
C
D
'
40
1
1
20
0
1

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the K7 Series and is the answer not in the manual?

Related Products for IMO Precision Controls K7 Series

This manual is also suitable for:

K7m-dr20sK7m-dr30sK7m-dr40sK7m-dr60s

Table of Contents