Академический Документы
Профессиональный Документы
Культура Документы
pma&;ol&JU trSmpum;
pma&;olu PLC tajccHtqifhukdom 'DpmtkyfrSm a&;om;az:jyxm;ygw,f/ PLC
&JU tajccHoabmw&m; concept ukd rSefrSefuefuef oabmaygufem;vnfxm;&if a&SU
wqifhwufNyD; avYvm&mrSm rsm;pGmtaxmuftuljzpfapygw,f/
xda&mufwJY avYvmoif,lrIrSm vufawGUavYusifYrIyg0ifygw,f/ Computer ay:rSm
program a&;NyD; PLC eJY vufawGY RUN Munfh&rSmjzpfygw,f/ vlwkdif;twGuf 'Dvkdvkyf
MunfhEkdifrSmr[kwfvkdY PLC rygyJeJY Simulate vkyfMunfhEkdifatmif yxrOD;qkH;a&;cJYwJY
PLC vrf;nTef pmtkyfrSm Simulate vkyfvkdY&wJY Software a&m vkyfykHvkyfenf;ukdyg xnfh
ay;xm;ygw,f/
,aeYacwf Control Technology rSm tokH;jyKaeMuwJY logic u 2-rsKd;&Sdygw,f/ 'Dpm
tkyfrSm a&;om;az:jywJY Logic u Boolean Logic jzpfygw,f/ aemufwpfrsKd;u Fuzzy
Logic jzpfygw,f/
Boolean Logic u &SdwmeJYr&Sdwm? rSefwmeJYrSm;wm? tajctae 2-rsKd;ukd jywfjywf
om;om; ykdif;jcm;jyygw,f/ rSefw,f True vkdYajym&if vkH;0rrSm;bl;? trSm;wpufrSr&Sdbl;?
vkdY qkdvkdygw,f/ False vkdY az:jycJY&ifvnf; vkH;0rSm;w,f? wpufrSrrSefbl;? vkdY qkdvkdyg
w,f/
Fuzzy Logic u awmh True eJY False ukd jywfjywfom;om; rykdif;jcm;yJeJY eJeJrSefNyD;?
rsm;rsm;rSm;w,f? rsm;rsm;rSefNyD;? eJeJrSm;w,f? vkdY trSm;eJYtrSefukd bufESpfbufpvkH;&JU
tajctaeukd xnfhoGif;az:jyygw,f/ Oyrm? rsm;rsm;rSefwmukd 80% rSefNyD; 20% rSm;
w,fvkdY trSef? trSm;? &JU yrmPukdyg az:jyygw,f/ 100% rSm;w,fvkdY ajymrSom
vkH;0rrSefbl;qkdwJY t"dyg,f&ygw,f/ a'gufwmcifarmif0if; jrefrmvkda&;xm;wJY Fuzzy
Logic pmtkyfukd vGefcJYwJY 10-ESpfavmufu zwfzl;ygw,f/ tJ'D pmtkyfukd &SmzwfzkdY
wkdufwGef;ygw,f/
,aeYacwf PLC awGrSm PID Control ukda&m Fuzzy Control ukdyg tokH;jyKaeMuNyD
jzpfygw,f/ qufvufavYvmp&mawGuawmh tNrJ&SdaerSmjzpfygw,f/ OEM &JU manual
awGukd avYvmzwf&IwJYtcg taxmuftuljzpfapzkdY &nf&G,fNyD; t*Fvdyfpm? jrefrmpm? eJY
&kyfykHawGukd olYae&meJYol cGif0ifatmif xnfhoGif;az:jywJY a&;enf; Hybrid enf;ukd
'DpmtkyfrSm tokH;jyKNyD;a&;xm;ygw,f/
odvkdwm&Sd&if pma&;ar;jref;Ekdifygw,f/
U Soe Tint
Instrumentation Engineer
AGTI (EC) Mandalay 1969
soetintengineer@gmail.com
The more you learn about PLCs, the more you will be able to solve other control problems.
U Soe Tint Siemens PLC S7-200
pmrsufESmtTef;
taMumif;t&m pmrsufES m
Introductions 2
PLC Overview 4
I/O Memory & I/O Terminals 10
PLC Hardware 11
PLC Specification 16
Password Level 4-rsKd; 18
PART 1 Hardware & Software Installation 19
Installing an S7-200 PLC 20
Removable Terminal Block Connector 22
Guidelines for AC Power Supply Installation 23
I/O expansion 26
Sample I/O Addresses for Local and Expansion I/O (CPU 224) 28
Input Devices 30
Output Devices 34
Programmable Logic Controller I/O connection diagram 36
Output terminal & Input terminal 37
Programming Software Installation 39
Program Writing on Computer 50
PART 2 Program Reading 52
Logic AND 56
Logic OR 57
Example (1) Examine_ON instruction 58
Example (2) Examine_OFF instruction 59
Example (3, 4, 5) AND conditions 60
Example (6, 7, 8) OR conditions 63
Example (9, 10) AND before OR conditions 66
Example (11, 12) OR before AND conditions 68
Example (13) Self-holding program 70
Example (14) Interlock Control program 71
Example (15) AND_block, OR_block 72
Example (16) NOT instruction 73
The more you learn about PLCs, the more you will be able to solve other control problems.
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
U Soe Tint Siemens PLC S7-200
Siemens PLC
S7-200 CPU 224
The more you learn about PLCs, the more you will be able to solve other control problems.
-1-
U Soe Tint Siemens PLC S7-200
Introductions
,aeYacwfoHk; PLC awG[m control relay awG vkyfwJhtvkyfudk udk,fpm;jyKaqmif
&GufwJh vkyfief;omruawmhyJ computer wpfvHk;vdk aqmif&GufEdkifpGrf;&SdMuygw,f/ pufHk
tvkyfHk&JUywf0ef;usifeJU o[Zmwjzpfatmif I/O eJU programming language awGukd
toHk;jyKxm;Muygw,f/ 'gaMumifh PLC udk industrial computer vdkYvnf; ac:ygw,f/
PLC udk computer wnfaqmufovdkyJ microprocessor udk tajccHNyD; wnfaqmuf
xm;ygw,f/ Microprocessor udk intelligence device vdkY todtrSwf jyKMuygw,f/
Microprocessor [m vlUOmPfudk wkyNyD;aqmif&GufEdkifpGrf;&SdwJh electronic ypnf;wpfrsdK;
jzpfygw,f/ Computer wdkif;rSm microprocessor yg&Sdygw,f/ PLC [mvnf; industrial
computer wpfrsdK; jzpfvdkY PLC udk avhvmwJhtcgrSm computer wpfvHk;udk avhvmovdkrsdK;
avhvmoifhygw,f/ 'grSom topftopfxGufay:vmwJh PLC &JU vkyfaqmifcsuf
function awGudk avhvmwJhtcg vG,fulaprSm jzpfygw,f/
Relay logic eJY vkyfEdkifwmrSeforQ PLC u vkyfaqmifEdkif&kHru *Pef;aygif;wm?
EIwfwm? ajrmufwm? pm;wmawGukdvnf; Computer vdkyJ aqmif&GufEdkifygw,f/ BuD;wm?
i,fwm? nDwm pwJh EdIif;,SOfrIawGvnf; vkyfEdkifygw,f/ Analog Signal awGudkvnf;
vufcHaqmif&Gufay;Edkifygw,f/ Computer vdkyJ PLC awGuvnf; wpfvHk; eJU wpfvHk;
pum;ajymqufoG,fvdkY &aeygNyD/ PLC u pufjzpfaeawmh pufpum;eJU ajymMuwm
jzpfygw,f/ pufpum; machine language udk binary eJU a&;&ygw,f/ vQyfppftcsufjy
jzpfwJh voltage &SdwmeJU r&Sdwm (vQyfppf pD;wmeJU rpD;wm) tajctae ESpfrsdK;yJ&SdvdkU
binary vdkY ac:wmjzpfygw,f/
vlawG twGuf binary eJU program a&;&wm cufcJvdkY high level language vdkY
ac:wJh vlawGtwGuf oif,l&vG,fulwJh programming language awGudk wDxGifxm;yg
w,f/ tckpmtkyfrSm high level language wpfrsdK; jzpfwJh Ladder Diagram (LD)
programming language eJU program b,fvdka&;&w,f qdkwmudk tajccHupNyD; oabm
aygufem;vnfatmif &Sif;jyxm;ygw,f/
1968 ckESpfrSm armfawmfum; xkwfvkyfwJh General Motors ukrPDu PLC udk pwif
tokH;jyKcJhygw,f/ 1977 ckESpfrSm Allen-Bradley ukrPDu 8080 microprocessor udk toHk;
jyKNyD; xkwfvkyfxm;wJh PLC [m aps;uGufxJudk a&muf&SdvmcJhygw,f/ pm;aomufukef
vkyfief;? owKvkyfief;? ukefxkwfvkyfief;? puLxkwfvkyfrI pwmawGrSmyg PLC udk us,f
us,fjyefYjyefY toHk;jyKvmMuygw,f/
Siemens AG u Simatic S5 PLC ukd 1979 ckESpfrSmpwif xkwfvkyfokH;pGJcJYygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
-2-
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
-3-
U Soe Tint Siemens PLC S7-200
PLC Overview
PLC Program udk zwfwwfwm[m PLC eJY ywfoufwJhjyem problem awGudk
ajz&Sif;&mrSm taxmuftul BuD;BuD;rm;rm; jzpfapygw,f/ PLC eJY ywfoufwJh jyem
problem awGudk ajz&Sif;zdkYtwGuf PLC Program udk zwfwwf&kHeJYawmh rjynfhpkHao;ygbl;/
PLC wiring diagram udkyg zwfwwf&ygr,f/ PLC eJY qufoG,fxm;wJh Input device
awG? Output device awGtaMumif; aumif;aumif; odxm;&ygr,f/ PLC eJY ywfoufNyD;
odxm; oifhwmawGudk 'Dae&mrSm tusOf;tm;jzifh az:jyygr,f/ PLC [m Industrial
Computer wpfrsKd; jzpfwmrkdYvkdY Hardware ykdif;eJY Software ykdif;qkdNyD; ESpfykdif;&Sdygw,f/
PLC wpfvkH;udk awGUwJhtcg? Hardware ydkif;udk pwifavYvm&ygw,f/ NyD;rS
Software ydkif;jzpfwJh PLC Program udk avhvm&rSmjzpfygw,f/
S7-200 wGif S7-200 CPU221, S7-200 CPU222, S7-200 CPU224, S7-200 CPU226,
eJY S7-200 CPU226XM [l Model 4-rsKd;&Sdygw,f/
4if;wkdY&JU CPU trsKd;tpm;? power supply trsKd;tpm;eJYyrmP? input trsKd;tpm;eJY
ta&twGuf? output trsKd;tpm;eJY ta&twGuf? wkdYukd atmufygZ,m;wGif az:jyxm;yg
w,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
-4-
U Soe Tint Siemens PLC S7-200
Communication Port ukd Programming Port vkdYvnf; ac:ygw,f/ PLC xJukd
program a&;oGif;wJYtcg tokH;jyKygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
-5-
U Soe Tint Siemens PLC S7-200
Output Signal
Input Signal
ykHrSmaz:jyxm;ovkd PLC &JU Input device awGu PLC ukd signal ay;oGif;&wJY
Sensor awG jzpfMuNyD;? PLC &JU Output device awGu PLC ckdif;wmukd vkyfaqmifay;&wJY
Actuator awG jzpfMuygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
-6-
U Soe Tint Siemens PLC S7-200
PLC &JU Input device (Sensor) awGuay;ykdYvmwJY Electric Signal ukd CPU em;vnf
vufcHEkdifwJY data awGjzpfatmif Input Interface u ajymif;ay;ygw,f/ CPU u xkwfay;
wJY data awGukd Electric Signal jzpfatmif PLC &JU Output Interface u ajymif;ay;yg
w,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
-7-
U Soe Tint Siemens PLC S7-200
PLC ukd Power Supply, CPU, Memory, Input Interface, Output Interface wkdYeJY
zGJUpnf;xm;ygw,f/
Compact PLC jzpfwJY S7-200 CPU224 AC/DC/RLY rSm tJ'D tpdwftykdif;awGukd
circuit jym;wpfckwnf;ay:rSm pkaygif;wwfqifwnfaqmufxm;ygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
-8-
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
-9-
U Soe Tint Siemens PLC S7-200
I0.0, I0.1, I1.0, I1.1 ponfjzifY I ukd Input Memory rSmxnfha&;ygw,f/ Input
Terminal ukdawmh 0.0, 0.1, 1.0, 1.1 vkdY I rygyJa&;ygw,f/
Q0.0, Q0.1, Q1.0, Q1.1 ponfjzifY Q ukd Output Memory rSmxnfha&;ygw,f/
Output Terminal ukdawmh 0.0, 0.1, 1.0, 1.1 vkdY Q rygyJa&;ygw,f/
S7-200 CPU224 AC/DC/RLY rSm Input Image Memory ukd Process-image input
register vkdY ac:a0:NyD; 8-bits ygwJY Byte tjzpf zGJUpnf;xm;ygw,f/ I0.0 to I0.7 rS I15.0
to I15.7 txd 16 Bytes yg&Sdygw,f/ wu,fokH;xm;wmu Input Terminal 14-ck (0.0 to
0.7, 1.0 to 1.5) twGuf I0.0 to I0.7 rS I1.0 to I1.5 txd Byte 0, Byte 1 2-ckom jzpfyg
w,f/ usefwJY Input Memory Byte awGu aemufxyfwkd;vmr,fh Input Terminal
twGuf jzpfygw,f/
S7-200 CPU224 AC/DC/RLY rSm Output Image Memory ukd Process-image
output register vkdY ac:NyD; Byte awGeJY zGJUpnf;xm;ygw,f/ Q0.0 to Q0.7 rS Q15.0 to
Q15.7 txd 16 Bytes yg&Sdygw,f/ wu,fokH;xm;wmu Output Terminal 10-ck (0.0 to
0.7, 1.0 and 1.1) twGuf Q0.0 to Q0.7 rS Q1.0 to Q1.1 txd Byte 0, Byte 1 2-ckom
jzpfygw,f/ usefwJY Output Memory Byte awGu aemufxyfwkd;vmr,fh Output
Terminal awGtwGufjzpfygw,f/
S7-200 CPU224 u trsm;qkH; I/O module 7-ck txd xyfwkd;vkdY &ygw,f/ xyfwkd;
Terminal awGtwGuf Memory Address ay;ykHay;enf;ukd pmrsufESm (28) wGifMunfhyg/
PLC wpfvkH;udk awGUwJhtcg? PLC ukd zGJYpnf;wnfaqmufxm;ykH Hardware ydkif;udk
pwifavYvm&ygw,f/ NyD;rS PLC u vkyfaqmif&r,fhvkyfief;wm0efawGjzpfwJh Software
ydkif; PLC Program udk avhvmzwf&I&rSmjzpfygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 10 -
U Soe Tint Siemens PLC S7-200
PLC Hardware
PLC rSm trsdK;tpm; ajrmufjrm;pGm &SdMuygw,f/ b,f PLC rSmyJjzpfjzpf wire quf
vdkY&wJh ikwf terminal awG yg&SdMuygw,f/ tJ'gawGuawmh Power supply terminal, Input
terminal, Output terminal eJY Programming Port wdkY jzpfMuygw,f/ Terminal qkdwm
signal tqkH;owfwJYae&m? signal tpjyKwJYae&mukd ac:wmjzpfNyD;? Port qkdwmuawmh
signal t0if? txGuf? vkyfwJYae&mukd ac:wmjzpfygw,f/
PLC wpfvHk;udk awGUwJhtcg yxrqHk; avhvm&rSmuawmh Power Supply and I/O
wkdY&JU Type and Size ukd odatmifvkyf&rSmjzpfygw,f/ I/O qkdwmu Input / Output jzpfyg
w,f/
Power supply &JU type qdkwmu tJ'D PLC udk AC power supply ay;&rSmvm;? DC
power supply ay;&rSmvm;? qdkwmudk cGJjcm;odzdkY jzpfygw,f/ S7-200 CPU224
AC/DC/RLY &JU power supply u 85 to 264VAC jzpfygw,f/ S7-200 CPU224
DC/DC/DC &JU power supply u 24VDC jzpfygw,f/
Power supply &JU size qkdwm tckaz:jycJYwJY DC24V wdkY AC 240V wkdYukd ajymwm
jzpfygw,f/
Input &JU type qkdwmu d.c signal vm;? a.c signal vm;? analog vm;? discrete vm;
qkdwm cGJjcm;odxm;zkdYjzpfygw,f/
PLC u vufcHwJY discrete signal (digital signal) rSm DC 24V signal eJY AC 110V or
AC 220V signal qkdNyD; AC eJY DC ESpfrsKd; &Sdygw,f/
AC 110V signal input type
The more you learn about PLCs, the more you will be able to solve other control problems.
- 11 -
U Soe Tint Siemens PLC S7-200
DC 24V signal input type
Input &JU size qkdwmu input signal &JU yrmP jzpfygw,f/ S7-200 CPU224
AC/DC/RLY &JU input signal u 24VDC jzpfygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 12 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 13 -
U Soe Tint Siemens PLC S7-200
24V
24V
Sensor uay;ykdYwJY signal ukd PLC u vufcH&,lwJY Input terminal (0.0, 0.1, 0.2,
0.3, 0.4, 0.5, 0.6, 0.7; 1.0, 1.1, 1.2, 1.3, 1.4, 1.5) 14-ckeJY Common terminal (1M, 2M)
2-ckwkdY yg&Sdygw,f/ Sensor twGuf DC 24V xkwfay;wJY terminal (M, L+) yg&Sdygw,f/
M u negative terminal (ve) jzpfNyD; L+ u positive terminal (+ve) jzpfygw,f/ 1M
ukd +ve eJY qufxm;NyD;? 2M ukd ve eJY qufjyxm;ygw,f/ ve eJYquf xm;&if sink
input jzpfNyD; +ve eJY qufxm;&if source input jzpfygw,f/
PLC u signal xkwfay;wJY Output terminal (0.0, 0.1, 0.2, 0.3; 0.4, 0.5, 0.6; 0.7;
1.0, 1.1) 10-ckeJY Common terminal (1L, 2L, 3L) 3-ckwkdY yg&Sdygw,f/ u PLC xJrSm
qufoG,frIr&SdwJY (no connection) terminal tvGwfjzpfygw,f/
Analog Potentiometer
0&1
The more you learn about PLCs, the more you will be able to solve other control problems.
- 14 -
U Soe Tint Siemens PLC S7-200
Expansion Port
Mode Selector Switch
STOP, TERM, RUN
Analog Potentiometer
0&1
The more you learn about PLCs, the more you will be able to solve other control problems.
- 15 -
U Soe Tint Siemens PLC S7-200
PLC Specification
The more you learn about PLCs, the more you will be able to solve other control problems.
- 16 -
U Soe Tint Siemens PLC S7-200
S7-200 CPU224 wGif program a&;EkdifwJY memory area u 4096 words jzpfNyD;?
tJ'DrSm a&;xm;wJY user program ukd EEPROM xJrSm odrf;qnf;xm;ygw,f/ RAM
xJu data awGukd 7-&ufcefY raysmufrysufyJ xdef;odrf;xm;EkdifzkdYtwGuf super capacitor
yg&Sd ygw,f/
Internal relays vkdYac:wJY internal memory bits aygif; (MB0 to MB31) 256 bits,
Counter aygif; (C0 to C255) 265 words eJY Timer aygif; (T0 to T255) 256 words wkdY
yg&Sdygw,f/
Real-time clock (RTC) vkdYac:wJY jyu'def yg&SdNyD;? rdrd program ukd wyg;olMunfhvkdY
r&atmifvnf; password eJY ydwfxm;vkdY &ygw,f/
Password level 4-rsKd; &Sdygw,f/ Password eJY ydwfrxm;wmukd Level 1 vkdY ac:yg
w,f/ Level 2 eJY ydwfxm;&if PLC xJu program ukd ,lMunfhvkdY &ygw,f/ PLC xJukd
program a&;xnfhvkdYawmh r&ygbl;/ Password eJY zGifhNyD;rSom PLC xJukd program
a&;xnfhvkdY &ygw,f/ Level 3 eJY ydwfxm;&if PLC xJu program ukd ,lMunfhvkdYvnf;
r&? PLC xJukd program a&;xnfhvkdYvnf; r&ygbl;/ Password eJY zGifhNyD;rSom PLC xJu
program ukd ,lMunfhvkdYvnf;&? a&;xnfhvkdYvnf; &ygw,f/ Level 4 eJY ydwfxm;&if PLC
xJu program ukd password eJY zGifhNyD;,lMunfhvkdYukd r&awmhygbl;/
Password eJY ydwfxm;cJY&if rdrd program ukd ul;,ltokH;jyKvkdY r&ayr,fh zsufypfvkdY
awmh &ygw,f/
Password eJY ydwfxm;csif&if View Component System Block Password
Privileges wGif BudKufwJY Level ukd a&G;jc,fyg/ Password a&;xnfhNyD;? xyfrHtwnfjyK
ay;yg/ OK Download to PLC vkyfyg/
Password arYaevkdY&Sd&if PLC Clear Program Block, System Block, Data
Block wkdYukd select vkyfNyD;? OK Password awmif;&if CLEARPLC vkdYa&;NyD;
Clear All vkyfyg/
rdrda&;xm;wJY program ukd wyg;olzGifhMunfhvkdY r&atmif save xm;csif&ifvnf;
password eJY save xm;vkdY &ygw,f/
Password eJY ydwfxm;csif&if File Set Password Password-protect this project
ukd check vkyf Password ae&mrSm p.w a&;? Verify ae&mrSm p.w xyfa&;? OK
ESdyfyg/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 17 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 18 -
U Soe Tint Siemens PLC S7-200
Part 1
INSTALLATION
The more you learn about PLCs, the more you will be able to solve other control problems.
- 19 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 20 -
U Soe Tint Siemens PLC S7-200
'D
ukd
'DvkdjzKwfNyD;
'Dvkdwkdif;yg
The more you learn about PLCs, the more you will be able to solve other control problems.
- 21 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 22 -
U Soe Tint Siemens PLC S7-200
No Fuse Breaker
AC Load
Stepdown Transformers
Isolation Transformer
The more you learn about PLCs, the more you will be able to solve other control problems.
- 23 -
U Soe Tint Siemens PLC S7-200
PLC ukd RUN rS CR1 u energize jzpfygw,f/ CR1 = ON jzpfrS control section ukd
power supply a&mufatmifpDrHxm;wmjzpfvkdY taMumif;wckckaMumifh PLC Stop jzpfoGm;
cJY&if control section ukd power jzwfvkdufwJYtwGuf safety jzpfapygw,f/
S7-200 PLC &JU instruction code xJrSmygwJY STOP qkdwJY instruction ukd okH;NyD;
atmufygtwkdif; a&;xm;cJY&if I/O system rSm wckckrSm;,Gif;wJYtcg PLC ukd Stop vkyf
vkdufygw,f/ I/O error jzpf&if SM5.0 u ON jzpfygw,f/
CR1 = ON to OFF jzpfvkdY ay:aygufvmwJY back emf &JU 'Pfukd Surge Suppressor
u umuG,fay;ygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 24 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 25 -
U Soe Tint Siemens PLC S7-200
I/O Expansion
S7-200 CPU224 wGif Input expansion module eJY Output expansion module wkdYukd
wkd;csJUwwfqifvkdY &ygw,f/ I/O expansion module 7-cktxd wwfqifvkdY &ygw,f/
I/O module eJY main module ukd Control Panel xJrSm yl;uyfwwfr,fqkd&if txuf
ykHrSm jyxm;ovkd olUe*kdygwJY cable ukd okH;NyD;wwfqif&ygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 26 -
U Soe Tint Siemens PLC S7-200
I/O module eJY main module ukd Control Panel xJrSm txufatmuf cGJwwfr,f
qkd&if txufykHrSm jyxm;ovkd expansion cable ukd xyfrH0,f,lNyD; wwfqif&ygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 27 -
U Soe Tint Siemens PLC S7-200
Sample I/O Addresses for Local and Expansion I/O (CPU 224)
S7-200 CPU224 ukd 4 In / 4 Out expansion module eJY 8 In expansion module wkdYukd
wwfqifvkdufwJYtcg I/O memory awG&JU address ukd atmufaz:jyygtwkdif; a&;&yg
w,f/ Main PLC module CPU224 rSm I/O 24-ck yg&Sdygw,f/ 4if;ukd Local I/O vkdYac:yg
w,f/
Not
Used
The more you learn about PLCs, the more you will be able to solve other control problems.
- 28 -
U Soe Tint Siemens PLC S7-200
Not Used
The more you learn about PLCs, the more you will be able to solve other control problems.
- 29 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 30 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 31 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 32 -
U Soe Tint Siemens PLC S7-200
Relay Contacts
Momentary contact jzpfygw,f/ N.O eJY N.C 2-rsKd; &Sdygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 33 -
U Soe Tint Siemens PLC S7-200
Output Devices
The more you learn about PLCs, the more you will be able to solve other control problems.
- 34 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 35 -
U Soe Tint Siemens PLC S7-200
Power
Supply
The more you learn about PLCs, the more you will be able to solve other control problems.
- 36 -
U Soe Tint Siemens PLC S7-200
14-cku 1M, 0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6; 3L, 0.7, 2M, 1.0, 1.1,
Input terminal
1.2, 1.3, 1.4, 1.5 wkdY
jzpfMuygw,f/ 1M, 2M wkdYu common terminal awG jzpfMuygw,f/
Power Supply ukd AC voltage ay;oGif;&NyD; input signal u DC type jzpfcJh&if tJ'D
DC voltage udk PLC xJuae xkwfay;avh&Sdygw,f/ ykHrSm M eJY L+ u sensor twGuf
DC24V, 280mA xkwfay;ygw,f/ M u 24V &JU () jzpfNyD;? L+ u 24V &JU (+) jzpfyg
w,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 37 -
U Soe Tint Siemens PLC S7-200
S7-200 CPU224 AC/DC/RLY &JU input signal type u DC 24V input jzpfygw,f/
Sink vkdvnf; qufvkdY&ygw,f/ Source vkdvnf; qufoG,fvkdY&ygw,f/
ykHrSm 1M ukd +24V eJYqufxm;vkdY source input jzpfygw,f/ Sink output (NPN)
sensor awGeJY qufoG,ftokH;jyK&ygw,f/
ykHrSm 2M ukd 24V eJYqufxm;vkdY sink input jzpfygw,f/ Source output (PNP)
sensor awGeJY qufoG,ftokH;jyK&ygw,f/
Input &JU common terminal 1M ukd positive potential ay;vkdufwJYtcg signal current
direction u PLC to Sensor jzpfygw,f/ PLC &JU input terminal uae tjyifukd pD;xGuf
wmjzpfvkdY Source Input vkdY ac:wmjzpfygw,f/
Input &JU common terminal 2M ukd negative potential ay;vkdufwJYtcg signal
current direction u Sensor to PLC jzpfygw,f/ DC current direction u PLC &JU input
terminal xJukd tjyifuae pD;0ifwmjzpfvkdY Sink Input vkdY ac:wmjzpfygw,f/
Output &JU common terminal 1L ukd positive potential ay;vkdufwJYtcg signal
current direction u PLC to Actuator jzpfygw,f/ PLC &JU output terminal uae
tjyifukd pD;xGufwm jzpfvkdY Source Output vkdY ac:wmjzpfygw,f/
Output &JU common terminal 2L ukd negative potential ay;vkdufwJYtcg signal
current direction u Actuator to PLC jzpfygw,f/ PLC &JU output terminal xJukd
tjyifuae current pD;0ifwm jzpfvkdY Sink Output vkdY ac:wmjzpfygw,f/
Output &JU common terminal 3L ukd AC eJY qufoG,fxm;&if Sink, Source rjzpf
ay:ygbl;/ Sink, Source qkdwm worwfwnf;pD;aewJY DC eJYom oufqkdifygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 38 -
U Soe Tint Siemens PLC S7-200
Click on OK
4/ ay:vmwJh Choose Setup Language wGif English ukd a&G;NyD; OK ukd click yg/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 39 -
U Soe Tint Siemens PLC S7-200
Click on Yes
5/ oifY Computer u Windows XP r[kwfvkdYf Cancel Setup qkdwmay:vm&if Yes
ukd ESdyfyg/ (Windows 7 jzpfaevkdY Cancel Setup ay:vmwmjzpfygw,f/ Windows XP
qkd&if ray:ygbl;/)
Click on Next
6/ ay:vmwJh Install Shield Wizard wGif Next ukd click vkyfyg/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 40 -
U Soe Tint Siemens PLC S7-200
Click on Yes
7/ ay:vmwJh License Agreement wGif Yes ukd ESdyfyg/
Click on Next
8/ Next ukd ESdyfyg/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 41 -
U Soe Tint Siemens PLC S7-200
Click on Yes
oifY Computer u Windows 7 jzpfae&if Cancel Setup qkdwmay:vmwJYtcg Yes
ukd ESdyfyg/ (Windows 7 jzpfaevkdY Cancel Setup ay:vmwmjzpfygw,f/ Windows XP
qkd&if ray:ygbl;/)
STEP 7 MicroWIN V4.0 SP3 u Windows XP ay:rSmom Run vkdY &ygw,f/
'gayr,fY Windows 7 32-bit OS ay:rSm install vkyfvkdY &ygw,f/ PC ay:rSm Program
vnf; a&;vkdY&ygw,f/ PC eJY PLC ukdawmY communicate vkyfvkdY r&ygbl;/ qkdvkdwmu
PLC xJukd program a&;xnfhvkdY r&ygbl;/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 42 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 43 -
U Soe Tint Siemens PLC S7-200
Click on OK
9/ OK ukd ESdyfyg/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 44 -
U Soe Tint Siemens PLC S7-200
Click on Finish
10/ Finish ukd ESdyfyg/
rSwfcsuf / / Windows 7 & 8 wkdYrSm STEP 7 MicroWIN V4.0 SP3 ukd Run csif&if
Windows OS ay:rSm VMWare (Virtual Machine Software) ukd t&if
install vkyfyg/ NyD;&if Windows XP ukd VMWare ay:rS m install vkyfyg/
'gqkd&if STEP 7 MicroWIN V4.0 SP3 ukd Windows XP ay:rSm install
vkyfNyD; PLC eJY communicate vkyfvkdY &ygNyD/ Cable driver ukd Windows XP
ay:rSm install vkyfzkdYrarY ygeJY/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 45 -
U Soe Tint Siemens PLC S7-200
ukd csefxm;NyD; V1.0 S7-200 Explorer eJY V1.0 TD Keypad icon awGukd
zsufypfyg/ (Delete shortcut vkyfyg)
The more you learn about PLCs, the more you will be able to solve other control problems.
- 46 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 47 -
U Soe Tint Siemens PLC S7-200
Cursor
Instruction code pa&;&r,fYae&m
SIMATIC LAD qkdwmu Siemens &JU SIMATIC Instruction Code eJYa&;wJY Ladder
Diagram Programming Language jzpfygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 48 -
U Soe Tint Siemens PLC S7-200
'D program &JU nmbufjcrf;rSm vertical line ryg&Sdwmudk owdjyKyg/ 'D program &JU
b,fbufjcrf;rSmyg&SdwJY vertical line udk instruction code pwifa&;&r,fYae&mvkdY rSwf
om;xm;yg/
Program ukd bmomjyefenf;? t"dyg,faz:enf;ukd 'DpmtkyfrSm tao;pdyf&Sif;jyxm;
ygw,f/ a&;om;az:jywJYae&mrSm t*Fvdyfpm? jrefrmpm? eJY &kyfykHawGukd olUae&meJYol
aygif;pyfNyD; t"dyg,f&Sif;atmif Hybrid enf;eJY a&;xm;ygw,f/
Siemens PLC S7-200 ukd pwifavYvmoif,lolrsm; 'Dpmtkyfukd zwfNyD; em;rvnf
wm? r&Sif;wm? &Sd&if soetintengineer@gmail.com okdY pma&;ar;jref;eKdifygw,f/
uRrf;usifolrsm;u 'Dpmtkyfukd zwfNyD; cRwfacsmfwdrf;apmif;wm? rSm;,Gif;wm? awGU&Sd
cJYyg&ifvnf; a0zefaxmufjyMuyg&ef (trSm;jyifay;Muyg&ef) arwm&yfcHygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 49 -
U Soe Tint Siemens PLC S7-200
Program
Writing on Computer and
Downloading to PLC
The more you learn about PLCs, the more you will be able to solve other control problems.
- 50 -
U Soe Tint Siemens PLC S7-200
PC eJY PLC ukd programming cable ESifYqufoG,fr,fqkd&if cable driver software ukd
PC xJrSm t&if install vkyfxm;&ygw,f/
'DpmtkyfrSmS7-200 twGuf programming software wpfrsKd;jzpfwJY STEP 7
MicroWIN V4.0 SP3 ukd install vkyfykHvkyfenf;az:jyxm;ygw,f/
rSwfcsuf / / STEP 7 MicroWIN V4.0 SP3 eJY cable driver ukd 'DpmtkyfeJY twlygwJY CD
xJrSm xnfhay;xm;ygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 51 -
U Soe Tint Siemens PLC S7-200
Part 2
PROGRAM READING
(TRANSLATION)
The more you learn about PLCs, the more you will be able to solve other control problems.
- 52 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 53 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 54 -
U Soe Tint Siemens PLC S7-200
eJY a&;xm;wJY
4. LD instruction awGukd condition eJY execution cGJjcm;NyD;
odxm;&ygr,f/
Contact Symbol awGeJYa&;xm;wJhtydkif;udk conditional part (jzpf&r,fhtajctae)
ydkif;vdkY ac:ygw,f/ Read instruction awGjzpfMuygw,f/
Open contact u (ON jzpfae&r,f) vkdY t"dyg,f &wJY Coded Symbol jzpfyg
w,f/ Closed contact u (OFF jzpfae&r,f) vkdY t"dyg,f &wJY Coded Symbol
jzpfygw,f/
Coil Symbol awGeJY a&;xm;wJhtydkif;udk Executional part (vkyf&r,fhvkyfief;) ydkif;
vdkY ac:ygw,f/ Write instruction jzpfygw,f/
Coil symbol u (ON jzpfatmif vkyfvdkufyg) vkdY t"dyg,f&wJY Coded Symbol
jzpfygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 55 -
U Soe Tint Siemens PLC S7-200
Logic AND
Sw 1 Sw 1
Lamp AND Lamp
Sw 2 Sw 2
Sw 1 Sw 2 Lamp Sw 1 Sw 2 Lamp
OFF OFF OFF 0 0 0
OFF ON OFF 0 1 0
ON OFF OFF 1 0 0
ON ON ON 1 1 1
'gudk ON/OFF tpm; 0/1 eJU
azmfjyr,fqdk&if 0 [m OFF jzpfaew,fqdkwmudk azmfjyygw,f/ 1 [m ON jzpfaew,f
qdkwmudk azmfTef;ygw,f/
txuffyHkrSm jyxm;wJhtwkdif; input 2ck udk AND vkyfxm;&if tJ'D input 2ck pvHk;
ON jzpfrS output (logic AND &JU result) u ON jzpfygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 56 -
U Soe Tint Siemens PLC S7-200
Logic OR
Sw 1 Sw 1
Lamp OR Lamp
Sw 1 Sw 2
yHkwGif Logic OR function ukd 2-input OR &JU Logic Gate Symbol, Truth Table awGeJY
OR &JU obm0udk &Sif;vif;azmfjyxm;wm jzpfygw,f/
Logic OR qkdwmuawmh OR vkyfxm;wJh input awGtm;vHk;xJu 1-ck ON jzpf
vkdufwmeJY OR &JU logic result (Output) u ON jzpfoGm;ygw,f/ Logic OR &JU input
awGtm;vHk; ON jzpf&ifvnf; OR vkyfvkdY &vmwJh result (Output) u ON jzpfygw,f/
Logic OR qkdwmudk 1-ck ( One ) vkdY rSwfom;xm;yg/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 57 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 58 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 59 -
U Soe Tint Siemens PLC S7-200
ANDing
Condition ydkif; Execution ydkif;
jzpf&r,fhtajctae vkyf&r,fhvkyfief;
ON
I0.1
OFF
ON
Q0.0
OFF
Condition awGukd AND vkyfxm;&if? condition tm;vkH; True jzpfrS AND &JU Logic
result u True jzpfygw,f/
'D Instruction pmaMumif;&JU t"dyg,fu I0.0 a&m I0.1 yg ESpfckpvkH; ON jzpfaerS Q0.0
ukd ON ygvkdY PLC ukd ckdif;xm;wm jzpfygw,f/
'gaMumifh I0.0 = ON AND I0.1 = ON jzpf&if Q0.1 u ON jzpfoGm;ygw,f/
I0.0 = OFF jzpf&if Q0.0 u OFF jzpfoGm;ygw,f/
I0.1 = OFF jzpf&ifvnf; Q0.0 u OFF jzpfoGm;ygw,f/
'D Instruction pmaMumif;udk zwfwJhtcg? Examine_ON I0.0 AND Examine_ON
I0.1, if they are true, execute Output Q0.0 vdkY zwf&ygw,f/
rSwfcsuf/ / Logic AND, Logic OR taMumif ;ukd PLC vrf;nTefpmtkyf? pmrsufESm (118) rSm
jynfhjynfhpkHpkH az:jyxm;ygw,f /
The more you learn about PLCs, the more you will be able to solve other control problems.
- 60 -
U Soe Tint Siemens PLC S7-200
ANDing
Condition ydkif; Execution ydkif;
jzpf&r,fhtajctae vkyf&r,fhvkyfief;
Condition awGukd AND vkyfxm;&if? condition tm;vkH; True jzpfrS AND &JU Logic
result u True jzpfygw,f/
'D Instruction pmaMumif;&JU t"dyg,fu I0.0 u ON jzpfNyD;? I0.1 u OFF jzpfaerS
Q0.0 ukd ON ygvkdY PLC ukd ckdif;xm;wm jzpfygw,f/
ON
I0.1
OFF
ON
Q0.0
OFF
The more you learn about PLCs, the more you will be able to solve other control problems.
- 61 -
U Soe Tint Siemens PLC S7-200
ANDing
Condition ydkif; Execution ydkif;
jzpf&r,fhtajctae vkyf&r,fhvkyfief;
ON
I0.0
OFF
ON
I0.1
OFF
ON
Q0.0
OFF
Condition awGukd AND vkyfxm;&if? condition tm;vkH; True jzpfrS AND &JU Logic
result u True jzpfygw,f/
'D Instruction pmaMumif;&JU t"dyg,fu I0.0 a&m I0.1 yg OFF jzpfaerS Q0.1 ukd ON
ygvkdY PLC ukd ckdif;xm;wm jzpfygw,f/
'gaMumifh I0.0 = OFF AND I0.1 = OFF jzpf&if Q0.1 u ON jzpfoGm;ygw,f/
I0.0 = ON jzpf&if Q0.1 u OFF jzpfoGm;ygw,f/
I0.1 = ON jzpf&ifvnf; Q0.1 u OFF jzpfoGm;ygw,f/
'D Instruction pmaMumif;udk zwfwJhtcg? Examine_OFF I0.0 AND Examine_OFF
I0.1, if they are true, execute Output Q0.1 vdkY zwf&ygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 62 -
U Soe Tint Siemens PLC S7-200
ORing
ON
I0.1
OFF
ON
Q0.0
OFF
The more you learn about PLCs, the more you will be able to solve other control problems.
- 63 -
U Soe Tint Siemens PLC S7-200
ORing
ON
I0.1
OFF
ON
Q0.0
OFF
The more you learn about PLCs, the more you will be able to solve other control problems.
- 64 -
U Soe Tint Siemens PLC S7-200
ORing
ON
I0.1
OFF
ON
Q0.1
OFF
The more you learn about PLCs, the more you will be able to solve other control problems.
- 65 -
U Soe Tint Siemens PLC S7-200
ANDing A
ORing C
ANDing B
ConditionawGukd AND t&ifvkyfxm;NyD;rS? tJ'D AND_block ESpfck A eJY B ukd OR
jyefvkyfxm;wm jzpfygw,f/ tJ'D OR_block C &JU result u True jzpfrS Q0.2 ukd ON vkyf
ygw,f/
Status Time Diagram
ON
I0.0
OFF
ON
I0.1
OFF
ON
I0.3
OFF
I0.4 ON
OFF
ON
Q0.2
OFF
The more you learn about PLCs, the more you will be able to solve other control problems.
- 66 -
U Soe Tint Siemens PLC S7-200
ANDing A
ORing C
ANDing B
ON
I0.1
OFF
ON
Q1.0
OFF
The more you learn about PLCs, the more you will be able to solve other control problems.
- 67 -
U Soe Tint Siemens PLC S7-200
ORing
ORing
B
A
ON
I0.1
OFF
ON
I0.3
OFF
ON
I0.4
OFF
ON
Q0.2
OFF
The more you learn about PLCs, the more you will be able to solve other control problems.
- 68 -
U Soe Tint Siemens PLC S7-200
ANDing C
ORing
ORing
B
A
ON
I0.1
OFF
ON
Q1.0
OFF
The more you learn about PLCs, the more you will be able to solve other control problems.
- 69 -
U Soe Tint Siemens PLC S7-200
'D Instruction pmaMumif;&JU t"dyg,fu Q0.0 udk ON jzpfapzdkY I0.0 odkYr[kwf Q0.0
wpfckck ON jzpfaeNyD; I0.1 vnf; ON jzpfae&ygr,f/
Q0.0 = ON jzpfNyD;oGm;wJhtcgrSm I0.0 = OFF jzpfoGm;ayr,fh Q0.0 uawmhqufNyD;
ON jzpfaeygw,f/ tJ'gukd Self-holding function vkdY ac:ygw,f/
Start Pushbutton ukd (ESdyfrS ON wJY) N.O okH;xm;NyD;? Stop Pushbutton ukd (ESdyfrS OFF
wJY) N.C okH;xm;ygw,f/ Start P.B (N.O) ukd ESdyfNyD;jyefvTwfvkduf&if Lamp u ON jzpf
aecJYygw,f/ Stop P.B (N.C) ukd ESdyfvkdufawmhrS Lamp u OFF jyefjzpfygw,f/
Examine_ON I0.0 eJY Examine_ON Q0.0 udk OR vkyfxm;wmukd OR_block vkdY
ac:ygw,f/ tJ'D OR_block eJY Examine_ON I0.1 udk AND vkyfxm;wmjzpfygw,f/
'gaMumifh
I0.0 = ON eJY Q0.0 = OFF jzpfNyD;? I0.1 = ON jzpf&ifvnf; Q0.0 ukd ON jzpfapyg
w,f/
I0.0 a&m Q0.0 yg ON jzpfNyD;? I0.1 = ON jzpf&ifvnf; Q0.0 ukd ON jzpfapygw,f/
I0.0 = OFF eJY Q0.0 = ON jzpfNyD;? I0.1 = ON jzpf&ifvnf; Q0.0 ukd ON jzpfapyg
w,f/
I0.0 = OFF eJY Q0.0 = ON jzpfaewJYtcsdef? I0.1 = OFF jzpfoGm;rSom Q0.0 ukd OFF
jzpfapygw,f/
I0.0 = OFF eJY Q0.0 = OFF jzpfaewJYtcsdef? I0.1 = ON jzpfaeayr,fh Q0.0 u OFF
yJ jzpfaeygw,f/
I0.0 = ON eJY Q0.0 = OFF jzpfNyD;? I0.1 = OFF jzpfae&ifvnf; Q0.0 ukd OFF jzpfap
ygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 70 -
U Soe Tint Siemens PLC S7-200
Start A Stop A
Motor A
Motor B
Interlocking
Start B Stop B
Motor B
Motor A
'D program &JU 'kwd,pmaMumif; 2nd Instruction line rSmygwJY ukd xnfha&;&
wmu Q0.1 = ON jzpfae&if Q0.2 ukd ON rjzpfapcsifvkdY jzpfygw,f/
Q0.1 u ON jzpfae&if Q0.2 ukd ON vkdY r&atmif? Q0.2 u ON jzpfae&if Q0.1 ukd
ON vkdY r&atmif? wenf;ajym&&if Q0.1 a&m Q0.2 yg 2-ckNyKdifwl ON vkdY r&atmif t
ajctae owfrSwfay;xm;wmrsKd;ukd Interlock vkdY ac:ygw,f/
Q0.1 eJY Q0.2 ESpfckpvkH; OFF jzpfae&if b,fwpfckukdjzpfjzpf t&ifpNyD; ON vkdY &yg
w,f/ 'D program rSm OD;pm;ay; priority owfrSwfxm;wmr&Sdygbl;/
Motor Forward / Reverse control program rSm fail-safe jzpfatmifvkdY 'Dvkd interlock
okH;NyD; a&;avY&Sdygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 71 -
U Soe Tint Siemens PLC S7-200
(BlockB)blockAeJY OR
A
vkyfxm;
C
(BlockD)BlockCeJYOR
D
vkyfxm;
'D program ukd bmomjyef&&if I0.3 = ON eJY T37 = ON ukd block_A tjzpf AND
vkyfxm;ygw,f/ I0.3 a&m T37 yg ON jzpfaerS block_A &JU logic result u true jzpfyg
w,f/
tJ'D block_A eJY I0.0 = ON eJYukd OR xyfvkyfxm;ygw,f/ tJ'gukd block_B vkdY t
rnfay;xm;ygw,f/
Block_B eJY T38 = ON ukd AND vkyfxm;ygw,f/ tJ'gukd block_C vkdY emrnfwwf
xm;ygw,f/
Block_C eJY I1.0 = ON ukd OR xyfvkyfxm;ygw,f/ Block_C &JU logic result u true
jzpf&if? (okdYr[kwf) I1.0 u ON jzpf&if? Q0.1 = ON jzpfygw,f/
Status Time Diagram
ON
I0.0
OFF
ON
I0.3
OFF
ON
T37
OFF
ON
T38
OFF
ON
I1.0
OFF
ON
Q0.1
OFF
The more you learn about PLCs, the more you will be able to solve other control problems.
- 72 -
U Soe Tint Siemens PLC S7-200
ON
Q0.0
OFF
The more you learn about PLCs, the more you will be able to solve other control problems.
- 73 -
U Soe Tint Siemens PLC S7-200
u I0.0 = OFF jzpf&if false jzpfNyD;? I0.0 = ON jzpf&if true jzpfvkdYrkdY I0.0 =
OFF to ON jzpf&if false to true jzpfygw,f/
ON ON for 1 scan
Q0.1
OFF
The more you learn about PLCs, the more you will be able to solve other control problems.
- 74 -
U Soe Tint Siemens PLC S7-200
u I0.0 = OFF jzpf&if false jzpfNyD;? I0.0 = ON jzpf&if true jzpfvkdYrkdY I0.0 =
ON to OFF jzpf&if true to false jzpfygw,f/
ON
I0.0 OFF
ON ON for 1 scan
Q0.1 OFF
The more you learn about PLCs, the more you will be able to solve other control problems.
- 75 -
U Soe Tint Siemens PLC S7-200
rSwfcsuf/ / PLC tvkyfvkyf ykHtaMumif ; Scan Cycle ukd PLC vrf;nTefpmtkyf? pmrsufES m (180)
rSm az:jyxm;ygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 76 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 77 -
U Soe Tint Siemens PLC S7-200
1. Input Scan
3. Output Scan
2. Program Scan
The more you learn about PLCs, the more you will be able to solve other control problems.
- 78 -
U Soe Tint Siemens PLC S7-200
PLC u tqifhoHk;qifh eJU tvkyfvkyfygw,f/ 'gudk PLC scan vdkU ac:ygw,f/ PLC
u LD program udk zwfwJhtcgrSm jrefrmpmudk zwfovdkrsdK; tay:qHk;taMumif;udk
pzwfygw,f/ b,fupNyD; nmtqHk;a&mufoGm;&if atmufwpfaMumif;ukd qif;zwfyg
w,f/
Input scan vkyfw,fqkdwmu PLC &JU input terminal tm;vkH;rSm signal &Sd? r&Sdukd
ppfaq;NyD;? awGUwJYtwkdif; result (signal &Sd&if ON, signal r&Sd&if OFF) ukd input memory
rSm a&;rSwfygw,f/ PLC &JU input terminal tm;vkH;ukd ppfaq;NyD;oGm;&if Input Scan &JU
tvkyf NyD;qkH;ygw,f/
Program Scan vkyfaewJYtcsdefwGif PLC &JU input terminal rSm signal tajctae
ajymif;vJrI jzpfay:vm&if PLC u csufcsif;rodyg/ Next Input Scan a&mufrS odyg
w,f/
rSwfcsuf / / STEP 7-Micro/WIN eJY LD program a&;wJYtcg END ukd xnfha&;ay;p&m rvkd
ygbl;/ a&;vkdY vnf; r&ygbl;/ STEP 7-MicroWIN xJrSm Conditional END om
yg&Sdygw,f /
The more you learn about PLCs, the more you will be able to solve other control problems.
- 79 -
U Soe Tint Siemens PLC S7-200
Program Scan vkyfaewJYtcsdefwGif PLC &JU input terminal rSm signal tajctae
ajymif;vJrI jzpfay:vm&if PLC u csufcsif;odatmif immediate read instruction ukd
okH;&ygw,f/
Program Scan vkyfaewJYtcsdefrSm instruction pmaMumif;wpfaMumif;ukd aqmif&Guf
NyD;wkdif;? (execute vkyfNyD;wkdif;) &vmwJY&vm'f result ukd memory rSmom a&;rSwfxm;NyD;
output terminal qDukd csufcsif;rykdYyg/ Output Scan vkyfawmhrS output terminal ukd signal
a&mufwm (update vkyfwm) jzpfygw,f/
Program Scan vkyfaewJYtcsdefrSm instruction pmaMumif;wpfaMumif;ukd aqmif&Guf
NyD;wkdif;? (execute vkyfNyD;wkdif;) &vmwJY&vm'f result ukd output terminal qD csufcsif;
a&mufapcsif&if Immediate Output Instruction ukd okH;&ygw,f/
Immediate rsm;&JUvkyfaqmifykHukd
Instruction EIdif;,SOfavYvmEkdifatmif
atmufrSm erlema&;NyD; t"dyg,f&Sif;jyxm;ygw,f/
'Dvkda&;xm;&if
Program Scan vkyfaewJYtcsdeftwGif;rSm Input Terminal 1.2 wGif signal a&muf&Sdvm
cJY&if? ykHrSeftm;jzifh Next Input Scan a&mufrSom I1.2 = ON jzpfaew,fqkdwmukd PLC u
odygw,f/ Input terminal 1.2 wGif signal a&mufvmwJYtcsdefxuf one scan aemufus
NyD;rS Q0.0 u ON ygw,f/ xkdYjyif Output scan vkyfawmYrSom output terminal 0.0 ukd
ON signal a&muf&Sdygw,f/
'Dvkda&;xm;&if
Program Scan vkyfaewJY tcsdefrSm Input Terminal 1.2 wGif signal a&mufvm&if
I1.2 = ON jzpfaeNyD qkdwmukd PLC u csufcsif;odygw,f/ Program ukd ajz&Sif;aqmif
&GufrI execute vkyfwJYtcg I1.2 = ON jzpfaewmukd todtrSwfjyKNyD; program ukd ajz&Sif;
aqmif&Gufygw,f/ Input terminal 1.2 wGif signal a&mufvsifa&mufcsif; same scan
twGif;rSmyif Q0.0 u ON jzpfygw,f/ 'gayr,fh Output scan vkyfawmYrSom output
terminal 0.0 ukd ON signal a&muf&Sdygw,f/
Q0.0 u output memory rSm&SdwJY byte0 &JU bit0 jzpfygw,f/ 0.0 u output
terminal number 0 jzpf y gw,f /
The more you learn about PLCs, the more you will be able to solve other control problems.
- 80 -
U Soe Tint Siemens PLC S7-200
'Dvkda&;xm;&if
Program ukd execute vkyfaewJYtcsdeftwGif;rSm Input Terminal 1.2 wGif signal r&Sd
awmYwm jzpfay:cJY&if? Next Input Scan a&mufrSom I1.2 = OFF jzpfaew,fqkdwmukd
PLC u odygw,f/ Input terminal 1.2 rSm signal r&SdawmYwJYtcsdefxuf one scan aemuf
usNyD;rS Q0.0 u ON ygw,f/ xkdYjyif Output scan vkyfawmYrSom output terminal 0.0 ukd
ON signal a&muf&Sdygw,f/
'Dvkda&;xm;&if
Program ukd execute vkyfaewJYtcsdeftwGif;rSm Input Terminal 1.2 wGif signal r&Sd
awmh&if I1.2 = OFF jzpfoGm;wmukd PLC u csufcsif;odygw,f/ Program ukd ajz&Sif;
aqmif&GufrI execute vkyfwJYtcg I1.2 = OFF jzpfaewmukd xnfhoGif;pOf;pm;ygw,f/
Input terminal rSm signal r&Sdvsifr&Sdcsif; same scan twGif;rSmyif Q0.0 = ON jzpfayr,fh
Output Scan tcsdefa&mufawmYrSom output terminal 0.0 u ON ygw,f/
'Dvkda&;xm;&if
The more you learn about PLCs, the more you will be able to solve other control problems.
- 81 -
U Soe Tint Siemens PLC S7-200
'Dvkda&;xm;&if
'Dvkda&;xm;&if
I1.2 = OFF jzpfwmukd Input Scan tcsdefa&mufrS PLC u odygw,f/ Program Scan
wGif txufyg program ukd ajz&Sif;aqmif&GufrI execute vkyfNyD;? csufcsif; Q0.0 = ON
jzpfygw,f/ Output terminal 0.0 ukdvnf; ON signal csufcsif;a&mufygw,f/ Output scan
tcsdefa&mufwJYtxd apmifhqkdif;raeygbl;/
'Dvkda&;xm;&if
The more you learn about PLCs, the more you will be able to solve other control problems.
- 82 -
U Soe Tint Siemens PLC S7-200
ON
Reset I0.1
Q0.1 OFF
Reset ON
Q0.0 I0.2
OFF
ON
Q0.0
OFF
ON
Q0.1
OFF
The more you learn about PLCs, the more you will be able to solve other control problems.
- 83 -
U Soe Tint Siemens PLC S7-200
t"dyg,f&Sif;vif;csuf
rSmygwJY 2 &JU t"dyg,fu Q0.0 eJY Q0.1 pkpkaygif; 2-ckukd set vkyfygvkdU
a&;xm;wm jzpfygw,f/
txufyg program wGif I0.0 = ON jzpf&if Q0.0, Q0.1 wkdYukd ON vkdufygvkdU a&;
xm;wm jzpfygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 84 -
U Soe Tint Siemens PLC S7-200
Reset ON
I0.1
Q0.1 OFF
Reset ON
Q0.0 I0.2
OFF
ON
Q0.0
OFF
ON
Q0.1
OFF
The more you learn about PLCs, the more you will be able to solve other control problems.
- 85 -
U Soe Tint Siemens PLC S7-200
Status time diagram rSm az:jyxm;wmu Q0.0 ukd SR eJY a&;xm;NyD;? Q0.1 ukd RS eJY
a&;xm;wmjzpfygw,f/
Set condition (I0.0 = ON) wpfckwnf; true jzpf&if Q0.0 a&m Q0.1 yg ON jzpfyg
w,f/
Reset condition (I0.1 = ON) wpfckwnf; true jzpf&if Q0.0 a&m Q0.1 yg OFF jzpfyg
w,f/
Set condition a&m reset condition yg 2-ckpvkH; NydKifwl true jzpfcJY&if SR eJY a&;xm;
wJY Q0.0 u ON jzpfNyD;? RS eJY a&;xm;wJY Q0.1 u OFF jzpfygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 86 -
U Soe Tint Siemens PLC S7-200
ON
Reset
I1.3
Q0.0 OFF
ON
Q0.0
OFF
The more you learn about PLCs, the more you will be able to solve other control problems.
- 87 -
U Soe Tint Siemens PLC S7-200
Reset ON
Q0.0 I1.3
OFF
ON
Q0.0
OFF
The more you learn about PLCs, the more you will be able to solve other control problems.
- 88 -
U Soe Tint Siemens PLC S7-200
Lamp
ON
Q0.0 OFF
The more you learn about PLCs, the more you will be able to solve other control problems.
- 89 -
U Soe Tint Siemens PLC S7-200
INC_B &JU EN (enable input) condition u True jzpf&if ENO (enable output) u
vnf; True jzpfygw,f/ IN (input byte) tjzpfowfrSwfxm;wJY Q0 xJu &SdNyD;om;wefzkd;
present value xJukd 1 digit aygif;xnfhNyD; &vm'f result ukd OUT (output byte) tjzpf
owfrSwfxm;wJY Q0 xJrSm a&;rSwfygw,f/ Program a&;wJYtcg txufrSmjyxm;ovkd P
(positive transition) ukd xnfha&;rSom I1.2 wpfcg ON &if 1 digit ukd Q0 xJ wpfcg
aygif;xnfhygw,f/
Q0 xJrSm tpu bmrSr&Sd&if 0 digit jzpfygw,f/ I1.2 wpfcg ON &if Q0 xJrSm&SdwJY
0 ukd 1 aygif;NyD; &vmwJY 0+1=1 ukd Q0 xJrSm a&;rSwfygw,f/ tckcsdefrSm Q0 &JU present
value u 1 jzpfoGm;ygNyD/ 'DtcsdefrSm I1.2 wpfcgxyf ON &if Q0 xJrSm&SdwJY 1 ukd 1 aygif;
NyD; &vmwJY 1+1=2 ukd Q0 xJrSm a&;rSwfygw,f/ tckcsdefrSm Q0 &JU present value u 2
jzpfoGm;ygw,f/ I1.2 wpfcgxyf ON &if Q0 xJrSm 3 jzpfoGm;ygw,f/
tu,fa&GUom atmufrSmaz:jyxm;ovkd P (positive transition) condition ukd xnfh
ra&;cJY&if I1.2 = ON jzpfaeoa&GU scan wkdif;? scan wkdif;? 1 digit ukd xyfcgxyfcgaygif;
xnfhaeygw,f/ I1.2 = ON jzpfaewm Mum&ifMumovkd digit ta&twGuf wkd;yGm;aeyg
w,f/ Increment qufwkduf jzpfaeygw,f/
Q0 xJrSm tpu bmrSr&Sd&if 0 digit jzpfygw,f/ I1.2 = ON jzpfNyD; 1st scan rSm 0 ukd
1 aygif;NyD; &vmwJY 0+1=1 ukd Q0 xJrSm jyefa&;wmjzpfvkdY Q0 xJrSm 1 jzpfoGm;ygw,f/
2nd scan rSm 1 xyfaygif;NyD; Q0 xJrSm 1+1=2 jzpfoGm;ygw,f/ 3rd scan rSm 2+1=3 jzpfoGm;
ygw,f/ 4rd scan rSm 3+1=4 jzpfoGm;ygw,f/ 1 scan jynfhzkdYMumwJYtcsdefu ykHrSeftm;jzifh
0.05ms to 50ms jzpfygw,f/ 1 scan ukd 1 ms vkdY xm;wGuf&if I1.2 = ON jzpfwm 1sec
Mum&if 1s = 1000ms rSm scan aygif; tBudrf 1000 jzpfvkdY 1000 digits wkd;ygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 90 -
U Soe Tint Siemens PLC S7-200
Q0 qkdwmu output memory xJu byte 0 jzpfygw,f/ Q0.0 qkdwmu output byte 0
&JU bit0 jzpfygw,f/
atmufuykHeJY ,SOfwGJMunfh&ifoabmaygufygvdrfhr,f/
Byte 0 xJrSm bit0 to bit7 txd yg&Sdygw,f/
Q0 xJrSm Q0.0 to Q0.7 txd yg&Sdygw,f/
27 26 25 24 23 22 21 20
128 64 32 16 8 4 2 1
b7 b6 b5 b4 b3 b2 b1 b0
Q0.7 Q0.6 Q0.5 Q0.4 Q0.3 Q0.2 Q0.1 Q0.0
rSwfcsuf/ / PLC &JU Memory xJrSma&;rSwfwJY Number System taMumif;ukd PLC vrf;nT ef
pmtkyf ? pmrsuf ESm (108) rSmaz:jyxm;ygw,f /
The more you learn about PLCs, the more you will be able to solve other control problems.
- 91 -
U Soe Tint Siemens PLC S7-200
DEC_B &JU
EN (enable input) u True jzpf&if ENO (enable output) uvnf; True
jzpfygw,f/ DEC_B &JU EN (enable input) condition u True jzpf&if ENO (enable
output) uvnf; True jzpfygw,f/
DEC_B &JU EN (enable input) u True jzpf&if IN (input byte) tjzpf owfrSwfxm;
wJY Q0 xJu &SdNyD;om;wefzkd; present value xJu 1 digit (decrease) EIwfNyD;&wJY &vm'f
result ukd OUT (output byte) tjzpfowfrSwfxm;wJY Q0 xJrSm jyefa&;ygw,f/
Program a&;wJYtcg txufrSmjyxm;ovkd P (positive transition) condition ukd
xnfha&;rSom I1.2 = ON wpfcgjzpfwkdif; Q0 xJu 1 digit ukd EIwf,lygw,f/ P rygyJ a&;
cJY&if scan wkdif;? scan wkdif; 1 digit ukd EIwf,laeygvdrfhr,f/
Q0 xJrSm tpu 10 &SdcJY&if I1.2 wpfcg ON &if Q0 xJrSm&SdwJY 10 xJu 1 ukd EIwfNyD;
10 1 = 9 ukd Q0 xJrSma&;rSwfygw,f/ tckcsdefrSm Q0 &JU present value u 9 jzpfoGm;yg
w,f/ 'DtcsdefrSm I1.2 wpfcgxyf ON &if Q0 xJrSm&SdwJY 9 xJu 1 EIwNf yD; 8 ukd Q0 xJrSm
a&;rSwfygw,f/ tckcsdefrSm Q0 &JU present value u 8 jzpfoGm;ygw,f/ I1.2 wpfcgxyf
ON &if Q0 xJrSm 7 jzpfoGm;ygw,f/
atmufrSmaz:jyxm;ovkd P rygbJ a&;xm;&if? scan wkdif;? scan wkdif;? 1 digit ukd
EIwf,lygw,f/
I1.2 = ON 1st scan rSm 1 digit ukd Q0 xJu EIwf,lNyD; result ukd Q0 xJrSmyJ
jzpfNyD;
jyefa&;ygw,f/ 2nd scan rSm aemufxyf 1 digit ukd Q0 xJu EIwf,lNyD; result ukd Q0 xJ
rSmyJ jyefvnfa&;rSwfygw,f/
I1.2 u ON jzpfwmMumoavmuf scan aygif;rsm;pGm jzpfay:ygw,f/ 1 scan rSm 1
digit EIwf,lwmjzpfvkdY I1.2 wpfcg ON wmeJY digit aygif;rsm;pGmukd Q0 xJu EIwf,lNyD;om;
jzpfoGm;ygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 92 -
U Soe Tint Siemens PLC S7-200
QW1 = 47531
Q2 Q1
The more you learn about PLCs, the more you will be able to solve other control problems.
- 93 -
U Soe Tint Siemens PLC S7-200
txufygykHu Relay output 10-ckygwJY S7-200 CPU224 &JU output terminal jzpfNyD;
u bmqufoG,frIrSr&SdwJY no connection jzpfygw,f/
Output memory address awGuawmh Q0 (Q0.0, Q0.1, Q0.2, Q0.3, Q0.4, Q0.5,
Q0.6, Q0.7) eJY Q1 (Q1.0, Q1.1, Q1.2, Q1.3, Q1.4, Q1.5, Q1.6, Q1.7) wkdY jzpfMuygw,f/
Output memory Q0.0, Q0.1, Q0.2, Q0.3 wkdYtwGuf output terminal 1L, 0.0, 0.1,
0.2, 0.3 wkdY jzpfMuygw,f/ Q0.4, Q0.5, Q0.6 wkdYtwGuf terminal 2L, 0.4, 0.5, 0.6 wkdY jzpf
Muygw,f/ Q0.7, Q1.0, Q1.1 wkdYtwGuf terminal 3L, 0.7, 1.0, 1.1 wkdY jzpfMuygw,f/
Q1.2, Q1.3, Q1.4, Q1.5, Q1.6, Q1.7 wkdYtwGuf output terminal ryg&Sdygbl;/
1L, 2L, 3L wkdYu common terminal awGjzpfMuygw,f/
QW1 xJuwefzkd; 47531 jzpfoGm;wJYtcg Q1 xJu (Q1.0, Q1.1, Q1.3, Q1.5, Q1.7),
Q2 xJu (Q2.0, Q2.3, Q2.4, Q2.5, Q2.7) wkdY ON jzpfaeMuygw,f/
Output terminal 10-ckom &SdwmjzpfvkdYrkdY Q1.0 ESifY Q1.1 wkdYu ay;ykdYwJY signal rsm;
ukdom output terminal 1.0 eJY 1.1 wkdYu &&Sdygw,f/
S7-200 CPU224 u digital expansion module 7-cktxd xyfrHwkd;csJUqufoG,fvkdY &
ygw,f/
S7-200 CPU224 ukd relay output 16-ckygwJY expansion module (6ES7 223-1PL22-
0XA0) eJY xyfqufvkduf&if atmufrSmaz:jyxm;ovkd output terminal awGwkd;vmyg
w,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 94 -
U Soe Tint Siemens PLC S7-200
Output memory address awGuawmh Q2 (Q2.0, Q2.1, Q2.2, Q2.3, Q2.4, Q2.5,
Q2.6, Q2.7) eJY Q3 (Q3.0, Q3.1, Q3.2, Q3.3, Q3.4, Q3.5, Q3.6, Q3.7) wkdY jzpfMuygw,f/
Output terminal 1L, .0, .1, .2, .3, wkdYu output memory Q2.0, Q2.1, Q2.2, Q2.3,
wkdYtwGuf jzpfygw,f/ 2L, .4, .5, .6, .7 wkdYu Q2.4, Q2.5, Q2.6, Q2.7 wkdYtwGuf
jzpfygw,f/ 3L, .0, .1, .2, .3, wkdYu Q2.0, Q2.1, Q2.2, Q2.3 wkdYtwGuf jzpfygw,f/ 4L, .4,
.5, .6, .7 wkdYu Q2.4, Q2.5, Q2.6, Q2.7 wkdYtwGuf jzpfMuygw,f/
S7-200 CPU224 wGif Input 16-ck eJY relay output 16-ck yg0ifwJY expansion module
(6ES7 223--1PL22--0XA0) ukd wkd;csJUwwfqifxm;r,fqkd&if QW1 xJuwefzkd; 47531
jzpfoGm;wJY tcg Q2.7, Q2.5, Q2.4, Q2.3, Q2.0 wkdYukdom expansion module &JU output
terminal uwqifh &&SdrSmjzpfNyD; Q1.7, Q1.5, Q1.3, Q1.1, Q1.0 wkdYuawmh output terminal
ukd a&muf&SdvmrSmr[kwfygbl;/
S7-200 CPU224 &JU output memory xJu Q0, Q1 wkdY[m main module twGuf jzpf
NyD;? Q2, Q3 wkdYu awmh 1st output expansion module twGuf jzpfygw,f/ Q4, Q5 wkdYu
awmh 2nd output expansion module twGuf jzpfygw,f/
S7-200 CPU224 ukd relay output 8-ckygwJY expansion module (Order No. 6ES7 223-
1PH22-0XA0) eJY xyfqufvkduf&if atmufrSmaz:jyxm;ovkd output terminal awG
wkd;vmygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 95 -
U Soe Tint Siemens PLC S7-200
Output terminal 1L, .0, .1, .2, .3, wkdYu output memory Q2.0, Q2.1, Q2.2, Q2.3,
wkdYtwGuf jzpfygw,f/ 2L, .4, .5, .6, .7 wkdYu Q2.4, Q2.5, Q2.6, Q2.7 wkdYtwGuf
jzpfMuygw,f/
1L, 2L wkdYu common terminal awG jzpfMuygw,f/
Output memory Q3.0, Q3.1, Q3.2, Q3.3, Q3.4, Q3.5, Q3.6, Q3.7 wkdYtwGuf output
terminal awG ryg&Sdygbl;/
QW1 xJuwefzkd; 47531 jzpfoGm;wJYtcg Q1 xJu (Q1.0, Q1.1, Q1.3, Q1.5, Q1.7),
Q2 xJu (Q2.0, Q2.3, Q2.4, Q2.5, Q2.7) wkdY ON jzpfMuygw,f/
'gaMumifh QW1 xJuwefzkd;[m 47531 jzpfae&if Q2.7, Q2.5, Q2.4, Q2.3, Q2.0
wkdYukdom expansion module &JU output terminal uwqifh &&SdrSmjzpfNyD; Q1.7, Q1.5, Q1.3,
Q1.1, Q1.0 wkdYuawmh terminal r&SdwJY output memory awGjzpfMuvkdY output terminal ukd
signal a&muf&SdvmrSmr[kwfygbl;/
txufyg program wGif INC_W ukd a&;wJYtcg IN rSmvnf; QW1 jzpfNyD;? OUT
rSmvnf; QW1 jzpfae wmrkdYvkdY P (positive transition) ukd xnfha&;&wmjzpfygw,f/
wu,fvkdYom atmufrSmaz:jyxm;ovkd INC_W ukd a&;wJYtcg IN rSm VW0 jzpf
NyD; OUT rSm VW10 jzpfcJY&if P xnfha&;p&mrvkdygbl;/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 96 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 97 -
U Soe Tint Siemens PLC S7-200
Memory Cartridge uawmh program ukd PLC &JUtjyifrSm backup tjzpf odrf;
qnf;xm;csif&if xyfrH0,f,lwwfqif&wJY memory jzpfygw,f/ oluvnf; tNrJrSwfrd
wJY non-volatile memory trsKd;tpm; jzpfygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 98 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 99 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 100 -
U Soe Tint Siemens PLC S7-200
3/ Internal memory
Internal memory qkdwmu PLC xJrSmom&SdaeNyD;? PLC &JUjyifyeJY qufoG,frI vkH;0
r&SdwJY memory awG jzpfMuygw,f/ Program xJrSmom a&;vkdY? zwfvkdY? &wJY memory bit
awGjzpfygw,f/
Bit memory M
S7-200 CPU224 xJrSm Bit Memory Area: M vkdY ac:wJY internal memory bit aygif;
(M0.0 to M31.7) 32 bytes x 8 bits = 256 bits yg&Sdygw,f/ Bit 1-ckcsif;pDukd read vkyfvkdY
&ovkd? Bit 1-ckcsif;pDukd write vnf; vkyfvkdY&ygw,f/ Bit taeeJYokH;zkdY &nff&G,fNyD; Byte
tjzpf zGJYpnf;wnfaqmufxm;wJY internal memory jzpfygw,f/
Bit 1-ckcsif;pDukd &nfTef;NyD; address ay;r,fqkd&if M[byte address].[bit address]
M0.0, M0.1, M0.2 (byte0 &JU bit0, byte0 &JU bit1, byte0 &JU bit2) pojzifh a&;&ygw,f/
Bit 8-ckygwJY byte tjzpf &nfTef;NyD; address ay;r,f qkd&if M[size][starting byte
address] MB0, MB1, MB2 (byte0, byte1, byte2) pojzifh a&;&ygw,f/
Bit 16-ckygwJY word (2 bytes) tjzpf &nfTef;NyD; address ay;r,fqkd&if
M[size][starting byte address] MW0, MW2, MW4 pojzifh a&;&ygw,f/ MW0 xJrSm
byte0 eJU byte1 yg0ifygw,f/ MW2 xJrSm byte2 eJU byte3 yg0ifygw,f/
'gaMumifh MW0, MW1 vkdY address ra&;&ygbl;/ MW0 (byte0 & byte1) xJrSmygwJY
byte1 eJY MW1 (byte1 & byte2) xJrSm ygwJY byte1 csif; xyfaevkdY jzpfygw,f/
Bit 32-ckygwJY double word (4 bytes) tjzpf &nfTef;NyD; address ay;r,fqkd&if
M[size][starting byte address] MD0, MD4, MD8 pojzifh a&;&ygw,f/ MD0 xJrSm
byte0, byte1, byte2 eJU byte3 wkdY yg0ifygw,f/ MD4 xJrSm byte4, byte5, byte6 eJU byte7
wkdY yg0ifygw,f/ MD8 xJrSm byte8, byte9, byte10 eJU byte11 wkdY yg0ifygw,f/
'gaMumifh MD0, MD2 vkdY address ra&;&ygbl;/ MD0 (byte0 to byte3) xJrSm ygwJY
byte2 & byte3 eJY MD2 (byte2 to byte5) xJrSm ygwJY byte2 & byte3 wkdY xyfaevkdY jzpfyg
w,f/
txufrSma&;jy? &Sif;jyxm;wmawGu bit memory M vkdY ac:wJY internal memory
ukd 'Dvkda&;vkdY&w,f? 'DvkdokH;vkdY&w,f? 'Dvkdra&;&bl;qkdwm odatmifvkdYom jzpfygw,f/
Internal memory M ukd bit memory vkdY ac:wJYtwkdif; program xJrSm bit taeeJYom
tokH;rsm;ygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 101 -
U Soe Tint Siemens PLC S7-200
tJ'Dvkd ajymif;csifw,fqkd&if
The more you learn about PLCs, the more you will be able to solve other control problems.
- 102 -
U Soe Tint Siemens PLC S7-200
Range 5 rSm Data Area ukd MB vkdY a&G;vkdufyg/ Offset ukd 0 xm;yg/ Number of
Elements ukd 14 xm;yg/ NyD;&if OK ukd ESdyfyg/
'Dvkdvkyfvkduf&if
MB0 to MB13 u retentive memory jzpfoGm;NyD; MB14 to MB31
u non-retentive memory jzpfoGm;ygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 103 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 104 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 105 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 106 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 107 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 108 -
U Soe Tint Siemens PLC S7-200
Special Memory SM
aemufxyfodxm;zkdY vkdtyfwJY Internal memory wpfrsKd;uawmh PLC ukd xkwfvkyf
vkdufuwnf;u olYt"dyg,feJYol owfrSwfxm;NyD;jzpfwJY special memory bit awG
jzpfMuygw,f/ byte tjzpf zGJYpnf;wnfaqmufxm;ygw,f/
S7-200 CPU224 xJrSm Special Memory SM vkdY ac:wJY internal memory bit aygif;
(SM0.0 to SM549.7) 550 bytes x 8 bits = 4400 bits yg&Sdygw,f/
tJ'D special memory xJu tokH;rsm;wJY read only SM bit wcsKdUukd atmufrSm az:
jyxm;ygw,f/
Special memory SM awG[m non-volatile memory trsKd;tpm;rsm;jzpfMuygw,f/
Special Memory Byte SMB0 (SM0.0 to SM0.7)
The more you learn about PLCs, the more you will be able to solve other control problems.
- 109 -
U Soe Tint Siemens PLC S7-200
On delay Function
ON
I0.0
OFF
ON
Q0.0 OFF
The more you learn about PLCs, the more you will be able to solve other control problems.
- 111 -
U Soe Tint Siemens PLC S7-200
Variable memory V
The more you learn about PLCs, the more you will be able to solve other control problems.
- 112 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 113 -
U Soe Tint Siemens PLC S7-200
SMB31 xJukd bmrSra&;&if SMB31 &JU bit1 (SM31.1) u 0 jzpfNyD;? SMB31 &JU bit0
(SM31.0) uvnf; 0 yJ jzpfygw,f/ SM31 &JU bit1, bit0 u 0, 0 qkd&if data size ukd
byte (8 bits) tjzpf a&G;cs,fxm;wm jzpfygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 114 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 115 -
U Soe Tint Siemens PLC S7-200
&JU
logic result u true jzpf&if tvkyf
3-rsKd;jzpfwJY
MOV_W (move word), MOV_B (move byte) eJY S (set) wkdYukd wpfrsKd;
vkyfNyD;rS aemufwpfrsKd;ukd atmufygtwkdif;vkyfygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 116 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 117 -
U Soe Tint Siemens PLC S7-200
5. Program button ukd click yg/ 'gqkd&if PLC xJu program ukd memory
cartridge xJokdY download vkyfoGm;ygvdrfhr,f/
6. Memory cartridge ukd jzKwf,lodrf;qnf;xm;csif&if PLC ukd electric power
supply ydwfNyD;rS memory cartridge ukd jzKwf,lodrf;qnf;yg/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 118 -
U Soe Tint Siemens PLC S7-200
rSwfcsuf/ / Memory cartridge ukd CPU221 okdYr[kwf CPU222 rSm wwfqif NyD; od rf;xm;wm
ukd CPU224 u zwfEkdifygw,f/ Memory cartridge ukd CPU224 rSm wwfqifNyD;
odrf;qnf; xm;wmukdawmh CPU221 odkYr[kwf CPU222 wkdYu rzwfEkd ifygbl ;/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 119 -
U Soe Tint Siemens PLC S7-200
Accumulators AC
Oyrm?
MOV_B, AC2, VB200 vkdY a&;xm;&if AC2 ukd 8-bit tpktzGJY Byte vkdY
owfrSwfNyD; tokH;jyKvkdufwm jzpfygw,f/
'Dvkda&;xm;&if
The more you learn about PLCs, the more you will be able to solve other control problems.
- 120 -
U Soe Tint Siemens PLC S7-200
Oyrm DEC_W, AC1, VW100 vkdY a&;xm;&if AC1 ukd 16-bit tpktzGJYvkdY
owfrSwfNyD; tokH;jyKvkdufwm jzpfygw,f/
'Dvkda&;xm;&if
AC1 xJrSm bit aygif; 32-ck &Sdaomfvnf; AC1 ukd Word tjzpf owfrSwfNyD; bit0 to
bit15 txd 16 bits ukdom tokH;jyKygw,f/
Oyrm INC_DW, AC3, VD250 vkdY a&;xm;&if AC3 ukd 32-bit tpktzGJYvkdY
owfrSwfNyD; tokH;jyKvkdufwm jzpfygw,f/
'Dvkda&;xm;&if
AC3 xJrSm bit aygif; 32-ck &Sdaomfvnf; AC3 ukd Double Word tjzpf owfrSwfNyD;
bit0 to bit31 txd 32 bits tm;vkH;ukd tokH;jyKygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 121 -
U Soe Tint Siemens PLC S7-200
Timer memory xJrSm Current value eJY Timer bit qkdNyD; variable 2-rsKd;
yg&Sdygw,f/
Current value qkdwmu timer u a&wGufNyD;om; ta&twGufjzpfygw,f/ Current
value (Present value) ukd timer twGuf owfrSwfay;xm;wJY 16-bit tpktzGJYjzpfwJY word
xJrSm a&;rSwfygw,f/
Timer bit uawmh timer u ola&wGuf&r,fh ta&twGuf PT (Preset Time) ukd
a&wGufaeqJqkd&if tJ'D timer bit u OFF jzpfaeygw,f/ Timer a&wGufNyD;wJY
ta&twGufu PT eJY nDoGm;&if tJ'D timer bit u ON jzpfoGm;ygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 122 -
U Soe Tint Siemens PLC S7-200
1. Timer trsKd;tpm; awGuawmh retentive timer eJY non-retentive timer wkdY jzpfMuyg
w,f/ TONR u retentive ON-delay timer jzpfygw,f/ TON u non-retentive ON-
delay timer jzpfygw,f/ TOF u non-retentive OFF-delay timer jzpfygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 123 -
U Soe Tint Siemens PLC S7-200
rSwfcsuf / / Retentive timer taMumif;ukd pmrsuf ESm (136) ES ifh (219) wGif Munfhyg/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 124 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 125 -
U Soe Tint Siemens PLC S7-200
ON
I0.0
OFF
3s
ON
T37
OFF
ON
T37 OFF
ON
Q1.0 OFF
The more you learn about PLCs, the more you will be able to solve other control problems.
- 126 -
U Soe Tint Siemens PLC S7-200
t"dyg,f&Sif; vif;csuf
T37 &JU current value u 150 eJYnD&if (okdYr[kwf) current value u 150 xufBuD;&if
Q0.2 u ON jzpfygw,f/ I1.2 = ON jzpfNyD; 15s tMumrSm Q0.2 u ON oGm;wmjzpfyg
w,f/ Q0.0 u Q0.2 xuf 5s apmNyD; ON ygw,f/
I1.2 = ON jzpfNyD; 5s tMumrSm Q0.1 u ON jzpfygw,f/
I1.2 = ON jzpfNyD; 10s tMumrSm Q0.0 u ON jzpfygw,f/
I1.2 = ON jzpfNyD; 15s tMumrSm Q0.2 u ON jzpfygw,f/
T37uawmh r&yfrem; time counting qufvkyfaeNyD; current value = 32767 jzpf
oGm;awmYrS counting vkyfwm&yfoGm;ygw,f/ T37 u quf ON aeygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 127 -
U Soe Tint Siemens PLC S7-200
On delay Function
ON
INPUT
OFF
OUTPUT ON
OFF
Delay
Delay ON Program
3s
ON
T37
OFF
Time counting start here
ON
T37 OFF
ON
Q1.0 OFF
The more you learn about PLCs, the more you will be able to solve other control problems.
- 128 -
U Soe Tint Siemens PLC S7-200
OFF-Delay Function
ON
INPUT
OFF
ON
OUTPUT
OFF
Delay
OFF-delay function ukd ON-delay timer function code TON eJY a&;jyxm;ygw,f/
S7-200 PLC xJrSm OFF-delay timer function code TOF qkdwm oD;jcm;yg&Sdygw,f/
I0.0 = ON jzpfae&if T37 u time counting rvkyfao;ygbl;/ Q1.0 = ON aewJY
tcsdefrSm I0.0 = OFF jzpfrSom T37 u time counting vkyfNyD; 5s jynfhawmh T37 = ON
jzpfygw,f/ T37 = ON jzpfvkdY Q1.0 u OFF jzpfoGm;ygw,f/
Status Time Diagram (using TON)
ON
I0.0
OFF
ON
T37 Time counting start here
OFF
ON
Q1.0
OFF
The more you learn about PLCs, the more you will be able to solve other control problems.
- 129 -
U Soe Tint Siemens PLC S7-200
txufyg program ukd OFF-delay timer function code TOF eJY a&;jyxm;ygw,f/
Examine_ON eJY a&;xm;wmukd *&kjyKyg/
TOF &JUvkyfaqmifcsuf function u I0.0 = ON jzpf&if T37 ucsufcsif; ON jzpfoGm;
ygw,f/ I0.0 = OFF jzpf&if T37 (TOF) u time counting pwifjyKvkyfygw,f/ Current
value eJY PT eJY nDoGm;awmh T37 u OFF jzpfoGm;ygw,f/
txufyg program wGif I0.0 = OFF jzpfNyD; 5s MumawmYrS T37 u OFF jyefjzpfyg
w,f/
T37 = ON jzpf&if Q1.0 vnf; ON ygw,f/ I0.0 = OFF jzpfNyD; 5s MumawmYrS T37
u OFF jyefjzpfvkdY Q1.0 vnf; OFF ygw,f/
I0.0 = ON &if Q1.0 = ON NyD; I0.0 = OFF jzpfNyD; 5s Mum&if Q1.0 = OFF jzpfyg
w,f/
ON 5s Delay
I0.0 OFF
ON
T37 OFF
Time counting start here
ON
Q1.0 OFF
The more you learn about PLCs, the more you will be able to solve other control problems.
- 130 -
U Soe Tint Siemens PLC S7-200
ON/OFF-delay Function
OFF
-delay
ON-delay
t"dyg,f&Sif; vif;csuf
The more you learn about PLCs, the more you will be able to solve other control problems.
- 131 -
U Soe Tint Siemens PLC S7-200
ON
T37
OFF
ON
T38
OFF
ON
Q1.0
OFF
5s 3s
The more you learn about PLCs, the more you will be able to solve other control problems.
- 132 -
U Soe Tint Siemens PLC S7-200
T33 &JU current value = 0 jzpfvkdY u false jzpfNyD; Q0.0 = OFF jzpfoGm;yg
w,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 133 -
U Soe Tint Siemens PLC S7-200
t"dyg,f&Sif; vif;csuf
T33 u 10ms timer jzpfygw,f/ M0.0 = OFF jzpf&if T33 time counting pwifvkyf
NyD; (100 x 10ms) 1s MumwJYtcg T33 = ON jzpfygw,f/
M0.0 = ON jzpf&if T33 = OFF jzpfygw,f/ Current value vnf; reset to 0 jzpfyg
w,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 134 -
U Soe Tint Siemens PLC S7-200
value
value
ON
ON ON ON ON ON
ON
OFF
PLC ukd RUN vkdufwmeJY wNydKifwnf; M0.0 u OFF jzpfaevkdY T33 u time
counting pwifjyKvkyfygw,f/
T33 u 10ms timer jzpfNyD; PT = 100 jzpfvkdY (100 x 10ms = 1000ms) 1s MumwJYtcg
T33 = ON jzpfygw,f/
T33 time counting vkyfwm 0.4s MumoGm;wJYtcsdefrSm T33 &JU current value u 40
jzpfoGm;vkdY Q0.0 u ON oGm;ygw,f/ T33 &JU current value u 40 ausmfoGm;&ifvnf;
Q0.0 uquf ON aeygw,f/
Q0.0 = ON jzpfaewm 0.6s MumoGm;awmh T33 u time counting vkyfaewmvnf;
1.0s jynfhoGm;vkdY T33 = ON jzpfoGm;ygw,f/
T33 = ON jzpf&if M0.0 vnf; ON jzpfygw,f/
M0.0 = ON jzpfvkdY T33 u OFF (reset) jzpfoGm;ygw,f/ Current value uvnf; 0
(reset) jzpfoGm;ygw,f/
T33 = ON jzpfaewm 1 scan time om MumjrifYygw,f/
T33 = OFF jzpfoGm;vkdY M0.0 vnf; OFF jyefjzpfoGm;ygw,f/
M0.0 = ON jzpfaewmvnf; 1 scan time om MumjrifYygw,f/
T33 &JU current value = 0 jzpfvkdY Q0.0 = OFF jzpfoGm;ygw,f/
Q0.0 = ON jzpfaewm 1.0s 0.4s = 0.6s MumjrifYygw,f/
PLC ukd RUN xm;oa&GU Q0.0 [m OFFtime = 0.4s, ONtime = 0.6s eJY ON vkduf
OFF vkduf qufwkdufjzpfaeygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 135 -
U Soe Tint Siemens PLC S7-200
Retentive timer awG[m timer input condition u true jzpf&if time counting pwif
jyKvkyfNyD; timer input condition u false jzpfoGm;wJYtcg time counting vkyfwm &yfoGm;
ygw,f/ Counting vkyfNyD;om;wefzkd; counted value awGukd rSwfxm;ygw,f/ Counted
value ukd accumulated value vkdYvnf; ac:ygw,f/ Counted value ukd current value vkdY
vnf; ac:ygw,f/ Timer reset jzpfawmhrS counted value ukd clear to 0 vkyfygw,f/
u timer input condition false jzpfoGm;wJYtcg time counting vkyf
Retentive timer
wm &yfkHom&yfoGm;wmjzpfNyD; timer u reset jzpfroGm;ygbl;/ Reset instruction oD;jcm;
a&;ay;&ygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 136 -
U Soe Tint Siemens PLC S7-200
ON ON ON
OFF OFF OFF
value
value
ON ON
OFF OFF
ON
OFF OFF
The more you learn about PLCs, the more you will be able to solve other control problems.
- 137 -
U Soe Tint Siemens PLC S7-200
&JU logic result u false to true jzpfrS &JU logic result u true jzpf
ygw,f/
ON
I1.2 OFF
ON
Q0.0 OFF
2 sec
The more you learn about PLCs, the more you will be able to solve other control problems.
- 138 -
U Soe Tint Siemens PLC S7-200
rSm a&;xm;
wmu I1.2 = OFF to ON jzpfrS T37 1-ckwnf; ukdom reset vkyfygvkdY t"dyg,f&ygw,f/
'kwd,pmaMumif;
rSm a&;xm;
wmuawmY Q0.0 = ON jzpfrS T37 ukd time counting vkyf ckdif;wmjzpfygw,f/ Preset time
(PT) ukd 50 vkdY a&;xm;wJYtwGuf 5s MumawmY T37 = ON jzpfoGm;ygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 139 -
U Soe Tint Siemens PLC S7-200
wwd,pmaMumif;
rSm a&;xm;
wmuawmY I1.2 = OFF to ON jzpfNyD;? T37 = OFF jzpfae&if Q0.0 ukd ON NyD;? I1.2 u
OFF jzpfoGm;&ifvnf; T37 = OFF jzpfaeoa&GU Q0.0 ukd quf ON aezkdY ckdif;xm;wm
jzpfygw,f/ 'gaMumifY T37 = ON jzpfoGm;wmeJY Q0.0 u OFF jzpfoGm;ygw,f/
ON
I1.2 OFF
ON
Q0.0 OFF < 5 sec 5 sec
I1.2 = ON jzpfNyD; 5s rjynfhrD I1.2 ukd xyfcg? xyfcg ON ay;oGm;&if Q0.0 = OFF
The more you learn about PLCs, the more you will be able to solve other control problems.
- 140 -
U Soe Tint Siemens PLC S7-200
T38 = OFF jzpf&if T37 u time counting vkyfygw,f/ Preset time (PT) ukd 5 vkYd
a&;xm;wJYtwGuf (5 x 100ms = 0.5s) MumawmY T37 = ON jzpfoGm;ygw,f/
T38 = ON jzpf&if T37 u OFF jzpfoGm;ygw,f/ Current value ukd reset to 0 vkyfyg
w,f/
T37 = ON jzpfrS T38 u time counting vkyfygw,f/ Preset time (PT) ukd 5 vkdY
a&;xm;wJYtwGuf 0.5s MumawmY T38 = ON jzpfoGm;ygw,f/
T37 = OFF jzpfoGm;&if T38 u OFF jzpfygw,f/ Current value ukd reset to 0 vkyfyg
w,f/
T37 = ON jzpf&if Q0.0 u ON jzpfygw,f/ T37 = OFF jzpf&if Q0.0 u OFF jzpfyg
w,f/
PLC ukd pwif RUN NyD; 0.5s MumwJYtcg Q0.0 u ON jzpfoGm;ygw,f/ aemufxyf
0.5s MumwJYtcg Q0.0 u OFF jyefjzpfoGm;ygw,f/ 'Dvkd ON vkduf? OFF vkduf? qufwkduf
jzpfaewmrsKd;ukd multi vibrator vkdYac:ygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 141 -
U Soe Tint Siemens PLC S7-200
Counter memory xJrSm Current value eJY Counter bit qkdNyD; variable 2-rsKd; yg&Sdyg
w,f/
Current value qkdwmu counter u a&wGufNyD;om; ta&twGuf jzpfygw,f/
Counter twGuf owfrSwfay;xm;wJY 16-bit tpktzGJYjzpfwJY word xJrSm current value ukd
a&;rSwfygw,f/
Counter bit qkdwmuawmh counter u ola&wGuf&r,fh ta&twGuf PV (Preset
Value) ukd a&wGufaeqJqkd&if tJ'D counter bit u OFF jzpfaeygw,f/ Counter u
ola&wGuf&r,fh ta&twGufukd a&wGufvkdY PV eJY nDoGm;&if tJ'D counter bit u ON
jzpfoGm;ygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 142 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 143 -
U Soe Tint Siemens PLC S7-200
Counter ukd count up vkyfckdif;wJY logic condition input (CU) u false to true jzpfrS
CTU (Up Counter) u 1 digit count up vkyfygw,f/
'D program rSm u counter ukd count up vkyfckdif;wJY logic condition jzpfNyD;
false to true jzpfzkdY qkd&if I1.2 u OFF to ON jzpf&ygr,f/
'gaMumifh I1.2 OFF to ON wpfcg jzpfwkdif; C0 u 1 digit count up vkyfygw,f/
Reset dominant qkdwmu reset condition jzpfwJY u True (I1.3 = ON) jzpf
aewJY tcsdefrSm count up condition u True (I1.2 = ON) jzpfcJY&if counter ukd
1 digit wkd;ray;yg/ (Count up rvkyfyg/)
The more you learn about PLCs, the more you will be able to solve other control problems.
- 144 -
U Soe Tint Siemens PLC S7-200
ON
Count Up I1.2
OFF
ON
Reset I1.3
OFF
3
ON
2
C0 1 1
0 0
OFF
ON
Q0.0
OFF
The more you learn about PLCs, the more you will be able to solve other control problems.
- 145 -
U Soe Tint Siemens PLC S7-200
Count Down
Reset
jzpfygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 146 -
U Soe Tint Siemens PLC S7-200
ON
Count Down I1.2
OFF
ON
Reset I1.3
OFF
OFF OFF
C0 OFF OFF
OFF
ON ON
ON
Q0.0 OFF
The more you learn about PLCs, the more you will be able to solve other control problems.
- 147 -
U Soe Tint Siemens PLC S7-200
Program
Count Up
Count Down
Reset
The more you learn about PLCs, the more you will be able to solve other control problems.
- 148 -
U Soe Tint Siemens PLC S7-200
ON
Count Up I1.2 OFF
ON
Count Down I1.3 OFF
ON
Reset I1.4 OFF
ON
ON ON
ON ON ON
C0 OFF
OFF
OFF
ON
Q0.0 OFF
Count down condition = true (I1.3 = ON) 1-cg jzpfawmh current value u 4
jzpfoGm;ygw,f/ Current value eJY PV wefzkd;eJY nDaeao;vkdY C0 u ON jzpfaeygao;
w,f/ aemuf 1-cg I1.3 = ON jzpfawmhrSom current value u 3 jzpfoGm;NyD; C0 vnf;
OFF jzpfoGm;ygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 149 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 150 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 151 -
U Soe Tint Siemens PLC S7-200
t"dyg,f&Sif;vif;csuf
The more you learn about PLCs, the more you will be able to solve other control problems.
- 152 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 153 -
U Soe Tint Siemens PLC S7-200
Q0.0, Q0.1, Q0.2, Q0.3 wkdYukd AND vkyfxm;wJY logic result u True to False jzpf&if
Q0.3 ukd reset vkyfygw,f/ Q0.3 = OFF jzpfoGm;ygw,f/
I1.2 = OFF jzpf&if Q0.0 to Q0.3 ukd reset vkyfNyD;? C1 to C3 ukdvnf; reset vkyfyg
w,f/
I1.3
Q0.0
Q0.1
Q0.2
Q0.3
The more you learn about PLCs, the more you will be able to solve other control problems.
- 154 -
U Soe Tint Siemens PLC S7-200
armfwm wpfywfvnf&if one pulse xGufwJY proximity sensor &JU pulse signal ukd
I1.3 rSwqifh PLC u &&Sdygw,f/ armfwmwpfywfvnfwkdif; VW100 xJukd 1 wkd;yg
w,f/
SM0.4 u 1 minute clock pulse jzpfygw,f/ PLC ukd RUN xm;&if 30s_ON NyD;
30s_OFF xyfcg? xyfcg? qufwkdufjzpfaeygw,f/
1 minute wpfcg VW100 xJrSm&SdwJY wefzkd;ukd VW200 xJokdY a&TUajymif;a&;rSwfNyD;rS
VW100 xJu wefzkd;ukd clear vkyfNyD; 0 jzpfapygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 155 -
U Soe Tint Siemens PLC S7-200
Part 3
PROGRAMMING
The more you learn about PLCs, the more you will be able to solve other control problems.
- 156 -
U Soe Tint Siemens PLC S7-200
Cursor
Instruction code pa&;&r,fYae&m
The more you learn about PLCs, the more you will be able to solve other control problems.
- 157 -
U Soe Tint Siemens PLC S7-200
Cursor
Instruction code pa&;&r,fYae&m
ykHrSm Cursor vkdY ac:wJY av;axmihfuGufukd b,ftpGefrSm Click csNyD; Program ukd
pwifa&;&ygw,f/
Program a&;wJYtcg tokH;jyK&wJY basic instruction code 3-rsKd; uawmh
The more you learn about PLCs, the more you will be able to solve other control problems.
- 158 -
U Soe Tint Siemens PLC S7-200
PLC &JU Input wGif Pushbutton P.B1 ukd qufoG,fNyD;? PLC &JU Output wGif Lamp L1
udk Fig.1 rSmazmfjyxm;wJhtwdkif; qufoG,fyg/
P.B 1
Lamp L1
0.0 0.0
+
24V
S7-200 CPU224
1L
AC/DC/RLY
24V
+ 1M
The more you learn about PLCs, the more you will be able to solve other control problems.
- 159 -
U Soe Tint Siemens PLC S7-200
ON
Q0.0
OFF
The more you learn about PLCs, the more you will be able to solve other control problems.
- 160 -
U Soe Tint Siemens PLC S7-200
Cursor
The more you learn about PLCs, the more you will be able to solve other control problems.
- 161 -
U Soe Tint Siemens PLC S7-200
Cursor
4.
The more you learn about PLCs, the more you will be able to solve other control problems.
- 162 -
U Soe Tint Siemens PLC S7-200
6. 7.
??.? ae&mawGrSm oufqkdif&m Operand &JU Address ukd a&;NyD; Enter acgufyg/
8. 9.
The more you learn about PLCs, the more you will be able to solve other control problems.
- 163 -
U Soe Tint Siemens PLC S7-200
10. 11.
13. pm&GufESpf&Guf
xyfay:rSmtrSefjcpf jyxm;wJY icon ay: Mouse Pointer wifvkduf&if ykHrSmjyxm;ovkd
Compile All ay:vmygw,f/ Compile All icon ukd Click yg/ Compile vkyfw,f
qkdwmu vlem;vnfwJY LD eJY a&;xm;wJY graphical symbolic code awGukd PLC em;vnf
wJY machine code (0,1) tjzpf ajymif;vkdY &? r&? ppfaq;wmjzpfygw,f/
a&;xm;wJY Program ukd PLC u em;vnfEkdifw,fqkd&if atmufrSmaz:jyxm;ovkd
Total Errors: 0 vkdY Computer screen &JU b,fbufatmufajcrSm ay:vmygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 164 -
U Soe Tint Siemens PLC S7-200
16. Download ukd click yg/
17. OK ukd click yg/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 165 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 166 -
U Soe Tint Siemens PLC S7-200
Program ukd PLC xJ download vkyfNyD;&if STEP 7-Micro/WIN u PLC ukd jyef
RUN ray;ygbl;/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 167 -
U Soe Tint Siemens PLC S7-200
21. PLC ukd jyef RUN zkdYtwGuf RUN button ukd click yg/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 168 -
U Soe Tint Siemens PLC S7-200
ON
Q0.0
OFF
Program ukd atmufygtwkdif; a&;&ygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 169 -
U Soe Tint Siemens PLC S7-200
PLC &JU Input wGif Pushbutton P.B2 ukd qufoG,fNyD; PLC &JU Output wGif Lamp
L1 udk Fig.2 rSmazmfjyxm;wJhtwdkif; qufoG,fyg/
P.B 2 Lamp L1
0.0 0.0
+
24V
S7-200 CPU224
1L
AC/DC/RLY
24V
+ 1M
Input terminal rSmaz:jyxm;wJY 0.0 u signal vufcHwJY terminal No. 0.0 jzpfNyD;?
1M u common terminal jzpfygw,f/
Input terminal No. 0.0 wGif Pushbutton P.B2 (N.C) ukd qufoG,fxm;ygw,f/
Pushbutton P.B2 (N.C) u rESdyf&if ON jzpfaeygw,f/
Common terminal 1M wGif sink input jzpfatmif sensor supply &JU 24VDC eJY
qufoG,fxm;ygw,f/
Output terminal rSmaz:jyxm;wJY 0.0 u signal xkwfay;wJY terminal No. 0.0 jzpfNyD;?
1L u common terminal jzpfygw,f/
Output terminal No. 0.0 wGif 24VDC Lamp L1 ukd qufoG,fxm;ygw,f/
Common terminal 1L wGif sink output jzpfatmif actuator supply &JU 24VDC eJY
qufoG,fxm;ygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 170 -
U Soe Tint Siemens PLC S7-200
Output memory Q0.0 u ON jzpfrSom Output terminal No. 0.0 u 24VDC ukd
&&SdNyD; Lamp L1 u ON jzpfygw,f/ Fig.2 ukd jyefMunfhyg/ Q0.0 eJY Lamp L1 wkdY&JU
qufEG,frI Relation Diagram ukd atmufrSmaz:jyxm;ygw,f/
ON
Q0.0
OFF
vif;
Lamp L1
rvif;
PLC u memory ukdom zwfEkdif? a&;Ekdif Read/Write vkyfEkdifwmjzpfvkdY P.B1 ukd
ESdyfxm;&if Lamp L1 u rD;vif; aeNyD;? ESdyfxm;wmukd jyefvTwfvkduf&if Lamp L1 u rD;
Nidrf; oGm;atmif Program a&;zkdY pOf;pm;wJYtcg P.B1 ukd ESdyf&if I0.0 u OFF jzpfoGm;vkdY
I0.0 = OFF jzpf&if Q0.0 ukd ON ygvkdY awG;NyD;? a&;&rSmjzpfygw,f/
a&;&r,fh Program ukd Status Time Diagram tjzpf atmufrSmaz:jyxm;ygw,f/
ON
I0.0
ON
Q0.0
OFF
The more you learn about PLCs, the more you will be able to solve other control problems.
- 171 -
U Soe Tint Siemens PLC S7-200
Output memory Q0.0 u ON jzpfrSom Output terminal 0.0 u 24VDC ukd &&SdNyD;
Lamp L1 u ON jzpfEkdifygw,f/ Fig.2 ukd jyefMunfhyg/ Q0.0 eJY Lamp L1 wkdY&JU qufEG,f
rI Relation Diagram ukd atmufrSmaz:jyxm;ygw,f/
ON
Q0.0
OFF
vif;
Lamp L1
rvif;
P.B2 ukd rESdyfyJxm;&if Lamp L1 u rD;vif;aeNyD;? ESdyfvkduf&if Lamp L1 u rD;Nidrf;
oGm;atmif Program a&;zkdY pOf;pm;wJYtcg P.B2 ukd rESdyf&if I0.0 u ON jzpfaewJY
twGuf I0.0 = ON jzpf&if Q0.0 ukd ON ygvkdY awG;NyD;? a&;&rSmjzpfygw,f/
Program a&;&r,fh Status Time Diagram ukd atmufrSmaz:jyxm;ygw,f/
ON
I0.0
OFF
ON
Q0.0
OFF
The more you learn about PLCs, the more you will be able to solve other control problems.
- 172 -
U Soe Tint Siemens PLC S7-200
P.B 1
Lamp L1
0.0 0.0
+
24V
S7-200 CPU224
1L
AC/DC/RLY
24V
+ 1M
I/O wiring ukd Fig.1 twkdif; P.B1 (N.O) ukd input terminal 0.0 wGif qufoG,fNyD;
Program ukd atmufygtwkdif;a&;xm;cJY&if?
P.B1 (N.O) ukd ESdyfrS I0.0 u ON jzpfwJYtwGuf P.B1 (N.O) ukd ESdyfrSom Q0.0 u
ON ygw,f/
P.B1 (N.O) ukd rESdyf&if I0.0 u OFF jzpfwJYtwGuf P.B1 (N.O) ukd rESdyf&if Q0.0
u OFF jzpfygw,f/
I/O wiring ukd Fig.1 twkdif; P.B1 (N.O) ukd input terminal 0.0 wGif qufoG,fNyD;
Program ukd atmufygtwkdif;a&;xm;cJY&if?
P.B1 (N.O) ukd rESdyf&if I0.0 u OFF jzpfwJYtwGuf P.B1 (N.O) ukd rESdyfrSom Q0.0
u ON jzpfygw,f/
P.B1 (N.O) ukd ESdyf&if I0.0 u ON jzpfwJYtwGuf P.B1 (N.O) ukd ESdyfvkduf&if Q0.0
u OFF jzpfygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 173 -
U Soe Tint Siemens PLC S7-200
P.B 2 Lamp L1
0.0 0.0
+
24V
S7-200 CPU224
1L
AC/DC/RLY
24V
+ 1M
I/O wiring ukd Fig.2 twkdif; P.B2 (N.C) ukd input terminal 0.0 wGif qufoG,fNyD;
Program ukd atmufygtwkdif;a&;xm;cJY&if?
P.B2 (N.C) ukd rESdyf&if I0.0 u ON jzpfwJYtwGuf P.B2 (N.C) ukd rESdyfrSom Q0.0
u ON jzpfygw,f/
P.B2 (N.C) ukkd ESdyf&if I0.0 u OFF jzpfwJYtwGuf P.B2 (N.C) ukd ESdyfvkduf&if Q0.0
u OFF jzpfygw,f/
I/O wiring ukd Fig.2 twkdif; P.B2 (N.C) ukd input terminal 0.0 wGif qufoG,fNyD;
Program ukd atmufygtwkdif;a&;xm;cJY&if?
P.B2 (N.C) ukd ESdyf&if I0.0 u OFF jzpfwJYtwGuf P.B2 (N.C) ukd ESdyfrSom Q0.0 u
ON jzpfygw,f/
P.B2 (N.C) ukd rESdyf&if I0.0 u ON jzpfwJYtwGuf P.B2 (N.C) ukd rESdyf&if Q0.0 u
OFF jzpfygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 174 -
U Soe Tint Siemens PLC S7-200
Fig.3rSmazmfjyxm;wJhtwdkif; PLC &JU Input wGif P.B1 (N.O) eJY P.B2 (N.O) ukd
qufoG,fNyD; PLC &JU Output wGif Lamp L1 udk qufoG,fyg/
P.B 1
Lamp L1
0.0 0.0
+
P.B 2 24V
S7-200 CPU224
0.1 1L
AC/DC/RLY
24V
+ M
P.B1
ESdyf ESdyf ESdyf
P.B2
ESdyf ESdyf ESdyf
The more you learn about PLCs, the more you will be able to solve other control problems.
- 175 -
U Soe Tint Siemens PLC S7-200
P.B1 u N.O jzpfvkdY P.B1 ukd ESdyf&if Input terminal 0.0 u 24VDC signal ukd
vufcH&&SdNyD; Input memory I0.0 u ON jzpfoGm;ygw,f/
P.B2 uvnf; N.O jzpfvkdY P.B2 ukd ESdyf&if Input terminal 0.1 u 24VDC signal ukd
vufcH&&SdNyD; Input memory I0.1 u ON jzpfoGm;ygw,f/
P.B1 eJY I0.0 wkdY&JU qufEG,frI Relation Diagram ukd atmufrSm az:jyxm;ygw,f/
ESdyf
P.B1
rESdyf
ON
I0.0
OFF
P.B2 eJY I0.1 wkdY&JU qufEG,frI Relation Diagram ukd atmufrSm az:jyxm;ygw,f/
ESdyf
P.B2
rESdyf
ON
I0.1
OFF
Output memory Q0.0 u ON jzpfrSom Output terminal 0.0 u 24VDC ukd vufcH
&&SdNyD; Lamp L1 u ON jzpfEkdifygw,f/ Fig.3 ukd jyefMunfhyg/
Q0.0 eJY Lamp L1 wkdY&JU qufEG,frI Relation Diagram ukd atmufrSm az:jyxm;yg
w,f/
ON
Q0.0
OFF
vif;
Lamp L1
rvif;
The more you learn about PLCs, the more you will be able to solve other control problems.
- 176 -
U Soe Tint Siemens PLC S7-200
I0.0
I0.1
Q0.0
rSwfcsuf / / STEP 7-Micro/WIN eJY LD program a&;wJYtcg END ukd xnfha&;ay;p&m rvkd
ygbl;/ a&;vkdY vnf; r&ygbl;/ STEP 7-Micro?WIN xJrSm Conditional END
om yg&Sdygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 177 -
U Soe Tint Siemens PLC S7-200
P.B2
ESdyf ESdyf ESdyf
Lamp L1
vif; vif; vif; vif;
rvif; rvif;
P.B1 u N.O jzpfvkdY P.B1 ukd ESdyf&if Input terminal 0.0 wGif 24VDC signal a&muf&Sd
NyD; Input memory I0.0 u ON jzpfoGm;ygw,f/ Fig.3 ukd jyefMunfhyg/ P.B2 uvnf; N.O
jzpfvkdY P.B2 ukd ESdyf&if Input terminal 0.1 wGif 24VDC signal a&muf&SdNyD; Input memory
I0.1 u ON jzpfoGm;ygw,f/
P.B1 eJY I0.0 wkdY&JU qufEG,frI Relation Diagram ukd atmufrSmaz:jyxm;ygw,f/
P.B1 ukd ESdyfrS I0.0 u ON ygw,f/
ESdyf
P.B1
rESdyf
ON
I0.0
OFF
The more you learn about PLCs, the more you will be able to solve other control problems.
- 178 -
U Soe Tint Siemens PLC S7-200
Output memory Q0.0 u ON jzpfrSom Output terminal 0.0 u 24VDC ukd &&SdNyD;
Lamp L1 u ON jzpfEkdifygw,f/
Q0.0 eJY Lamp L1 wkdY&JU qufEG,frI Relation Diagram ukd atmufrSm az:jyxm;yg
w,f/
ON
Q0.0
OFF
vif;
Lamp L1
rvif;
I0.0
I0.1
Q0.0
The more you learn about PLCs, the more you will be able to solve other control problems.
- 179 -
U Soe Tint Siemens PLC S7-200
Cursor
The more you learn about PLCs, the more you will be able to solve other control problems.
- 180 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 181 -
U Soe Tint Siemens PLC S7-200
8. 9.
10. 11.
12. 13.
The more you learn about PLCs, the more you will be able to solve other control problems.
- 182 -
U Soe Tint Siemens PLC S7-200
17. 18.
Program a&;NyD;&if tNrJwrf; Compile vkyfyg/ Error r&Sd&if PLC xJokdY download
vkyfyg/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 183 -
U Soe Tint Siemens PLC S7-200
Fig.4wGifazmfjyxm;wJhtwdkif; PLC &JU Input wGif P.B1 (N.O) eJY P.B2 (N.C) ukd
qufoG,fNyD; PLC &JU Output wGif Lamp L1 udk qufoG,fyg/
P.B 1
Lamp L1
0.0 0.0
+
P.B 2 24V
S7-200 CPU224
0.1 1L
AC/DC/RLY
24V
+ M
The more you learn about PLCs, the more you will be able to solve other control problems.
- 184 -
U Soe Tint Siemens PLC S7-200
P.B1 u N.O jzpfvkdY P.B1 ukd ESdyf&if Input terminal 0.0 wGif 24VDC signal a&muf&Sd
NyD; Input memory I0.0 u ON jzpfoGm;ygw,f/
P.B1 (N.O) eJY I0.0 wkdY&JU qufEG,frI Relation Diagram ukd atmufrSmaz:jyxm;yg
w,f/ P.B1 ukd ESdyfrS I0.0 u ON ygw,f/
ESdyf
P.B1
rESdyf
ON
I0.0
OFF
P.B2 u N.C jzpfvkdY P.B2 ukd ESdyf&if Input terminal 0.0 u 24VDC signal ukd r&&Sd
awmhyJ Input memory I0.1 u OFF jzpfoGm;ygw,f/
ESdyf
P.B2
rESdyf
ON
I0.1
OFF
Output memory Q0.0 = ON jzpfrSom Output terminal 0.0 u 24VDC ukd &&SdNyD;
Lamp L1 u ON jzpfEkdifygw,f/
Q0.0 eJY Lamp L1 wkdY&JU qufEG,frI Relation Diagram ukd atmufrSm az:jyxm;yg
w,f/
ON
Q0.0
OFF
vif;
Lamp L1
rvif;
The more you learn about PLCs, the more you will be able to solve other control problems.
- 185 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 186 -
U Soe Tint Siemens PLC S7-200
I/O wiring ukd Fig.4 twkdif;qufoG,fyg/ tcka&;&r,fh Program u P.B1 eJY P.B2
wpfckckukd ESdyf&if Lamp L1 u rD;vif;&rSm jzpfygw,f/ ESpfckpvkH;ESdyf&ifvnf; Lamp L1
u rD;vif;&rSm jzpfygw,f/ P.B1 ESifh P.B2 ESpfckpvkH;ukd rESdyfrS Lamp L1 u rD;Nidrf;aerSm
jzpfygw,f/
P.B1 u rESdyf&if OFF jzpfaewJY N.O pushbutton jzpfvkdY P.B1 ukd ESdyf&if I0.0 u
ON jzpfygw,f/ P.B2 u rESdyf&if ON jzpfaewJY N.C pushbutton jzpfvkdY P.B2 ukd ESdyf&if
I0.1 u OFF jzpfygw,f/
jzpfapvkdwJY Relation Diagram ukd atmufrSm az:jyxm;ygw,f/
ESdyf
P.B1
rESdyf
rESdyf
P.B2
ESdyf
ON
Lamp L1
OFF
P.B1 u N.O jzpfvkdY P.B1 ukd ESdyf&if Input terminal 0.0 wGif 24VDC signal a&muf&Sd
NyD; Input memory I0.0 u ON jzpfoGm;ygw,f/ P.B1(N.O) eJY I0.0 wkdY&JU qufEG,frI
Relation Diagram ukd atmufrSm az:jyxm;ygw,f/ P.B1 ukd ESdyfrS I0.0 u ON ygw,f/
ESdyf
P.B1
rESdyf
ON
I0.0
OFF
P.B2 u N.C jzpfvkdY P.B2 ukd ESdyf&if Input terminal 0.0 wGif 24VDC signal ra&muf
awmhyJ Input memory I0.1 u OFF jzpfoGm;ygw,f/ P.B2 (N.C) eJY I0.1 wkdY&JU qufEG,frI
Relation Diagram ukd atmufrSm az:jyxm;ygw,f/ P.B2 ukd rESdyfrS I0.1 u ON yg
w,f/ P.B2 ukd ESdyf&if I0.1 u OFF ygw,f/
rESdyf
P.B2
ESdyf
ON
I0.1
OFF
The more you learn about PLCs, the more you will be able to solve other control problems.
- 187 -
U Soe Tint Siemens PLC S7-200
Output memory Q0.0 u ON jzpfrSom Output terminal 0.0 u 24VDC ukd &&SdNyD;
Lamp L1 u ON jzpfEkdifygw,f/
Q0.0 eJY Lamp L1 wkdY&JU qufEG,frI Relation Diagram ukd atmufrSm az:jyxm;yg
w,f/
ON
Q0.0
OFF
ON
Lamp L1
OFF
ON
I0.1
OFF
ON
Lamp L1
OFF
The more you learn about PLCs, the more you will be able to solve other control problems.
- 188 -
U Soe Tint Siemens PLC S7-200
+
P.B 2 24V
S7-200 CPU224
0.1 1L
AC/DC/RLY
24V
+ M
ESdyf ON
P.B1
rESdyf
rESdyf ON
P.B2
ESdyf OFF
ON
Lamp L1
OFF
P.B1 u Start P.B jzpfNyD;? P.B2 u Stop P.B jzpfygw,f/ Stop P.B ukd fail-safe jzpf
atmifvkdY N.C ukd tokH;jyK&ygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 189 -
U Soe Tint Siemens PLC S7-200
ON
I0.1
OFF OFF
ON
Q0.0
OFF
2. I0.0 = OFF jzpfoGm;&ifvnf; Q0.0 ukd quf ON aeapzkdYtwGuf I0.0 eJY Q0.0 wkdY
wckck ON jzpfae&if Q0.0 ukd ON ygvkdY atmufygtwkdif;a&;ygw,f/ 'Dvkda&;wmukd
self-holding vkyfw,fvkdY ac:ygw,f/
P.B1 ukd ESdyf&if I0.0 u ON jzpfygw,f/ P.B2 ukd ESdyf&if I0.1 u OFF jzpfygw,f/
P.B1 ukd ESdyfwJYtcsdefrSm P.B2 ukd rESdyfygbl;/ P.B2 ukd ESdyfwJYtcsdefrSm P.B1 ukd rESdyfyg
bl;/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 190 -
U Soe Tint Siemens PLC S7-200
+
P.B 2 24V
S7-200 CPU224
0.1 1L
AC/DC/RLY
24V
+ M
The more you learn about PLCs, the more you will be able to solve other control problems.
- 191 -
U Soe Tint Siemens PLC S7-200
ON ON
I0.1
OFF
ON
Q0.0
OFF
3. (I0.0 = ON OR Q0.0 = ON) &JU logic result u true jzpfaewJYtcsdef P.B2 ukd
ESdyf&if Q0.0 ukd OFF jzpfatmif atmufygtwkdif; a&;&ygw,f/ P.B2 ukdESdyf&if I0.1 u
P.B1 eJY P.B2 u rESdyf&if OFF jzpfaewJY N.O pushbutton awGjzpfvkdY P.B1 ukd ESdyf&if
I0.0 u ON jzpfygw,f/ P.B2 ukd ESdyf&if I0.1 u ON jzpfygw,f/ P.B1 ukd ESdyfwJYtcsdef
rSm P.B2 ukd rESdyfygbl;/ P.B2 ukd ESdyfwJY tcsdefrSm P.B1 ukd rESdyfygbl;/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 192 -
U Soe Tint Siemens PLC S7-200
ON
Q0.0 10 minutes
OFF
&JU obm0rSm
TON &JU IN condition u true jzpfaeoa&GUom time
counting vkyfaeNyD;? IN condition u false jzpf&if time counting vkyfwm&yfoGm;NyD; timer
reset jzpfoGm;ygw,f/ Timer reset jzpf&if ON jzpfaewJY timer u OFF jzpfoGm;ygw,f/
Time counting vkyfaewJY timer u time counting vkyfwm&yfoGm;NyD; current value
tm;vkH;ukd zsufypfygw,f/ Reset current value to 0 vkyfypfygw,f/
ON-delay Timer (TON) twGuf?
T37 to T63, T101 to T255 wkdYu 100ms timer rsm;jzpfMuygw,f/
T33 to T36, T97 to T100 wkdYu 10ms timer rsm;jzpfMuygw,f/
T32 eJY T96 u 1ms timer jzpfygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 193 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 194 -
U Soe Tint Siemens PLC S7-200
t"dyg,f&Sif;vif;csuf
M0.0 u internal memory bit jzpfygw,f/ P.B1 ukd ESdyfNyD; jyefvTwfvkduf&if I0.0 u
ceom ON NyD; OFF jyefjzpfoGm;ygvdrfhr,f/ Timer u time counting qufjzpfaezkdYtwGuf
P.B1 ukd ESdyfNyD; jyefvTwfvkdufwJYtcg ON jzpfusefcJYwJY internal bit &&Sdatmif M0.0 ukd
self-hold vkyfNyD;a&;wmjzpfygw,f/ T37 = ON jzpfwJYtcg M0.0 u OFF jyefjzpfoGm;yg
w,f/
rygbJeJY T37 = OFF jzpf&if Q0.0 ukd ON ygvkdY a&;xm;cJY&if PLC ukd
RUN vkdufwmeJY Q0.0 u ON jzpfaeygvdrfhr,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 195 -
U Soe Tint Siemens PLC S7-200
ON
Q0.0
OFF 30 seconds
The more you learn about PLCs, the more you will be able to solve other control problems.
- 196 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 197 -
U Soe Tint Siemens PLC S7-200
t"dyg,f&Sif;vif;csuf
I0.0 = ON &if T37 = ON jzpfygw,f/ I0.0 = OFF jzpfNyD; 30s MumrS T37 = OFF
jzpfygw,f/
T37 u 100ms timer jzpfygw,f/ 100ms timer u 1 digit count vkyfzkdY 100ms (0.1s)
Mumygw,f/ tJ'gukd time base vkdY ac:ygw,f/ 30 seconds qkdwJY tcsdefowfrSwfrI
twGuf PT ukd 300 vkdY a&;&ygw,f/ t"dyg,fu 300 digits jzpfygw,f/
P.B1 ukd ESdyfNyD; jyefvTwfvkduf&if ESdyfwkH;ceom I0.0 u ON NyD;? jyefvTwfvkdufwJY
tcgrSm I0.0 u OFF jyefjzpfoGm;ygvdrfhr,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 198 -
U Soe Tint Siemens PLC S7-200
tckvkda&;&ygw,f/
tckvkda&;&ygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 199 -
U Soe Tint Siemens PLC S7-200
TONR (T5) ukd reset jzpfatmif reset instruction okH;NyD; instruction line
wpfck xyfa&;ay;&ygw,f/
TONR ukdokH;NyD; a&;xm;wJY Project (18) TONR Retentive ON-Delay ukd pmrsufESm
(136 ESifh 219) rSm az:jyxm;ygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 200 -
U Soe Tint Siemens PLC S7-200
A
1st Oil pump motor run
Oil Pump Motor
B
2nd Main motor run
Main Motor
C
3rd Auxiliary motor run
Auxiliary Motor
The more you learn about PLCs, the more you will be able to solve other control problems.
- 201 -
U Soe Tint Siemens PLC S7-200
ON
Start P.B I0.0
OFF
ON
Stop P.B I0.0
OFF
ON
Oil Pump Q0.0
OFF
ON
Main Q0.1
OFF
ON
Auxiliary Q0.2
OFF
Start P.B (N.O) ukd ESdyf&if Oil Pump vnfcsifwmjzpfvkdY I0.0 = ON &if Q0.0 ukd ON
ygvkdY pwifa&;ygw,f/
Network 1 (1st step)
The more you learn about PLCs, the more you will be able to solve other control problems.
- 202 -
U Soe Tint Siemens PLC S7-200
Input terminal 0.1 wGif qufxm;aom Stop P.B (N.C) ukd ESdyfwJYtcg Q0.0 vnf;
OFF jzpfoGm;atmif (self-hold jyKwfoGm;atmif) Network 1 ukd atmufygtwkdif; xyfjyif
vkdufygw,f/
Network 1 (4th step)
The more you learn about PLCs, the more you will be able to solve other control problems.
- 203 -
U Soe Tint Siemens PLC S7-200
Q0.0 = ON jzpfNyD; 10s MumvkdY T37 = ON jzpfwJYtcg Q0.1 uvnf; ON & self-hold
jzpf&rSmrkdYvkdY Network 2 ukd atmufygtwkdif; pwifa&;ygw,f/
Network 2 (1st step)
The more you learn about PLCs, the more you will be able to solve other control problems.
- 204 -
U Soe Tint Siemens PLC S7-200
Input terminal 0.1 wGif qufxm;aom Stop P.B (N.C) ukd ESdyfwJYtcg Q0.1 vnf;
OFF jzpfoGm;atmif (self-hold jyKwfoGm;atmif) Network 2 ukd atmufygtwkdif; jyifa&;
ygw,f/
Network 2 (3rd stage)
T38 = ON jzpf&if Q0.2 = ON jzpfNyD; self-hold jzpfatmif? Stop P.B (N.C) ukd
ESdyf&if Q0.2 = OFF jzpfatmif? Network 3 ukd atmufygtwkdif; a&;ygw,f/
Network 3
The more you learn about PLCs, the more you will be able to solve other control problems.
- 205 -
U Soe Tint Siemens PLC S7-200
Network 1
Start P.B Stop P.B
(N.O) (N.C) Oil Pump Motor
Network 2
Stop P.B
(N.C) Main Motor
Network 3
Stop P.B
(N.C) Auxiliary Motor
Auxiliary Motor
The more you learn about PLCs, the more you will be able to solve other control problems.
- 206 -
U Soe Tint Siemens PLC S7-200
Stop P.B
(N.C) Main Motor
Stop P.B
(N.C) Auxiliary Motor
Auxiliary Motor
The more you learn about PLCs, the more you will be able to solve other control problems.
- 207 -
U Soe Tint Siemens PLC S7-200
t"dyg,f&Sif;vif;csuf
Network 1
Main Motor
The more you learn about PLCs, the more you will be able to solve other control problems.
- 208 -
U Soe Tint Siemens PLC S7-200
Network 2
Stop P.B
(N.C) Main Motor
Network 3
Stop P.B
(N.C) Auxiliary Motor
Auxiliary Motor
The more you learn about PLCs, the more you will be able to solve other control problems.
- 209 -
U Soe Tint Siemens PLC S7-200
I/O wiring ukd Fig.6 twkdif;qufoG,fyg/ P.B1 eJY P.B2 u rESdyf&if OFF jzpfaewJY
N.O pushbutton awGjzpfvkdY P.B1 ukd ESdyf&if I0.0 u ON jzpfygw,f/ P.B2 ukd ESdyf&if I0.1
u ON jzpfygw,f/
tcka&;r,fh Program u P.B1 ukd 1-cgESdyf&if Counter u 1 digit count up vkyfNyD;
P.B1 ukd ESdyfwm 5-cg jynfhawmhrS Lamp L1 u rD;vif;&rSmjzpfygw,f/ P.B2 ukd ESdyf&if
Lamp L1 u rD;Nidrf;oGm;&rSm jzpfygw,f/
ON
I0.1 ON
OFF
ON
Q0.0 ON
OFF
The more you learn about PLCs, the more you will be able to solve other control problems.
- 210 -
U Soe Tint Siemens PLC S7-200
t"dyg,f&Sif;vif;csuf
The more you learn about PLCs, the more you will be able to solve other control problems.
- 211 -
U Soe Tint Siemens PLC S7-200
I/O wiring ukd Fig.6 twkdif;qufoG,fyg/ P.B1 eJY P.B2 u rESdyf&if OFF jzpf aewJY
N.O pushbutton awGjzpfvkdY P.B1 ukd ESdyf&if I0.0 u ON jzpfygw,f/ P.B2 ukd ESdyf&if I0.1
u ON jzpfygw,f/
tcka&;r,fh Program u P.B1 ukd 1-cg ESdyf&if Counter u 1 digit count down
vkyfNyD; P.B1 ukd ESdyfwm 5-cg jynfhawmhrS Lamp L1 u rD;vif;&rSm jzpfygw,f/ P.B2 ukd
ESdyf&if Lamp L1 u rD;Nidrf;oGm;&rSm jzpfygw,f/
ON
I0.1 ON
OFF
ON
Q0.0 ON
OFF
The more you learn about PLCs, the more you will be able to solve other control problems.
- 212 -
U Soe Tint Siemens PLC S7-200
t"dyg,f&Sif;vif;csuf
&JU aqmif&GufykHrSm
CTD &JU CD (count down input condition) u true
1-cg jzpf&if C0 u 1 digit count down vkyfygw,f/ CD condition u true 5-cg jzpf&if
current value u 0 jzpfoGm;vkdY C0 = ON jzpfoGm;ygw,f/ 'DtcsdefrSm count down input
condition u true 1-cg xyfjzpf&if C0 u count down qufrvkyfawmhygbl;/
CTD &JU LD (load input condition) u true jzpf&if C0 ukd load to PV vkyfygw,f/
C0 u ON NyD;om;jzpfae&if C0 u OFF jyefjzpfoGm;ygw,f/ Counting vkyfaeqJ current
value ukd load to 5 (PV) jzpfapygw,f/
CTD &JU PV (preset value input) ae&mrSm counter u a&wGuf&r,fh digit ta&
twGufukd a&;&ygw,f/ PV ukd trsm;qkH; 32767 txdom a&;vkdY&ygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 213 -
U Soe Tint Siemens PLC S7-200
Fig.7 rSmazmfjyxm;wJhtwdkif; PLC &JU Input wGif Car IN sensor (N.O) eJY Car
OUT sensor (N.O) wkdYukd qufoG,fNyD; PLC &JU Output wGif Parking Full Lamp L1 udk
qufoG,fyg/
Car IN Full L1
0.0 0.0
sensor
+
24V
Car OUT
0.1 1L
sensor S7-200 CPU224
Reset AC/DC/RLY
0.2
switch
24V
+ M
The more you learn about PLCs, the more you will be able to solve other control problems.
- 214 -
U Soe Tint Siemens PLC S7-200
ON
OUT ON
OFF
ON
Full L1 ON
OFF
1 2 3 4 5
ON
I0.0 ON ON ON ON ON
OFF
ON
I0.1 ON
OFF
ON
Q0.0 ON
OFF
The more you learn about PLCs, the more you will be able to solve other control problems.
- 215 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 216 -
U Soe Tint Siemens PLC S7-200
t"dyg,f&Sif;vif;csuf
The more you learn about PLCs, the more you will be able to solve other control problems.
- 217 -
U Soe Tint Siemens PLC S7-200
IN
I0.0 1 2 3 4 5 6 7 8 9 10
OUT
I0.1 1 2 3 4
Reset
I0.2
7
6 6
5 5
4 4 4
C0 3 3 3
2 2
1
Q0.0
ON ON
I0.0 u car IN sensor (N.O) jzpfygw,f/ I0.1 u car OUT sensor (N.O) jzpfNyD; I0.2
u reset switch jzpfygw,f/ Q0.0 u Parking Full Lamp jzpfygw,f/
txufygykHrSm az:jyxm;wmu um; 5-pD; 0ifNyD;wJYtcg Q0.0 (Parking Full Lamp)
u ON jzpfoGm;ygw,f/
tJ'Daemuf um; 1-pD; xGufoGm;vkdY Q0.0 (Parking Full Lamp) u OFF jyefjzpfoGm;
ygw,f/ aemufxyf um; 2-pD; xGufoGm;NyD;rS um; 3-pD; jyef0ifvmwJYtcg Q0.0
(Parking Full Lamp) u jyef ON ygw,f/
um; 2-pD; xyf0ifvmNyD; 1-pD; xGufoGm;wJYtcsdefxd Q0.0 (Parking Full Lamp) u
ON aeygw,f/ 0ifvmwJYum; pkpkaygif;u 10-pD;? xGufoGm;wJYum;u 4-pD;omjzpfaevkdY
6-pD;u a[mfw,f0if;xJrSm &Sdaeygao;w,f/ 'gaMumifh Q0.0 (Parking Full Lamp) u
ON aewmjzpfygw,f/
Reset switch ukd switch ON vkyfvkdufawmhrS Q0.0 u OFF jzpfoGm;ygw,f/
C0 &JU current value u 5 eJY nD&if? 'grSr[kwf 5 xuf BuD;&if? C0 u ON jzpfyg
w,f/
C0 &JU current value u 5 xuf i,f&if C0 u OFF jzpfygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 218 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 219 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 220 -
U Soe Tint Siemens PLC S7-200
Alarm output
The more you learn about PLCs, the more you will be able to solve other control problems.
- 221 -
U Soe Tint Siemens PLC S7-200
t"dyg,f&Sif;vif;csuf
PLC &JU input terminal 0.0 rSm qufxm;wJY Start pushbutton (N.O) ukd ESdyf&if Input
Image Memory I0.0 u ON jzpfygw,f/
PLC &JU input terminal 0.1 rSm qufxm;wJY Stop pushbutton (N.C) ukd ESdyf&if Input
Image Memory I0.1 u OFF jzpfygw,f/
I0.0 = ON jzpf&if a&;xm;wJY Program t& Q0.0 u ON jzpfoGm;NyD; I0.1 = OFF
jzpfrSom Q0.0 u OFF jyefjzpfygw,f/
Compressor
The more you learn about PLCs, the more you will be able to solve other control problems.
- 222 -
U Soe Tint Siemens PLC S7-200
Alarm output
C0 = ON jzpfrS Q0.1 u ON ygw,f/ Compressor Run wm em&D 10000 jynfhwJY
tcg Alarm jrnfygw,f/ PLC &JU input terminal 0.2 rSm qufxm;wJY Reset pushbutton
(N.O) ukd ESdyf&if I0.2 u ON jzpfNyD; Alarm jrnfwm&yfoGm;ygw,f/
Timer &JU preset time PT eJY counter &JU preset value PV wkdYukd trsm;qkH; 32767 txd
om a&;vkdY&ygw,f/ 'gaMumifh T5 &JU PT ukd 1800s (18000 digits) = 30 minutes vkdY a&;
NyD;? C0 &JU PV ukd 20000 vkdY cGJa&;xm;wmjzpfygw,f/
Timer &JU preset time ukd Timer eJY Counter ukd pOfquf cascade vkyfNyD; tcsdef&Snf
MumwJY &ufawG? vawGukd rSwfom;apckdif;vkdY&ygw,f/
S7-200 CPU224 xJrSm jyu'def real time clock (RTC) yg&Sdygw,f/ RTC ukd
tcsdefwkdufcsif&if SET_RTC ukd okH;&ygw,f/ ESpf? v? &uf? em&D ukd &,ltokH;jyKcsif&if
READ_RTC ukd okH;&ygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 223 -
U Soe Tint Siemens PLC S7-200
Alarm output
The more you learn about PLCs, the more you will be able to solve other control problems.
- 224 -
U Soe Tint Siemens PLC S7-200
'D project ukd Symbolic Address ukdokH;NyD; a&;jyrSmjzpfygw,f/ Symbolic address ukd
Indirect addressing vkdYvnf; ac:ygw,f/ Indirect address ukd okH;&if address wpfckpD
twGuf processing time 22s ykdMumygw,f/
Symbolic address ukd okH;NyD;a&;EkdifwJY operand awGuawmh I, Q, V, M, S, T (current
value only), and C (current value only) wkdY jzpfMuygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 225 -
U Soe Tint Siemens PLC S7-200
Operand ukd Symbolic address eJY a&;csif&if Symbol Table ukd tokH;jyK&ygw,f/
1. STEP 7-Micro/WIN ukd zGifhyg/
2. View Component Symbol Table ukd click yg/
3. Symbol Table xJu Symbol pmwkdif atmufrSm FWD_Run vkdY a&;yg/ Address
pmwkdif atmufrSm Q0.1 vkdY a&;yg/ usefwmawGukd atmufygZ,m;twkdif;qufa&;yg/
4. Symbol Table ukd right click Apply Symbols to Project ukd click yg/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 226 -
U Soe Tint Siemens PLC S7-200
a&;wkH;u 'Dvkda&;xm;wmjzpfygw,f/
Options xJu Program Editor rSm Symbolic addressing ukd display symbol and
address vkdY a&G;cs,fxm;vkdY Symbolic address a&m Direct address yg 2-ckwGJay:vmwm
jzpfygw,f/
Symbolic address wpfrsKd;wnf;om az:jyapcsif&if Options xJu Program Editor
rSm Symbolic addressing ukd display symbol only vkdY a&G;cs,fxm;&ygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 227 -
U Soe Tint Siemens PLC S7-200
Options xJu Program Editor rSm Symbolic addressing ukd display symbol and
address vkdY a&G;cs,fxm;csif&if
The more you learn about PLCs, the more you will be able to solve other control problems.
- 228 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 229 -
U Soe Tint Siemens PLC S7-200
Options xJu Program Editor rSm Symbolic addressing ukd display symbol only ukd
a&G;cs,fxm;csif&if
The more you learn about PLCs, the more you will be able to solve other control problems.
- 230 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 231 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 232 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 233 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 234 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 235 -
U Soe Tint Siemens PLC S7-200
t"dyg,f&Sif;vif;csuf
Motor Forward Start / Stop
Start FWD Stop Motor REV Run Motor Stop FWD Run
FWD Run
Start_FWD P.B (N.O) ukd ESdyfwJYtcsdefrSm Stop_Motor P.B (N.C) ukd rESdyfwJYtwGuf
I0.1 u ON jzpfaeygw,f/ Motor_Stop sensor (N.C) uvnf; armfwmrvnfao;wJY
twGuf I0.4 u ON jzpfaeygw,f/ armfwmrvnfao;wJYtwGuf REV_Run (Q0.2)
uvnf; OFF jzpfaeygw,f/
'gaMumifh Start_FWD P.B ukd ESdyfvkduf&if AND vkyfxm;wJY condition 4-ck pvkH;
True jzpfNyD; FWD_Run (Q0.1 = ON) jzpfoGm;ygw,f/ Next scan a&mufawmh OR
vkyfxm;wJY I0.0 a&m Q0.1 yg ON jzpfygw,f/ I0.0 = OFF jzpfoGm;wJY tcsdefrSm
FWD_Run (Q0.1) u ON NyD;om;jzpfaewJY twGuf Q0.1 u qufNyD; ON aewmjzpfyg
w,f/
REV_Run (Q0.2) u ON t&ifjzpfae&if FWD_Run (Q0.1) ukd ON vkdYr&ygbl;/
Start REV Stop Motor FWD Run Motor Stop REV Run
REV Run
Start_REV P.B (N.O) ukd ESdyfwJYtcsdefrSm Stop_Motor P.B (N.C) ukd rESdyfwJYtwGuf
I0.1 u ON jzpfaeygw,f/ Motor_Stop sensor (N.C) uvnf; armfwmrvnfao;
wJYtwGuf I0.4 u ON jzpfaeygw,f/ armfwmrvnfao;wJYtwGuf FWD_Run (Q0.1)
uvnf; OFF jzpfaeygw,f/
'gaMumifh Start_REV P.B ukd ESdyfvkduf&if AND vkyfxm;wJY condition 4-ck pvkH;
True jzpfNyD; REV_Run (Q0.2) u ON jzpfoGm;ygw,f/ Next scan a&mufawmh OR
vkyfxm;wJY I0.2 a&m Q0.2 yg ON jzpfygw,f/ I0.2 = OFF jzpfoGm;wJY tcsdefrSm
REV_Run (Q0.2) u ON jzpfaewJY twGuf Q0.2 u qufNyD; ON aewmjzpfygw,f/
FWD_Run (Q0.1) u ON t&ifjzpfae&if REV_Run (Q0.2) ukd ON vkdYr&ygbl;/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 236 -
U Soe Tint Siemens PLC S7-200
'D project &JU &nf&G,fcsufu Oil Pump vnfNyD;rSom Main Compressor ukd vnfvkdY
&apcsifwmjzpfygw,f/
A
Motor_A (Oil Pump) run NyD;rSom
Oil Pump Motor
Main Compressor
Motor_B (Main Compressor) ukd
run vkdY &atmif program a&;&rSmjzpfygw,f/
Hardware Configuration
Motor_A ukd drive vkyfwJY magnetic contactor MC1 ukd PLC &JU output terminal 0.1
wGif qufoG,fxm;NyD;? Motor_B ukd drive vkyfwJY magnetic contactor MC2 ukd PLC &JU
output terminal 0.2 wGif qufoG,fxm;ygw,f/
Motor_A twGuf Start pushbutton (A_1) u (ESdyf&if ON wJY) N.O jzpfNyD;? PLC &JU
input terminal 0.0 wGifqufoG,fxm;ygw,f/ Motor_A twGuf Stop P.B (A_0) uawmh
(ESdyfrS OFF wJY) N.C jzpfNyD;? PLC &JU input terminal 0.1 wGifqufoG,fxm;ygw,f/
Motor_B twGuf Start pushbutton (B_1) u (ESdyf&if ON wJY) N.O jzpfNyD;? PLC &JU
input terminal 0.2 wGifqufoG,fxm;ygw,f/ Motor_B twGuf Stop P.B (B_0) uawmh
(ESdyfrS OFF wJY) N.C jzpfNyD;? PLC &JU input terminal 0.3 wGifqufoG,fxm;ygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 237 -
U Soe Tint Siemens PLC S7-200
Program Creation
The more you learn about PLCs, the more you will be able to solve other control problems.
- 238 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 239 -
U Soe Tint Siemens PLC S7-200
t"dyg,f&Sif;vif;csuf
The more you learn about PLCs, the more you will be able to solve other control problems.
- 240 -
U Soe Tint Siemens PLC S7-200
SYSTEM
ON/OFF High level sensor
MAN/AUTO
Low level sensor
Pump Motor
The more you learn about PLCs, the more you will be able to solve other control problems.
- 241 -
U Soe Tint Siemens PLC S7-200
Input Devices
1. System ON_OFF switch ukd Input terminal 0.0 eJY qufxm;ygw,f/
2. Manual_Automatic switch ukd Input terminal 0.1 for MAN, 0.2 for AUTO eJY
qufxm;NyD; MAN qkd&if I0.1 = ON ygw,f/ AUTO qkd&if I0.2 = ON ygw,f/
3. Low Level Sensor (N.O) ukd Input terminal 0.3 eJY qufxm;ygw,f/
4. High Level Sensor (N.C) ukd Input terminal 0.4 eJY qufxm;ygw,f/
Output Devices
1. Pump Running Lamp (Green) ukd Output terminal 0.0 eJY qufxm;ygw,f/
2. Low Level Lamp (Red) ukd Output terminal 0.1 eJY
qufxm;ygw,f/
3. High Level Lamp (Yellow) ukd Output terminal 0.2 eJY qufxm;ygw,f/
4. Pump Motor (MC1) ukd Output terminal 0.3 eJY qufxm;ygw,f/
Program a&;wJYtcg Alarm awGukd yxr a&;&ygw,f/ NyD;rS Manual Operation ukd
'kwd, a&;&ygw,f/ Automatic Operation ukd wwd, a&;&ygw,f/ 'Dvkda&;wJY tcg
Internal Memory ukd okH;NyD; a&;&ygw,f/ aemufqkH;rS Output xkwf&ygw,f/ 'Dvkdenf;eJY
a&;xm;&if program ukd tjypf&SmjyKjyif&wm debugging vkyfwJYtcg vG,fulygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 242 -
U Soe Tint Siemens PLC S7-200
Alarm Operation
1. Pit xJu waste water level = low jzpf&if Low level lamp (Red Lamp) u ON
jzpfygw,f/
2. PitxJu waste water level = high jzpf&if High level lamp (Yellow Lamp) u
ON jzpfygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 243 -
U Soe Tint Siemens PLC S7-200
Manual Operation
1. Manual_Automatic switch ukd MAN rSmxm;yg/ I0.1 = ON jzpfygw,f/
2. System ON/OFF switch ukd ON vkduf&if I0.0 u ON jzpfNyD; Pump Motor vnfyg
w,f/
3. System ON/OFF switch ukd OFF vkduf&if I0.0 u OFF jzpfNyD; Pump Motor vnf
ygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 244 -
U Soe Tint Siemens PLC S7-200
Automatic Operation
1. Manual_Automatic switch ukd AUTO rSm xm;yg/ I0.2 = ON jzpfygw,f/
2. Pit xJu waste water level = low jzpf&if Low level sensor u I0.3 ukd OFF jzpf
apNyD; Pump Motor vnfygw,f/
3. Pit xJu waste water level = high jzpf&if High level sensor u I0.4 ukd OFF jzpf
apNyD; vnfaewJY Pump Motor &yfoGm;ygw,f/
Manual_Automatic switch ukd AUTO rSmxm;wJYtcg level sensor awGu level &JU
tajctaeukd *&kjyKMunfh&Ippfaq;NyD; Pump ukd armif;wmjzpfygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 245 -
U Soe Tint Siemens PLC S7-200
Output
The more you learn about PLCs, the more you will be able to solve other control problems.
- 246 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 247 -
U Soe Tint Siemens PLC S7-200
Inlet Valve
Q0.5
Red
Run
High Level Q0.2
Sensor I0.5
(N.C) Green
Stand-by
Q0.3
Low Level
Sensor I0.4
(N.O) Blue
Full
Q0.4
Full sensor
Solenoid I0.3 (N.C)
Valve
Q0.1
Bucket
Bucket
Sensor
I0.2 (N.O)
Conveyor
Motor
Q0.0
(rSwfcsuf/ / Fail Safe taMumif;ukd PLC vrf;nT efpmtkyf? pmrsufESm (102) rS maz:jyxm;ygw,f/)
The more you learn about PLCs, the more you will be able to solve other control problems.
- 248 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 249 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 250 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 251 -
U Soe Tint Siemens PLC S7-200
t"dyg,f&Sif;vif;csuf
Program ukd zwf&I&wm vG,fulatmif Symbolic address eJYa&;xm;ygw,f/
a&;ykHa&;enf;? awG;ykHawG;enf; uawmh wOD;eJYwOD; wlMurSmr[kwfygbl;/
tajccHtm;jzifh 'Dvkda&;vkdY&w,fqkdwmukdom jyovkd&if;jzpfygw,f/
System Start/Stop ukd Start_PB u N.O jzpfNyD; Input Terminal 0.0 rSmqufxm;yg
w,f/ Stop_PB u N.C jzpfNyD; Input Terminal 0.1 rSmqufxm;ygw,f/ Ready u
internal memory bit M0.0 jzpfygw,f/
Start_PBukd ESdyfwJYtcsdefrSm Stop_PB ukd rESdyfwJYtwGuf Ready bit (M0.0) u ON
jzpfoGm;ygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 252 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 253 -
U Soe Tint Siemens PLC S7-200
Ready (M0.0) = ON, Low_Sensor (I0.4) = OFF, High_Sensor (I0.5) = OFF jzpf&if
Inlet bit (Q0.5) u ON NyD; self-hold jzpfoGm;ygw,f/
Inlet bit (Q0.5) = ON jzpfNyD;rS Standby_Lamp bit (Q0.3) = ON ygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 254 -
U Soe Tint Siemens PLC S7-200
'D Project rSm Level switch for high high (LSHH) ukd fail-safe jzpfatmif N.O ukd
okH;rvm;? N.C ukd okH;rvm;? a&G;cs,fwJYtcg Process tay:rlwnfNyD; pOf;pm;&ygw,f/
puf&kHBuD;awGrSmqkd&if Process Engineer eJY nSdEIdif;NyD;rS qkH;jzwf&ygw,f/ Process fail jzpf
wJYtcg Safe condition ukd Process Engineer u wm0ef,lowfrSwfay;&ygw,f/
tck Project u Fire water tank xJrSma&tjynfh&SdaezkdYvkdtyfwJYtwGuf water level
ukd alarm system u apmifhMunfhaeNyD; tvkdtavsmuftcsufjywJYpepf fire water level
alarm system jzpfygw,f/
Fail-safe twGufpOf;pm;r,fqkd&if Fire Water jzpfwJYtwGuf a&tNrJ jynfhae&rSmjzpf
ygw,f/
Fail-Safe jzpfatmif sensor awG&JU N.O/N.C ukd 'Dvkd pOf;pm;a&G;cs,fygw,f/
1. a& level tedrfhqkH;ukd ppfaq;apmifhMunfhwJY sensor (float switch) LSLL ukd
N.O vkdY owfrSwfNyD; Program ukd a&;xm;rSom a& level teJqkH;jzpfoGm;vkdY
LSLL u OFF signal ukd xkwfay;wJYtcg level low low jzpfwmukd PLC u
odNyD; heavy warning ay;ygvdrfhr,f/ wu,fvkdY tJ'D LSLL eJY PLC ukd quf
oG,fxm;wJY 0g,mBudK; jywfoGm;&ifvnf; OFF signal ukd PLC u &&SdNyD;? a&
level teJqkH;jzpfaeNyDvkdY PLC u rSm;odwJYtcg heavy warning ay;ygvdrfhr,f/
'DtcgrSm BuKd;jywfwmukd csufcsif;odNyD; jyKjyifEkdifygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 255 -
U Soe Tint Siemens PLC S7-200
2. a& level eJwmukd ppfaq;apmifhMunfhwJY sensor (float switch) LSL ukd N.O vkdY
owfrSwfNyD; Program ukd a&;xm;rSom a& level eJoGm;vkdY LSL u OFF signal
ukd xkwfay;wJYtcg PLC u level low jzpfwmukdodNyD; level low alarm ay;yg
vdrfhr,f/ wu,fvkdY tJ'D LSL eJY PLC ukd qufoG,fxm;wJY 0g,mBudK; jywf
oGm;&ifvnf; OFF signal ukd PLC u &&SdNyD;? a& level eJaeNyDvkdY PLC u
rSm;odwJYtcg level low alarm ay;ygvdrfhr,f/ 'DtcgrSm BuKd;jywfwmukd
csufcsif;odNyD; jyKjyifEkdifygw,f/
3. a& level rsm;wmukd ppfaq;apmifhMunfhwJY sensor (float switch) LSH ukd N.C
vkdY owfrSwfNyD; Program ukd a&;xm;rSom a& level rsm;oGm;vkdY LSH u OFF
signal ukd xkwfay;wJYtcg level high jzpfwmukd PLC uodNyD; level high alarm
ay;ygvdrfhr,f/ wu,fvkdY tJ'D LSL eJY PLC ukd qufoG,fxm;wJY 0g,mBudK;
jywfoGm;&ifvnf; OFF signal ukd PLC u&&SdNyD;? a& level rsm; aeNyDvkdY PLC u
rSm;odwJYtcg level low alarm ay;ygvdrfhr,f/ 'DtcgrSm BuKd;jywfwmukd
csufcsif;odNyD; jyKjyifEkdifygw,f/
4. a& level tjrifhqkH;ukd ppfaq;apmifhMunfhwJY sensor (float switch) LSHH ukd
N.C vkdY owfrSwfNyD; Program ukd a&;xm;rSom a& level trsm;qkH;jzpfoGm;vkdY
LSHH u OFF signal ukd xkwfay;wJYtcg level high high jzpfwmukd PLC u
odNyD; level high high alarm ay;ygvdrfhr,f/ wu,fvkdY tJ'D LSHH eJY PLC ukd
qufoG,fxm;wJY 0g,mBudK; jywfoGm;&ifvnf; OFF signal ukd PLC u &&SdNyD;?
a& level rsm;vGef;aeNyDvkdY PLC u rSm;odwJYtcg level high high alarm ay;yg
vdrfhr,f/ 'DtcgrSm BuKd;jywfwmukd csufcsif;odNyD; jyKjyifEkdifygw,f/
'Dvkdr[kwfygyJeJY LSL eJY LSLL wkdYukd N.O rokH;yJ N.C okH;r,fqkd&if a& level eJwJh
tcg LSL eJY LSLL wkdYu ON signal ukd xkwfay;rSmjzpfygw,f/ a& level ykHrSefqkd&if
LSL, LSLL wkdY u OFF signal ukd xkwfay;ygvdrfhr,f/ tJ'Dawmh LSL, LSLL wkdYeJY PLC
ukd qufoG,fxm;wJY 0g,mBudK; jywfoGm;&if PLC u OFF signal ukd tNrJ&&SdaeawmhrSm
jzpfygw,f/ 'Dtcg a& level ykHrSefjzpfaew,fvkdY PLC u rSm;odaeygvdrfhr,f/ a& level
ykHrSefjzpfae&ifvnf; OFF signal ukdxkwfay;ygw,f/ BudK;jywf&ifvnf; OFF signal ukd
xkwfay;yg w,f/ 'Dvkd wlnDwJY signal ukdxkwfay;wJYtwGuf BudK;jywfwmukdvnf;
rodEkdifyg/ BudK;jywfaewJYtcgrSm a& level eJoGm;vkdY LSL, LSLL wkdYu ON signal
xkwfay;ayr,fhvnf; BudK;jywfaewJYtwGuf PLC u OFF signal ukdom &&SdaerSmjzpfNyD;
a& level ykHrSef&Sdw,fvkdYom PLC u odaewmjzpfvkdY bm alarm bm warning rS PLC u
xkwfay;rSmr[kwfygbl;/
xkdYtwl LSH eJY LSHH wkdYukd N.C rokH;yJ N.O ukd okH;cJYr,fqkd&if BuKd;jywfwm eJY
a&rsm;wmukd cGJjcm;rodEkdifyg/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 256 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 257 -
U Soe Tint Siemens PLC S7-200
Annunciator Lamps
2 Lamps in each annunciator
The more you learn about PLCs, the more you will be able to solve other control problems.
- 258 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 259 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 260 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 261 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 262 -
U Soe Tint Siemens PLC S7-200
rSwfcsuf / / STEP 7-Micro/WIN eJY LD program a&;wJYtcg END ukd xnfha&;ay;p&m rvkd
ygbl;/ a&;vkdYvnf; r&ygbl;/ STEP 7-Micro/WIN xJrSm Conditional END
om yg&Sdygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 263 -
U Soe Tint Siemens PLC S7-200
1. Start P.B ukd ESdyfvkduf&if Pump-1 eJY Pump-2 wYkd NydKifwlarmif;NyD; Mixing Tank
xJrSm t&nf 2-rsKd;ukd a&mpyfygw,f/
2. owfrSwfcsdef 10 minutes jynfh&if Pump 2-vkH;pvkH; &yfNyD; ESrfhpyfatmif Mixer
Motor u arTygw,f/
3. owfrSwfcsdef 15 minutes jynfh&if Mixer Motor &yf? Drain Valve yGifhNyD; Pump-3
ukd tvkdtavsmufarmif;ygw,f/ Mixer Tank xJu a&mpyfNyD;om; t&nfawGukd ykvif;
jznfhwJY Bottling Station qDokdY ykdYygw,f/
4. Stop P.B ukd ESdyfvkduf&if Pump tm;vkH;&yfoGm;NyD;? Drain Valve jyefydwfoGm;yg
w,f/
Mixing Tank Process Control Program ukd atmufrSm a&;jyxm;ygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 264 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 265 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 266 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 267 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 268 -
U Soe Tint Siemens PLC S7-200
'D Project &JU vkyfaqmifykHrSm Start_1 ukd ESdyfvkduf&if Pump_1 vnfNyD; yxrt&nf
jznfhygr,f/ Tank Heating twGuf Steam_Valve vnf; yGifhygr,f/ Low_Level a&mufwJY
tcg Pump_1 &yfNyD;? Alarm jrnfygr,f/ Start_2 ukd ESdyfvkdufawmh Pump_2 vnfNyD;
'kwd,t&nfvnf;jznfh? Mixer_Motor vnf; vnfygr,f/ High_Level a&mufawmh
Pump_2 &yfNyD;? Drain_Valve yGifhygr,f? Drain_Pump vnfygr,f/
Draining vkyfzkdYowfrSwfxm;wJYtcsdef 10 minutes jynfhawmh Drain_Valve ydwfyg
r,f? Drain_Pump vnf; &yfygr,f/ Tank Heating twGuf Steam_Valve vnf; jyefydwf
oGm;ygr,f/
(N.C)
(N.C)
For Tank Heating
Pushbutton awG&JU N.O/N.C ukd ykHwGifMunfhyg/ Liquid level u Low level txuf
rSm &Sdae&if Low_Level Switch u ykHrSmjyxm;ovkd open jzpfaeygr,f/ Liquid level u
low level atmuf a&mufae&if Low_Level Switch u closed jzpfaeygr,f/ Low_Level
Switch u N.C jzpfygw,f/ Liquid level jynfhoGm;&if High_Level Switch u ykHrSmjyxm;
ovkd open jzpfaeygr,f/ High_Level Switch uvnf; N.C jzpfygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 269 -
U Soe Tint Siemens PLC S7-200
Start_1 ukd ESdyfwJYtcsdefrSm Stop_1 ukd rESdyfwJYtwGuf I0.0 a&m I0.2 yg ON jzpfyg
w,f/ Mixing Tank xJrSm Liquid vkH;0r&Sdao;vkdY Low_Level switch u closed jzpfaeyg
w,f/ 'gaMumifh I0.5 u ON jzpfaeygw,f/ Condition 3-ckpvkH; True jzpfvkdY M0.0 u
ON NyD; self-hold jzpfoGm;ygw,f/
Liquid level u Low_Level &JU txufukd a&mufwJYtcg I0.5 = OFF jzpfoGm;NyD;
M0.0 u OFF jzpfoGm;ygw,f/
Network 2 uvnf; Network 1 &JU vkyfaqmifcsufeJY wlnDygw,f/
I0.3 = ON, I0.5 = OFF, I0.4 = ON jzpfaerSom M0.1 u ON & Hold jzpfygw,f/
Liquid level u High_Level &JU txufukd a&mufwJYtcg I0.4 = OFF jzpfoGm;vkdY M0.1
u OFF jzpfoGm;ygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 270 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 271 -
U Soe Tint Siemens PLC S7-200
Low_Level sensor u N.C jzpfwJYtwGuf liquid level u low sensor xuf edrfhae
ao;&if I0.5 u ON jzpfaeNyD; low sensor ukd liquid level u ausmfvGefoGm;rS I0.5 u
OFF jzpfygw,f/ pmrsufESm (269) u ykHukd Munfhyg/ Pump_2 (Q0.1) rvnfrD liquid
level u Low_Level sensor ukd ausmf&if Q0.6 = ON NyD; Alarm jrnfygw,f/
Q0.1 = ON jzpfvkdY Pump_2 vnf&if Alarm (Q0.6) = OFF jzpfygw,f/ Liquid 2
Feed Pump vnfwJYtcg Alarm jrnfwm &yfoGm;ygw,f/
Start_2 ukd ESdyfvkdY M0.1 = ON jzpfwJYtcsdef level high rjzpfao;&if I0.4 u ON jzpf
aeNyD; Pump_2 vnfygw,f/ Level high jzpfawmh I0.4 = OFF jzpfNyD; Q0.1 = OFF
jzpfygw,f/ Q0.1 = OFF jzpfvkdY Liquid 2 Feed Pump &yfoGm;ygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 272 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 273 -
U Soe Tint Siemens PLC S7-200
Start_1 ukd ESdyfvkdY M0.0 = ON jzpfoGm;wJYtcsdefrSm liquid level u low level txd
ra&mufao;&if I0.5 = ON jzpfaevkdY Pump_1 pwif vnfwmeJYwNydKifxJ Mixing tank
heating vkyfwJY Steam_Valve yGifh ygw,f/ Mixing Tank xJu liquid awG ukefawmh
Steam_Valve jyefydwfygw,f/
The more you learn about PLCs, the more you will be able to solve other control problems.
- 274 -
U Soe Tint Siemens PLC S7-200
Terminology
Sensor A sensor is a device that converts a physical condition into an electrical
signal for use by the PLC. Sensors are connected to the input of a PLC. A pushbutton is
one example of a sensor that is connected to the PLC input. An electrical signal is sent
from the pushbutton to the PLC indicating the condition (open/ closed) of the
pushbutton contacts.
Actuators Actuators convert an electrical signal from the PLC into a
physical condition. Actuators are connected to the PLC output. A motor starter is one
example of an actuator that is connected to the PLC output. Depending on the output
PLC signal the motor starter will either start or stop the motor.
Discrete Input A discrete input, also referred to as a digital input, is an input that
is either in an ON or OFF condition. Pushbuttons, toggle switches, limit switches,
proximity switches, and contact closures are examples of discrete sensors which are
connected to the PLCs discrete or digital inputs. In the ON condition a discrete input
may be referred to as a logic 1 or a logic high. In the OFF condition a discrete input
may be referred to as a logic 0 or a logic low.
Analog Inputs An analog input is an input signal that has a continuous signal.
Typical analog inputs may vary from 0 to 20 milliamps, 4 to 20 milliamps, or 0 to 10
volts. In the following example, a level transmitter monitors the level of liquid in a tank.
Depending on the level transmitter, the signal to the PLC can either increase or decrease
as the level increases or decreases.
Discrete Outputs A discrete output is an output that is either in an ON or
OFF condition. Solenoids, contactor coils, and lamps are examples of actuator devices
connected to discrete outputs. Discrete outputs may also be referred to as digital
outputs. In the following example, a lamp can be turned on or off by the PLC output it
is connected to.
Analog Outputs An analog output is an output signal that has a continuous
signal. The output may be as simple as a 0-10 VDC level that drives an analog meter.
Examples of analog meter outputs are speed, weight, and temperature. The output signal
may also be used on more complex applications such as a current-topneumatic
transducer that controls an air-operated flow-control valve.
CPU The central processor unit (CPU) is a microprocessor system that
contains the system memory and is the PLC decisionmaking unit. The CPU monitors
the inputs and makes decisions based on instructions held in the program memory. The
CPU performs relay, counting, timing, data comparison, and sequential operations.
Programming A program consists of one or more instructions that accomplish a
task. Programming a PLC is simply constructing a set of instructions. There are several
ways to look at a program such as ladder logic, statement lists, or function block
diagrams.
The more you learn about PLCs, the more you will be able to solve other control problems.
- 275 -
U Soe Tint Siemens PLC S7-200
The more you learn about PLCs, the more you will be able to solve other control problems.
- 276 -
U Soe Tint Siemens PLC S7-200
ROM Read Only Memory (ROM) is a type of memory that data can be read
from but not written to. This type of memory is used to protect data or programs from
accidental erasure. ROM memory is nonvolatile. This means a user program will not
lose data during a loss of electrical power. ROM is normally used to store the programs
that define the capabilities of the PLC.
EPROM Erasable Programmable Read Only Memory (EPROM) provides
some level of security against unauthorized or unwanted changes in a program.
EPROMs are designed so that data stored in them can be read, but not easily altered.
Changing EPROM data requires a special effort. UVEPROMs (ultraviolet erasable
programmable read only memory) can only be erased with an ultraviolet light.
EEPROM (electronically erasable programmable read only memory), can only be
erased electronically.
Firmware Firmware is user or application specific software burned into
EPROM and delivered as part of the hardware. Firmware gives the PLC its basic
functionality.
The more you learn about PLCs, the more you will be able to solve other control problems.
- 277 -
U Soe Tint Siemens PLC S7-200
Reference
1. PLCs Theory and Implementation 2nd Ed (L. A. Bryan) 1997
2. Lessons In Industrial Instrumentation (Tony R. Kuphaldt) 15 June 2014
http://openbookproject.net/books/socratic/sinst/book/
3. S7-200 Programmable Controller System Manual C79000-G7076-C233-02
(2000)
4. S7-200 Programmable Controller System Manual 6ES7298-8FA24-8BH0
(8_2008)
5. S7-200 CPU221 Microsystem One Hour Primer [July 1999]
6. S7-200 CPU221 Microsystem Two Hour Primer [Jan 2000]
7. SIEMENS STEP 2000 Basic of PLCs
8. Beginners Guide to PLC Programming (Neal Babcock) 2008
9. A PLC Primer www.industrialtext.com
10. Basics of PLC Programming - Industrial Control Systems, Fall 2006
11. FX-Series PLC Training Manual using GX-Developer, 2006
12. Micro PLC Self Teach Manual - GFK-0811, June 1993
13. NAIS FP series PLC Programming Manual, 2000
14. GE Fanuc Micro PLC Programmers Guide, April 1994
15. FX PLC Applications and Programming (John Ridley) 2004
16. EC Series Micro-PLC Programming Manual (Emerson) 2007
17. Programmable Controllers - An engineers guide 3rd Edition (E.A. Parr) 2003
18. IEC 61131-3 Programming - Industrial Automation Systems (Karl-Heinz John)
2010
19. PLC Programming Methods and Applications (John R. Hackworth)
20. Industrial Electronics (Frank D. Petruzella) International Editions 1996
The more you learn about PLCs, the more you will be able to solve other control problems.
- 278 -