SCL-reference to instance DB

italo2008

Member
Join Date
Feb 2009
Location
Padova
Posts
95
Hi guys

How can I do an addressing to instance DB in SCL?
For example, in AWL I can call FB1 several time in OB1, each time with different instance DB (for example when i must manage several groups of valves with the same code). In this case in the FB code I use DIX, DIB and so on to refer to the data of the actual instance DB. How can I do it in SCL? Is it possible?

thank you
 
you call with with instance DB name and FB parameters:
i.e. you have a FB Press with DBs Press_1, Press_2

In SCL call would be like:

"Press_1"(IN:=..., OUT=>...);
"Press_2"(IN:=..., OUT=>...);
 

Similar Topics

HI i would like to know how to get a variable that will store the amount of times a program has been executed. The issue is I have 3 DBs for 1 FB...
Replies
2
Views
71
Hi, I have an intermediate-advance knowledge of programming with TIA Porta in Ladder, would you recommend me to start learning SCL for it to...
Replies
11
Views
558
Hello nice to meet you, im new in here, I'm currently trying to convert code written in STL for a S7-400 to SCL for an S7-1500, because when i run...
Replies
5
Views
316
Hi everyone, I am new to this amazing world of PLC, well... I mean, in practice, since I already knew electronics, programming languages, IT, and...
Replies
7
Views
652
Hi all, This is my first post; I am new to PLC Controls stuff and English is not my native language, so I apologize in advance if something is...
Replies
4
Views
512
Back
Top Bottom