News:

  • June 09, 2026, 10:50:45 AM

Login with username, password and session length

Author Topic: V memory data in comparative contact not matching actual V memory data  (Read 10237 times)

soakncider

  • Newbie
  • *
  • Posts: 1
I have loaded data to double word V memory location V1400 as a timer value.  The timer displays correct data in ladder up to eight characters.  I have used a comparative contact using V1400 but IT will not display more than four characters.

My logic is as follows: 

LDD;V1200>MUL;600>OUTD;V1400
V300 > or = then RESET T300

The comparative contact will display V1400 as 200 when V1400 is displayed as 10200 on the timer.  V1400 also displays 200 in Data View.

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3827
    • Host Engineering
Re: V memory data in comparative contact not matching actual V memory data
« Reply #1 on: February 25, 2008, 09:01:35 PM »
I'm assuming you are using an accumulating timer, which uses two V memory locations for its preset, aka a DOUBLE WORD or DWORD, which in this case is V1400/V1401 (two 16 bit words).  The relationals only work with 16 bit values.

You can use the Compare Double (CMPD) box, which will work.  Look at the Help for CMPD to understand how to use it along with the specific relational SP bits.