»ùÓÚÎ÷ÃÅ×ÓS7-200µÄ½»Í¨µÆ¿ØÖÆÉè¼Æ
µÚ3Õ ½»Í¨µÆ¿ØÖƵÄÉè¼Æ
3.1 ˳Ðò¹¦ÄÜͼ
¸ù¾ÝµÚ¶þÕ½»Í¨µÆµÄ¿ØÖÆÒªÇó¿ÉÒÔ»³ö˳Ðò¹¦ÄÜͼ
ÉèÆô¶¯°´Å¥ÓÃI0.0±íʾ, 6¸ö¹¤×÷״̬·Ö±ðÓÃ˳Ðò¿ØÖƼ̵çÆ÷λS0.0,S0.1,S0.2,S0.3,S0.4.S0.5±íʾ,·Ö±ðÓÃT0.T1,T2,T3,T4,T5±íʾ¶¨Ê±Æ÷.
µ±I0.0Æô¶¯°´Å¥µÃµçʱ,½«¼¤»îS0.0,½øÈëµÚÒ»²½×´Ì¬,ÔÚ¸Ã״̬Äϱ±ºìµÆÁÁ,¶«Î÷Â̵ÆÁÁ,
ͬʱÆô¶¯¶¨Ê±Æ÷T1, T1¶¨Ê±Ê±¼äµ½Ê±,ת»»Ìõ¼þÂú×ã,½áÊøS0.0¼¤»îS0.1½øÈëÏÂÒ»¸ö¹¤×÷״̬, ÔÚ¸Ã״̬Äϱ±ºìµÆÁÁ,¶«Î÷Â̵ÆÉÁ.ͬʱÆô¶¯¶¨Ê±Æ÷T2, T2¶¨Ê±Ê±¼äµ½Ê±,ת»»Ìõ¼þÂú×ã,½áÊøS0.1¼¤»îS0.2½øÈëÏÂÒ»¸ö¹¤×÷״̬, ÔÚ¸Ã״̬Äϱ±ºìµÆÁÁ,¶«Î÷»ÆµÆÁÁ,ÒÀ´Î¼¤»îS0.3,S0.4.S0.5,µ±¶¨Ê±Æ÷T6ʱ¼äµ½Ê±Ôٴ줻îS0.0,²»¶ÏÑ»·Ö´ÐÐ. ˳Ðò¹¦ÄÜͼÈçͼ3.1Ëùʾ
3.2 I/O·ÖÅä¼°½ÓÏßͼ
Ó²¼þ½á¹¹Éè¼ÆÁ˽â¸÷¸ö¶ÔÏóµÄ¿ØÖÆÒªÇó,·ÖÎö¶ÔÏóµÄ¿ØÖÆÒªÇó,È·¶¨ÊäÈë/Êä³ö(I/O)½Ó¿ÚµÄÊýÁ¿,È·¶¨Ëù¿ØÖƲÎÊýµÄ¾«¶È¼°ÀàÐÍ.Èç¶Ô¿ª¹ØÁ¿,Ä£ÄâÁ¿µÄ¿ØÖÆ,Óû§´æ´¢Æ÷µÄ´æ´¢ÈÝÁ¿µÈ.Ñ¡ÔñºÏÊʵÄPLC»úÐͼ°ÍâÉè,Íê³ÉPLCµÄÓ²¼þ½á¹¹ÅäÖÃ.
¸ù¾ÝÉÏÊöÑ¡Ðͼ°¹¤×÷ÒªÇó,»æÖÆPLC¿ØÖƽ»Í¨µÆµÄµç·½ÓÏßͼ,±àÖÆI/O½Ó¿Ú¹¦Äܱí,¸ù¾ÝÐźſØÖÆÒªÇó,I/O·ÖÅä¼°Æä½ÓÏß·Ö±ðÈçͼ3.2£¨1£©£¬£¨2£©Ëùʾ ËùνÊäÈë/Êä³ö½Ó¿Úµç·ÊÇPLCÓë±»¿Ø¶ÔÏó¼ä´«µÝÊäÈëÊä³öÐźŵĽӿڲ¿¼þ£¬¸÷ÊäÈëÊä³öµãµÄͨ¶Ï̬Ó÷¢¹â¶þ¼«¹Ü£¨LED£©ÏÔʾ£¬Íⲿ½ÓÏßÒ»°ã½ÓÔÚPLCµÄ½ÓÏ߶Ë×ÓÉÏ¡£
- 20 -
»ùÓÚÎ÷ÃÅ×ÓS7-200µÄ½»Í¨µÆ¿ØÖÆÉè¼Æ
Ôʼ״̬ I0.0 S0.0 Äϱ±ºìµÆÁÁ ¶«Î÷Â̵ÆÁÁ T0 S0.1 Äϱ±ºìµÆÁÁ ¶«Î÷Â̵ÆÉÁ T1 S0.2 Äϱ±ºìµÆÁÁ ¶«Î÷»ÆµÆÁÁ T2 S0.3 ¶«Î÷ºìµÆÁÁ Äϱ±Â̵ÆÁÁ T3 S0.4 ¶«Î÷ºìµÆÁÁ Äϱ±Â̵ÆÉÁ T4 S0.5 ¶«Î÷ºìµÆÁÁ Äϱ±»ÆµÆÁÁ T5
ͼ3.1 ½»Í¨µÆ˳Ðò¹¦ÄÜͼ
ÏÂÃæÏȸú¾ÝÊäÈë/Êä³ö½Ó¿ÚµÄÊýÁ¿±àÖƳöÊäÈëÊä³ö·ÖÅä±í£º
- 21 -
»ùÓÚÎ÷ÃÅ×ÓS7-200µÄ½»Í¨µÆ¿ØÖÆÉè¼Æ
I/O·ÖÅä±í
ÊäÈë Æô¶¯¿ª¹ØI0.0 Í£Ö¹¿ª¹ØI0.1 Êä³ö ±¨¾¯µÆ Q0.0 Äϱ±ºìµÆQ0.1 Äϱ±Â̵ÆQ0.2 Äϱ±»ÆµÆQ0.3 ¶«Î÷ºìµÆQ0.4 ¶«Î÷Â̵ÆQ0.5 ¶«Î÷»ÆµÆQ0.6
ͼ3.2£¨1£©
»úÄÚÆ÷¼þ T37 Äϱ±ºìµÆ 25S T38 ¶«Î÷ºìµÆ 25S T39 ¶«Î÷ÂÌµÆ 20S T40 ¶«Î÷Â̵ÆÉÁ 3S T41 ¶«Î÷»ÆµÆ 2S T42 Äϱ±ÂÌµÆ 20S T43 Äϱ±Â̵ÆÉÁ 3S T44 Äϱ±»ÆµÆ 2S ¸ù¾ÝÊäÈëÊä³ö·ÖÅä±í»³ö½ÓÏßͼ£¬ÈçÏ£º
SB1 I0.0 Q0.0 Q0.1 Q0.2 I0.1 1L Q0.3 1M Q0.4 Q0.5 ¡ª 2L GND +24V L1 N 3.2 ½»Í¨µÆPLCÍⲿI/O·ÖÅä¼°½ÓÏßͼ
SB2 220V 3.3 ±àÖƳÌÐò
- 22 -
»ùÓÚÎ÷ÃÅ×ÓS7-200µÄ½»Í¨µÆ¿ØÖÆÉè¼Æ
¸ù¾ÝÉÏÊöI/O·ÖÅä±í±àÖƳö³ÌÐòÈçÏ£º
30 Q0.0 T37 I0.0 Q0.0 T38 T37 IN TON PT 100ms 250T38 IN TON PT 100ms T37 250s T39 IN TON PT 100ms I0.0 200sT39 T40 IN TON PT 100ms T41 T40 20 IN TON PT 100ms T42 IN TON PT 100ms T43 T37 200 T42 30 T43 IN TON PT 100ms - 23 - T44 IN TON 20 PT 100ms »ùÓÚÎ÷ÃÅ×ÓS7-200µÄ½»Í¨µÆ¿ØÖÆÉè¼Æ
T37 Q0.0 I0.0 Q0.1
T37
©v©w
Q0.4
©v©w
Q0.2
T40 >=I 1 T40
Q0.1 T39 ©v©w
T40 <=I 10
T40
<=I
30 Q0.3
T40 >=I
20 T41
Q0.4 T42 ©v©w Q0.5 ©v©w
T43 >=I 1 T43 >=I 20
T43 T44
T43 <=I 10
T43 <=I 30 Q0.6
©v©w
Q0.5 Q0.2
Q0.0
©v©w
Ö¸Áî±íÈçÏÂ
LD AN AN TON
I0.0 Q0.0 T38 T37, 250
- 24 -
TON LDN A A
T38, 250 Q0.0 I0.0 T37