Adding together DB values

Hi All,
I want to take values from a DB say four separate values of db100.dbw10 + db100.dbw12 + db100.dbw14 + db100.dbw16 and add them together so as I have one combined value, what would this look like?

Thx
 
Code:
      L     DB100.DBW   10
      L     DB100.DBW   12
      +I    
      L     DB100.DBW   14
      +I    
      L     DB100.DBW   16
      +I  
      T Result
Works if result value don't exceed the max value of an integer 32767 if above 32767 then you need to do double integer math
 

Similar Topics

Hi! I need to add 2 different variables together at Siemens. Variables are with type: time/ t#__s On FBD-editor I can't find direct block for...
5
Replies
6,308
Views
Hi, I have an array of 30 integers :- db1.tracking[0] to db1.tracking[29] What's the best / easiest way to add them all together ? They are...
5
Replies
4,178
Views
I was asked to add some badge readers to some of our Siemens PLCs. They want some things locked down on the HMI an only visible if your badge...
7
Replies
281
Views
Hi all, My client has an existing system running 1769-L32E/A based controls with PowerFlex 520 and 22COM Ethernet module. The task is to replace...
6
Replies
256
Views
Hi everyone, One of my customers has a DH+ network with several SLC 500 PLCs, several PanelView 550 terminals, and an iFIX SCADA system. After...
2
Replies
154
Views
Top