Hello, I want my button to be attached image ON_Good when variable true but however when i copied the visualization object into a new visualization screen it become attached image ON_Bad. Anyone know how to make it attached image ON_Good? Warmest regards,
Thanks everyone for your input, I am using persistent variables to retain the timer value after machine shutdown, and main task to be as low as possible for the seconds TON to be accurate.
Hi @ph0010421 and @Ton, Is it possible to program a stopwatch to measure a system running time when it is turn on, and pause when the system is turn off. I tried your examples when stopped, the elapsed time will then be calculated, but i need the time to be continuously counting. Warmest regards,
Hi @ph0010421, I tried the program the TimeTaken is calculated when stop is triggered. I want the TimeTaken to be continuously calculated and counting when a BOOL variable is true. I tried to program this way: Declaration: PROGRAM PLC_PRG VAR bStartStop: BOOL := FALSE; // Start/Stop button bReset: BOOL := FALSE; // Reset button bRunning: BOOL := FALSE; // Flag indicating whether the stopwatch is running tStartTime: TIME; // Variable to store the start time tElapsedTime: TIME; // Variable to store...
Hi, how to create a stopwatch when start is pressed, timer will start counting and stop is pressed, timer will stop counting in structured text?
Hello Community, I need to create a duration graph with start, stop and reset button for the graph, I am trying to do that with trace visualization object. But however i am not able to to reset the graph. Are there any alternatives or solution in resetting the graph? Warmest regards,
Hello Community, I want to store trace as .csv from trace special controls visualization is this doable instead of storing as .trace file? Please see attached. Warmest regards,
Hi Francesco, Thank you for your reply, I used SysTimeRTC library to get the PLC time. I wrote a if function a boolean variable true then freeze the start time in a date_time variable. Warmest regards,