This presentation is the property of its rightful owner.
Sponsored Links
1 / 30

第七章 编程实例 例 1 、 设计一个报警器,要求当条件 X1=ON 满足时蜂鸣器鸣叫,同时报警灯连续闪烁 16 次,每次亮 2s ,熄灭 3s ,然后,停止声光报警。 PowerPoint PPT Presentation


  • 90 Views
  • Uploaded on
  • Presentation posted in: General

第七章 编程实例 例 1 、 设计一个报警器,要求当条件 X1=ON 满足时蜂鸣器鸣叫,同时报警灯连续闪烁 16 次,每次亮 2s ,熄灭 3s ,然后,停止声光报警。 分析:输入信号占用一个输入点,蜂鸣器和报警灯各占用一个输出点,报警灯亮、暗闪烁,可以采用两个定时器分别控制,而闪烁次数由计数器控制。 I/O 分配如下: 输入端,报警信号( SQ ) ----X1 ;. 输出端,蜂鸣器 ------Y1 报警灯( HL ) ------Y2 。. FU ~ 220V. COM. COM. SQ. Y1. X1. HL.

Download Presentation

第七章 编程实例 例 1 、 设计一个报警器,要求当条件 X1=ON 满足时蜂鸣器鸣叫,同时报警灯连续闪烁 16 次,每次亮 2s ,熄灭 3s ,然后,停止声光报警。

An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

Presentation Transcript


1 x1 on 16 2s 3s

1X1=ON162s3s

I/O

SQ----X1

------Y1 HL------Y2

FU220V

COM

COM

SQ

Y1

X1

HL

PLC

Y2

PLC


1 x1 on 16 2s 3s

X1

PLS M1

M1

C0

X1

Y1

Y1

M1

Y1

T1

Y1

K20

T0

3s

T0

T0

Y2

T1

T0

2s

K30

T1

Y2

Y1

16

RST C0

T0

C0

K16

END


1 x1 on 16 2s 3s

210min

I/O


1 x1 on 16 2s 3s

X1

X2

M0

M0

FU 220V

M0

COM

COM

Y1

KM1

Y1

M1

T1

K6000

SB1

X1

T1

KM2

Y2

M2

SB2

Y2

X2

KM3

Y3

M3

T2 K6000

T2

Y3

KM4

Y4

M4

PLC

T3 K6000

T3

Y4

PLC

END


1 x1 on 16 2s 3s

M0

M8012

M8012PLC100ms

RST C1

C0 M8012

C1 K6000

M0

RST C2

C1 M8012

C2 K6000

M0

Y1

M8012

C0

100ms

Y2

C1

M8012

Y3

X1 X2

C2

M0

Y4

M0

END

M0

RST C0

M0 M8012

C0

K6000


1 x1 on 16 2s 3s

T0

M2 X2

10min

Y3

Y3

PLS M3

T0 M3 M2 X2

Y4

Y4

X1 X2

M0

M0

END

M0 T0

T0

K6000

M0 X2

X1M0M0Y1T0T010minT0

Y1

Y1

PLS M1

T0

M1 X2

Y2

Y2

PLS M2


1 x1 on 16 2s 3s

3PLC

88

SQ4 SQ2

SQ1 SQ3


1 x1 on 16 2s 3s

S1S1

S2S2


1 x1 on 16 2s 3s

I/O


1 x1 on 16 2s 3s

FU 220V

COM

COM

FR

S1

X0

/

KM1

SB1

X1

Y1

SB2

X2

SB3

X3

KM2

Y2

/

S2

X10

SQ1

X11

SQ2

X12

X13

SQ3

SQ4

X14

PLC

PLC


1 x1 on 16 2s 3s

X2 X1 Y2

Y1

Y1

X3 X1 Y1

Y2

Y2

X2 X12 X1 Y2

Y1

SQ2SQ2X12Y1X12Y2SQ1

Y1

X11

X3 X11 X1 Y1

Y2

Y2

X12


1 x1 on 16 2s 3s

X2 X12 X1 Y2

Y1

Y1

X0

S1X0Y1Y2S1X0X0Y1Y2

X11

X3 X11 X1 Y1

Y2

Y2

X0

X12

X2 X12 X1 Y2

Y1

X11Y1S2S2X10X10X10X11

Y1

X0

X11

X10

X3 X11 X1 Y1

Y2

Y2

X0

X12


1 x1 on 16 2s 3s

X2 X12 X1 Y2 C0 X14

Y1

SQ3SQ4

Y1

X0

X11

X10

X3 X11 X1 Y1 X13

Y2

Y2

X0

X12

X2

RST C0

X11

C0 K8

END

PLC


1 x1 on 16 2s 3s

SQ2

SB1

SQ3

4

SQ4

SQ1

20s


1 x1 on 16 2s 3s

I/O


1 x1 on 16 2s 3s

FU 220V

COM

COM1

YV1

X1

SB1

Y1

SB2

X2

YV2

Y2

X11

SQ1

YV3

Y3

SQ2

X12

COM2

X13

SQ3

SQ4

X14

YV4

Y4

PLC

PLC

20s

S0S9S20


1 x1 on 16 2s 3s

SB1SQ2SQ3SQ420sSQ1

M8002

S0

X1SB1

S20

Y1

X12

PLC

Y3

M8002

S21

Y1

SET S0

X13

S0 X1

SET S20

S22

Y1

S20

X14

Y4

Y1

S23

Y1

Y3

X12

Y4

T0

SET S21

T0 K200

S21

Y1

S24

Y2

X13

X11

SET S22


1 x1 on 16 2s 3s

S22

5

Y1

Y4

X14

SET S23

Y0

S23

Y1

Y1

Y4

Y2

T0 K200

Y3

T0

Y4

SET S24

S24

5s

5s

15s

30s

Y2

T0

T1

T2

T3

X11

S0

PLCSTOPRUNM8012M0ON15s55sM8013

RET

END


1 x1 on 16 2s 3s

M3 M6 T1 M2

M0

M8002

Y1

M8012

M0

T2 K300

M0

Y1 Y3 T2

M0

T2

M3

M2

T2

M2

Y2

M2

T3 Y2

M4

Y3

T3 K50

T3

T3

M3

Y0

M5

T0 Y4

T3

M0

M2

M3

T0

M6

T1 Y4

M3

Y0

T1

M0

T2

M5

M4

M4

M4

T3

M6

M5

M5

T0 K150


1 x1 on 16 2s 3s

M8002

T0

M0

M5

M6

S9

M6

T1 K50

X0

Y0

S50

M0

Y3

X1

Y1

S51

M4

T50

T50 K5

M6

M8013

X2

X3

Y4

Y2

OUT S50

S52

M5

X4

Y3

S53

X5

X6

X6

Y4

OUT S56

S54

X7

6

T51 K10

S5

T51

Y5

S6

X10

X11

X11

OUT S9

OUT S50

RET

END


1 x1 on 16 2s 3s

M8002

SET S9

S9

X0

SET S50

S54

Y4

S50

X7

Y0

SET S55

X1

SET S51

S55

T51 K10

S51

Y1

T51

SET S56

T50 K5

S56

Y5

X10

X11

X2

T50

S50

S9

T50

X3

X10

X11

SET S52

S50

S52

Y2

RET

X4

SET S53

RND

S53

Y3

X5

X6

S56

X5

X6

SET S54


1 x1 on 16 2s 3s

  • 0 LD M8002

  • SET S9

  • STL S9

  • LD X0

  • SET S50

  • STL S50

  • OUT Y0

  • LD X1

  • SET S51

  • STL S51

  • OUT Y1

  • OUT T50

  • K 5

  • LD T50

  • AND X2

  • OUT S50

  • LD T50

  • AND X3

  • SET S52

  • STL S52

  • OUT Y2

  • LD S4

  • SET S53

  • STL S53

  • OUT Y3

  • 25 LD X5

  • 26 AND X6

  • 27 OUT S56

  • 28 LD X5

  • ANI X6

  • SET S54

  • STL S54

7 PLC

  • OUT Y4

  • LD X7

  • SET S55

  • STL S55

  • OUT T51

  • K 10

  • LD T51

  • SET S56

  • STL S56

  • OUT Y5

  • LD X10

  • AND X11

  • OUT S9

  • LD X10

  • ANI X11

  • OUT S50

  • RET

  • END

FU

QS

KM3

R1

R2

KM4

R

KM5

R3

V

KM1

KM2

KA

M

KV

KM1

KM2


1 x1 on 16 2s 3s

I/O

FU

COM

COM1

KM1

SB1

KM2

X1

Y1

SB2

KM2

X2

KM1

Y2

SB3

X3

KA

X4

Y3

KM3

KV

X5

FU

KM1KM2KM5R3KM3KM4R1R2KAKV

COM2

Y4

KM4

KM5

Y5

PLC


1 x1 on 16 2s 3s

SET

R1R2R1R2

R1R2R3KM5R1R2


1 x1 on 16 2s 3s

X3

M2

Y5

X1

Y2

RST Y2

SET Y1

Y2

Y1

X2

SET Y1

SET Y2

X5

M1

Y1

Y5

RST Y2

T1 K200

X4

Y2

RST M1

T1

X5

M2

Y3

RST Y1

X4

T2 K200

RST M2

T2

Y4

END

X1

SET Y5

X2

X3

X5

RST Y5

Y1

X5

M2

SET M1

Y2

X5

M1

SET M2

X3

M1

Y5

RST Y1

Y1

SET Y2


  • Login