Simatic manager send counter output to register

stayclashy80

Member
Join Date
Jul 2020
Location
raleigh
Posts
76
Hello friends,

So I made a S_CU and its working fine. Problem is it only goes to 999. I want to send the counter output to a register that continuously counts and goes much higher than 999. Also I need to know if the S_CU I made will start over automatically at 1000 and go back to 1 and continuously count or if I need make it count continuously.

Thanks guys

Screen capture logic for wireless IO testing.png
 
I changed it to the system counter SFBO but can't seem to address it properly. I'm guessing I need to create a new DB just for this SFBO instruction?
 
Or you could just create a one shot off the input and increment a 32 bit variable instead of using a counter
 
Some years since I did S7 but if I remember right the one shot bit is like this
Trigger ones hot (M10.0) Add 1 to DB10 double dataword 0
----| |------(#)-------------[INC DB10.DBD0]

As I said some years since I did S7 so my code may be a bit off.
LD will put you right in any form be it a counter or incrementing a double word.
 
I changed it to the system counter SFBO but can't seem to address it properly. I'm guessing I need to create a new DB just for this SFBO instruction?


It's SFB0, not SFBO (not sure if that was a type or the source of your issue). But yes, you would need to create an instance DB for it, unless you're calling the code from another FB and can multi-instance it in.
 

Similar Topics

I'm trying to build my Classic Step 7 programming skills this weekend. I get stuck on little things that are not covered in YouTube tutorials. I'm...
Replies
7
Views
311
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
259
Hello all. I went to a customers location, uploaded from the S7-300 (CPU312) and performed a save, performed some work then came back to the shop...
Replies
7
Views
595
Hello.We are trying to convert a program written with S7-300 Simatic Manager to S7-1200 V16.Unfortunately, there is only LAD,FBD option in S7-1200...
Replies
2
Views
746
Hi, I have recently gone full in on TIA after holding on to Simatic Manager. One thing which I find more difficult is the filter function for...
Replies
6
Views
1,709
Back
Top Bottom