News:

  • February 05, 2023, 08:00:36 PM

Login with username, password and session length

Author Topic: Bit Level Read from data registers (V memory)  (Read 1073 times)

plcfreak

  • Newbie
  • *
  • Posts: 2
Bit Level Read from data registers (V memory)
« on: August 05, 2019, 06:04:44 AM »
Direct Soft 6
PLC: Direct Logic 405 (440)

Not much experience with Direct Logic but in other PLC's to access something at the bit level is just a matter of accessing the element as an array. I cannot figure out how to do this in direct soft 6.
So if the binary representation of V2000 was 1000010110011110 how would I extract the value of any of the bits.

Thanks for the help

ADC Product Engineer

  • Hero Member
  • *****
  • Posts: 270
Re: Bit Level Read from data registers (V memory)
« Reply #1 on: August 05, 2019, 08:33:13 AM »
Not possible in a 440.   If it were any  higher end processor it would be: use a "b" in place of the "V".  IE Bit 1 of V2000 is b2000.1

In a 440, the only option is to copy to "C" registers.  See chapter 3 or 4 of the user manual for a map of the V to C registers.
« Last Edit: August 05, 2019, 08:35:43 AM by ADC Product Engineer »

plcfreak

  • Newbie
  • *
  • Posts: 2
Re: Bit Level Read from data registers (V memory)
« Reply #2 on: August 05, 2019, 09:28:22 AM »
Not possible in a 440.   If it were any  higher end processor it would be: use a "b" in place of the "V".  IE Bit 1 of V2000 is b2000.1

In a 440, the only option is to copy to "C" registers.  See chapter 3 or 4 of the user manual for a map of the V to C registers.

Should have come here a few days ago. I have been fighting this and it has been kicking me hard. LOL! 

Just wanted to say thanks for this information. I was able to map it to C registers and now I have my bit level info. Can't say thanks enough.