jinyistudio
Hi

I try connect OpenPLC with Modbus TCP and then show the value. My App writed by B4J(Free)  https://www.b4x.com/b4j.html

B4J - The simplest way to develop cross platform, desktop, server and IoT solutions!


[jinyi_title_1p] 
Delphi, B4A, B4J, C#/Mono, Mitsubishi Q-PLC
[image]
Delphi, C#, Q-PLC, B4A, B4J, Raspberry PI2
Delphi, C#, Q-PLC, B4A, B4J, Raspberry PI2
[image]
Delphi, C#, Q-PLC, B4A, B4J, Raspberry PI2
Quote 0 0
thiagoralves
Good job! Could you share with us the details on how you built that?
Quote 0 0
jinyistudio
Hi
B4J(Basic Liked) is good tool for IOT(Web server including WebSocket). I have porting modbus RTU/TCP into B4J too. And reading word data from OpenPLC. the data thought websocket send to client(Browser) every second.


Private Sub datas_refresh(Params As Map)
    ds7n=Main.plc.Var("D10").Intr(0)
    ds7.RunMethod("sevenSeg",Array As Object(CreateMap("value": ds7n)))
    ws.Flush
    ;
End sub
[jinyi_title_1p] 
Delphi, B4A, B4J, C#/Mono, Mitsubishi Q-PLC
[image]
Delphi, C#, Q-PLC, B4A, B4J, Raspberry PI2
Delphi, C#, Q-PLC, B4A, B4J, Raspberry PI2
[image]
Delphi, C#, Q-PLC, B4A, B4J, Raspberry PI2
Quote 0 0