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

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
159
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
157
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
727
Hello everyone, I'm currently using RS Logix5000 software for machine programming with this Rockwell PLC using the Structured Text method. The...
Replies
19
Views
1,951
I am sure this has been asked/done but couldn't find anything. I need to count how many times a motor has started in the last 24 hours at any...
Replies
13
Views
1,320
Back
Top Bottom