Skip to content

Latest commit

 

History

History
11 lines (6 loc) · 868 Bytes

RS485Device_Interface.md

File metadata and controls

11 lines (6 loc) · 868 Bytes

RS485 Device Interface

The RS485Device interface is a simple interface designed to guarantee the presence of several methods with a correct input and output type so the RS485 Function block can be used in both é!COCKPIT and Codesys 3S.

The interface implements three methods:

  1. RequestBusTime: Should check whether RS485 is initialized and if the function block requires the bus for executing a modbus command.

  2. GetRtuQuery: Should return an RTU query to execute depending on the state of the interval timer(s). In case there are multiple Modbus RTU queries to be executed for a device the FB should keep track of the active RTU query.

  3. ProcessDataArray: Should process the result returned by the RTU query returned by method 'GetRtuQuery'. In case there are multiple Modbus RTU queries to be executed for a device the correct one should be processed.