Jump between screens depending on a variable.

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

Jump between screens depending on a variable.

Post by MAlvarez »

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){
}else {


Thank you very much.

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

Re: Jump between screens depending on a variable.

Post by Transistor »

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

Post Reply