Host Engineering Forum

General Category => DirectSOFT => Topic started by: mo2004 on February 22, 2008, 04:45:49 PM

Title: Using SUBBS
Post by: mo2004 on February 22, 2008, 04:45:49 PM

hello, every one

What are consequences of using SUBBS command with OUT. And not using SUBBS with OUTD.

Is it a good rule of thumb that every time that i have command that is 32 bit to use an OUTD command. ???
Title: Re: Using SUBBS
Post by: franji1 on February 22, 2008, 05:11:38 PM
I'm not sure what you mean by "consequences".  All code has consequences, it depends upon what you are trying to do.  Give us all the output logic for the rung, along with parameters (this will help us know for sure you are doing an OUT box versus an OUT coil)
Title: Re: Using SUBBS
Post by: b_carlton on February 22, 2008, 05:34:39 PM
Only you know if the result of the SUBBS will ever have meaningful data in the upper 16 bits. If not then the OUT command is fine. Otherwise you must use the OUTD to preserve all the information in the accumulator..
Title: Re: Using SUBBS
Post by: mo2004 on February 22, 2008, 05:37:08 PM
thank you,

b_carlton