Logix5000 FRD Instruction

daba

Lifetime Supporting Member
Join Date
Jul 2004
Location
uk
Posts
5,401
This is not a plea for help, but the opposite.

The native FRD (From BCD) instruction in the Logix5000 platform is, IMHO, flawed. It does NOT decode from BCD, but from HEX, as can be seen in the attached picture. It does NOT detect "illegal" (i.e. non-BCD) bit patterns in the "nibbles" of the data it is trying to decode.

To that end, I have written an Add-On Instruction which works correctly, and does a lot more. It will show you which nibble(s) is/are non-BCD, You can use an input mask if you are using other bits in the input data, and you can set it to mirror the output behaviour of the Logix500 FRD instruction.

In addition, the instruction will set the S:V status bit if it detects a bad BCD value, which you can use in your logic just like you would from any other instruction.

If anyone wants the AOI, I will post it here (zip file of the export), just ask.

None of the code is protected, and it has been fully tested.

Enhanced FRD.jpg
 

Similar Topics

Hi! So my problem is a little funky, I had Studio 5000 v 24 and 30 installed, but forgot to install RSLogix (which I cannot go without). Is there...
Replies
2
Views
112
So I had an odd request from a customer for the above. I have written the logic and tested it all in one PLC with only using 7 outputs and 7...
Replies
15
Views
427
I'm a Siemens person, and this is one of my first AB programs. The customer wants everything programmed in Ladder. I have a lot of data (3...
Replies
14
Views
217
Good day everyone. if you have a logic for 3 pumps (lead/lag/off), would you please email it to me? I really appreciate it!
Replies
7
Views
217
Maybe this is just not possible, or maybe I am doing something wrong. Background; I have a data array of over 1500 products. For sorting I...
Replies
6
Views
757
Back
Top Bottom