thiagoralves Show full post »
thiagoralves
m_ledo, when you are writing code you must omit the declarations about variables and about the name of the function block. In the text editor you just need to write the main logic of your code. Variables are declared in the list on top of the screen as you did
Quote 0 0
guanqing00
Hello: Are you talking about monitoring the function of monitoring ladder diagrams?
Quote 0 0
guanqing00
I am looking forward to this feature.
Quote 0 0
thiagoralves
Monitoring is already implemented in the monitoring tab.
Quote 0 0
guanqing00
Sorry, I just saw this post in 2018. I also saw the monitoring here. I thought it was the online monitoring function of the ladder diagram.
Quote 0 0
thiagoralves
You can simulate the ladder diagram on the editor, but not connect it to the runtime
Quote 0 0
m_ledo

OK, so I removed variable declarations from the FB code and it works just fine.

I also tried pbosscha´s "C" method, it worked in simulation mode, but not in reality.
In monitoring there were input values, but on output there was 0. When I forced these values into the same program´s simulation, there was also value on output. I dont know why, but as I said, first method works, so thanks a lot 🙂     

Quote 0 0
kapdujour
Dear Thiago,
I play with openplc since few week and it's wonderfull to have a PLC at house for free so for that many thanks.
I work in HVAC system and we program some kind of PLC regularly. A fonctionality that we can't unuse is online control/monitoring.
So concerning monitoring with openplc i would like to have more informations/confirmation.

Actualy monitoring tab in the ftp is :
1) only for hardware points ?
2) only in read mode ?
3) Internal point like clock and "complex type" (UINT; Ulint; DT; word; STRING, etc...) cant be monitored?
4) Simulation mode could read a simulated date/clock? to replace the %ML1024?
5) The only way is to use modbus ?

In the future:
1) do you project to develop this part?
2) if yes do you have an idea of when?
3)simulation mode could be writable (edit and force variable)?

many thanks for your answers and the time you pass to develop this great project.








Quote 0 0
thiagoralves
Actually monitoring tab in the [webserver] is :
1) only for hardware points ?
No. It is for all located variables (%IX, %IW, %MW, %MD, etc...)

2) only in read mode ?
Currently yes.

3) Internal point like clock and "complex type" (UINT; Ulint; DT; word; STRING, etc...) cant be monitored?
Only if you convert them to something that makes sense in located variables (%MW, %MD and %ML)

4) Simulation mode could read a simulated date/clock? to replace the %ML1024?
Yes. Use the RTC block. The output pin CDT is the current time in your system

5) The only way is to use modbus ?
Monitoring uses Modbus, but OpenPLC can communicate also in DNP3 and EtherNet/IP

In the future:
1) do you project to develop this part?
Which part? Real-time monitoring from the editor? Not in the near future. Forcing variables in the monitoring tab on the webserver? Yes.

2) if yes do you have an idea of when?
Whenever I have some free time available of when someone wants to jump in and help with coding.

3)simulation mode could be writable (edit and force variable)?
Yes. You can force variables in simulation mode by right clicking on them to change their value. See https://www.openplcproject.com/reference-your-first-project
Quote 0 0
kapdujour
Many thanks for all this answers.
Quote 0 0