Component: Modbus Slave (SCADA) (Comms: System)
From Flowcode Help
(Redirected from Component: ID a93b1f52 b96d 4a14 806e 63f73d2654b2)
Jump to navigationJump to searchAuthor | 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.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_Modbus_Slave_SCADA.fcsx
Please click here to view the component source code (Beta): FC_Comp_Source_Modbus_Slave_SCADA.fcsx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
ChangeFrameType
ChangeFrameType | |
Default frame type is the type set in the component properties. | |
- BYTE | Type |
0 = Modbus RTU / 1 = Modbus ASCII | |
- VOID | Return |
CheckForIncoming
GetLastIncoming
Initialise
Initialise | |
Starts up the UART to allow communications and initialises the states of the various Modbus Coils, Inputs and Registers to 0. | |
- VOID | Return |
ReadAnalogInput
ReadAnalogInput | |
Reads the value of a single analogue input. | |
- UINT | Address |
Coil Address | |
- UINT | Return |
ReadCoils
ReadDigitalInputs
ReadHoldingRegister
ReadHoldingRegister | |
Reads the value of a single holding register. | |
- UINT | Address |
Coil Address | |
- UINT | Return |
SetAnalogInput
SetAnalogInput | |
Sets the state of a single analogue input. | |
- UINT | Address |
Coil Address | |
- UINT | Value |
Analogue Value range 0 - 65535 | |
- VOID | Return |
SetCoil
SetCoil | |
Sets the state of a single digital coil. | |
- UINT | Address |
Coil Address | |
- BYTE | State |
0=off, 1=on | |
- VOID | Return |
SetDigitalInput
SetDigitalInput | |
Sets the state of a single digital input. | |
- UINT | Address |
Coil Address | |
- BYTE | State |
0=off, 1=on | |
- VOID | Return |
SetHoldingRegister
SetHoldingRegister | |
Sets the state of a single holding register. | |
- UINT | Address |
Coil Address | |
- UINT | Value |
Analogue Value range 0 - 65535 | |
- VOID | Return |
SetSlaveAddress