Professional Documents
Culture Documents
Normah Sapuan
Department of Electrical Engineering
4.1. PLC PROGRAMMING
SYSTEM
4.1.1 EXPLAIN PLC
PROGRAMMING METHOD
The following is list of programming languages specified
by this standard:
1. Laddar Diagram (LD)
2. Mnemonic Code
3. Instruction List/Set (IL)
4. Sequential Function Chart/Flow Chart(SFC)
5. Function Block Diagram(FBD)
6. Human Machine Interface (HMI)
7. Window based Program/Structure Text(ST)
a. Laddar Diagram (LD)
Rung 1
Rung 2
Rung 3
A ladder diagram is read from left to right and from top to bottom,
Figure 4 shows the scanning motion employed by the PLC. The top
rung is read from left to right. Then the second rung down is read
from left to right and so on. When the PLC is in its run mode, it goes
through the entire ladder program to the end, the end rung of
program being clearly denoted, and then promptly resumes at the
start. This procedure of going through all the rungs of the program
is termed a cycle.
Five rules that need to be considered when
drawing the ladder Diagram:
OR Combines a normally
(OR) open condition in parallel
with a previous condition.
00000
TIM 000
Address Instruction Data
#0025
00000
Address Instruction Data
CP CNT 001
00002
#0010 00000 LD 00000
R
00001 LD 00002
CNT 001
00002 CNT 001
01002
#0010
00003 LD CNT 001
END(01)
00004 OUT 01002
00005 END(01)
DESIGN AND WRITE PROGRAM LADDER
00000 LD 00000
2. OR
function
6. AND and OR
function
00000 00001
ADDRESS INSTRUCTIONS DATA
01005
00000 LD 00000
00001 AND NOT 00001
END
00002 OUT 01005
00003 END (01)
EXAMPLE OF DESIGN AND WRITE PROGRAMME
00000 LD 00001
00001 AND 00002
00003 00002 OR 00003
00003 AND 00004
00004 AND NOT 00005
00005 OUT 01007
00006 END(01)
END
AND LD
2
00000 LD 00000
00001 OR 00001
00001 00003 00002 LD 00002
00003 OR NOT 00003
00004 AND LD
00005 OUT 01001
00006 END(01)
END
OR LD
3
00000 LD 00001
00001 AND NOT 00002
00002 LD 00003
00003 00004
00003 AND 00004
00004 OR LD
00005 OUT 01001
END 00006 END(01)
4 AND LD
A B C
00000 00002 00004 01007
END
TWO TYPES OF SOLUTION
1. KEEP
2. SET / RESET
3. JUMP
4. INTERLOCK
5. DIFFERENTIATE UP / DOWN
KEEP – KEEP (11)
Selepas itu bit operasi 01000 akan OFF tanpa mengambil kira
status suruhan masukan LD 00000.
4 STEP PLC PROGRAMMING
AND WIRING