End of initialization - System start - Tag communication

Discussion of application development using iX Developer, including but not limited to getting started, using the functions tab, properties, objects and installation.
Post Reply
andrea
Posts: 72
Joined: Tue Dec 11, 2012 5:44 am

End of initialization - System start - Tag communication

Post 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,

User avatar
Jason V.
Posts: 117
Joined: Wed Jan 15, 2020 11:00 am

Re: End of initialization - System start - Tag communication

Post by Jason 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.
Best regards,
Jason
(801) 708-6690
Technical Support
Contact Us



Beijer Electronics AB
http://www.beijerelectronics.us

User avatar
Russ C.
Posts: 201
Joined: Thu Nov 16, 2017 3:32 pm
Contact:

Re: End of initialization - System start - Tag communication

Post 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
				//
			}
			
		}
Best regards,

Russ
(801) 708-6690
Technical Support
Contact Us

Beijer Electronics AB
http://www.beijerelectronics.us

prichlin
Posts: 13
Joined: Thu Feb 20, 2020 7:59 am

Re: End of initialization - System start - Tag communication

Post 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!

Post Reply