russedwards Posted January 24, 2014 Report Share Posted January 24, 2014 Hi I am currently running a project on a V1210 without any major issues. Problem I have is that the RTC does not seem to update - as if the clock has stopped. The PLC in running, the project is running, but the RTC does not update. I have tried syncing with my PC time but it makes no difference. Has anyone experienced this problem? Thanks Russ Link to comment Share on other sites More sharing options...
Alexander Posted January 24, 2014 Report Share Posted January 24, 2014 Russ, How are you monitoring the RTC? Are the respective SI's changing (SI 30-38)? If you are using the RTC to ASCII functions I would check to see that the subroutine they are in is being actively called. Link to comment Share on other sites More sharing options...
Eyal Koren Posted January 27, 2014 Report Share Posted January 27, 2014 Hi, Please try the following: 1. Check if your battery is low (SB8=1). If so, replace it. 2. Backup your application, then download an empty application to the controller. Then re-download your application. Hope this helps. Link to comment Share on other sites More sharing options...
russedwards Posted January 28, 2014 Author Report Share Posted January 28, 2014 Hi Guys Thanks for your suggestions. I have tried changing the battery and also uploading a blank project and re-downloading my original project yet the RTC is frozen. I am monitoring via a serial connection ans checking SI 30 -38 and there is no change Link to comment Share on other sites More sharing options...
R.Mozes Posted January 28, 2014 Report Share Posted January 28, 2014 Hello, Please update the PLC to the latest system files (BinLib, Boot, O/S) using VisiLogic V9.6.0. Then Download a blank project and perform initializes & reset. If the problem still occur please contact support@unitronics.com for farther treatment. Best Regards, Reuven Mozes Link to comment Share on other sites More sharing options...
Wim Posted October 21, 2017 Report Share Posted October 21, 2017 Hello, I'm currently experiencing the same RTC problem as described by Russ in 2014. I've tried the suggestions in this toppic but haven't found a solution. My situation is the following: I have a V700 that I programmed for a home automation application (lighting, temperature and ventialtion). I use the RTC function for a thermostat function. Everything worked fine until a made some changes in other parts of my program. And now my RTC clock stopped running. I have erased my changes but this did not have any effect. When downloading a blank project and initializing and resetting, the RTC clock function is restored. When I download my program again, the RTC clocks still doesn't work. I suspect there is something in my program preventing the RTC clock from running.. Does anyone have a suggestion? Link to comment Share on other sites More sharing options...
MVP 2023 Ausman Posted October 21, 2017 MVP 2023 Report Share Posted October 21, 2017 Hi Wim and welcome, Stopping the RTC is very unusual!! When you download/run the program that previously worked ok, is it exactly the layout it was before? ie is it an originally saved version, or a modification of the faulty one? It is always a good idea to keep progressive saves of programming work for reasons like this. If it is an original save of the ok version, then do an initialise and reset after download, and then do it again after a power cycle of at least 10 seconds. If it is the "original with RTC problem bits added but then erased" version, again do the initialise/reset/repower after download. It definitely sounds like you have something suspect in your program mods that is still hanging around, but perhaps this might clear it. If no go on all of these, do everything Reuven said. You say you've done the suggestions in the topic, but have you actually reinstalled everything related to the plc's brain? If you don't succeed in any of this, you should post your programs if you can for perusal. Even better would be to send the query to support@unitronics.com. cheers, Aus Link to comment Share on other sites More sharing options...
Isakovic Posted October 23, 2017 Report Share Posted October 23, 2017 I didn't even know this RTC freezing was a thing. I'm updating time sensitive application right now. Is it smart to let UTC functions run in every scan? Can you rowhammer the clock or something? Link to comment Share on other sites More sharing options...
MVP 2023 Ausman Posted October 23, 2017 MVP 2023 Report Share Posted October 23, 2017 15 hours ago, Isakovic said: Is it smart to let UTC functions run in every scan? I don't know the direct answer to this...one of the creators? My thoughts are that it depends on how critical it is. I always try to reduce any operations to only when needed. eg If you have something that only needs to happen once a second, don't run the code until the next second occurs. But if you are talking milliseconds, then I don't see you have any other choice. As for stopping the RTC from working, that's why I would love to see the code. ....but not run it!! Are you there, Wim?? !! And another question Wim. When you get back into seeing the RTC working, is it correct time? Or a delayed version depending how long you have not been able to get it rolling over? If it is correct, then it is working ok....you just aren't being able to read it correctly for some reason. cheers, Aus Link to comment Share on other sites More sharing options...
MVP 2023 Flex727 Posted October 24, 2017 MVP 2023 Report Share Posted October 24, 2017 On 10/23/2017 at 12:43 AM, Isakovic said: Is it smart to let UTC functions run in every scan? I don't know the answer to this either, but I've created many projects that hammer the clock on every scan, not to mention Data Tables, and other very complex functions. Never seen the slightest problem with things not keeping up. I do agree with @Ausman that a programmer should never have the PLC perform unnecessary steps, but it's more a matter of elegance and minimizing scan time than necessity to have a functioning PLC program. Link to comment Share on other sites More sharing options...
MVP 2023 Joe Tauser Posted October 25, 2017 MVP 2023 Report Share Posted October 25, 2017 Make sure your OS is updated. We had a PLC come in with a very odd "couldn't set the RTC from info mode" problem and updating the OS fixed it. Joe T. Link to comment Share on other sites More sharing options...
MVP 2023 Flex727 Posted October 25, 2017 MVP 2023 Report Share Posted October 25, 2017 8 hours ago, Joe Tauser said: Make sure your OS is updated. I recently had a V570 that wouldn't communicate over Ethernet. I swapped out Ethernet cards with a known working card (and several other troubleshooting steps) and still no worky. Since then I began using VisiLogic 9.8.64 and updated the firmware on the PLC to the latest. Now it appears to be working. We shall see. Link to comment Share on other sites More sharing options...
Wim Posted October 31, 2017 Report Share Posted October 31, 2017 Hi everyone, This my hardware info: Model V700-T20BJ / OS 4.4(19). I run a Visilogic V9.8.64 I still have a previous version of my program (without the thermostat function programmed) . When I run this version the RTC is working. The lay-out between this two version has changed quit a bit and I didn't save my versions in between, so this in not my last working version.. Here are the links to the two described programs. Working (old) program: https://www.dropbox.com/s/8cmsd76fnq4rxto/BIST27_PLC logica_v2.vlp?dl=0 Current (RTC problem) program: https://www.dropbox.com/s/hnxcm6alv2sezmu/BIST27_PLC logica_v5.vlp?dl=0 Wim Link to comment Share on other sites More sharing options...
MVP 2023 Ausman Posted October 31, 2017 MVP 2023 Report Share Posted October 31, 2017 Hi again Wim, I haven't looked at your programs yet. It is important to answer this..... as I have previously asked, have you reinstalled everything relating to the plc's O/S? cheers, Aus Link to comment Share on other sites More sharing options...
Wim Posted November 6, 2017 Report Share Posted November 6, 2017 Hi Aus, If you mean the steps described by Reuven, yes I did those. If you say everything, are there other steps to take? I know it's difficult to check my program for faults, I would just like to understand what could cause this.. I have been going back and deleting steps in my program until nothing else but some simple steps rest, but the RTC will not work.. When I download another program the RTC work instantly. Very strange.. Link to comment Share on other sites More sharing options...
MVP 2023 Flex727 Posted November 6, 2017 MVP 2023 Report Share Posted November 6, 2017 I loaded your program into a V700 and the RTC is working perfectly. I also see the Direct Clock Function is turning on the correct bit (as of right now, MB 503). You either have a hardware/firmware problem or something about the I/O (that I don't have on my V700) is causing the problem. Please note that the only value you should see changing constantly is SI 30 (Current Second). Did you try setting the time from your PC by using the SET RTC function? By the way, I can't imagine your control over the LCD screen brightness (SI 9) is working properly. Why are you using STI (Store Indirect) with a Constant value? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now