Forum Replies Created
-
AuthorPosts
-
JureParticipant
Is it possible to get somehow last used ID, or do we need to parse all interface files and find highest ID value?
JureParticipantNo it also doesn’t work.
JureParticipantI made server restart and it works now. Thank you for quick response.
JureParticipantCheckbox for input channel. If it is checked then it automatically uses keeps last good value, without this code.
JureParticipantI hope that this will be ok: https://pastebin.com/j9yFp0nG
JureParticipantMaybe some more info that could help. We didn’t had this problem on Win10, but only now that we are using Win 2019 server.
JureParticipantIt works, thank you. Would maybe be possible to have checkbox for this in some future version instead of formula?
JureParticipantLast version from Github:
It says that was created 10.5.2021JureParticipantJureParticipantI made formula:
String M8ToString(double val)
{
if(val == 0.0)return “OFF”;
if(val == 1.0)return “TČ”;
if(val == 2.0)return “zemlja”;
return “error”;
}Then in input channels I called it like this:
M8ToString(Cnl)but it is still display basic value 0,1,2.
JureParticipantVariable can represent 3 different strings:
0=OFF 1=TČ 2=zemljaJureParticipantJureParticipantI don’t see any images that contains formulas. If you add them, I will check.
Is imgur working OK for you? Because above I see one image view where if you move right or left you can swap images so in total are 3.
This is image with formulas:
http://i.imgur.com/SEZpypc.pngAs you can see, all that I do is Cnl / 10 and Cnl – 10.
As wrote above, the result of formulas can be displayed by views, not in Communicator.I know that you can see result of formulas, that is why there is also image of view. You can see in event log that formula is used multiple times per second, so probably is used on every program iteration:
http://i.imgur.com/y8fNCxn.png
Could you provide more info about that?
I am not sure what more info I can give, I will try to describe process in more details. I have two computer and PLC in same LAN.
Mqtt PC: It runs Mqtt client that is based on Mqtt Paho Java
Server PC: It runs SCADA and Mqtt broker
PLC from where we read values and change them1. Rapid SCADA is running.
2. I start mqtt client.
3. Mqtt client retrieves values and updates topic values. I don’t use .js just plain topic values.
4.Mqtt broker acknowledges new topic values and publishes them to Rapid Scada. Like I said in short time there are around 80 topics published. It can take up to 1 minute or probably even more for communicator to update all values.
I tried with just on topic and it can take from 4-10 seconds for topic to be updated in communicator.
We also support the existing MQTT driver.
That is great. Currently we made all of the testing in the office and SCADA was accessible just in LAN. But if we can solve problem with formulas and events there is plan to test on some real project where SCADA would be accessible from outside our LAN and we would monitor location in some other company.JureParticipantI also noticed that Rapid SCADA takes quite some time to read data from Mqtt broker. When around 80 variables is published to Rapid SCADA it takes more then 1 minute to show all the data.
If I send command from Rapid SCADA -> PC -> PLC communication is much faster.If we choose Rapid SCADA for our projects can we count on official support or is Mqtt community developed and so unofficial?
JureParticipantAs you can see on my images I have two formulas:
Cnl – 10
It looks like it is done on each cycle of program. Because of that value gets lower on each cycle.
Cnl / 10
This formula is never caluclated. Value is all the time the same as in communicator. -
AuthorPosts