I need help with Panel view expression and emulate

WHYGUMBY

Member
Join Date
Oct 2011
Location
San Antonio
Posts
14
I need help with 2 things I am new to programming and my supervisor/trainer is and *** and I dont want to aske him.

I am trying to make a button or buttons visable under two expressions I have to replicate a function on a wonder ware screen into a panel view.

IF LOG_MACHINE==100 THEN
IF CURRENT_MODE==0 THEN Show "Main";
ENDIF;
IF CURRENT_MODE==1 THEN Show "Main-Sheet";
ENDIF;
IF CURRENT_MODE==2 THEN Show "Main-TopFoil";
ENDIF;
IF CURRENT_MODE==3 THEN Show "Main-Cupcake";
ENDIF;
ELSE
IF CURRENT_MODE==0 THEN Show "Left-Main";
ENDIF;
IF CURRENT_MODE==1 THEN Show "Left-Main-Sheet";
ENDIF;
IF CURRENT_MODE==2 THEN Show "Left-Main-TopFoil";
ENDIF;
IF CURRENT_MODE==3 THEN Show "Left-Main-Cupcake";
ENDIF;
ENDIF;

My plan is to make each button "main" etc stack on top of each other and only visable in relation to {current_mode} and {log_machine} but it keeps giving me "THEN" error

Here is my expression I was trying to make work.

If {CURRENT_MODE}=0 AND
{LOG_MACHINE}=100
THEN 1
Else 0

this is what I get

Error at line 2, column 14:
THEN missing from expression.

Thank you for any help you can give a newb.
 
You need paranthesis...

If ({CURRENT_MODE}=0) AND
({LOG_MACHINE}=100)
THEN 1
Else 0

The expression was trying to AND "0" and {Log_Machine}

OG
 
Thank you it worked I have been stumped all afternoon. Now if I can get the plc program to emulate with the touchscreen program I will be set. I have to go Umm prove myself to a new supervisor in the morning that I am capable of learning I guess you could say and I didnt have any screen navigation for my project yet. I am going at this pretty blind but can learn pretty quick also. I am a panel deisgner going into programing and its my first go around. Thanks for the help on this and any other post you reply to!!!
 

Similar Topics

I will be building a panel and I want to make sure that I am staying to code. I know that I need to worry about SCCR Ratings, and Panel FLA...
Replies
4
Views
2,907
hi everyone, i am currently working on one project where i need to run webclient on HMI to enter data. we having a scada computer running far...
Replies
4
Views
4,711
I have RS232 9 pins (pin to pin connection) connecting my laptop to panel view 300 with serial number : 2711-K3A5L1. I am using panelbuilder 32...
Replies
10
Views
8,328
I am having trouble connecting to the PLC using PCMK card and cable. I have configured my drivers. Also what software will I need to upload a...
Replies
10
Views
3,343
Hello! i am not able to establish contact with the touch panel and my PC. i suspect that there is something to do with the settings. can someone...
Replies
2
Views
2,863
Back
Top Bottom