Same instruction working on one program and doesn't works on another

Join Date
Jan 2024
Location
India
Posts
15
I am noticing a problem where i am using MOV instruction and writing literal text into source and String datatype in destination. It works fines in one program but doesn't on another it show an error Invalid Data Type. Argument must match Parameter Data type. I know what the error is and why but my question is why is it working perfectly fine in 1 program and not on another.

Screenshot 1.png Screenshot 2.jpg
 
Welcome to the PLCTalk forum community !

Are the controller models, firmware revisions, and Studio 5000 Logix Designer versions the same in both projects?

Are the sub-elements in each UDT ordinary STRING default datatypes, or could they be user-defined STRING[x] that are a length other than 82 characters ?

Support for STRING type literals is a relatively modern addition to Studio 5000, and to my knowledge are only supported on 5580 or 5380 series controllers.
 
The PLC software revision is 34.11, but the one with error is 1769-L3ERMS PLC while the one without Error is 5069 but the software was same update. strings in UDT are String[1] but that is why i selected data[0] which is String

Screenshot .png
 

Similar Topics

Hi, I want to build a demo station to test devices and programs and I need some help with it. I want to connect GuardLogix, Piltzmulti and...
Replies
1
Views
149
I would like to temporarily install AdvancedHMI on the same computer as FactoryTalk View SE. I am waiting for another contractor to finish the FTV...
Replies
3
Views
559
Hi. Not the fist time I'm saying this but just to give a background. 95% of my PLC programming has used Schneider over the last 10 years on...
Replies
66
Views
4,978
Hello, I have an array of 300 of UDT. In each UDT is an array of 3 DINT and another array of 3 REAL. I have 10 controllers that pull data from...
Replies
7
Views
1,162
Hey guys, This is more of a networking question, but maybe you'll be able to help me. I'm trying to get an HMI to connect to two different PLCs...
Replies
9
Views
1,630
Back
Top Bottom