Host Engineering Forum
General Category => DirectSOFT => Topic started 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. ???
-
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)
-
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..
-
thank you,
b_carlton