Control Logix 5000 + CIP Data Table Write

sj100

Member
Join Date
Aug 2008
Location
Sheffield
Posts
1
Hi folks,
I'm very much a newcomer to PLCs in general and the CIP standard in particular and have a problem I hope someone could shed some light on. I've started a work project using a CL5000 plc talking to my company's in-house developed SCADA control system.

I've set the PLC to have an array of DINT which I'm then using each bit of the DINT as a boolean. When I write the array using CIP Data Table Write from the CL5000 to my Scada, I get all 32 current BOOL values which is great. However, when I write FROM my Scada to the CL5000 I want to offer more granularity so I can only write to the bit I'm interested. This means I can't just send the DINT but have to "drill down" to the bit level and send just that.

I've configured the TAG in CL 5000 as

Name = stuff DINT[1]

so now I can see each bit within "stuff" as for example

stuff[0].1

However, I cannot seem to work out how to address this individual bit when I build the CIP Data Table command to then send to the CL5000. If I set my CIP data type to 0xC1 ( BOOLEAN) and use Segment address then the CL5000 rejects it as wrong type which I guess is due to the TAG being a DINT. When I set CIP data type to 0xC4 (DINT) I'm then sending 32 bit values when I only want to send 1 specific one which could mean I'm incorrectly overwriting 31 bit values in the plc memory.

Any advice/suggestions would be hugely appreciated.
Steve
 
I have no idea how your scada works, but you might try writing to a bool array instead of a Dint arrray at the bit level.

Create an arry in your CLX of bools.

Bool array would be something like Stuff[0] and Stuff[1] and data type should be BOOLEAN. Each address will represent one bit.

If this works and you really want it in a DINT array then you can copy the bool array into your DINT array and you should be good to go.


RSL
 

Similar Topics

Hi all, I'm going to start programming a 1756-L73 and I'm still waiting for the full Studio5000 to be able to start at it in earnest. But I...
Replies
5
Views
440
Folks, Putting together a system utilizing a Control Logix Gen 8 (5580) PLC w/ the L83e CPU. I'll be connecting to 8 different FLEX-IO drops...
Replies
13
Views
4,101
In studio 5000, is there a way to write a force mask into a rung? Long story short, I would like to create a test routine for a FAT test. In...
Replies
7
Views
1,284
Hello, I was trying to create new module in I/O Configuration and I get the "Fatal Application Error" Below is my plc setup if I need to try...
Replies
6
Views
1,504
Hi, I am new on RSLogix 5000 programming. Now I am starting a auto machine project and want to control machine process sequentially. I prefer to...
Replies
6
Views
1,613
Back
Top Bottom