desperately need simple sample programs or exercises for Step7 Professional

Just out of interest, is there a way of searching the library of SFC's in order to try and find one that's suitable for your needs or is it just a case of trawling through them all and reading the help file for each one.

I've used the trawl and try method.
 
You can open a Data block as a DB or DI in your code irrespective of whether the Data Block was created as a DB or as a DI

So it doesn't matter if I open a shared DB as a instance DB and vice versa?

Code:
      OPN   DI [#DB_Number]
      L     DIW    0
      T     MW    10


      OPN   DB [#DB_Number]
      L     DBW    0
      T     MW    10


Best pratice??
 
L DBLG gets the length of the data block opened with OPN DBxx
L DILG gets the length of the data block opened with OPN DIxx

You can open a Data block as a DB or DI in your code irrespective of whether the Data Block was created as a DB or as a DI

I've used the trawl and try method.


Thanks for the info LD.

Cheers ;)
 

Similar Topics

hi,i'm an undergrad student frm india exposed to a KOYO plc for the first time.i basically joined the forum for some tips to program the...
Replies
2
Views
3,340
Hello let me explain my problem. I just got tossed into a somewhat complicated job because the person that normally does the writing is on...
Replies
5
Views
3,828
Hi. I tried to find help in for documenting or migrating Pilz Pitouch HMI projects (in 2007) in this thread...
Replies
1
Views
1,500
Hi all. I am trying to find safety application examples for an inspection door with electromechanical interlock. I can find many door switches...
Replies
39
Views
13,688
I'm fairly new to Rockwell software, I've had some basic training in the past but nothing too advanced. My company and I use Reliable products for...
Replies
11
Views
338
Back
Top Bottom