Freelance OPC Regular Patterns AC800M

Hello:

I want to know if anyone have an example for the regular pattern configuration for ABB AC800M OPC to use within Freelance OPC Regula Partitioning Pattern.

This is in order to solve the same problen indicated on the fallowing question:

http://www402.abbext.com/WHENEVER-I-WANT-TO-CREATE-TAG-TY..
.


Add New Comment


raudales   

asked 28 days ago
Closed



Best Answer

1

Hello Raudales.

I do not have a ready pattern, but I can try to describe how you can create one on your own.

The patterns used in connection with Freelance OPC data access are Regular expressions.

A regular expression (or regex) is a formal language used to match any part of a given string.

A good explanation of the Regular Expression syntax can be found at the link below.

Freelance uses those regex patters to identify the different parts in an OPC item name. Because OPC servers from different vendors use different syntax to build the OPC item name one needs something configurable to be able to extract the Tag name out of them.

Because a Tag consists of several components you need to identify the common Tagname out of several components represented in the OPC server as OPC items. And you also need to idebtify the component name out of a given OPC item name to identify whether you have the measuring range start or measuring range end or Input or Output etc at hand.

Those components are called Selectors in Freelance.

Therefore the OPC Regular Pattern dialog allows you to define 4 regex patterns to identify Prefix (the part befor the tag), Tag, Selector and Postfix (the part after the selector) within an OPC Item name

In Freelance, because Tags and Variables are unique within a system, the OPC server represents Tags as "Tagname/Selector", without identifying the Process station. Therefore the Prefix pattern is empty (not needed). The Tag part specifies the part of the OPC item name from the start till the first "/" which represents the Tagname. The regex pattern for this would be ([^/]*) which matches zero any number of characters except the "/". The "(" and ")" define a subexpression. The Selector is defined by /([^/]*) which matches the "/" before the second subexpression similar to the first.

So the whole OPC item name can be writen as ([^/]*)/([^/]*) where the two subexpressions identify Tagname and Selectorname.

For the AC500, the OPC Item name is defined as "PLCname.Taskname.Tagname.Selector". So here you need a Prefix pattern to match "PLCname.TaskName" The whole pattern that makes up the OPC item name is then

(.*)\.([^\.]*)\.([^\.]*). The last 2 subexpressions identify Selector and Tagname.

The "\." identifies the "." literally because the normal "." would actually mean any character.

For a pattern for AC 800M you need to find out how an OPC item name is constructed and then create the matching patterns for the parts. A short description of the language elements used is also available in the Engineering IEC61131-3 Manual, section OPC Items.

Dieter Henkel   

answered 28 days ago


 


Add New Comment


Answers

1

Hello Raudales.

I do not have a ready pattern, but I can try to describe how you can create one on your own.

The patterns used in connection with Freelance OPC data access are Regular expressions.

A regular expression (or regex) is a formal language used to match any part of a given string.

A good explanation of the Regular Expression syntax can be found at the link below.

Freelance uses those regex patters to identify the different parts in an OPC item name. Because OPC servers from different vendors use different syntax to build the OPC item name one needs something configurable to be able to extract the Tag name out of them.

Because a Tag consists of several components you need to identify the common Tagname out of several components represented in the OPC server as OPC items. And you also need to idebtify the component name out of a given OPC item name to identify whether you have the measuring range start or measuring range end or Input or Output etc at hand.

Those components are called Selectors in Freelance.

Therefore the OPC Regular Pattern dialog allows you to define 4 regex patterns to identify Prefix (the part befor the tag), Tag, Selector and Postfix (the part after the selector) within an OPC Item name

In Freelance, because Tags and Variables are unique within a system, the OPC server represents Tags as "Tagname/Selector", without identifying the Process station. Therefore the Prefix pattern is empty (not needed). The Tag part specifies the part of the OPC item name from the start till the first "/" which represents the Tagname. The regex pattern for this would be ([^/]*) which matches zero any number of characters except the "/". The "(" and ")" define a subexpression. The Selector is defined by /([^/]*) which matches the "/" before the second subexpression similar to the first.

So the whole OPC item name can be writen as ([^/]*)/([^/]*) where the two subexpressions identify Tagname and Selectorname.

For the AC500, the OPC Item name is defined as "PLCname.Taskname.Tagname.Selector". So here you need a Prefix pattern to match "PLCname.TaskName" The whole pattern that makes up the OPC item name is then

(.*)\.([^\.]*)\.([^\.]*). The last 2 subexpressions identify Selector and Tagname.

The "\." identifies the "." literally because the normal "." would actually mean any character.

For a pattern for AC 800M you need to find out how an OPC item name is constructed and then create the matching patterns for the parts. A short description of the language elements used is also available in the Engineering IEC61131-3 Manual, section OPC Items.

Dieter Henkel   

answered 28 days ago


 


Add New Comment



Get weekly AKS updates


Partner Exclusive Webinars

 

> – Login to the partner portal to register



Points Redemption Program - Redeem your points for ABB training, Bluetooth speakers and mugs. Terms and conditions >


Earn points when you refer a friend
AKS Referral Program is "Live" - Learn more



AKS Experts


avatar
Ask Dieter Henkel   

Rank: 23


avatar
Ask Harsha.D   

Rank: 6

Tech.Support,software and commisioning engineer with Proficient knowledge in 800xA and its products, RNRP,Networking in general.


avatar
Ask Govindaraj   

Rank: 10

Working in ABB India Operation Center. Have Project engineering and commissioning experience in ABB 800xA, Freelance, AC500.


avatar
Ask Flavio Mussolin   

Rank: 4

ABB AVP, Senior Electronic and Automation Engineer with over 30 years of experience in the field of process automation automotive, pharmaceutical, hollow glass, steel and rolling.


avatar
Ask kstoilov   

Rank: 16

Control System Engineer: 800xA, Compact 800, AC500, AC31-50, Advant Master, Simatic, AC&DC Drives 11 years worked for ABB - Control Systems


avatar
Ask Sumit Gargav   

Rank: 2

I have worked with Freelance in majority, with 800xA FD and Melody system partly. Also had opportunity to work with Protocols - HART,Profibus,FF & Modbus.


avatar
Ask nikismith   

Rank: 261

I have been a part of the Recording & Control Factory team for 17 years in total, having spent a number of years as a repairs technician withi the manufacturing department, but being in my current role for 9 years now.


avatar
Ask MMM   

Rank: 5

ABB PA CT Technical Support


avatar
Ask Stefan Stromqvist   

Rank: 1

I joined ABB in the year of 1994 and has since 1999 been working as a Service & Support Engineer at BU Control Technologies in Västerås, Sweden. My areas of expertise are: 800xA Base, 800xA for Advant Master, Information Management, operating systems, RNRP and Ethernet comms/networking in general.


avatar
Ask Rob Lyon   

Rank: 3

info@lymac.co.nz I'm an independent DCS software and commissioning engineer with extensive experience in 800xA and other ABB products. I've worked in almost every corner of the world and still haven't seen it all.