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

How to create a variable in the PLC and set its AT property on Omron NJ1400? #18

Open
ottobolyos opened this issue Oct 18, 2023 · 1 comment

Comments

@ottobolyos
Copy link

ottobolyos commented Oct 18, 2023

Here’s a quote from README.md:

  • FINS works with PLC Addresses. NJ and NX PLCs do NOT have direct addresses to addresses like DM or E0_, E1_.
    • In order to use C Series addresses in an N Series PLC, you will need to create a variable in the PLC and set its AT property. E.G. If you want to read and write 40 WDs from E0_9000 ~ E0_9039 then you need to add a TAG like this TAG_NAME ARRAY[0..39] Of WORD %E0_9000
      image

How do I do this for Omron NJ1400?

At the moment, I am successfully connected to the PLC, however, I cannot get the data (there is no output to the debug console; I am trying to read global.ProductCount.Count1 address if that matters):

image

Thank you in advance! 🙏


Update

First I tried to hard-code the address value into th FINS read node, then there was no error. However, when I use msg.topic set to global.ProductCount.Count1 in the timestamp node, it now throws an error: address is not valid. I suspect it is related to the fact the AT property is not yet set.

image

@Steve-Mcl
Copy link
Owner

I'm not 100% certain NJ 1400 supports fins access but if it does you MUST set at column with a valid address as shown in the readme.

Check the ethernet settings - look for "fins"

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

No branches or pull requests

2 participants