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
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
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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now