1 Attachment(s)
Time Control is not executing any task
Hi community<br>I am having a problem with executing tasks with the Time Control of Zenon. A lot of testing and forum search has been done by me at the last days without fixing the problem.<br><br>We are running two Zenon server in redundancy and a client.<br>All using Zenon 8.10 SP0 Build 67223 64-bit, Supervisor edition on server and client.<br>The client should execute a VBA script for copying a file to a share once a day.<br><br>1. I created the VBA function on the client project with additional logging in case it has been called. So I know it worked<br>2. A function has been created under the client project to call the VBA macro.<br>3. A TimeControl entry has been created within the client project to call the function<br>4. Zenon HMI on Client has been restarted -> no VBA called at the given time even after some days.<br>5. Server HMI has been restarted in case of I-don't-know.<br><br>Here is the screenshot of the Time Control settings. In the meantime I added different entries to check if a simple bit toggle is executed. But none of these entries is working.<br><img src="https://forum.copadata.com/attachment.php?attachmentid=3156&stc=1" attachmentid="3156" alt="" id="vbattach_3156" class="previewthumb"><br><br>What did I wrong?<br>Is there a known issue with the used Zenon version?<br><br>Thanks in advanced
Re: Time Control is not executing any task
Time Control is running on the primary Server, not on network clients. Is the zenon function configured to be executed on the client? or default so the 'current computer' (function properties - execution). The current computer will be the server.
2 Attachment(s)
Re: Time Control is not executing any task
ursulak, thank you for the fast reply.<br><br>At the moment the VBA script is in the client VBA code, the Zenon function and the time control is located in the client.<br>I now understand that the Time Control of the client could not be used but on the server.<br><br>But the VBA script is using local folders from the client to copy files.<br>If I use the Time Control on the server an call the script from the client, are these client folders still working?<br>I guess not, because the script is executed in the scope of the server nevertheless what is setup in the function execution.<br><br><img src="attachment.php?attachmentid=3159&stc=1" attachmentid="3159" alt="" id="vbattach_3159" class="previewthumb" style="cursor: pointer; opacity: 0.5;"><br><br> So I have to rewrite the code to access the client folders from the server. Is that right?<br>This is how it looks at the Time Control of the server now:<br><img src="attachment.php?attachmentid=3158&stc=1" attachmentid="3158" alt="" id="vbattach_3158" class="previewthumb"><br><br><br>
Re: Time Control is not executing any task
you wrote:
>the Zenon function and the time control is located in the client
How you made the location just for client???
The Functions and Time Control are designed in the zenon project. The same project runs on network server(s) and clients. Thus, the function with check-box 'current computer' is executed on network server as the network server is the location where the execution of Time Control is calling this function.
Change by function the execution to 'client' , then Time Control on server will send a network request to the network clients to execute their functions.
If the function is in not network but standalone (?) subproject, then project the Time Control in this standalone project, not in server's project. But, to the terminology, a standalone subproject is not a client. It is a individual project running independently on any PC.
Hint: the SYSDRV delivers variables with computer name, with role in the network etc.
Re: Time Control is not executing any task
Sorry for being misleading with <br><span style="color: rgb(62, 62, 62);">></span><font color="#333333">the Zenon function and the time control <strong>is located in the client<br></strong>I wanted to say that I had set up the Time Control and the Function in the client project of Zenon.<br><br></font>Regarding your answer, I set the server now to do the Time Control and execute the Function on the client.<br>On the client I set up the function to be executed only on the clients.<font color="#333333"><br><br>I know that I could use the SYSDRV to get the computer name. So I could check in VBA for the computer name of a client if I only want the VBA code to be executed at a special client.<br>So I am fine with this.<br><br>On last question about this:<br></font>
Quote:
<span style="color: rgb(51, 51, 51);">Change by function the execution to 'client' , then Time Control on server will <strong>send a network request to the network clients to execute their functions</strong>.</span>
<br>In our server project we have multiple clients. Each client project shows/controls a different part of a production line. The VBA script I want to execute is only available on one of these clients. What happens if the network request of the server is not able to be executed on the other clients? Because the other clients do not have the VBA code and Function defined in their project.
Re: Time Control is not executing any task
@henrybell<br>It's a kind of scheduler. But different from the Zenon -> Scheduler there is no runtime control for it. It is just for executing task in the background also cyclic.<br><a data-cke-saved-href="https://download.copadata.com/fileadmin/user_upload/Downloads/Dokumentation/810SP0/ENGLISH/Manual/Time_Control.pdf" href="https://download.copadata.com/fileadmin/user_upload/Downloads/Dokumentation/810SP0/ENGLISH/Manual/Time_Control.pdf">Here</a> is the doc for version 8.10.<br><br>
Re: Time Control is not executing any task
other clients will probably log an error or warning message.
Re: Time Control is not executing any task
Thank you for support and information, ursulak. <br>I used the Time Control in the server as discussed and I can confirm that it works now as expected.<br><br>