Raptor:Modbus Slave: Difference between revisions
Jump to navigation
Jump to search
(Created page with 'Return to the main Raptor page Return to Modbus Library page right|frame|Raptor Modbus Master == Descrip…') |
No edit summary |
||
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. | ||
|- | |- | ||
! | ! Command | ||
| | | uint8 | ||
| The | | The numeric command, 03 for read 06 for write. | ||
|- | |- | ||
! | ! Register Address | ||
| uint16 | | uint16 | ||
| The | | The address of the register being requested. | ||
|- | |- | ||
! | ! Data | ||
| uint16 | | 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. | ||
|- | |- | ||
|} | |} |
Revision as of 16:44, 28 November 2016
Return to the main Raptor page
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 | String | The name of the serial bus that should be utilized. |
Data Requests | String | A list of data request that should be requested. See: modbus_requests_example.m for the format. |
Use Inputs | checkbox | If checked the block will use input ports for the data requests. |