asteroidehk

Instruction List Software?

3 posts in this topic

Hello Friends

I am preparing a course of programming languages, for our maintenance people. We use Allen Bradley and it has Ladder, FBD, SFC and ST.

I pretend to show some examples in RsLogix5000.

We also have Siemens and Mitsubishi but in less quantity. 

Which software can I use to show Instruction List Programming?

 

Thanks

 

 

 

Share this post


Link to post
Share on other sites

Notepad or any other simple text editor. 

I'm a little concerned that you are "preparing a course" but don't know what structured text looks like well enough to realize that it is text...

Here's a snippet of some code that I wrote. 

// Basic calculations for gas flow through an orifice plate

If Hw <= 0.0 THEN
    Hw := 0.00001;
    END_IF;

If Fpv <= 0.0 THEN
    Fpv := 1.0;
    END_IF;

B  := Bore / D;                // B ratio
B2 := B**2;                    // B squared
B3 := B**3;                    // B cubed
B4 := B**4;                    // B raised to the 4th power
Fpb   := 14.69595 / Pb;              // Pressure base factor
Ftb   := (459.67 + Tb) / 519.67;     // Terature base factor    
Fgr   := (1 / Sg)** 0.5;             // Flowing specific gravity factor
Ftf   := (519.67 / (459.67 + Tf)); // Flowing Terature factor
Psia  := Pf + Atm;
HwPf  := (Hw * Psia) ** 0.5;

// Determine values for Ko calculation

KoE1     := 830 - (5000 * B) + (9000 * B2) - (4200 * B3) + (530 / (D ** 0.5));
KoE      := Bore * KoE1;

Ke7T := B - 0.7;
Ke6T := (65 / (D **2)) + 3;
Ke5T := 0.5 - B;
Ke4T := 0.009 + (0.034 / D);
Ke3T := 0.07 + (0.05 / D) - B;
Ke2T := 0.4 * (( 1.6 - (1.0 / D))**5);
Ke1T := 0.5993 + (0.007/D) + (0.364 + 0.076 / (D ** 0.5)) * B4;


// Test for less than zero

    IF Ke7T < 0 THEN
    Ke7  := 0;       
   ELSE
    Ke7  := Ke7T ** 2.5;

END_IF;

    IF Ke6T < 0 THEN
    Ke6  := 0;       
   ELSE
    Ke6  := Ke6T;

END_IF;    

 

Share this post


Link to post
Share on other sites

I've only run across a programming language called Instruction List (IL) in the Mitsubishi world, though it's essentially the same as STL in the Siemens world. Both are examples of what the compiled code that is sent to the processor looks like, like assembly code on a microprocessor. You can see hints of it in Allen Bradley if you double-click on a rung to open the text box that shows the assembly code behind the visual ladder representation.

Mitsubishi has mostly removed access to IL. In the old GX Developer 8, you could switch between IL and Ladder, but that has been removed from the more recent versions. I did recently notice that the code compare feature let's you view the comparison in IL format though.

Siemens still uses STL as a cornerstone of their programming, so you can switch between Ladder (LAD) and STL by right-clicking on an OB/FC/FB that has code in it. Be aware that you can write code in STL that can't be represented in Ladder format, so it's not unusual to switch languages from STL to Ladder and still have some networks still shown in STL.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now