Jump to content

Recommended Posts

Posted
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

Posted
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

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...