Chapter 8. Communication Function
8-70
z
It assumes that GM7U main unit is the master and it reads Input Status of the station no. 17, a Modicon product.
z
The master reads status of the Input 10197 ~ 10218 of the slave station no. 17. The Input of the slave station is
supposed to be as follows and the data that are previously read is saved in any array variable RD_DB1 of the
24-sized BOOL type.
Input
10220
10219
10218
10217
10216
10215
10214
10213
10212
10211
10210
10209
Status
X
X 1 1 0 1 0 1 1 1 0 1
Hex 3
5
D
Input
10208
10207
10206
10205
10204
10203
10202
10201
10200
10199
10198
10197
Status 1 0 1 1 1 0 1 0 1 1 0 0
Hex B
A
C
z
Input coil 10219, 10220 are redundancy.
z
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.
Ex1) AC DB 35
Function block input
Input value
REQ
Enter the input condition to operate
CH
16#1 or 1
Set channel 1
SLV_STNO
16#11 or 17
Slave station
FUNC
16#02 or 2
Enter ‘2’ when the Coil status is being read
SLV_ADDR
16#C4 or 196
The start address to read from slave station
- Read the no. 196 to read starting from the Coil 10197 in
accordance with the previous no. 8) “Modbus addressing rules.”
And the highest data of the data address doesn’t need to be
input. Because it’s automatically processed by the input value
of the input FUNC of the function block.
NUM
16#16 or 22
The total data size to read
- Example is to be read 10197 ~ 10218, of which the total data
size is 22. Input 16#16 or 22.
z
Results
Variable
Value to
save
Variable
Value to
save
Variable
Value to
save
Variable
Value to
save
RD_DB1[0] 0 RD_DB1[6] 0 RD_DB1[12]
1 RD_DB1[18] 1
RD_DB1[1] 0 RD_DB1[7] 1 RD_DB1[13]
0 RD_DB1[19] 0
RD_DB1[2] 1 RD_DB1[8] 1 RD_DB1[14]
1 RD_DB1[20] 1
RD_DB1[3] 1 RD_DB1[9] 1 RD_DB1[15]
1 RD_DB1[21] 1
RD_DB1[4] 0 RD_DB1[10] 0 RD_DB1[16]
1 RD_DB1[22] X
RD_DB1[5] 1 RD_DB1[11] 1 RD_DB1[17]
0 RD_DB1[23] X
Summary of Contents for GLOFA G7M-DR20U
Page 28: ...Chapter 4 Names of Parts 4 3 2 G7M DRT60U N 3 G7M DT60U N 4 G7M DT60U P...
Page 29: ...Chapter 4 Names of Parts 4 4 5 G7M DR60U DC 6 G7M DRT60U N DC 7 G7M DT60U N DC...
Page 31: ...Chapter 4 Names of Parts 4 6 3 G7M DT40U N 4 G7M DT40U P 5 G7M DR40U DC...
Page 32: ...Chapter 4 Names of Parts 4 7 6 G7M DRT40U N DC 7 G7M DT40U N DC 8 G7M DT40U P DC...
Page 33: ...Chapter 4 Names of Parts 4 8 4 1 3 30 point main unit 1 G7M DR30U 2 G7M DRT30U N 3 G7M DT30U N...
Page 34: ...Chapter 4 Names of Parts 4 9 4 G7M DT30U P 5 G7M DR30U DC 6 G7M DRT30U N DC...
Page 36: ...Chapter 4 Names of Parts 4 11 2 G7M DRT20U N 3 G7M DT20U N 4 G7M DT20U P...
Page 37: ...Chapter 4 Names of Parts 4 12 5 G7M DR20U DC 6 G7M DRT20U N DC 7 G7M DT20U N DC...
Page 38: ...Chapter 4 Names of Parts 4 13 8 G7M DT20U P DC...
Page 159: ...Chapter 7 Usage of Various Functions 7 52 c Program...
Page 183: ...Chapter 7 Usage of Various Functions 7 76 c Program...
Page 253: ...Chapter 8 Communication Functions 8 27 b When uses Ch 1 Built in RS 485...
Page 356: ...Appendix 1 System Definitions App1 9 6 Position Parameter...
Page 357: ...Appendix 1 System Definitions App1 10 7 High Speed Counter Parameter...