RSLogix 5000 Not Reading Bits In Array

Secpcb

Member
Join Date
Jan 2015
Location
Detroit, Michigan
Posts
136
After learning here how to create arrays in RSLogix5000 ver 20.04, I have added some monitoring for a HMI to show 1 of 3 conditions for a bank of electroplating rectifiers.

I tried to get the CPU to scan in order, so I put most of the commands on separate lines. The original programmer programmed it to control rectifier every scan of the PLC, so when his count is set to 0 for the restart, I set my bad rectifier count to 0. If I find a bad rectifier I add 1 to the count, and write the rectifier number to a DINT array, and set bits for Front or Back rectifier, and 1 of 3 conditions - high, low or faulted.

I do the above in each section of the original in FC_311 Rectifiers, then monitor for bad in FC_398 Monitor.(I also monitor station vibrators, but that is working the way l planned)

When the bad rect. count is not 1 I run a 5 second timer and a counter up to the bad rect. value. The HMI I programmed shows the All OK and on any fault pops up a red rectangle with the rectifier number, but based on the 5 bits it should show F or B after the number, and the condition Low, High or Faulted.

The 5 second timer and counter will scroll through the warnings if there is more than one.

I can not figure out why the 5 bits are not being read, or written to correctly.

I have tried attaching a stripped down copy of the program that only includes the routines related to this, but it is still 1.4MB. Here is a OneDrive link to it - https://1drv.ms/u/s!AtFD6XHxfAKOp6ICdRszI8hcb3XAqw

I am hoping someone will see a single, simple mistake I made - my experience on ControlLogix PLC's is limited to this one line.
 
John,

When I checked the tags in the existing program the controller tags list has only one tag, all the other tags in the project are program tags, so I created these arrays as program tags.

If it is a problem with program tags, it is odd the HMI displays the station number that is in the DINT array, but not the bits.
 

Similar Topics

I'm creating an HMI project using Crimson 3.0. I saved my PLC project as a .L5K file and imported that into Crimson. It imported most of the...
Replies
1
Views
1,492
Hello everyone, this is my first time asking for help here, so please bear with any problem my english or lack of experience can cause. i have a...
Replies
3
Views
2,669
Hi, if we want to read or set a bit of an integer we can simply do: assume TEST1 is the integer, TEST1.3 := 1; or IF TEST1.4 THEN..... but...
Replies
2
Views
2,463
I am a novice at using Excel to mine data from my PLC. It took me several hours to determine how to access an array in my PLC from Excel, so I...
Replies
1
Views
5,008
Hi, I am new to contrologix's. I want to read few bits of tag type real. Consider 'Out_real' tag declared as real. I want to read 14, 20, 31st...
Replies
8
Views
9,619
Back
Top Bottom