Title:
csharpfr_SERVEUR-ESCLAVE-MODBUS-TCP-IP___Page Download
Description: This server/ModBus slave simulates equipment communicating with the ModBus protocol on a TCP/IP as a controller for example. It responds to requests from a master/client. I used ModScan32 and a monitoring software that I developed in my company for testing.
Some details:
- 4 tables of data are scaled to 200 items each (constant chosen arbitrarily) and values of each item (bit/register) can be modified in the cell corresponding
- Responses to requests functions 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x10, 0x0F
- Return management of exceptions ModBus started but complete
- Visual refresh table data after a write request to complete
The software is not finalized and has been tested only in certain configurations, it must contain some bugs. If you detect inconsistencies vis-à-vis the protocol, please let me know (I have some issues that differ among the PDF and found the software testing as ModScan32).
Development in Visual Studio. NET 2008.
- [MODBUSTCP] - modbus connection communications source
- [Midi-VC2008] - Midi codec on Visual Studio 2008
- [ModbusClient_1] - Modbus TCP/IP protocal test
- [PKG54] - Modbus TCP Master VB6 souce code
- [modbus.c] - modbus RTU protocol modbus source code p
- [CsharpPortCode] - modbus 3 features 16 functions to read a
File list (Check if you may need any files):
ModBusServer
............\ModBusServer
............\ModBusServer.ex_
............\ModBusServer.sln
............\ModBusServer.suo
............\............\ApplicationTraceListener.cs
............\............\DataModel
............\............\.........\ByteBuffer.cs
............\............\.........\ByteCircularBuffer.cs
............\............\.........\SimpleDataModel.cs
............\............\.........\Table.cs
............\............\.........\TableItem.cs
............\............\.........\TableItem_Bit.cs
............\............\.........\TableItem_Register.cs
............\............\.........\Table_Bit.cs
............\............\.........\Table_Register.cs
............\............\fModBusServer.cs
............\............\fModBusServer.Designer.cs
............\............\fModBusServer.resx
............\............\ModBus
............\............\ModBusServer.csproj
............\............\ModBusServer.csproj.user
............\............\......\Functions
............\............\......\.........\ModBusFunction.cs
............\............\......\.........\ModBusFunctionFactory.cs
............\............\......\.........\ModBusFunction_0x01.cs
............\............\......\.........\ModBusFunction_0x02.cs
............\............\......\.........\ModBusFunction_0x03.cs
............\............\......\.........\ModBusFunction_0x04.cs
............\............\......\.........\ModBusFunction_0x05.cs
............\............\......\.........\ModBusFunction_0x06.cs
............\............\......\.........\ModBusFunction_0x0F.cs
............\............\......\.........\ModBusFunction_0x10.cs
............\............\......\Messages
............\............\......\........\CRC16.cs
............\............\......\........\Exceptions
............\............\......\........\..........\ModBusException.cs
............\............\......\........\..........\ModBusExceptionFactory.cs
............\............\......\........\..........\ModBusProcessingException.cs
............\............\......\........\Requests
............\............\......\........\........\ModBusRequest.cs
............\............\......\........\........\ModBusRequestFactory.cs
............\............\......\........\........\ModBusRequestFooter.cs
............\............\......\........\........\ModBusRequestHeader.cs
............\............\......\........\........\ModBusRequest_Read.cs
............\............\......\........\........\ModBusRequest_WriteItem.cs
............\............\......\........\........\ModBusRequest_WriteItems.cs
............\............\......\........\Responses
............\............\......\........\.........\ModBusResponse.cs
............\............\......\........\.........\ModBusResponse_ReadBits.cs
............\............\......\........\.........\ModBusResponse_ReadRegisters.cs
............\............\......\........\.........\ModBusResponse_WriteItem.cs
............\............\......\........\.........\ModBusResponse_WriteItems.cs
............\............\......\ModBusConstants.cs
............\............\Network
............\............\.......\TcpIp
............\............\.......\.....\TcpIpServer.cs
............\............\.......\.....\TcpIpServerConfiguration.cs
............\............\.......\.....\TcpIpServerConnection.cs
............\............\.......\.....\TcpIpServerConnections.cs
............\............\Program.cs
............\............\Properties
............\............\..........\AssemblyInfo.cs
............\............\..........\Resources.Designer.cs
............\............\..........\Resources.resx
............\............\..........\Settings.Designer.cs
............\............\..........\Settings.settings
@Readme-CodeS-SourceS-FR.txt