plcpeople / nodepccc

Library for node.js to communicate with some Allen-Bradley programmable controllers (PLCs)
MIT License
81 stars 24 forks source link

Error Bad values #27

Closed nilesh23soni closed 5 years ago

nilesh23soni commented 5 years ago

I am running rslogix 500 software (I do not have PLC hardware, so I am using rslogix 500 with emulator) and selected Bul.1761 MicroLogix 1000 DH-485/HDSlave as my controller. It gets connected and shows online but while reading tag values it shows error as bad values. Any one please help me with these, I am a novice to this and do not have much knowledge about controllers.

A quick reply will be very helpful for me.

Thank You

nilesh23soni commented 5 years ago

I am using it via node red and also want to know, does it works with rslogix 500 software and emulator rslogix emulate 500. rs logix error

nilesh23soni commented 5 years ago

above is the plc program I am using. I do not have any idea about plc programming. so if anything thing is wrong with the program. Please send me a simple program and help me with it.

Thank You

plcpeople commented 5 years ago

There is a sample program in the README. You should be able to at least read I:0.0, but it's hard to know what other data values you have. You need to at least try to understand the Allen-Bradley data table in the program you're working with and how it's set up - what are you trying to read from the PLC?

nilesh23soni commented 5 years ago

I do not have a physical PLC with me I am trying to read with Emulators for testing purposes. In actual after testing I would be reading from: Processor Type: Bul.1761 MicroLogix 1000 DH-485/HDSlave

I am using node red version of PCCC from here: https://flows.nodered.org/node/node-red-contrib-pccc

The software I was using was rslogix 500 with rs links but now I am trying with Studio 5000 and rs emulator 5000.

Please let me know if I would be able to get values from this software or not?

In actual there is a PLC connected to various RTD's and vibration probes, switches and we need to read their reading from PLC, and we will be connecting raspberry pi device to plc via Ethernet cable. Kindly send me your email Id so that I can send you the actual program from which I am required to fetch values.

Thank You Your work is highly appreciated and helping us a lot. node red pccc

plcpeople commented 5 years ago

I've read that RSEmulate (500 or 5000) can't communicate on Ethernet, so I don't think you will have much luck there. People set up HMIs to talk to these products but only using OPC and RSLinx. So I don't think this will work with the emulator, I think you will need real hardware. If your real hardware is a Micrologix 1000 without built-in Ethernet, this isn't going to work very well without a 1761-NET-ENI or equivalent. Does your real hardware have an Ethernet port? Or how are you connecting to it?

As far as going through the program, you really need to start by figuring out what data you want to read and where it is in the data tables, this isn't something that we have unlimited time to help you with. If you want to test nodePCCC, just load a default program, go online, type a value into N7:0, and see if you can read that. But if you don't have access to real hardware, I don't think you are going to have much luck.

kyle-github commented 5 years ago

@nilesh23soni I think that is the case: RSEmulate does not have Ethernet. I think SoftLogix does. I am not sure if SoftLogix is still offered. But that would be the CIP/EIP/EtherNet/IP protocol (called various things in various places).

The protocol used by *Logix-class PLCs is quite different from PCCC/CSP. If you want to talk with those PLCs natively, you will need a library that speaks CIP or you will need to set up PCCC mapping for the tags you want to read/write.

I am a bit confused though. You say you are going to use a MicroLogix 1000 but you are using Studio 5000. Can you use those two together? I think you have to use RSLogix 500.

Node RED seems really interesting. Not sure how I missed it. I will need to see if I can wrap my EtherNet/IP library for that!

nilesh23soni commented 5 years ago

Hi all, Finally we have decided to buy a Micrologix 1400 controller. And just wanted to know that does node red library of pccc works with Micrologix 1400 controller or not. Has anyone tested it yet? Thank You

plcpeople commented 5 years ago

I have tested with the 1400 controller and it works well.

nilesh23soni commented 5 years ago

Hi Greetings of the day,

while fetching of N7:0/0 from my Micrologix 1400 controller via node red pccc node I am getting a msg object but it doesn't contains the value. Please check attachments.

Thank You

untitled5 whatsapp image 2018-12-07 at 2 01 49 pm

plcpeople commented 5 years ago

The best test for nodePCCC by itself is to run the sample program in the README by itself. If this isn't able to read the values, it will produce lots of output telling you why. Are you getting any other output from node-red? Reading N7:0/0 has worked (as far as I know) with a 1400 since the code was posted, so I think something else is going wrong.

plcpeople commented 5 years ago

Closing due to lack of activity. Please feel free to re-open if issues are seen.