Code Monkey home page Code Monkey logo

Comments (4)

gfcittolin avatar gfcittolin commented on August 11, 2024

Sorry, I've somehow missed this issue. As far as I could read on the internet, AB Micro800 doesn't follow the exact same protocol as a ControlLogix PLC would, so I fear this is incompatible with a Micro800. Unfortunately I don't have any here so I can test. Have you tried using node-red-contrib-pccc?

Closing the issue for now, but feel free to reopen it's the case

from node-red-contrib-cip-ethernet-ip.

perkasajob avatar perkasajob commented on August 11, 2024

Closing the issue for now, but feel free to reopen it's the case

to use micro800 seems needs minor changes, I use https://github.com/dmroeder/pylogix , seems only handshaking header is different, I can help you to test your code, I have micro820, please find following python code snippets :
if self.Micro800:
ConnectionPath = [0x20, 0x02, 0x24, 0x01]
else:
ConnectionPath = [0x01, self.ProcessorSlot, 0x20, 0x02, 0x24, 0x01]
and
def _makeString(self, string):
work = []
if self.Micro800:
temp = pack('<B', len(string)).decode('utf-8')
else:
temp = pack('<I', len(string)).decode('utf-8')
for char in temp:
work.append(ord(char))
for char in string:
work.append(ord(char))
if not self.Micro800:
for x in range(len(string), 84):
work.append(0x00)
return work

from node-red-contrib-cip-ethernet-ip.

msvargas avatar msvargas commented on August 11, 2024

Closing the issue for now, but feel free to reopen it's the case

to use micro800 seems needs minor changes, I use https://github.com/dmroeder/pylogix , seems only handshaking header is different, I can help you to test your code, I have micro820, please find following python code snippets :
if self.Micro800:
ConnectionPath = [0x20, 0x02, 0x24, 0x01]
else:
ConnectionPath = [0x01, self.ProcessorSlot, 0x20, 0x02, 0x24, 0x01]
and
def _makeString(self, string):
work = []
if self.Micro800:
temp = pack('<B', len(string)).decode('utf-8')
else:
temp = pack('<I', len(string)).decode('utf-8')
for char in temp:
work.append(ord(char))
for char in string:
work.append(ord(char))
if not self.Micro800:
for x in range(len(string), 84):
work.append(0x00)
return work

Hi, i working with Micro820, I build package node-logix i hope help to anybody

from node-red-contrib-cip-ethernet-ip.

intensite avatar intensite commented on August 11, 2024

Hi, i working with Micro820, I build package node-logix i hope help to anybody

Can @msvargas 's code be merged in the node-red package?

from node-red-contrib-cip-ethernet-ip.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.