Chapter 8. Communication Function
8-78
Ex1) 00 0A 01 02
Function block input
Input value
REQ
Enter the input condition to operate
CH
16#1 or 1
Set channel (0, 1)
SLV_ADDR
16#11 or 17
Slave station
FUNC
16#10 or 16
Enter ‘16’ as bits are continually written on the Holding Register.
ADDR
16#01 or 1
Set the starting address to write on the slave station
-
Write on no. 1 to write on, starting from the Holding Register
40002 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#02 or 2
Set the number of data to write on the slave station..
-
As the example writes 2, of which hex is 16#0002. Input
16#02 for NUM.
z
Result
Holding Registers
40003
40002
Registers status
16#0102
16#000A
5) Error codes
CODE
Error type
Meaning
01
Illegal Function
Error in inputting function code in function block.
02
Illegal Address
Error of exceeding the area limit of reading/writing on the slave station.
03
Illegal Data Value
Error when the data value to be read from or write on the slave station isn’t
allowed.
04
Slave Device Failure
Error status of the slave station.
05 Acknowledge
It’s a responding code of the slave station for the master station to prevent the
master stations time-out error, when request command processing takes
time. The master station marks an error code and waits for a certain time
without making any second request.
06 Slave
Device
Busy
Error when request command processing takes too much time. The master
should request again.
07 Time
Out
Error when exceeds the time limit of the communication parameter as it
communicates.
08 Number
Error
Errors when data is 0 or more than 256 bytes, when the data size is bigger
than the array size, or when Number and BYTE_CNT are different from each
other.
09
Parameter Error
Error of setting parameters (mode, master/ slave)
10 Station
Error
Error when the station number of itself and the station number set by the
input parameter of the function block is the same.
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...