PLCnLabVIEW

Addressing Local Tags by EIP Client - RSLogix 5000

3 posts in this topic

I am using LabVIEW to read PLC tags from RS 5000 Controller. Reading tags that have global scope is no issue but reading tags that have scope limited to a Task or a sub task is giving us an error. detail for Error ode 0x04 is listed in the following link. 

CIP Error Codes

I believe the issue is related to incorrect tag address string when trying to read data from scope limited tags. If so what is the correct way to build address strings for such tags.

Thaks in advance.

Code bd.PNG

Code fp.PNG

Global Scope vs local scope.png

Share this post


Link to post
Share on other sites

I am not sure in Labview how it works, but other HMIs you have to scope the Tag all the way.

For example this is the format for a Panel View

Global

{[RSLINXNAME]Free_Running_01.ACC}

That same tag name if under a program would be, (This is not exact, but to give you an idea)

{::[RSLINXNAME]Program:Prog1.Free_Running_01.ACC}
 

1 person likes this

Share this post


Link to post
Share on other sites
52 minutes ago, Chris Elston said:

I am not sure in Labview how it works, but other HMIs you have to scope the Tag all the way.

Same with PeakHMI.

There are two special characters. The colon ( : ) and the period ( . ). The colon is used to
indicate a program name and the period is used to indicate a field name.

If the tag is in a program, prefix the program name with a colon
<programName:>tagname.

Open_Time.ACC

TowerCtrl:Open_Time.ACC

 

1 person likes this

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now