1/18/2014 2:32 PM | |
Joined: 9/27/2006 Last visit: 11/16/2024 Posts: 12294 Rating: (2691) |
Hello Rajnish; You are asking a very general quaestion, to give you a detailed answer we would need to know what model of drive and Siwarex module you will want to use. But basically unless you are using a preconfigured program block to interface with your drive or Siwarex you are free to select and configure the DB number you choose. For example: is your drive from Siemens or another manufacturer? Do you plan to use digital, analog ornetwork (Profibus, Profinet, DeviceNet...)control? Same for the Siwarex, do you plan to work with Siwarex M, Siwarex FTA... Have a look at the following documents, it should give you a start (use the search box at the right of this page to locate more or different documents): Operating Instructions: MICROMASTER PROFIBUS Optional Board Siwarex manuals list(Click on the Manuals link when you open the search page) Hope this helps, Daniel Chartier
|
Last edited by: dchartier at: 2/7/2014 4:38 PM |
|
1/19/2014 1:50 PM | |
Joined: 9/27/2006 Last visit: 11/16/2024 Posts: 12294 Rating: (2691) |
Hello Rajnish; German programmers ofSiemens PLCs have a preference for STL (Statement List) when they write their functions, and that is probably what you are refering to. STL is one of the languages supported by IEC 61133-1, and most important manufacturers of PLCs now offer it for their programming software. IEC 61133-1 general documentation: System Integration: IEC 61131-3 industrial control programming - ISA Siemens STL manual and program examples: Reference Manual Statement List (STL) for S7-300 Prog. in STATEMENT - What is PLC ? | PLC Programming Examples Statement list is considered more compact and more flexible than other graphic-based languages, which is why it is the format used for most Siemens support functions. Unless someone here can offer you a LAD version (and I doubt that very much) you should take a few hours to learn the basics of STL if you want to work wioth the provided Siwarex program. And we can always help you if there is specific code that gives you problems. Hope this helps, Daniel Chartier |
Last edited by: dchartier at: 2/7/2014 4:39 PM |
|
2/7/2014 4:35 PM | |
Joined: 9/27/2006 Last visit: 11/16/2024 Posts: 12294 Rating: (2691) |
Hello Rajnish; For a description of peripheral inputs and outputs and their usage, see here: Where and when do you need peripheral addressing? Basically, when you insert a digital input or output module in your configuration, the module will recieve from the HWConfig editor a low (close to 0) address, which will be used in the input image table or output image table of the PLC, Theae image tables are updated every scan, so the values are maintained and do ot change while le program logic is being performed. This is part of the normal scan procedure of all PLCs. However, analog values vary over time and you need immediate access to these values when the program need to read or write them. An analog module (or a drive using Profibus connections) will recieve addresses that are outside of the image tables, that is they will start at address 256 or 512, depending on your CPU. And to reach these addresses in your program you must specify that they are outside the image tables section, or, peripheral: PIW or PQW, instead of simply IW or QW. Look at the addresses provided by HWConfig for your drive, you will see it is using addresses 256 and up, so you must use PIW256 for input and PQW256 for output. The second part of your question: your STL program starting at m009: is a loop, the equivalent of a While..Do or For..Next instruction is higher-level programs.TEMP0 (which contains 60) is the loop counter,so the loop will run 60 times, each time reading and writing toa different periphersaladdress, as AR1 is icremented by 2 bytes at the rend of the loop. The loop counter isdecremented automaticallyat every return to the top of the loop, because the loop should stop when the loop conter decreases to 0 See section 6.19 of this manual for more details: SIMATIC STEP 7 V5.5 Statement List (STL) for S7-300 and S7-400 Programming Hope this helps, Daniel Chartier |
Last edited by: dchartier at: 2/7/2014 4:43 PM |
|
This contribution was helpful to1 thankful Users |
Follow us on