Multiple SFB in SCL

svoicum

Member
Join Date
Sep 2006
Location
Cluj
Posts
43
Hello ALL,

I wonder if there is any solution for creating an SCL FB in which I can declare SFB timers as array.

By this, I mean and wish to have just one DB UDT with all the IEC timers that I needed in the program.

Calling ex. Motors FC (in which motors are as array), the Motor[‘n’] will call and use timer FB TON[‘n’].

Thank you All,
Voicu
 
SFB (or FB) declarations cannot form part of an array. What you can do is declare an area in your UDT that mimics the interface area of an SFB and then set up DI and AR2 according to the position in the array and call the SFB indirectly.
 
I realised now, testing, that it can't be defined as an array. Could you tell me or post an example of what you said with DI and AR2?
thx
 

Similar Topics

Hi. I need to create several alarm servers in an application, but first I need to know if there is any impact on communication, or if more...
Replies
0
Views
47
Hello all, I know its not good practice to have duplicate destructive bits when writing plc code, but I'm wondering about writing to the same tag...
Replies
2
Views
121
Hi, Is Control Expert V15.0 supposed to support multiple monitors? I'm running Control Expert V15.0 on my host Windows 11 PC, connected to two...
Replies
1
Views
67
This is the first time I am working with Simatic Manager Step7 as I started my siemens journey with TIA which is pretty easy and do a lot of stuff...
Replies
3
Views
182
Compactlogix controller, program has 28 conveyors that use TON's to start the conveyors. The TT sounds a warning horn during start and the DN...
Replies
10
Views
528
Back
Top Bottom