Raptor-Dev-Modbus-Library: Difference between revisions

From NewEagleWiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(28 intermediate revisions by 2 users not shown)
Line 2: Line 2:
{{Navigation}} [[Raptor-Platform | Raptor Platform]] > [[Raptor-Dev | Raptor-Dev]] > '''Raptor-Dev Modbus Library'''
{{Navigation}} [[Raptor-Platform | Raptor Platform]] > [[Raptor-Dev | Raptor-Dev]] > '''Raptor-Dev Modbus Library'''


[[File:RaptorDataLogging.png|right|frame|Raptor™ Data Logging]]
<h1>Overview</h1>
<p>The blocks in this subsystem...</p>
 
<p>This library exposes a block interface for the [https://en.wikipedia.org/wiki/Modbus Modbus protocol]. This protocol is useful for many industrial application. The library handles many of the details under the hood, so the end-user can configure which modbus registers to read (master) or to write (slave). The library abstracts the details of the protocol into a simple block interface consisting of just a handful of blocks and configuration scripts.
</p>


<h1>Blocks</h1>
<h1>Blocks</h1>
Line 12: Line 14:
! scope="col" style="width: 60%;"| Description
! scope="col" style="width: 60%;"| Description
! scope="col" style="width: 25%;"| Appearance
! scope="col" style="width: 25%;"| Appearance
|-  
|-
! <h5>[[Raptor:Data Logging Erase|Erase]]</h5>
!<h5>[[Raptor:Modbus Master|Modbus Master]]</h5>
| <p>This block is used to erase a value from the data log.</p>
|<p>This block acts as a Modbus master on a serial bus.</p>
| [[file:RaptorDataLoggingErase.png|frameless|border|Erase block|center]]
|[[File:RaptorModbus.jpg|frameless|border|Application Monitor Measure block|center]]
|-  
|-
! <h5>[[Raptor:Data Logging Read|Read]]</h5>
!<h5>[[Raptor:Modbus Slave|Modbus Slave]]</h5>
| <p>This block is used to read a value from the data log.</p>
|<p>This block acts as a Modbus slave on a serial bus.</p>
| [[file:RaptorDataLoggingRead.png|frameless|border|Read block|center]]
|[[File:RaptorModbusSlave.jpg|frameless|border|Application Monitor Measure block|center]]
|-  
|-
! <h5>[[Raptor:Data Logging Write|Write]]</h5>
!<h5>[[Raptor:Modbus Slave Error|Modbus Slave Error]]</h5>
| <p>This block is used to write a value to the data log.</p>
|<p>This block will send a MODBUS Error Response.</p>
| [[file:RaptorDataLoggingWrite.png|frameless|border|Write block|center]]
|[[File:RaptorModbusSlaveError.jpg|frameless|border|Application Monitor Measure block|center]]
|-  
|-
! <h5>[[Raptor:USB Eject|USB Eject]]</h5>
!<h5>[[Raptor:Modbus Slave Response|Modbus Slave Response]]</h5>
| <p></p>
|<p>This block is used to package and send a response to a request.</p>
| [[file:RaptorUSBEject.jpg|frameless|border|USB Eject block|center]]
|[[File:RaptorModbusSlaveResponse.jpg|frameless|border|Application Monitor Measure block|center]]
|-
|-
! <h5>[[Raptor:USB Status|USB Status]]</h5>
|}
| <p></p>
| [[file:USBStatus.jpg|frameless|border|USB Status block|center]]
|-  
! <h5>[[Raptor:File Close|File Close]]</h5>
| <p></p>
| [[file:FileClose.jpg|frameless|border|File Close block|center]]
|


<h1>Details</h1>


[[File:modbus.gif]]


<p>
Modbus specification may be downloaded from (modbus.org): [http://modbus.org/docs/PI_MBUS_300.pdf PI_MBUS_300]
</p>


<p>[[Raptor:Modbus Master| Modbus Master]] currently supports the following commonly used service(s):</p>
*03 Read Holding Registers


<p>[[Raptor:Modbus Slave | Modbus Slave]] currently supports the following commonly used service(s):</p>
*03 Read Holding Registers
*06 Preset Single Register


|-
<p>
! <h5>[[Raptor:File EOF|File EOF]]</h5>
This library may be used on Raptor targets which expose a serial (RS232/RS485) interface such as the DISP-IMX286 (VEECAN) targets.
| <p></p>
</p>
| [[file:RaptorFileEOF.jpg|frameless|border|File EOF block|center]]
|-
! <h5>[[Raptor:File Exists|File Exists]]</h5>
| <p></p>
| [[file:FileExists.jpg|frameless|border|File Exists block|center]]
|-
! <h5>[[Raptor:File Get Free Space|File Get Free Space]]</h5>
| <p></p>
| [[file:RaptorFile Get Free Space.jpg|frameless|border|File Get Free Space block|center]]
|-
! <h5>[[Raptor:Open File|Open File]]</h5>
| <p></p>
| [[file:OpenFile.jpg|frameless|border|Open File block|center]]
|-  
! <h5>[[Raptor:File Position|File Position]]</h5>
| <p></p>
| [[file:FilePosition.jpg|frameless|border|File Position block|center]]
|-
! <h5>[[Raptor:Read File|Read File]]</h5>
| <p></p>
| [[file:ReadFile.jpg|frameless|border|Read File block|center]]
|-
! <h5>[[Raptor:Remove File|Remove File]]</h5>
| <p></p>
| [[file:RemoveFile.jpg|frameless|border|Remove File block|center]]
|-
! <h5>[[Raptor:Rename File|Rename File]]</h5>
| <p></p>
| [[file:RenameFile.jpg|frameless|border|Rename File block|center]]
|-
! <h5>[[Raptor:Seek File|Seek File]]</h5>
| <p></p>
| [[file:SeekFile.jpg|frameless|border|Seek File block|center]]
|-
! <h5>[[Raptor:File Size|File Size]]</h5>
| <p></p>
| [[file:FileSize.jpg|frameless|border|File Size block|center]]
|-
! <h5>[[Raptor:File Sync|File Sync]]</h5>
| <p></p>
| [[file:FileSync.jpg|frameless|border|File Sync block|center]]
|-
! <h5>[[Raptor:Write File|Write File]]</h5>
| <p></p>
| [[file:WriteFile.jpg|frameless|border|Write File block|center]]
|}

Latest revision as of 13:31, 4 April 2018

New Eagle > Products Wiki > Raptor Platform > Raptor-Dev > Raptor-Dev Modbus Library

Overview

This library exposes a block interface for the Modbus protocol. This protocol is useful for many industrial application. The library handles many of the details under the hood, so the end-user can configure which modbus registers to read (master) or to write (slave). The library abstracts the details of the protocol into a simple block interface consisting of just a handful of blocks and configuration scripts.

Blocks

Block Description Appearance
Modbus Master

This block acts as a Modbus master on a serial bus.

Application Monitor Measure block
Application Monitor Measure block
Modbus Slave

This block acts as a Modbus slave on a serial bus.

Application Monitor Measure block
Application Monitor Measure block
Modbus Slave Error

This block will send a MODBUS Error Response.

Application Monitor Measure block
Application Monitor Measure block
Modbus Slave Response

This block is used to package and send a response to a request.

Application Monitor Measure block
Application Monitor Measure block

Details

Modbus specification may be downloaded from (modbus.org): PI_MBUS_300

Modbus Master currently supports the following commonly used service(s):

  • 03 Read Holding Registers

Modbus Slave currently supports the following commonly used service(s):

  • 03 Read Holding Registers
  • 06 Preset Single Register

This library may be used on Raptor targets which expose a serial (RS232/RS485) interface such as the DISP-IMX286 (VEECAN) targets.