Raptor:Modbus Slave: Difference between revisions

From NewEagleWiki
Jump to navigation Jump to search
 
No edit summary
 
(3 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:RaptorModbusSlave.jpg|right|frame|Raptor Modbus Slave]]


== Description ==
== Description ==
Line 20: Line 20:
| This port contains a vector of triggers, trigger [0] is the trigger to indicate that a holding register read has been requested. Trigger [1] is fired when a holding register write is requested.
| This port contains a vector of triggers, trigger [0] is the trigger to indicate that a holding register read has been requested. Trigger [1] is fired when a holding register write is requested.
|-
|-
! Node Address
! Command
| uint16
| uint8
| The address of the responding slave.
| The numeric command, 03 for read 06 for write.
|-
|-
! Data Address
! Register Address
| uint16
| uint16
| The register address for the start of the read.
| The address of the register being requested.
|-
|-
! data
! Data
| uint16
| uint16
| The data returned from the slave.
| For a read this is the number of registers to read. For the Write command this is the data to be written to the register.
|-
|-
|}
|}
Line 42: Line 42:
|-
|-
! Serial Bus Name
! Serial Bus Name
| String
| Edit
| The name of the serial bus that should be utilized.
| The name of the serial bus that should be utilized.
|-
|-
! Data Requests
! Slave ID
| String
| Edit
| A list of data request that should be requested. See: modbus_requests_example.m for the format.
| The slave address of the device.
|-
|-
! Use Inputs
! Visible in CAL Tool
| checkbox
| edit
| If checked the block will use input ports for the data requests.
| Allows the slave ID to be calibrated from the CAL tool.
|-
|-
|}
|}

Latest revision as of 17:07, 28 November 2016

Return to the main Raptor page

Return to Modbus Library page

Raptor Modbus Slave

Description

This block acts as a Modbus Slave on a Serial bus. The block processes the Serial data and triggers port one on a valid read holding registers request or a valid write holding register request.


Outputs

Output Type Description
Read()/Write() trigger This port contains a vector of triggers, trigger [0] is the trigger to indicate that a holding register read has been requested. Trigger [1] is fired when a holding register write is requested.
Command uint8 The numeric command, 03 for read 06 for write.
Register Address uint16 The address of the register being requested.
Data uint16 For a read this is the number of registers to read. For the Write command this is the data to be written to the register.

Parameters

Parameter Type Description
Serial Bus Name Edit The name of the serial bus that should be utilized.
Slave ID Edit The slave address of the device.
Visible in CAL Tool edit Allows the slave ID to be calibrated from the CAL tool.