Difference between revisions of "MODBUS Exception Responses"

From ATTWiki
Jump to: navigation, search
 
(6 intermediate revisions by one user not shown)
Line 1: Line 1:
[[MODBUS]] Errors are:
+
The possible [[MODBUS]] Exception Reponses are listed here.  If CNC Bender returns a Modbus Error, then it will use one of these numbers.  This error is recorded in the '''ImmediateMessage.log''' found in the '''c:\cnc\logs''' folder.
<table cellpadding="15" width = 650>
+
 
 +
 
 +
<table cellpadding="15" width = 450>
  
 
<tr valign="top">
 
<tr valign="top">
 
<td bgcolor="#abbad1" width = 200>
 
<td bgcolor="#abbad1" width = 200>
<font size=4><b>ERROR 1</b></font>
+
<font size=4><b>Exception 1</b></font>
 
----<br>
 
----<br>
 
ILLEGAL FUNCTION
 
ILLEGAL FUNCTION
Line 19: Line 21:
 
<tr valign="top">
 
<tr valign="top">
 
<td bgcolor="#abbad1" width = 200>
 
<td bgcolor="#abbad1" width = 200>
<font size=4><b>ERROR 2</b></font>
+
<font size=4><b>Exception 2</b></font>
 
----<br>
 
----<br>
 
ILLEGAL DATA ADDRESS
 
ILLEGAL DATA ADDRESS
Line 32: Line 34:
 
<tr valign="top">
 
<tr valign="top">
 
<td bgcolor="#abbad1" width = 200>
 
<td bgcolor="#abbad1" width = 200>
<font size=4><b>STEP 3</b></font>
+
<font size=4><b>Exception 3</b></font>
 
----<br>
 
----<br>
Find CNC Folder
+
ILLEGAL DATA VALUE
 
</td>
 
</td>
 
<td bgcolor="#e3e4f5">
 
<td bgcolor="#e3e4f5">
Browse to the C:\CNC folder on the operator station using Windows Explorer.
+
A value contained in the query data
 +
field is not an allowable value for the
 +
slave.
 
</td>
 
</td>
 
</tr>
 
</tr>
Line 43: Line 47:
 
<tr valign="top">
 
<tr valign="top">
 
<td bgcolor="#abbad1" width = 200>
 
<td bgcolor="#abbad1" width = 200>
<font size=4><b>STEP 4</b></font>
+
<font size=4><b>Exception 4</b></font>
 
----<br>
 
----<br>
Copy CNC Folder
+
SLAVE DEVICE FAILURE
 
</td>
 
</td>
 
<td bgcolor="#e3e4f5">
 
<td bgcolor="#e3e4f5">
Copy the CNC FOLDER to the USB flash drive.
+
An unrecoverable error occurred while
 +
the slave was attempting to perform the
 +
requested action.
 
</td>
 
</td>
 
</tr>
 
</tr>
Line 54: Line 60:
 
<tr valign="top">
 
<tr valign="top">
 
<td bgcolor="#abbad1" width = 200>
 
<td bgcolor="#abbad1" width = 200>
<font size=4><b>STEP 5</b></font>
+
<font size=4><b>Exception 5</b></font>
 
----<br>
 
----<br>
Remove the USB Flash Drive
+
ACKNOWLEDGE
 
</td>
 
</td>
 
<td bgcolor="#e3e4f5">
 
<td bgcolor="#e3e4f5">
Remove the USB flash drive using the system tool tray "Safely Remove Hardware" feature.
+
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
 +
timeout error from occurring in the
 +
master. The master can next issue a
 +
Poll Program Complete message to
 +
determine if processing is completed.
 
</td>
 
</td>
 
</tr>
 
</tr>
Line 65: Line 78:
 
<tr valign="top">
 
<tr valign="top">
 
<td bgcolor="#abbad1" width = 200>
 
<td bgcolor="#abbad1" width = 200>
<font size=4><b>STEP 6</b></font>
+
<font size=4><b>Exception 6</b></font>
 
----<br>
 
----<br>
Plug the USB Flash Drive In
+
SLAVE DEVICE BUSY
 
</td>
 
</td>
 
<td bgcolor="#e3e4f5">
 
<td bgcolor="#e3e4f5">
Plug the USB flash drive into the NEW target computer.
+
The slave is engaged in processing a
 +
long–duration program command. The
 +
master should retransmit the message
 +
later when the slave is free.
 
</td>
 
</td>
 
</tr>
 
</tr>
Line 76: Line 92:
 
<tr valign="top">
 
<tr valign="top">
 
<td bgcolor="#abbad1" width = 200>
 
<td bgcolor="#abbad1" width = 200>
<font size=4><b>STEP 7</b></font>
+
<font size=4><b>Exception 7</b></font>
----<br>
+
Copy to C:\CNC
+
</td>
+
<td bgcolor="#e3e4f5">
+
Use Windows Explorer to copy the data to the same folder on the target computer's drive.  The folder should be "c:\cnc"
+
</td>
+
</tr>
+
 
+
<tr valign="top">
+
<td bgcolor="#abbad1" width = 200>
+
<font size=4><b>STEP 8</b></font>
+
----<br>
+
Run the Hardware Key DRIVER
+
</td>
+
<td bgcolor="#e3e4f5">
+
[[image:haspdriver.jpg|thumb|HASP Driver Software]]
+
Browse to the c:\cnc\key folder and run "hdd32.exe."  This program is a hardware key driver file that needs only to be run once.  It may require that you be logged in as a user with administrative rights.
+
 
+
Download the latest hdd32.exe file here: http://www.advancedtubular.com/key/hdd32.exe
+
</td>
+
</tr>
+
 
+
<tr valign="top">
+
<td bgcolor="#abbad1" width = 200>
+
<font size=4><b>STEP 9</b></font>
+
----<br>
+
Transfer Hardware Key
+
</td>
+
<td bgcolor="#e3e4f5">
+
[[image:hasp.jpg|thumb|Hasp Hardware Key]]
+
Remove the hardware key from the parallel port of the CNC Bender operator station (inside the operator station enclosure).
+
 
+
Plug it into the new computer parallel port.
+
</td>
+
</tr>
+
 
+
 
+
<tr valign="top">
+
<td bgcolor="#abbad1" width = 200>
+
<font size=4><b>STEP 10</b></font>
+
----<br>
+
Set the NEW Computer IP Address
+
</td>
+
<td bgcolor="#e3e4f5">
+
Use the Windows Start / Connect To menu to configure the TCP/IP address of the port that will connect to the bender.  Set that port to a fixed IP address of 192.168.0.199.  Any valid setting under 200 for the last [[octet]] will work.  The operator station uses .200 as the address.  If the operator station is not powered on, or is not attached to the bender network, then you can also use address .200.
+
</td>
+
</tr>
+
 
+
 
+
<tr valign="top">
+
<td bgcolor="#abbad1" width = 200>
+
<font size=4><b>STEP 11</b></font>
+
 
----<br>
 
----<br>
Plug Ethernet
+
NEGATIVE ACKNOWLEDGE
 
</td>
 
</td>
 
<td bgcolor="#e3e4f5">
 
<td bgcolor="#e3e4f5">
Plug an ethernet cable (RJ45 type) between the new computer's NIC port and the Netgear switch in the electronics cabinet using a standard ethernet cable.  [[image:netgearswitch.jpg|thumb|Netgear Switch]]
+
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
 
</td>
 
</td>
 
</tr>
 
</tr>
Line 139: Line 108:
 
<tr valign="top">
 
<tr valign="top">
 
<td bgcolor="#abbad1" width = 200>
 
<td bgcolor="#abbad1" width = 200>
<font size=4><b>STEP 12</b></font>
+
<font size=4><b>Exception 8</b></font>
 
----<br>
 
----<br>
CNC Bender Software
+
MEMORY PARITY ERROR
 
</td>
 
</td>
 
<td bgcolor="#e3e4f5">
 
<td bgcolor="#e3e4f5">
Start CNC Bender software by finding the CNCBender.exe program in the c:\cnc folder and double clicking on it (or select the file and press Enter).
+
The slave attempted to read extended
[[image:cncbender.jpg|thumb|CNC Bender Software]]
+
memory, but detected a parity error in
 +
the memory. The master can retry the
 +
request, but service may be required on
 +
the slave device.
 
</td>
 
</td>
 
</tr>
 
</tr>
  
 
</table>
 
</table>

Latest revision as of 21:06, 13 July 2007

The possible MODBUS Exception Reponses are listed here. If CNC Bender returns a Modbus Error, then it will use one of these numbers. This error is recorded in the ImmediateMessage.log found in the c:\cnc\logs folder.


Exception 1



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.

Exception 2



ILLEGAL DATA ADDRESS

The data address received in the query is not an allowable address for the slave.

Exception 3



ILLEGAL DATA VALUE

A value contained in the query data field is not an allowable value for the slave.

Exception 4



SLAVE DEVICE FAILURE

An unrecoverable error occurred while the slave was attempting to perform the requested action.

Exception 5



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 timeout error from occurring in the master. The master can next issue a Poll Program Complete message to determine if processing is completed.

Exception 6



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.

Exception 7



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

Exception 8



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.