Hello everyone,
I'm currently using FactoryTalk View Studio 8 (CPR 9 SR 7) and I found some problem in using trends.
In my project I have trend that displays few tags from PLC so normally connections to this tags in Trend Object Properties are e.g.
Pen1 <- {::[PLC]Program:TAG_TO_DISPLAY1}
Pen2 <- {::[PLC]Program:TAG_TO_DISPLAY2}
etc...
What I want to achive is to have an ability of turning off current Pen in running project. Let's say I would have bool variable TAG1_ON_OFF, Tag2_ON_OFF, etc.. which tell that current tag is displayed(TRUE) or not(FALSE)
First I tried to make an expression in trend connections:
If {TAG1_ON_OFF} Then {::[PLC]Program:TAG_TO_DISPLAY1} ELSE none
but of course 'none' is not recognizable and an alarm is generated. The sentence must be IF ... THEN ... ELSE ... so I need to have something in ELSE but I don't want to have 'ELSE 0' becouse it will be displayed anyway on value 0.
So do you know if there is any way of disabling current pen in running application?
I'm currently using FactoryTalk View Studio 8 (CPR 9 SR 7) and I found some problem in using trends.
In my project I have trend that displays few tags from PLC so normally connections to this tags in Trend Object Properties are e.g.
Pen1 <- {::[PLC]Program:TAG_TO_DISPLAY1}
Pen2 <- {::[PLC]Program:TAG_TO_DISPLAY2}
etc...
What I want to achive is to have an ability of turning off current Pen in running project. Let's say I would have bool variable TAG1_ON_OFF, Tag2_ON_OFF, etc.. which tell that current tag is displayed(TRUE) or not(FALSE)
First I tried to make an expression in trend connections:
If {TAG1_ON_OFF} Then {::[PLC]Program:TAG_TO_DISPLAY1} ELSE none
but of course 'none' is not recognizable and an alarm is generated. The sentence must be IF ... THEN ... ELSE ... so I need to have something in ELSE but I don't want to have 'ELSE 0' becouse it will be displayed anyway on value 0.
So do you know if there is any way of disabling current pen in running application?