frangoteam / FUXA

Web-based Process Visualization (SCADA/HMI/Dashboard) software
https://frangoteam.org
MIT License
2.74k stars 809 forks source link

MCPROTOCOL (tested in Mitsubishi system Q) #1055

Open mariorl opened 8 months ago

mariorl commented 8 months ago

Hi, I added McProtocol js to my Fuxa app using scripts and it works reasonably well. If someone wants a copy of the app please tell me. But, in a lack of api for write user protocols, it will be useful a kind of timer faster than a second, because the polling protocol part is as fast as scripts are called, and the max frecuency I observed is every second. (writing is faster, almost instantaneous).

Kind regards, Mario JRL.

unocelli commented 8 months ago

Hi, interesting, is this something that could be added in the FUXA connections?

mariorl commented 8 months ago

I don't know, since I am currently using JavaScript at a beginner level. I used the Fuxa scripting feature to create several scripts, one for general polling and another for group adressing and for writing. If you have an API or something similar with functions designed for wrapping other PLC protocols I think it should be easy to establish a new Fuxa protocol. MCprotocol.js itself has several bugs, that I had to address, but it primarily involved terminating the communication task in case of a timeout and then restarting it. Despite these issues, I have noticed that a good stability is achieved this way; communication, at least for writing, is very fast, and pollig is a bit slow but I dont get crashes.

sephi251090 commented 3 months ago

This feature intrest me too :)