Host Engineering Forum

General Category => DirectSOFT => Topic started by: plcfreak on August 05, 2019, 06:04:44 AM

Title: Bit Level Read from data registers (V memory)
Post by: plcfreak 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
Title: Re: Bit Level Read from data registers (V memory)
Post by: ADC Product Engineer 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.
Title: Re: Bit Level Read from data registers (V memory)
Post by: plcfreak 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.