Related Posts Plugin for WordPress, Blogger...

Wednesday 13 September 2017

programming methods of plc part 2

Unlike circuit diagram, the ladder diagram is constructed schematically and does not allow how the various components are arranged. This type of programming was developed from the writing (circuit) diagram. If a circuit diagram exists for a control problem, the simplest method of programming would, therefore, be to convert this into a ladder diagram.




2.    Function Chart:
The Function table may be used both for just scanning programs and for the representation of sequence programs. In its schematic version (with commentary), it can be used as a flow chart; if on the other hand, a flow chart is presented along with a problem this can be easily converted into a Function Chart. It is also called “Control System Flow Chart (CSF).”
Logic elements shown by a basic rectangular symbol a function designation and negated inputs are indicated by a circle in front of the symbol.
If a flow chart of several steps is available, the function table should be divided into levels areas (boxes). Such an area contains the level member (starting at the top with 0) and a freely selectable commentary. The step area connects all inputs belonging to it (combination of data) to the corresponding executive elements. When a step has been fulfilled, it passes on automatically to the next Function Chart. This programming has been developed from the logic diagrams of electronics. However, these do not include a direct representation of sequence steps. Thus for PLC programming of course programs, it was necessary to introduce a chronological sequence with levels.
Statement List
Unlike LAD and CSF, the report list (STL) does not present the program graphically but describes it textually.
The announcement list is made up of individual instruction lines. It is possible to write a comment (in everyday language) to the right of each instruction line, giving a more precise description of the switching elements. The direction lines in the statement list are numbered consecutively. The set of instructions (statement) comprise various conditional and executive instructions.
The instruction (command) are listed in abbreviated form. L (“Load”) signifies the start of instruction; the logic elements AND, OR and NOT are shortened to A, O, and N respectively. The assignment “set, otherwise reset” is expressed by ‘=.' “Set” otherwise reset” signifies: this output should be set at one if the logical signal is present and at 0 if the 0 logic signal is present.


The DIN standard for the statement list does not recognize any steps but must, in the case of sequence programs work with level flags (with ladder diagrams, too, such projects must be programmed using step colors). However today there is also a form of STL programming which lists the individual stages of the program and their related instructions verbally in chronological order. With this STL even complex control problems can be presented. Boolean equations for control task and displacement step diagrams can be written with the case as STL.
Flags (Memory Relays)
Flags are internal 1-bit memories. These functions units are of extreme importance in the PLC. They store results, which are later required by the program sequence. Flags are treated as if they were simultaneously inputs and outputs. Thus they can be placed at any point instead of inputs or outputs and interrogated. Outputs can be interviewed in the same way. Flags are outputs without cards, i.e., without connection between the internal electronics of the PLC and the actuators.  
PLC VISUAL SCRIPT
A newly developed technique for programming a PLC in which each module is allotted a specific Alphabetical ID. For example Input module = X Output = Y and Analog module is = ADC. Condition codes and instructions, for performing different tasks, can be written in any of Windows based language. This idea provides the facility of language platform independence for a PLC system. Example.
if
        X. 2.1 = 1  &  X 2.3 = 1 then
        Else
    Y 2.4 = 1


PLC Basic  operations :
These operations are used in SIEMENS S5 series PLCs.