Page 1 of 1

End of initialization - System start - Tag communication

Posted: Mon Jun 15, 2015 5:30 am
by andrea
Good morning,

I ask you if there is a valid method to understand and perceive that the system has finished the phase of initialization, load of all tags and correct communication with PLC after a start.

We have to begin to do some thing, by code, only when all the "preparation" has ended.

Some code or project setting about that?

Thank you very much

Kind regards,

Re: End of initialization - System start - Tag communication

Posted: Wed Jan 29, 2020 2:18 pm
by Jae V
Hello,
We understand that this is a very old post. The best way I can think of to know when the initialization has completed is to tie a bit to the 'screen_open' action on the start up screen. If there is anyone who is still experiencing this or similar issues and require assistance, please visit us at https://www.beijerelectronics.us/en-US/ ... ___support or give us call at 801.708.6690. Thank you.

Re: End of initialization - System start - Tag communication

Posted: Wed Jan 29, 2020 2:23 pm
by Russ C.
I would use a Tag called "Initialized" with a default value of "False". Then use its ValueChange event to set its value to "True" if its "False" and if the value is "True" execute your code.

This should get you very close to have 100% loaded


Something like:

Code: Select all

void Initialized_ValueChange(System.Object sender, Core.Api.DataSource.ValueChangedEventArgs e)
		{
			
			if(!Initialized.Value)
			{
				Initialized.Value = true;
			}
			else
			{
				//
				//Execute code after initialization
				//
			}
			
		}

Re: End of initialization - System start - Tag communication

Posted: Mon Feb 24, 2020 8:59 am
by prichlin
Hello Andrea,
If your goal is to see when the communication with the PLC has been established, you could add the Initialize Tag in the panel that defaults to False and is mapped to a bit in the PLC. Have the PLC set that to true (or 1 depending on your PLC) when you want to activate the panel. When communication is established, you can use Russ' ValueChange event suggestion to begin your process.

Hope this helps!