RSLogix500 CPT Inst Error msg

I am using Logix 500 version 8.20.00 and set up the CPT in a ML1400 project. I used the expression as posted in post #3 by copying and pasting it. I used F10:3 as the destination. It verified with no errors. Is this a Logix 500 version issue?
 
Gripster,

Are you trying to program this offline or online?

There could be some differences in the way this verifies offline -vs- online, specifically with memory allocation. I had no problems verifying offline, even without the files set up, as an offline verify will automatically create and expand the files as necessary.
 
It verified with no errors. Is this a Logix 500 version issue?

There are some errors which, on accepting a rung or even 'verify file', only prompt a small message ("To navigate to the error cursor on the error") in the lower left. The full error only shows up on 'verify project'. This is one of those types.

Edit - actually, after 'verify file' the message said there were "no errors".
 
Last edited:
After playing around with this a little bit more its pretty obvious that the problem is multiplying two constants.

CPT N7:0 5*10 won't work, it gives you the immediate error.

CPT N7:0 50 will work.

You have to simplify your expression so that your are not multiplying constants, which is good programming practice anyways.
 
That is correct.
The problem is the 43.0*3.14 section of the expression.

If you program a CPT and just put two constants (immediates) around any operator like + - * | ** you will get the immediate error. I tried this out and that is what happens.

In the case posted, if you change the 43.0*3.14 to just 135.02, and make no other changes, the project will verify with no errors.
 

Similar Topics

Hi all, I am having a few difficulties with the CPT instruction and getting the dreaded "invalid expression ! Two operands in sequence! ", my...
Replies
11
Views
6,552
So basically i have 2 queries : 1. I have a program file of S7-300 PLC which i want to migrate in RSLogix500.In short i want to convert my simatic...
Replies
14
Views
170
So here's my situation, I have been tasked with modifying the logic to mimic a button press in the PLC. I have two identical machines however one...
Replies
6
Views
543
Hello, I'm new to programming. I'm using RSLogix500 to modify an existing program for a SLC500. My plan was to use one of the existing inputs...
Replies
26
Views
2,002
So i have an allen bradley rack (2080-LC50-24QWB), i have it connected through ethernet. I dont have an offline program so im trying to upload...
Replies
6
Views
689
Back
Top Bottom