Chapter 8. Communication Function
8-69
Ex1) CD 6B B2 0E 1B
Function block input
Input value
REQ
Enter the input condition to operate
CH
16#0 or 0
Set channel 0
SLV_STNO
16#11 or 17
Slave station
FUNC
16#01 or 1
Enter ‘1’ when the Coil status is being read
SLV_ADDR
16#13 or 19
The start address to read from slave station
- Read the no. 19 to read starting from the Coil 00020 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#25 or 37
The total data size to read
- Example is to be read 00020 ~ 00056, of which the total data size
is 37. Input 16#25 or 37.
z
Results
Variable
Value to
save
Variable
Value to
save
Variable
Value to
save
Variable
Value to
save
RD_DB0[0] 1 RD_DB0[10] 0 RD_DB0[20]
1 RD_DB0[30] 0
RD_DB0[1] 0 RD_DB0[11] 1 RD_DB0[21]
1 RD_DB0[31] 0
RD_DB0[2] 1 RD_DB0[12] 0 RD_DB0[22]
0 RD_DB0[32] 1
RD_DB0[3] 1 RD_DB0[13] 1 RD_DB0[23]
1 RD_DB0[33] 1
RD_DB0[4] 0 RD_DB0[14] 1 RD_DB0[24]
0 RD_DB0[34] 0
RD_DB0[5] 0 RD_DB0[15] 0 RD_DB0[25]
1 RD_DB0[35] 1
RD_DB0[6] 1 RD_DB0[16] 0 RD_DB0[26]
1 RD_DB0[36] 1
RD_DB0[7] 1 RD_DB0[17] 1 RD_DB0[27]
1 RD_DB0[37] X
RD_DB0[8] 1 RD_DB0[18] 0 RD_DB0[28]
0 RD_DB0[38] X
RD_DB0[9] 1 RD_DB0[19] 0 RD_DB0[29]
0 RD_DB0[39] X
z
The variable to which saves the previously read data must be array type. The size of array type must be the
same or bigger than the data size to read. If it’s smaller, the error code is marked in STATUS.
z
The previously read data is saved from the array variable, RD_DB0[0].
z
The remnant part of an array variable is redundancy, after the variable is filled with the previously read data.
Содержание GLOFA G7M-DR20U
Страница 28: ...Chapter 4 Names of Parts 4 3 2 G7M DRT60U N 3 G7M DT60U N 4 G7M DT60U P...
Страница 29: ...Chapter 4 Names of Parts 4 4 5 G7M DR60U DC 6 G7M DRT60U N DC 7 G7M DT60U N DC...
Страница 30: ...Chapter 4 Names of Parts 4 5 8 G7M DT60U P DC 4 1 2 40 point main unit 1 G7M DR40U 2 G7M DRT40U N...
Страница 31: ...Chapter 4 Names of Parts 4 6 3 G7M DT40U N 4 G7M DT40U P 5 G7M DR40U DC...
Страница 32: ...Chapter 4 Names of Parts 4 7 6 G7M DRT40U N DC 7 G7M DT40U N DC 8 G7M DT40U P DC...
Страница 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...
Страница 34: ...Chapter 4 Names of Parts 4 9 4 G7M DT30U P 5 G7M DR30U DC 6 G7M DRT30U N DC...
Страница 35: ...Chapter 4 Names of Parts 4 10 7 G7M DT30U N DC 8 G7M DT30U P DC 4 1 4 20 point main unit 1 G7M DR20U...
Страница 36: ...Chapter 4 Names of Parts 4 11 2 G7M DRT20U N 3 G7M DT20U N 4 G7M DT20U P...
Страница 37: ...Chapter 4 Names of Parts 4 12 5 G7M DR20U DC 6 G7M DRT20U N DC 7 G7M DT20U N DC...
Страница 38: ...Chapter 4 Names of Parts 4 13 8 G7M DT20U P DC...
Страница 159: ...Chapter 7 Usage of Various Functions 7 52 c Program...
Страница 183: ...Chapter 7 Usage of Various Functions 7 76 c Program...
Страница 253: ...Chapter 8 Communication Functions 8 27 b When uses Ch 1 Built in RS 485...
Страница 355: ...Appendix 1 System Definitions App1 8 5 PID parameters 1 PID Auto Tuning Parameter 2 PID Parameter...
Страница 356: ...Appendix 1 System Definitions App1 9 6 Position Parameter...
Страница 357: ...Appendix 1 System Definitions App1 10 7 High Speed Counter Parameter...