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 - Interactive Q & A > - Interactive Q & A > LIVE PLC Questions And Answers

PLC training tools sale

Thread Tools Display Modes
Old April 6th, 2006, 10:53 AM   #1

FMorin is offline
Join Date: Apr 2006
Location: Longueuil
Posts: 5
color animation of an object


My second day as a member and already a second question. I Hope Iíll be able to help someone somedayÖ

Hereís the (multi)question: (again, Iím working on RSView Studio 4 (CPR7))

Iím trying to animate the color of an object(polygon) with this expression:

If ({tag1} == 0) Then 0 Else If ({tag1} == 1) Then 1 Else 2

tag1 is digital

1rst: what is the meaning of the {}?

2nd: When simulating, I receive this error:

Expression contains a tag that has an error value

After looking in the RA: KnowledgeBase, Iíve founded this post:

I donít understand this answer, why creating a folder?

If I understand correctly, Iím comparing an integer with a bit and thatís not possible but Iíve tried to change the type and data type of tag1 to Analog and Integer, but the same error appeared.

3rd: would it be possible to use this expression, (Iíve tried but got the same error msg):

If {tag1}Then 1 Else 0

Meanings (for me as I understand itÖ):

if tag1 is true then 1

many thanks(!!!)

  Reply With Quote
Old April 6th, 2006, 11:46 AM   #2
United States

93lt1 is offline
93lt1's Avatar
Join Date: Apr 2002
Location: Mount Pleasant, Iowa
Posts: 993
Being that this is a digital tag, just select the tag in the "expression" textbox don't add any other "logic" - just the tag, then select the color you want for the on state and the off state below.

Your "expression" has a minimum of three states 0, 1, and not 0 or 1. That is not possible with a digital tag....

See attached:

Last edited by 93lt1; April 6th, 2006 at 11:54 AM.
  Reply With Quote
Old April 7th, 2006, 06:57 AM   #3

FMorin is offline
Join Date: Apr 2006
Location: Longueuil
Posts: 5
thank you 93lt1, you put back some pieces of the puzzle...

and guess what? it works
  Reply With Quote
Jump to Live PLC Question and Answer Forum


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
Calendar object in RSView SE display. briana banks LIVE PLC Questions And Answers 1 January 20th, 2014 02:00 AM
How to link recipe object to a string tag? briana banks LIVE PLC Questions And Answers 3 December 23rd, 2005 06:42 PM
Setting up CP 343-1 card (siemens) Johnny T LIVE PLC Questions And Answers 35 August 19th, 2005 06:58 AM
Cimplicity Class and Object teh LIVE PLC Questions And Answers 0 August 19th, 2005 04:12 AM
RSView Studio ME Trend Object Question jstolaruk LIVE PLC Questions And Answers 3 February 25th, 2005 05:46 AM

All times are GMT -5. The time now is 12:41 PM.