node-ethernet-ip icon indicating copy to clipboard operation
node-ethernet-ip copied to clipboard

No support for tags or type STRING, ARRAY, or LINT.

Open cmseaton42 opened this issue 6 years ago • 12 comments

Current Behavior

Currently, there is no support for tags of type String, Array, or LINT.

Expected Behavior

Proposed API Usage

Array

const arr = new Tag("ArrayName[1:5]"); // To read elements 1 through 5

String

const arr = new Tag("StringName");

Lint

const arr = new Tag("LintName");

Your Environment

  • Package version (Use npm list - e.g. 1.0.6): latest
  • Node Version (Use node --version - e.g. 9.8.0): 9.10.0
  • Operating System and version: win7x64
  • Controller Type (eg 1756-L83E/B): n/a
  • Controller Firmware (eg 30.11): n/a

cmseaton42 avatar Apr 05 '18 15:04 cmseaton42

I would be happy to do some shop floor testing on this once it's ready. - Thanks Josh

jdingus avatar May 11 '18 20:05 jdingus

I find that I can't read atomic array elements. e.g. with Tag type DINT[2], I can't read "Tag[0]" or "Tag[1]".

Is that expected?

Is there an expected date for string/array/udt support?

jhenson29 avatar May 31 '18 21:05 jhenson29

@jhenson29 I have paused development for the moment as work is pretty insane for me. I hope to get back to full speed beginning early July which would make a potential release window of mid to late July.

I apologize for the inconvenience. I will certainly update this thread when I begin adding the remaining first class functionality. If possible, I will work to get a release candidate out earlier than that. That said, pull requests are welcome and if you would like to take on the challenge to get something implemented sooner then I would appreciate the help 😄.

cmseaton42 avatar May 31 '18 21:05 cmseaton42

No need to apologize. What you’ve done so far is awesome. I have some free time this weekend. I’ll look through it, but javascript is new to me (I’m coming primarily from C#) and I normally use a .net library for EIP. I have written my own code for plain tcp sockets on both ends though so I’ll have a go at it.

jhenson29 avatar May 31 '18 22:05 jhenson29

Thanks man! It has been a fun project for me. Feel free to join our gitter chat if you have any questions about the code base.

cmseaton42 avatar May 31 '18 23:05 cmseaton42

I am picking up development of this functionality now. Updates to come as I make progress!

cmseaton42 avatar Sep 10 '18 21:09 cmseaton42

That is great news. Looking forward to support of string types!

jewendt avatar Sep 26 '18 17:09 jewendt

How is string type support development going?

srebling avatar Nov 20 '18 00:11 srebling

+5 for STRINGs! 😀

seth350 avatar Nov 28 '18 14:11 seth350

First of all, thanks for the awesome job @cmseaton42 . Just checking if the support of these types is still on the road map? Let me know if you could use some help :)

jjaramillom avatar Nov 11 '19 08:11 jjaramillom

Just committed STRING and LINT support to my fork: https://github.com/SerafinTech/node-ethernet-ip (Tests still need to be written: USE WITH CAUTION!)

SerafinTech avatar Nov 16 '19 00:11 SerafinTech

Just committed STRING and LINT support to my fork: https://github.com/SerafinTech/node-ethernet-ip (Tests still need to be written: USE WITH CAUTION!)

Can we suggest adding the changes to main repo?

mataherry avatar Sep 25 '20 09:09 mataherry