Welcome Guest ( Login | Register )



All times are UTC - 7 hours [ DST ]



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Jump between screens depending on a variable.
PostPosted: Thu Jun 25, 2015 12:59 pm 

Joined: Thu Jun 25, 2015 11:44 am
Posts: 2

Offline
Hi!.
When the user clicks the button 1, I need to be based on the value of D200.0 (0 or 1) jump to the Screen5 (popup) or the Screen6 (normal screen) but the code always jump to the Screen5, regardless of the value of the variable.

Why this code does not work?

PLC = OMRON CP1E, using RS232 for communication with the iX Panel T4A.

Variable Giro1 is a Bit, adress D200.0

namespace Neo.ApplicationFramework.Generated
{
using System.Windows.Forms;
using System;
using System.Drawing;
using Neo.ApplicationFramework.Tools;
using Neo.ApplicationFramework.Common.Graphics.Logic;
using Neo.ApplicationFramework.Controls;
using Neo.ApplicationFramework.Interfaces;
using Neo.ApplicationFramework.Controls.Script;


public partial class Screen2
{
void Button1_Click(System.Object sender, System.EventArgs e)
{
if (Globals.Tags.Giro1.Value == 0){
Globals.Screen5.Show();
}else {
Globals.Screen4.Show();
}
}

}
}


Thank you very much.


 Profile  
 
 Post subject: Re: Jump between screens depending on a variable.
PostPosted: Fri Oct 23, 2015 3:36 pm 

Joined: Sat Jul 04, 2015 6:13 am
Posts: 25

Offline
Late reply but if you still struggle to manage this then control the page display from the PLC using SystemTagNewScreenID. See my post viewtopic.php?f=4&t=1965 and realise that this forum is fairly quiet so I found I generally had to answer my own questions.


 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 7 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: