Host Engineering Forum
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 18, 2012, 06:48:59 pm


Login with username, password and session length


Pages: [1]
  Print  
Author Topic: Using SUBBS  (Read 810 times)
mo2004
Jr. Member
**
Posts: 14


« on: February 22, 2008, 05: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. Huh
Logged
franji1
Bit Weenie
Host Moderator
*****
Posts: 1032



WWW
« Reply #1 on: February 22, 2008, 06: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)
Logged

b_carlton
Internal Dev
****
Posts: 386



WWW
« Reply #2 on: February 22, 2008, 06: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..
Logged

An output is a PLC's way of getting its inputs to change.
mo2004
Jr. Member
**
Posts: 14


« Reply #3 on: February 22, 2008, 06:37:08 pm »

thank you,

b_carlton
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM