Raptor:Modbus Slave Error: Difference between revisions

From NewEagleWiki
Jump to navigation Jump to search
 
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 3: Line 3:
[[Raptor-Dev-Modbus-Library|Return to Modbus Library page]]
[[Raptor-Dev-Modbus-Library|Return to Modbus Library page]]


[[File:RaptorModbus.jpg|right|frame|Raptor Modbus Master]]
[[File:RaptorModbusSlaveError.jpg|right|frame|Raptor Modbus Slave Error]]


== Description ==
== Description ==
<p>This block acts as a Modbus master on a serial bus.</p>
<p>This block will send a MODBUS Error Response. See the table below for the supported codes and their meaning.</p>


== Inputs ==
== Error Codes ==
{| class="wikitable" style="width:75%;"
{| class="wikitable" style="width:75%;"
|-
|-
! scope="col" style="width: 15%;"|Input
! scope="col" style="width: 25%;"|CODE
! scope="col" style="width: 15%;"|Type
! scope="col" style="width: 75%;"|NAME
! scope="col" style="width: 70%;"|Description
|-
|-
! Node
!0x01
| uint16
|ILLEGAL FUNCTION
| The address of the slave device to request from.
|-
|-
! Register Address
!0x02
| uint16
|ILLEGAL DATA ADDRESS
| The register address to be read.
|-
|-
! Read length
!0x03
| uint16
|ILLEGAL DATA VALUE
| The number of registers to be read.
|-
|-
|}
!0x04
 
|SLAVE DEVICE FAILURE
 
== Outputs ==
{| class="wikitable" style="width:75%;"
|-
|-
! scope="col" style="width: 15%;"|Output
!0x05
! scope="col" style="width: 15%;"|Type
|ACKNOWLEDGE
! scope="col" style="width: 70%;"|Description
|-
|-
! RegisterRead()
!0x06
| trigger
|SLAVE DEVICE BUSY
| The trigger port will fire when a valid response is received.
|-
|-
! Node Address
!0x08
| uint16
|MEMORY PARITY ERROR
| The address of the responding slave.
|-
|-
! Data Address
!0x0A
| uint16
|GATEWAY PATH UNAVAILABLE
| The register address for the start of the read.
|-
|-
! data
!0x0B
| uint16
|GATEWAY TARGET DEVICE FAILED TO RESPOND
| The data returned from the slave.
|-
|-
|}
|}


== Parameters ==
== Inputs ==
{| class="wikitable" style="width:75%;"
{| class="wikitable" style="width:75%;"
|-
|-
! scope="col" style="width: 15%;"|Parameter
! scope="col" style="width: 15%;"|Input
! scope="col" style="width: 15%;"|Type
! scope="col" style="width: 15%;"|Type
! scope="col" style="width: 70%;"|Description
! scope="col" style="width: 70%;"|Description
|-
|-
! Serial Bus Name
! Command
| String
| uint8
| The name of the serial bus that should be utilized.
| The command from the request, that is being responded to.
|-
! Data Requests
| String
| A list of data request that should be requested. See: modbus_requests_example.m for the format.
|-
|-
! Use Inputs
! Error Code
| checkbox
| uint8
| If checked the block will use input ports for the data requests.
| The error code.
|-
|-
|}
|}

Latest revision as of 18:04, 28 November 2016

Return to the main Raptor page

Return to Modbus Library page

Raptor Modbus Slave Error

Description

This block will send a MODBUS Error Response. See the table below for the supported codes and their meaning.

Error Codes

CODE NAME
0x01 ILLEGAL FUNCTION
0x02 ILLEGAL DATA ADDRESS
0x03 ILLEGAL DATA VALUE
0x04 SLAVE DEVICE FAILURE
0x05 ACKNOWLEDGE
0x06 SLAVE DEVICE BUSY
0x08 MEMORY PARITY ERROR
0x0A GATEWAY PATH UNAVAILABLE
0x0B GATEWAY TARGET DEVICE FAILED TO RESPOND

Inputs

Input Type Description
Command uint8 The command from the request, that is being responded to.
Error Code uint8 The error code.