RSLogix 5000 Structured Text – While…Do Function This is again, a very basic logic example of how a Case constructs and is meant to give you a base without causing confusion by adding complex logic added to the Case Logic example. In this example, if the zzzSubstitute_Me has a value of 2 then the zzzInstance_of would be 20 but at any given time the zzzSubstitute_Me tag changes then the value of the zzzInstance_of tag. The Case construct is most commonly used for a simple and quick transition between state machine logic functions so with that being said if you have a case of an instance then the routine will quickly shift to whatever the case function is indicating. At the end of the video, there will be a description of what the common uses of a Case construct are done and as always….any questions or concerns then please let me know.Īfter watching the video I want to break down what are some of the common reasons for using a Case construct of structured text programming in RSlogix 5000. The video below shows the Case construct, the effort is to give a solid foundation of how to get a base understanding. RSLogix 5000 Structured Text Example for a Case Construct This is again, a very basic example of how this works to give you a base understanding of how the If, Then, Else construct works. IF zzzSubstitute_Me Then zzzInstance :=1 Įlsif Not zzzSubstitute_Me Then zzzInstance :=0 In this example, whatever the value of the zzzSubstitute_Me tag is then the value of the zzzInstance tag will change to the corresponding value of the statement. I show the use of the watch feature of structured text programming to give you a troubleshooting tool in which to see the tags updating in real-time as you are programming it or even if you have an existing machine using structured text. When it comes to logical theory, the sky s the limit…If you can think it logically then you can program it. I chose to use a simple state transition to limit the confusion of the logic theory vs the actual If, Then, Else process which is the major point of the video. In this video, I show the system being written on a Rslogix 5000 software with an emulation of the process. The video below shows one of the five structured text programs, this will be the using the If, Else, Then construct to give the foundation of how to get a base understanding.Īt the end of the video, I will give you a detailed reason why I showed the system the way I did, and believe me when I say if you want to see more then I will be glad to show you a more advanced method but this video is designed to give a base foundation. RSLogix 5000 Structured Text Example for…If.Then…Else. To cut straight to the chase, let’s get to the videos that I have made for you about structured text programming. RSLogix 5000 structured text is not like standard RSLogix 5000 instruction sets such as ladder logic or function blocks but can be used with any of the other programming types to make a system work better.Īlso, here is a good resource from the software developers for Rockwell but I will add that it is a lot of reading just to get the value that I show, here is the link to Rockwell Automation Structured Text programming. Understanding this language of RSLogix 5000 is only one of the four ways of programming that Rockwell Automation offers in its software. If you have never done any structured text programming before, maybe you have a base understanding of how the different methods work such as a For Do, While Do, If, Else, Then, Case, or calling a JSR from a structured text program or routine. I have over 18 years of working with Rockwell Automation software and I have seen many different processes of when Rockwell changes their control platform in which I have found that is important to understand the core features of programming to give you the cutting edge of any change that happens. My name is Shane Welcher and have put together a few helpful videos to show anyone willing to learn how to program using structured text an easy way to get a base foundation of how things work. RSLogix 5000 – Structured Text Programming Examples
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |