Thread Content
I’m using the Zhejiang Zhongkong JX300XP system, which needs to communicate with a colleague’s PLC. It is required that my computer send out the cumulative traffic volume for the current hour at each whole hour, and the cumulative traffic volume for the entire month on the 1st of every month. Timers and accumulators are not allowed, as they cause large errors over time. I’m looking for help – I don’t see any option for time variables in the configuration. It would be sufficient if the computer could output a digital signal that changes from 0 to 1 at each whole hour and on the first day of each month. Please help, experts! Thank you
Retrieve the value of the hours field from the system variables and store it in an intermediate variable. Then compare this hours value with that in the intermediate variable; if they are not equal, output 1 and have the intermediate variable retrieve the latest value for hours once again. It’s very simple: just a SEL, and an inequality is enough. It’s simple logic.
In the secondary calculations, there are functions that can retrieve the current hour value, and this value can be used for control
After performing the second calculation, I set up the relevant events; once GETCURMINUTE() equals 0, the dead time is 0 seconds. In the condition settings, when obtaining the value in seconds, it takes 0 seconds, so GETCURSECOND is set to 0. The expression works fine. However, when I want 5 seconds, I set GETCURSECOND to 5, but the variables in the expression don’t change and the formula stops working. Is it due to the dead time or what else? Thank you
After performing the second calculation, I set up the relevant events; once GETCURMINUTE() equals 0, the dead time is 0 seconds. In the condition settings, when obtaining the value in seconds, it takes 0 seconds, so GETCURSECOND is set to 0. The expression works fine. However, when I want 5 seconds, I set GETCURSECOND to 5, but the variables in the expression don’t change and the formula stops working. Is it due to the dead time or what else? Thank you
I need help with this problem; I wonder if there’s anyone kind enough to solve it. Thank you. :handshake