Difference between revisions of "Component: Modbus Slave (SCADA) (Comms: System)"
From Flowcode Help
Jump to navigationJump to searchLine 16: | Line 16: | ||
==Detailed description== | ==Detailed description== | ||
+ | |||
+ | |||
Line 24: | Line 26: | ||
==Examples== | ==Examples== | ||
+ | |||
+ | |||
Revision as of 13:29, 17 November 2021
Author | Matrix TSL |
Version | 1.0 |
Category | Comms: System |
Contents
Modbus Slave (SCADA) component
Modbus component for creating Modbus compatible slave hardware via RS232 or RS485.
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Downloadable macro reference
ReadHoldingRegister | |
Reads the value of a single holding register. | |
- UINT | Address |
Coil Address | |
- UINT | Return |
SetCoil | |
Sets the state of a single digital coil. | |
- UINT | Address |
Coil Address | |
- BYTE | State |
0=off, 1=on | |
- VOID | Return |
SetDigitalInput | |
Sets the state of a single digital input. | |
- UINT | Address |
Coil Address | |
- BYTE | State |
0=off, 1=on | |
- VOID | Return |
ChangeFrameType | |
Default frame type is the type set in the component properties. | |
- BYTE | Type |
0 = Modbus RTU / 1 = Modbus ASCII | |
- VOID | Return |
SetHoldingRegister | |
Sets the state of a single holding register. | |
- UINT | Address |
Coil Address | |
- UINT | Value |
Analogue Value range 0 - 65535 | |
- VOID | Return |
ReadAnalogInput | |
Reads the value of a single analogue input. | |
- UINT | Address |
Coil Address | |
- UINT | Return |
GetLastIncoming | |
Gets a value from the last incoming command. Index 0 = 0 Read / 1 Write Index 1 = 0 Coils / 1 DigInput / 2 AnInput / 3 Register Index 2 = Address Index 3 = Number | |
- UINT | Return |
SetAnalogInput | |
Sets the state of a single analogue input. | |
- UINT | Address |
Coil Address | |
- UINT | Value |
Analogue Value range 0 - 65535 | |
- VOID | Return |
Initialise | |
Starts up the UART to allow communications and initialises the states of the various Modbus Coils, Inputs and Registers to 0. | |
- VOID | Return |