Help STL temporary local data simatic manager

SIMATIC S7-200/300/400, Step7, PCS7, CFC, SFC, PDM, PLCSIM,
SCL, Graph, SPS-VISU S5/S7, IBHsoftec, LOGO ...
Mustablanco
Posts: 18
Joined: Sat Sep 28, 2019 3:07 pm

Help STL temporary local data simatic manager

Post by Mustablanco » Thu Feb 24, 2022 11:57 am

I have a program used stl and fbd programing ,when i want to know the datablock number, i find temp98
Problem is how i can know the datablock number used
exemple:

Code: Select all

      SET   
      L     #IN0
      T     #TEMP98     //  <------?
      OPN DB [#TEMP98]
      A     M      0.3
      JC    M014
      L     0
      T     DBD  396
      T     DBD  376
      T     DBD  368
      T     DBD  364
      T     DBW  388
      T     DBD  520
      T     DBD  524
      T     DBB   43
      T     DBB  533
      SET   
      R     DBX  400.1
      R     DBX  402.1
      M014: NOP   0
Thanks

georg_demmler
Posts: 71
Joined: Wed Nov 18, 2009 4:02 pm

Re: Help STL temporary local data simatic manager

Post by georg_demmler » Thu Feb 24, 2022 12:47 pm

Hello,

don't know to understand your question - but you can take sfc 24 "Test_DB". This sfc check if the db is in the program / CPU or not.

Hope this helps

Mustablanco
Posts: 18
Joined: Sat Sep 28, 2019 3:07 pm

Re: Help STL temporary local data simatic manager

Post by Mustablanco » Thu Feb 24, 2022 1:05 pm

Code: Select all

      L     #IN0                
      T     #TEMP98               //  temp98 is temporary local data,but how i can find the value of temp98 in DB Data block 
      OPN   DB [#TEMP98]     //  here  DB temp98      is DB1 OR DB 132 OR DB 25 How i can find the data block number
But in my program there is no SFC 24

gigi10
Posts: 42
Joined: Fri Aug 10, 2007 1:18 pm
Location: Europe

Re: Help STL temporary local data simatic manager

Post by gigi10 » Thu Feb 24, 2022 4:42 pm

Hi,

L #IN0 probably some input to your block, which contain block number to open
T #TEMP98 temp98 store to local memory
OPN DB [#TEMP98] opend DB in input #IN0


gigi10

georg_demmler
Posts: 71
Joined: Wed Nov 18, 2009 4:02 pm

Re: Help STL temporary local data simatic manager

Post by georg_demmler » Thu Feb 24, 2022 4:53 pm

Hello,

The DB-number comes from #INO

Because L #INO
T #TEMP98

You have to look at the interface of the fb - what is #INO - Input, Output, IN_OUT, STAT, TEMP?

IF #INO is an Input / IN_OUT than it is definied in your main-program. If it is definied as STAT or TEMP than you have to find a place like L... T #INO.

But without your program I can only guess.

Mustablanco
Posts: 18
Joined: Sat Sep 28, 2019 3:07 pm

Re: Help STL temporary local data simatic manager

Post by Mustablanco » Thu Feb 24, 2022 8:44 pm

verify your private message i send you the program

georg_demmler
Posts: 71
Joined: Wed Nov 18, 2009 4:02 pm

Re: Help STL temporary local data simatic manager

Post by georg_demmler » Fri Feb 25, 2022 7:28 am

Hello,

thank you very much.

The code-lines in your first post is in the FC70. And #INO is an input parameter.

The FC70 will called in FB120 - Network 10. And here you can see, that INO has the value of 122 - you open in FC70 the DB 122.

You can find out with Refernce list.

But without any symbolic list it is very hard to understand the program.

Hope this helps.

thanks

Mustablanco
Posts: 18
Joined: Sat Sep 28, 2019 3:07 pm

Re: Help STL temporary local data simatic manager

Post by Mustablanco » Fri Feb 25, 2022 9:08 am

Thanks brother
I'm working for the comments and symbols to make the program easy understand
Thanks

------------------------------------------

Hello
I have this program ,the problem is when i want to find temp47.temp55 block FB134 network 30 i cant find the value ON and OFF come from
If anybody can help me please
Link of program:
https://www.mediafire.com/file/kyaqcy30 ... 8.rar/file
Thanks

Answers to FAQs
Faq & Info
Faq & Info
Posts: 173
Joined: Thu Oct 13, 2005 6:42 pm
Location: Frequently Asked Questions – Часто Задаваемые Вопросы

Re: Help STL temporary local data simatic manager

Post by Answers to FAQs » Fri Feb 25, 2022 3:27 pm

network 3
with in row 2 load db 132 & :

Code: Select all

      LAR1  P##TEMP47
      L     DBW  378
      T     LW [AR1,P#0.0]
mean: L DB 132.DBW378
T #TEMP47
bit by bit
TEMP55 is 0.7 of TEMP47

#TEMP47.TEMP55 = db132.dbx378.7

TEMP47 looks like status word

georg_demmler
Posts: 71
Joined: Wed Nov 18, 2009 4:02 pm

Re: Help STL temporary local data simatic manager

Post by georg_demmler » Fri Feb 25, 2022 4:32 pm

Hello,

L DBW 378 -- is a bad style

better you write

L DB 132.DBW378

Thanks

Mustablanco
Posts: 18
Joined: Sat Sep 28, 2019 3:07 pm

Re: Help STL temporary local data simatic manager

Post by Mustablanco » Fri Feb 25, 2022 6:10 pm

I try it to activate the value of db132.dbx 378.7 but the data block don't take it
I want to force it the value to prove the correct address

Thanks

Answers to FAQs
Faq & Info
Faq & Info
Posts: 173
Joined: Thu Oct 13, 2005 6:42 pm
Location: Frequently Asked Questions – Часто Задаваемые Вопросы

Re: Help STL temporary local data simatic manager

Post by Answers to FAQs » Fri Feb 25, 2022 6:52 pm

it coming from fc74 called in fb130 net 2
fc 74/5

Code: Select all

      A     #TEMP37.TEMP38.TEMP49
      O     #TEMP37.TEMP38.TEMP44
      O     #TEMP37.TEMP38.TEMP47
      =     #TEMP3.TEMP11
you are need to search temp37.temp38
it come from net 3

Code: Select all

      CALL  "DPRD_DAT"
       LADDR  :=#TEMP118
       RET_VAL:=#TEMP119
       RECORD :=#TEMP37
it is status word of some field device with logic address 280
temp11 is your bit

Mustablanco
Posts: 18
Joined: Sat Sep 28, 2019 3:07 pm

Re: Help STL temporary local data simatic manager

Post by Mustablanco » Tue Mar 01, 2022 9:57 am

Hi

My problem is resolve thanks for everyone may help me