Jimbo Posted January 8, 2004 Report Posted January 8, 2004 Hello, I am trying to increment a DINT that is not a problem with the instruction DINC. But the DINT has to be referd to by an index, eg : D3000Z0. If i use this syntax the compiler say's "Type mismatch on output variable". I am using GX Developer 5.02 and i program in ladder. I have also tried K2D3000Z0 but that gives the same result. If my explanation wasnt clear enough in attachment a printscreen of the program. Greetz, Jimbo Quote
navillusi Posted January 8, 2004 Report Posted January 8, 2004 In the IEC ladder editor, the compiler will assume that any "D" reference is an INT rather than a DINT. To use a DINT you must declare it in the header as such, however, when you do this, you can't use the index registers. It will however work quite happily in MELSEC Instruction list, i.e. LD X0Z0 DINC D2000Z1 I don't know of any other solutions but I'll look for more Quote
panic mode Posted January 8, 2004 Report Posted January 8, 2004 (edited) Here it is using GX Developer 7.11M: Edited January 8, 2004 by panic mode Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.