You are not registered yet. Please click here to register!


 
 
plc storereviewsdownloads
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc.
 
Try our online PLC Simulator- FREE.  Click here now to try it.

---------->>>>>Get FREE PLC Programming Tips

New Here? Please read this important info!!!


Go Back   PLCS.net - Interactive Q & A > PLCS.net - Interactive Q & A > LIVE PLC Questions And Answers

PLC training tools sale

Reply
 
Thread Tools Display Modes
Old August 17th, 2018, 02:18 PM   #1
JasonTheSparky
Member
United States

JasonTheSparky is offline
 
Join Date: Aug 2015
Location: Detroit, MI
Posts: 156
Visibility Animation, FTVS Expression

I am trying to hide a button unless 2 possible users are logged in AND a DINT in my processor is == 0. I can't seem to work out the syntax with evaluating the two conditions.

Currently my expression is:
(CurrentUserName(  ) ="Person1")  OR  
(CurrentUserName( ) ="Person2") AND
{[CompactLogix]GREASE_FAULT_RESET_COMPLETE} == 0



Where am I going wrong?


EDIT: Figured it out myself. I am missing the parenthesis around my tag reference as the second condition, as it is a relational statement. When combining relational statements and logical statements, you need to enclose the relational statements in parenthesis. It should have looked like this:

(CurrentUserName(  ) ="JMichael")  OR  
(CurrentUserName( ) ="maint") AND
({[CompactLogix]GREASE_FAULT_RESET_COMPLETE} == 0)





Last edited by JasonTheSparky; August 17th, 2018 at 02:27 PM.
  Reply With Quote
Reply
Jump to Live PLC Question and Answer Forum

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Topics
Thread Thread Starter Forum Replies Last Post
Visibility Animation Delay PanelView Plus queenslandpommie LIVE PLC Questions And Answers 5 November 7th, 2014 07:55 PM
FactoryTalk View Studio - How to write expression for valve / agitator animation geoffewart LIVE PLC Questions And Answers 6 March 25th, 2014 06:23 PM
FactoryTalk Studio ME animation expression alexbeatle LIVE PLC Questions And Answers 12 August 30th, 2013 11:14 PM
FactoryTalk ME, Visibility Animation controlled by Access Level? sthays LIVE PLC Questions And Answers 8 October 10th, 2012 03:50 PM
FactoryTalk ME, Visibility Animation controlled by IP Address? sthays10 LIVE PLC Questions And Answers 6 February 8th, 2011 06:03 PM


All times are GMT -5. The time now is 01:52 PM.


.