Language

PLC siemens s7 300 training, Lesson12, SCL Language concept and application



Engineering Courses

PLC S7-300 Course introduce you to the automation world, automize machines, production lines using a great integrated tools, like simatic manager, plc sim, wincc scada, and test editorss, symbol editor, and monitoring module.

Siemens PLC Training
PLC S7 300 Basic Training
PLC Programming Tutorial for Beginners
how to use siemens s7 300 (hardware setup)
Popular Simatic S7-300 & Programmable logic controller videos
Tutorial of siemens Step-7 PLC programming using simatic manager
Popular STEP 7 & Siemens videos Engineering Videos Channel
https://goo.gl/rDKUhR
Siemens PLC S7 – 300 Basic Course
https://goo.gl/p4Niq1
PLC Practical applications
https://goo.gl/1fjvJZ
hydraulic basics
https://goo.gl/DZU8tF
Danfoss Innverter course
https://goo.gl/IJzO1S
Mechanical Bearing Course
https://goo.gl/Cmi5Vd
Arc Welding Course
https://goo.gl/WE1vo5
Schnieder PLC Basics
https://goo.gl/iEh85y
WinCC Advanced Course
https://goo.gl/yy4Ouv
Six Sigma
https://goo.gl/UZiksa
Electronics Basics
https://goo.gl/opi5xZ
Training Courses Channel
https://goo.gl/3Ps2Zk
WinCC Felxible Tutorial
https://goo.gl/ydBSHX

CISCO CCNA
https://goo.gl/XFJ31l fresh copy .(tagsToTranslate)PLC(t)PLC course(t)PLC training(t)PLC Siemens(t)PLC Simulation(t)PLC Programming(t)PLC Full Course(t)PLC Tutorial(t)PLC Advanced(t)PLC Projects(t)PLC شرح(t)PLC كورس(t)Course(t)Training(t)Programming(t)PLC Troubleshooting(t)Troubleshooting(t)How to(t)PLC Examples(t)PLC Practical(t)PLC World(t)Factory(t)Control(t)PLC Course Electrical(t)PLC Engineer(t)PLC Function(t)Function(t)S7-300(t)S7-300 Course(t)S7-300 Training(t)Simatic Manager(t)Simatic(t)HMI(t)PLC material(t)PLC S7-300(t)S7-300 Basics(t)basics(t)lesson(t)function

Source

Similar Posts

One thought on “PLC siemens s7 300 training, Lesson12, SCL Language concept and application
  1. Hi bro

    "Block symbol name is not valid"

    I wrote the same code as you but I get an error. I've checked all the code and I can't find any difference.

    The error is on the first line: —> ( FUNCTION SelectionSort: INT ) could you help me please?

    CODE:

    FUNCTION SelectionSort: INT

    // Constants
    CONST
    MAXSIZE := 150;
    END_CONST

    VAR_IN_OUT // in and out parameters
    // the array to sort
    arrValues : ARRAY [0..MAXSIZE] OF UDT1;
    END_VAR

    // temporary variables
    VAR_TEMP
    Idx1 : INT;
    Idx2 : INT;
    MaxIdx : INT;
    MaxVal : UDT1;
    END_VAR

    // **********************************************
    // Sort with selection sort
    // ———————————————–
    // Ascending:
    // Find the maximum of the lower pat of the array
    // and swap it with the last value of it.
    // **********************************************

    // At the beginning, the entire array is unsorted

    FOR Idx1:= MAXSIZE TO 1 BY -1 DO
    // Copy actual values
    MaxVal := arrValues [Idx1];
    MaxIdx := Idx1;

    // FIND maximum OF the unsorted ARRAY
    // go up to actual value -1
    FOR Idx2:= 0 TO Idx1-1 DO

    IF arrValues[Idx2].Index > MaxVal.Index THEN
    MaxVal := arrValues[Idx2];
    MaxIdx := Idx2;
    END_IF;
    END_FOR;

    // If I have found a new maximum, then swap it with
    // the actual value.
    IF MaxIdx < Idx1 THEN
    arrValues[MaxIdx] := arrValues[Idx1];
    arrValues[Idx1] := MaxVal;
    END_IF;

    END_FOR;

    SelectionSort := 100;

    END_FUNCTION

Comments are closed.

WP2Social Auto Publish Powered By : XYZScripts.com