News:

  • June 09, 2026, 09:48:00 AM

Login with username, password and session length

Author Topic: Using SUBBS  (Read 20183 times)

mo2004

  • Jr. Member
  • **
  • Posts: 14
Using SUBBS
« 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. ???

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3827
    • Host Engineering
Re: Using SUBBS
« Reply #1 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)

b_carlton

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 606
    • thePLCguy
Re: Using SUBBS
« Reply #2 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..
An output is a PLC's way of getting its inputs to change.

mo2004

  • Jr. Member
  • **
  • Posts: 14
Re: Using SUBBS
« Reply #3 on: February 22, 2008, 05:37:08 PM »
thank you,

b_carlton