Question about SFB variables declaration in SCL

italo2008

Member
Join Date
Feb 2009
Location
Padova
Posts
95
Hi all

in a SCL FB I've decalred some variables like this:

Code:
VAR 
ShiftRegister:ARRAY [0..100] OF BOOL;            
ValvesOutputCMD: ARRAY [0..100] OF BOOL;
Timer_Valve_1:SFB3;
Timer_Valve_2:SFB3;
Timer_Valve_3:SFB3;
END_VAR

The question is: is there any possibility to declare SFB variables in some kind of array or structure in order to point at them in a while or for loop?

thank you
 
A good question.
According the help, arrays can consist of both elementary and complex data. And FBs and SFBs counts as complex data. So it should be possible.
But I cannot get it to work in the regular STL/LAD/FBD editor. So it wont work with SCL either.
 

Similar Topics

Hello all, I have a servo turning a small table on a machine I'm programming. I found that after a day the home position was getting off by a...
Replies
1
Views
29
Hi, I just upgraded just restored a ftview hmi data and the trend file have question marks with no lines in the graph. How do i fix this?
Replies
0
Views
11
Hey all, simple question. Once I create a Macro in my Factory Talk Project, do I need to trigger the macro to run somehow? Or are all macros...
Replies
7
Views
76
I recently uploaded an aplication from a Panel View, created a new screen and now that I've downloaded it to the Panel View, all the texts have...
Replies
9
Views
173
I have never had the pleasure of working with a "Thermistor" until now and have a question. The Thermistor is a 10KOhm 4-20mA 2-wire device and I...
Replies
4
Views
161
Back
Top Bottom