Fundamentals of PLC Programm
Fundamentals of PLC Programm
Fundamentals of PLC Programm
PROGRAMMING
CPM1A
Course Outline
i – Overview of PLC
ii – Basic Command
a. LD/LD not
b. And/And not
c. Or/Or not
d. And Load
e. Or Load
f. Timer/Counter
WHAT A PROGRAMMABLE
CONTROLLER CAN DO ?
Power Supply
CPM2A-_ _ CDR
CPM1A-20EDR
Inputs
1. ROM
2. RAM
3. EPROM
4. EEPROM
Read Only Memory (ROM)
50 Mhz
OS : Windows 3.1 or higher
Resolution : SVGA X 600 or larger
RAM : 8 Mbytes or more
Hard Disk : 40 MB or more
CX-Programmer
32 Bit application
OS : Windows 95, NT3.51, NT 4.0
Resolution : SVGA X 600 or larger
RAM : 16 Mbytes or more
Hard Disk : 40 MB or more
PC TYPES SELECTING POINTS
CPM2A
1 Channel = 16 Bits
1 Word = 16 Bits
Internal Relay (IR)
Instruction INS
Deleting Instruction
Instruction Currently
Display DEL
Overview of Instruction
Load / Load Not (LD/LD NOT)
Electrical Control Circuit Diagram
L1 Sw 1 L2
Lamp 1
Sw 2 Lamp 2
Load / Load Not (LD/LD NOT)
Control Ladder Diagram
Sw 1 Sw 2 Lamp 2
Sw 3 Sw 4 Lamp 4
And / And Not
Control Ladder Diagram
End
OR / OR NOT
Electrical Control Circuit Diagram
Sw 1 Lamp 3
Sw 2
Lamp 5
Sw 3
Sw 4
OR / OR NOT
Control Ladder Diagram
00000 LD 1 write
000.01 10.03 00001 OR 2 write
00002 OUT 1003 write
00003 LD 3 write
000.02 00004 OR NOT 4 write
00005 OUT 1005 write
000.03 10.05 00006 FUN 01 write
000.04
End
AND LD
Control Ladder Diagram
10.06
000.02 000.04
End
AND LD
Control Ladder Diagram
10.05
000.04 000.05
End
OR LD
Control Ladder Diagram
05 06
07 08
End
Practice 1
Convert the ladder diagram below
to the equivalent mnemonic code:
01 02
10.07
03 04
05 06
07 08
End
Practice 2
Convert the ladder diagram below
to the equivalent mnemonic code:
TR 0 TR 1
03 04 05
10.00
06
10.02
07 08
10.04
End
Workbits / Internal Relay
01 03 04 01 03
10.00 200.00
02 02
01 03 05 200.00 04
10.01 10.00
02 200.00 05
10.01
01 03 06
200.00 06
10.02
10.02
02
Differential UP – DIFU (13)
input
DIFU(13)
_____ Bits of
IR, SR, AR, HR,LR
Differential UP – DIFU (13)
Self Holding Circuit
input
DIFD(14)
_____ Bits of
IR, SR, AR, HR,LR
Differential down – DIFD (14)
KEEP (11) Latching relay
Address :
TIM 127
Address :
CNT 127
000.01 S
00000 LD 1 write
00001 LD 2 write
CNT 127
000.02 R # 0005 00002 CNT 127 write
#0005 write
CNT 127 00003 LD CNT 127 write
00004 OUT 1006 write
00005 OUT 1007 write
010.06
00006 FUN 01 write
End 010.07
EXERCISE
10.00 01
01 02 IL (02)
02 10.00
01 03 10.01
03 10.01
10.02
01 04
10.02
04
End
ILC (03)
End
APPLICATION OF BASIC COMMAND
When a start button is pushed, the motor (M) will move from
Left to right. When LS2 is ON, the motor stops, delay for 5 s
And then moves back to home. When LS1 is ON, the motor
Cuts off signifying the sequence is completed.
LS1 LS2
Start
HOME
PRACTICE – ESCALATOR CONTROL
This escalator is s stationary until someone approaches.
when someone passes by the sensor, the motor starts to
operate, and stop one minute after the last person passed by.