![ABB NMBA-01 Скачать руководство пользователя страница 56](http://html.mh-extra.com/html/abb/nmba-01/nmba-01_installation-and-startup-manual_2753056.webp)
Appendix B – Modbus Protocol
B-18
NMBA-01 Installation and Start-up Guide
In this example, the master addresses a query to slave device 10 (0A
hex). The function code (01) is for a Read Coil Status operation. It
requests the status of the coil at address 1245 (04A1 hex). Note that
only that one coil is to be read, as specified by the number of coils field
(0001).
If the coil address is non-existent in the slave device, the slave will
return the exception response with the exception code shown (02).
This specifies an illegal data address for the slave. For example, if the
slave is a 984-385 with 512 coils, this code would be returned.
A listing of Modicon exception codes is in
Table C-1 Standard Excep-
tion Codes.
Table C-1 Standard Exception Codes
Code
Name
Meaning
01
ILLEGAL FUNCTION
The function code received in the query is not
an allowable action for the slave. If a Poll
Program Complete command was issued, this
code indicates that no program function
preceded it.
02
ILLEGAL DATA
ADDRESS
The data address received in the query is not
an allowable address for the slave.
03
ILLEGAL DATA VALUE
A value contained in the query data field is not
an allowable value for the slave.
04
SLAVE DEVICE
FAILURE
An unrecoverable error occurred while the
slave was attempting to perform the requested
action.
05
ACKNOWLEDGE
The slave has accepted the request and is
processing it, but a long duration of time will be
required to do so. This response is returned to
prevent a time-out error from occurring in the
master. The master can next issue a Poll
Program Complete message to determine if
processing is completed.
06
SLAVE DEVICE BUSY
The slave is engaged in processing a long
duration program command. The master
should retransmit the message later when the
slave is free.
07
NEGATIVE
ACKNOWLEDGE
The slave cannot perform the program function
received in the query. This code is returned for
an unsuccessful programming request using
function code 13 or 14 decimal. The master
should request diagnostic or error information
from the slave.
08
MEMORY PARITY
ERROR
The slave attempted to read extended
memory, but detected a parity error in the
memory. The master can retry the request, but
service may be required on the slave device.
efesotomasyon.com - Control Techniques,emerson,saftronics -ac drive-servo motor