EasyManua.ls Logo

LS Industrial Systems GLOFA G7M-DT60U(N)/DC - Page 296

LS Industrial Systems GLOFA G7M-DT60U(N)/DC
367 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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

Table of Contents

Related product manuals