S7-315 Two INTs to One DINT

Milofish

Member
Join Date
Sep 2006
Location
Southern California
Posts
11
Hi,
I am looking for a little help here. What I have is two counters, both are set to a PV of 9999, when counter 1 CV = 9999 it increments the 2nd counter by 1 and then resets and starts over.

What I want to do is to combine the two CVs into one DINT. I am attempting to take the 2nd counter and multiply by 10000, and store that value into a DINT and then add it to the CV of the 1st counter.

My issue is how, S7 will not let me use the MUL_I with a DINT declared for the output, and a MUL_DI will not allow me to add a value of 10000 to IN2.

I only understand LAD programming, so if this has to be done in STL someone will need to walk me through that.

Any Help?

Thanks
Kris
 
I ended up moving it to the dint, but I do like Peter's suggestion if there is time I think it would be a good idea to change it to keep it simple.

Thanks for your replies!
 

Similar Topics

Dear sir, I am using SIMATIC 300, CPU 315-2DP , (6ES7 315-2AF03-0AB0) VIPA 603-1CC21 A1.0 RAM 32KB, Firmware=V4.0.8 The problem Im using MPI...
Replies
2
Views
162
Hi , Looking for some help. We have a 343-1 PN Lean Card & 315-2DP connected to an external system collecting data. After a recent shutdown...
Replies
0
Views
63
Got a VIPA 315-2AG23 that i try to go online with but can't seem to make it work through a network. I can go online if i'm plugged directly in the...
Replies
4
Views
268
I'll preface this by saying this is the first time I've worked on a Siemens system and I'm fairly unfamiliar with them. I might mess up some of...
Replies
29
Views
732
Hi We were having a few power cuts and the CPU would not work. I had to reset the memory and he CPU would read from the memory card and start...
Replies
13
Views
3,153
Back
Top Bottom