COMM_ERR() usage in FactoryTalk View

khordin

Member
Join Date
Jul 2011
Location
Waterloo
Posts
7
I have a Global Object with several parameters. One parameter can be left empty (not assigned).

I'm trying to control Visibility of a button in a pop-up based on whether or not the parameter passed to it is assigned:

COMM_ERR({#2}), result makes it invisible.

The idea that if parameter is assigned, the button is there; if not - there is no button.

It works,.. but only one time, on the first display of the pop-up! If I close it and open again, the script doesn't do anything and the button remains visible. And it doesn't work again until I save the pop-up display offline and open "brand new one". I don't cache the pop-up, and I tried flushing cache anyways - no difference...o_O

Has anybody used the COMM_ERR function this way?
 
nevermind

Nevermind, I read the small print and discovered that it works only for HMI tags. For PLC tags, obviously, the behaviour is unpredictable...
 
2023 update

Hi.

In the decade since this post, it seems that the behaviour for this function has either intentionally changed, or the behaviour described above was due to an error that has since been fixed.

I have a sensor connected as a digital input to my PLC that I want to display on a popup when you click on a roller conveyor. The conveyor is a global object, and the tag for the sensor is Global Object Parameter #3.

As a touch animation, I open the popup using Press action "Display Popup_[Censored_Name_Here] /T{#1},{#2},{#3},{#4},{#5},{#6} /CC", retaining #3 as the sensor tag for the popup as well.

On the popup, I have a box that changes colour based on the boolean value of #3, and the box is hidden using the visibility animation, with the expression "NOT comm_err( #3 )", expression true state: visible.

When the Global Object Parameter #3 is left blank, the box is correctly hidden. If connected to a tag, the box shows up on the popup as intended. I hope this information can be of use to future users.
 

Similar Topics

Hi; In a cabinet of a machine, a Fatek PLC with an Ethernet communication card is working. In the same cabinet, there is a 1 kW inverter. When...
Replies
16
Views
487
After updating a panel, I inherited another PLC for my "learning lab". It's a Modicon TSX Micro. I've not worked with a Modicon PLC yet, so I...
Replies
1
Views
127
Guys need a bit of help getting the instance correct for a 22comme with a PF40P. Trying to get 2 things first is the drive current amp draw...
Replies
1
Views
83
I have 3 new PowerFlex 7000 VFD's. Rockwell was out to do some checking before startup. These are part of a larger electrical project. I gave the...
Replies
7
Views
313
Hello everyone, I'm seeking advice from those familiar with working on Siemens Relay 7SR11 for communication via 61850. Currently, we have...
Replies
0
Views
1,101
Back
Top Bottom