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 addind time variables. Is there any block for this?
I can change time variables to dint-variables first, add together with add (double) and convert back to time-format, but then I neeed more variables for converting/adding variables together
Is only way to use STL-coding, if I don't convert varibles first?
On STL, I can use, I think this code?
L varible1 (type = time)
L varible2 (type = time)
+D
T varible3 (type = time)
NOP 0 (not necessary?)
any thoughts of this? I prefer FBD or ladder
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 addind time variables. Is there any block for this?
I can change time variables to dint-variables first, add together with add (double) and convert back to time-format, but then I neeed more variables for converting/adding variables together
Is only way to use STL-coding, if I don't convert varibles first?
On STL, I can use, I think this code?
L varible1 (type = time)
L varible2 (type = time)
+D
T varible3 (type = time)
NOP 0 (not necessary?)
any thoughts of this? I prefer FBD or ladder