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,
End of initialization - System start - Tag communication
Re: End of initialization - System start - Tag communication
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.
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
Jason
(801) 708-6690
Technical Support
Contact Us
Beijer Electronics AB
http://www.beijerelectronics.us
Re: End of initialization - System start - Tag communication
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:
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
Russ
(801) 708-6690
Technical Support
Contact Us
Beijer Electronics AB
http://www.beijerelectronics.us
Re: End of initialization - System start - Tag communication
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!
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!