EnglishУкраїнськаmRussian
Login/New
Topic with no new replies

Problem in Defining new Data Blocks


Author Message
Written on: 15. 10. 2012 [09:00]
abdullahkhalili
Abdullah Khalili
Topic creator
registered since: 08.07.2012
Posts: 5
Hello experts.
I wanted to know that when we want to read a tag from PLC, how it is stored in the data block?
This is done in quickstart using DB Test|[Offset].
I wanted to know where this DB Test is defined and how we can store PLCs tags in it?
Thanks
Written on: 15. 10. 2012 [10:58]
roman
Roman Savochenko
Moderator
Contributor
Developer
registered since: 12.12.2007
Posts: 3750
"abdullahkhalili" wrote:

I wanted to know that when we want to read a tag from PLC, how it is stored in the data block?

Why? OpenSCADA store itself and you typical not need know for DB structure. And what the data block you mean?

"abdullahkhalili" wrote:

This is done in quickstart using DB Test|[Offset].

Where?

"abdullahkhalili" wrote:

I wanted to know where this DB Test is defined and how we can store PLCs tags in it?

Into or from PLC.

P.S. Maybe you tell what PLC and DAQ module use?
P.P.S. This questions are not bugs!

Learn, learn and learn better than work, work and work.
Written on: 20. 10. 2012 [10:25]
abdullahkhalili
Abdullah Khalili
Topic creator
registered since: 08.07.2012
Posts: 5
Hello,
Thanks dear roman
my PLC is Siemens S7-300 and we use the DAQ.Siemens module
please tell me how could read an input of plc (for example i124.0 value)
Thanks
Written on: 20. 10. 2012 [17:01]
roman
Roman Savochenko
Moderator
Contributor
Developer
registered since: 12.12.2007
Posts: 3750
"abdullahkhalili" wrote:

my PLC is Siemens S7-300 and we use the DAQ.Siemens module
please tell me how could read an input of plc (for example i124.0 value)

Copy its to DB, into S7 function or OB, and next read into OpenSCADA.

Learn, learn and learn better than work, work and work.
Written on: 21. 10. 2012 [01:06]
abdullahkhalili
Abdullah Khalili
Topic creator
registered since: 08.07.2012
Posts: 5
"roman" wrote:

"abdullahkhalili" wrote:

my PLC is Siemens S7-300 and we use the DAQ.Siemens module
please tell me how could read an input of plc (for example i124.0 value)

Copy its to DB, into S7 function or OB, and next read into OpenSCADA.


thanks dear roman,
I am a student and cannot understand your answer, can you please explain with an example for me? :oops:
one of my plc input is i124.0 and output is q124.0 (default siemens tags), in wincc or labview we are adding these I/O in opc da server and with these we can read or write data on PLC, but in openScada i confused, if i can connect to PLC directly by DAQ.Siemens and use in openscada HMI, please give me an example how to configure and add inputs and outputs, if need opc ua, please help me about this, i read openscada document, but confused in adding inputs and outputs
Really Thanks for your answer :-?

[This article was edited 1 times, at last 21.10.2012 at 01:10.]
Written on: 21. 10. 2012 [21:00]
roman
Roman Savochenko
Moderator
Contributor
Developer
registered since: 12.12.2007
Posts: 3750
"abdullahkhalili" wrote:

I am a student and cannot understand your answer, can you please explain with an example for me? :oops:
one of my plc input is i124.0 and output is q124.0 (default siemens tags), in wincc or labview we are adding these I/O in opc da server and with these we can read or write data on PLC, but in openScada i confused,

WinCC and OPC DA server use official API from Siemens on OS Windows for that, but on Linux OS the library is not available and here used LibnoDave and other CP which have some limits by closed solutions from Siemens GMBH. But direct IO reading by IO_TSAP (Industrial Ethernet) allowed in LibnoDav and not implemented into OpenSCADA, for getting all data used DBs (Data Blocks).

"abdullahkhalili" wrote:

if i can connect to PLC directly by DAQ.Siemens and use in openscada HMI, please give me an example how to configure and add inputs and outputs, if need opc ua, please help me about this, i read openscada document, but confused in adding inputs and outputs

That is no issue for OpenSCADA examples. Take "Step 7", programming PLC, write some program on STL for your PLC for copy IO to DB, and next read typical DBs from OpenSCADA, for that examples see into DemoDB.

Learn, learn and learn better than work, work and work.
Written on: 22. 10. 2012 [08:53]
abdullahkhalili
Abdullah Khalili
Topic creator
registered since: 08.07.2012
Posts: 5
Really Thanks Dear Roman, :-?
We are defined a datablock in S7-300 PLC named "DB5" and some variable in that like "a" "b" "c", now how can read that in DAQ.Siemens?

And i have another Question: Where or What is the DemoDB? if DemoDB is AGLKS or not?

As big Thanks for your Answers :oops:
Written on: 22. 10. 2012 [09:33]
roman
Roman Savochenko
Moderator
Contributor
Developer
registered since: 12.12.2007
Posts: 3750
"abdullahkhalili" wrote:

We are defined a datablock in S7-300 PLC named "DB5" and some variable in that like "a" "b" "c", now how can read that in DAQ.Siemens?

And i have another Question: Where or What is the DemoDB? if DemoDB is AGLKS or not?

http://wiki.oscada.org/HomePageEn/Doc/QuickStart

Learn, learn and learn better than work, work and work.
Written on: 28. 10. 2012 [08:33]
abdullahkhalili
Abdullah Khalili
Topic creator
registered since: 08.07.2012
Posts: 5
Thank you Dear Roman, we are connected with DAQ.Siemens without any problem, but if we can directly use OPC_UA? for example if output implemented in DAQ.OPC_UA? we are added DAQ.Siemens DB into OPC_UA node list and reading this Data Blocks. but we can not write or change any of that

As Thanks for your answer:-?
Written on: 29. 10. 2012 [11:35]
roman
Roman Savochenko
Moderator
Contributor
Developer
registered since: 12.12.2007
Posts: 3750
"abdullahkhalili" wrote:

Thank you Dear Roman, we are connected with DAQ.Siemens without any problem, but if we can directly use OPC_UA? for example if output implemented in DAQ.OPC_UA? we are added DAQ.Siemens DB into OPC_UA node list and reading this Data Blocks. but we can not write or change any of that

For writing there is real problem, and now I have fixed it.

Learn, learn and learn better than work, work and work.



5062