DLMUK
Member
Hi,
I am new to Siemens and SCL. I have a datablock which is a global data block. I want to use some of the values in this DB in a FB block.
When I reference local data in SCL I would do the following
#localData
What I want to do is the following
IF globalData > #localData THEN
#localOutput := 1;
ELSE #localOutput :=0;
END IF;
But when I try and use the global data it lets me input the whole DB within quotation marks but I cannot figure out how to address the specific data value within the DB.
Can anyone help?
Thanks.
I am new to Siemens and SCL. I have a datablock which is a global data block. I want to use some of the values in this DB in a FB block.
When I reference local data in SCL I would do the following
#localData
What I want to do is the following
IF globalData > #localData THEN
#localOutput := 1;
ELSE #localOutput :=0;
END IF;
But when I try and use the global data it lets me input the whole DB within quotation marks but I cannot figure out how to address the specific data value within the DB.
Can anyone help?
Thanks.