1 / 38

PROGRAMMING

PROGRAMMING. E ach PLC manufacturer offers a different set of instructions within its PLC family. Many of these instruction sets are not applicable to other PLCs, and there is no easy way to translate an already written PLC program to another brand of PLC’s programming format.

elam
Download Presentation

PROGRAMMING

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. PROGRAMMING

  2. Each PLC manufacturer offers a different set of instructions within its PLC family. Many of these instruction sets are not applicable to other PLCs, and there is no easy way to translate an already written PLC program to another brand of PLC’s programming format.

  3. The International Electrotechnical Commission (IEC) SC65B-WG7committee developed the IEC 1131 standard in an effort to standardizeprogrammable controllers. One of the committee’s objectives was to createa common set of PLC instructions that could be used in all PLCs.

  4. PLC Programming Method • Ladder Diagram (LD) —a graphical depiction of a process with rungs of logic, similar to the relay ladder logic schemes that were replaced by PLCs. • Function Block Diagram (FBD) —a graphical depiction of process fl ow using simple and complex interconnecting blocks. • Sequential Function Chart (SFC) —a graphical depiction of interconnecting steps, actions, and transitions. • Instruction List (IL) —a low-level, text-based language that uses mnemonic instructions. • Structured Text (ST) —a high-level, text-based language such as BASIC, C, or PASCAL specifically developed for industrial control applications

  5. Ladder Diagram & Mnemonic Code

  6. Ladder Diagram & Mnemonic Code

  7. Ladder Diagram & Function Block Diagram (FBD)

  8. Logic Instruction Set • LOAD • LOAD NOT • AND • AND NOT • OR • OR NOT • OUTPUT • END • OR LD • AND LD

  9. LOAD LOAD NOT

  10. AND AND NOT

  11. OR OR NOT

  12. END OUT

  13. OR LD

  14. AND LD

  15. Sequential Instruction Set - No Operation- End- Interlock - Jump - Keep - Set/Reset - Differentiate Up / Down

  16. NO OPERATION – NOP ( 00 ) • This instruction does not have a ladder diagram symbols and will not be doing any operations. • When this instruction is removed memory will be displayed in the PLC programming console.

  17. END – END(01) • Act as the last instruction for each program • No instruction will be written after the END directive (01) implemented. • If no instructions END (01) in the program would be implemented then no instructions and verse NO END LIST will appear on the console screen PLC programming.

  18. INTERLOCK [ IL ( 02 ) ] and INTERLOCK CLEAR [ ILC ( 03 ) ] • IL (02) and ILC (03) must be used in conjunction • This instruction is used to solve the problem of implementation-state storage (Execution Condition) at branch points. • When the command interlock is ON as shown in Figure 6.3 Steps, the state execution of the command will interlock control all interlock instruction execution until the command CLEAR. When the interlock instruction is OFF, CLEAR instruction will reset operation interlock program. • To set type of OMRON PLC - SYSMAC CQM1H, instruction FUN 02 is instruction interlock and instruction FUN 03 is instruction interlock CLEAR

  19. JUMP [ JMP (04) ] DAN JUMP END [ JME (05) ] • Instruction JMP (04) is usually used in pairs with instructions JME (05) to produce the jump.• JMP (04) is the command to determine the starting point jump while JME (05) is the direction to be the direction of the jump.• When the instruction JMP (04) is ON, no jump will occur and the program will be implemented as written.• When the instruction JMP (04) is OFF, a jump to the instruction JME (05) that have the same number will be done. Further instructions are after directions JME (05) will be implemented.• Instructions JUMP and JUMP END can use the numbers from the range of 00 to 99.• To set type of OMRON PLC - SYSMAC CQM1H, JUMP instruction is instruction FUN 04 and JUMP END instruction is instruction FUN 05.

  20. KEEP – KEEP (11) • KEEP instruction is used to maintain the status bit operation based on two state implementation (execution condition). • KEEP (11) operates as the relay latches (latching relay) which is set by S and reset by R. • When S is in the ON state, operating instructions specified output will remain in a state of ON and ON until reset, regardless of whether S is ON or OFF. • When R is in the ON state, operating instructions specified output will turn OFF and remain in the OFF state until reset, regardless of whether R is ON or OFF. • To set type of OMRON PLC - SYSMAC CQM1H, instruction KEEP is instruction FUN 11.

  21. SET AND RESET • SET and RESET instruction will change the status of bit operations only when ON execution condition. • In the OFF condition, the instructions will not change the status of bit operations.

  22. DIFFERENTIATE UP [ DIFU (13) ] AND DIFFERENTIATE DOWN [ DIFD (14) ] • These instructions Difu (13) and DIFD (14) ON the output in a very short period of time. • Instruction Difu (13) will change the output state to ON when the input signal changes from OFF to ON. • Instruction DIFD (14) will change the output state to ON when the input signal changes from ON to OFF. • To set type of OMRON PLC - SYSMAC CQM1H, FUN 13 instruction is DIFFERENTIATE UP instruction and instruction FUN 14 is instruction DIFFERENTIATE DOWN

  23. (TIMER - TIM) • timer numbers (N) is between 000 and 015.• The value set (SV) is between 0000 to 9999.• Each number TIM / CNT can be used as an interpreter (definer) in only one TIMER or COUNTER command.

  24. (COUNTER - CNT) • Number TIM / CNT can be used as an interpreter (definer) only either in the timer or counter.  • The numbers count ranges from 000 to 015.  • Counters are used to calculate the count down from the set (SV) when the execution condition (execution condition) on the pulse off (CP), changed from OFF to ON.  • The value set (SV) ranges from 0000 to 9999.  • The counter resets the reset input (R).

  25. The end… • Quiz • Practical • End of Chapter

More Related