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

Join Date
Jan 2024
Location
India
Posts
16
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

I've been dealin with some intermittent CIP explicit messaging issues. I tried reducing the amount of small MSG instructions and converted them to...
Replies
2
Views
74
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
155
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
564
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
5,006
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,168
Back
Top Bottom