Delete ME
How would I initialize LevelControl : TrolleyWaterLevelControl(alarmManager) so that WashTankControlUnit.FB_Init is run before it, so that alarmManager is not null? FUNCTION_BLOCK WashTankControlUnit EXTENDS Core.HasUserModelPath VAR alarmManager : Core.IAlarmManager; VAR_INPUT LevelControl : TrolleyWaterLevelControl(alarmManager); // How whould I Initalize this after alarmManager is initialized? END_VAR //FB_Init is always available implicitly and it is used primarily for initialization. //The return...
II have a constant error in my PLC logs that just keeps repeating endlessly but there doesn't seem to be anything wrong and all of my network devices are green and communicating properly. Does anyone know how I can find the cause of this and stop it? It is clogging up my logs and making them useless ffor troubleshooting.
I ran Static Analysis on a project. But ever since then it won't let me compile the project unless my license dongle is inserted. How can fix my project so that I can compile it with out the license again? I also get a build error saying the following. But there are no error listed in the Additional code checks catagory. If I insert my dongle and restart codesys. Then I can compile with no error ------ Build started: Application: Device.Sim.Device.Application_Test_ ------- Typify code... [ERROR]...
Question: Are you expecting a separate instance of the Function Block for each client that connect to the WebVisu server? If yes then it is a little more complicated if no... The best way, I have found to handle things, is to have a Function Block defined for each Visualization you have defined. this function Block serves as the "View Model" So like the Main Visualization has a viewModel and it is a reference to an instance in the process code. Because it is in the process code FB_init is called....
The impression I got from them was that everything on that list had been asked for by other users long ago (Except for function pointers/delegates). They said they were on their "back log" list. So I assume they will never happen.
Thanks I knew I had seen it some where.