Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting invalid tag in Ethernet/IP protocol #24

Open
rahul484 opened this issue Aug 12, 2022 · 2 comments
Open

Getting invalid tag in Ethernet/IP protocol #24

rahul484 opened this issue Aug 12, 2022 · 2 comments
Labels
question Further information is requested

Comments

@rahul484
Copy link

Trying to connect to Allen's Bradley plc device using Ethernet IP protocol. Test connection is successful, however, I am unable to read it after passing the tag.

I am using edit inline to add the tag with the name 'hello' as below:
Alias: Test
Address: %hello

I tried without % also in the address, however, it's throwing error: invalid tag.

@rogierc
Copy link
Member

rogierc commented Oct 8, 2022

According to PLC4X documentation the address format should be:

%{tagname}[{startIndex}]:{numberOfElements}
%{tagname}[{startIndex}]:{numberOfElements}:{DataType}

The regex in the Ethernet IP protocol sourcecode states:

private static final Pattern ADDRESS_PATTERN =
        Pattern.compile("^%(?<tag>[a-zA-Z_.0-9]+\\[?[0-9]*\\]?):?(?<dataType>[A-Z]*):?(?<elementNb>[0-9]*)");

Looks like your tag is valid, but maybe the PLC device you are connecting to has additional requirements concerning the address.

@rogierc rogierc added the question Further information is requested label Dec 7, 2024
@rogierc
Copy link
Member

rogierc commented Dec 8, 2024

Maybe the PLC4x documentation is not up to date. See: PLC4X issue 1481

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants