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,
Hello, I am new to codesys programming, How to record timestamp and saved the value in a variable? I need to record start time and end time of a process. Warmest regards.
Hi, I am having this question too i cant seem to zoom and scroll in my webvisualization on my android tablet. Anyone know how to do it? Warmest regards,
Hello, Thank you! for your input we will go ahead with using array. Warmest regards,
Hi, I am new to Codesys Forge not sure if this is the right place to post this. I am using Codesys for PLC programming and we have a specific table of unit conversion (see attached) to convert the unit, however the lines will be very long if we were to use the IF Else function for conversion. Are there any other ways to simplify the process? Warmest regards,