Allen Bradley PLC5 - compute instruction

EICS

Member
Join Date
Dec 2008
Location
Melbourne, Australia
Posts
323
I am using a legacy Allen Bradley PLC5/40E Series F CPU
Having issue with compute instruction syntax with the expression
Doing a divide by floating variables for example

Destination F22:10

Expression (N7:10 *10) / F22:11

Of course I can use a divide instruction afterwards but wondering why
This instruction cannot accept divide at all?


i can seem to put a few functions in the expression but nothing using Divide? is the "/" symbol for divide not supported or some other syntax issue ?
 
Last edited:
And just as a bit of background for others that may be confused by this...

In the PLC-5 and the SLC 500, Allen-Bradley used the "/" to separate the bit from the rest of a word in an address. They referred to it as a bit delimiter. If the word was N7:0 and you wanted bit #5 then it became N7:0/5. Bit #5 in word 0 of the N7 file.

They used the "." (period) as a word delimiter. If you wanted the Preset value on a timer you might have something like T4:0.PRE since the PRE was a value (word) But if you wanted the Done bit, it would be T4:0/DN.

In the software you could always type "." and it would change it to a "/" when appropriate.

That is why they had to use the "|" pipe symbol for divide for any instruction that used an expression (CPT/CMP/FAL). Otherwise, it would have interpreted a "/" as a bit delimiter and given an error.

In the Logix 5000 they only use the "." as a delimiter so in an expression you can use the proper divide symbol.

OG
 

Similar Topics

Does anyone have the installation files only (not the license) for the Allen-Bradley 6200 software for the PLC 5/250 (also known as Pyramid...
Replies
3
Views
1,216
Today I was making an online edit to a 5/40 Series E Rev K.2 with about 14% free memory. I was removing one branch in a large rung. Accept...
Replies
4
Views
3,171
I have been working within a file for several days and this morning I am getting a "Access Violation to Current Processor" error? I was just in...
Replies
1
Views
1,916
Hello, We use 4 racks with 1785-L80B, 1785-BCM and 1785-BEM in them. I am looking to purchase secondhand a few spares as we have had some...
Replies
4
Views
2,210
I am looking to purchase or borrow an offline license for the Pyramid Integrator Controller. I have an online license but also need an offline...
Replies
12
Views
4,420
Back
Top Bottom