slide1
Download
Skip this Video
Download Presentation
位指令

Loading in 2 Seconds...

play fullscreen
1 / 17

位指令 - PowerPoint PPT Presentation


  • 89 Views
  • Uploaded on

I0.0. I0.1. Q 8.0. ( MCRA). Q 8.1. I 0.0. ( MCR< ). I 1.0. I 1.1. Q 8.0. ( ). M0.0. I1.2. Q 9.3. SR. Q. S. I1.3. R. 位指令. LAD. FBD. STL. 电路图. S1 (I 0.0). Q 4.0. &. I0.0. I0.1. A I0.0 A I0.1 = Q 4.0 = Q 4.1. I 0.0. Q 4.0. =. I 0.1.

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about ' 位指令' - syshe


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
slide1

I0.0

I0.1

Q 8.0

(MCRA)

Q 8.1

I 0.0

( MCR< )

I 1.0

I 1.1

Q 8.0

( )

M0.0

I1.2

Q 9.3

SR

Q

S

I1.3

R

位指令
slide2

LAD

FBD

STL

电路图

S1 (I 0.0)

Q 4.0

&

I0.0

I0.1

A I0.0

A I0.1

= Q 4.0

= Q 4.1

I 0.0

Q 4.0

=

I 0.1

S2 (I 0.1)

AND

Q 4.1

Q 4.1

=

L1

(Q 4.0)

L2

(Q 4.1)

S3

(I 0.2)

I0.2

Q 4.2

O I0.2

O I0.3

= Q 4.2

Q 4.2

>=1

I 0.2

S4

(I 0.3)

OR

=

I 0.3

I0.3

L3 (Q 4.2)

基本逻辑指令:与, 或
slide3

LAD

FBD

STL

&

A I0.4

AN I0.5

O

AN I0.4

A I0.5

= Q4.0

I 0.4

Q 4.0

>=1

I 0.5

=

&

I 0.4

I0.4

I0.5

Q 4.0

I 0.5

I0.5

I0.4

X I0.4

X I0.5

= Q4.0

Q4.0

XOR

I 0.4

=

I 0.5

基本逻辑指令:异或 (XOR)
slide4

例 2

例 3

信号状态

检查结果

逻辑操作结果

首次检查

信号状态

检查结果

逻辑操作结果

首次检查

信号状态

检查结果

逻辑操作结果

首次检查

A I 1.0

0

1

1

AN I 1.1

0

1

0

A M 4.0

0

1

1

= Q 4.0

= Q 4.1

A I 2.0

0

1

0

逻辑操作结果,首次检查,举例

例 1

slide5

PLC程序中的解释

传感器是 ...

输入端有电压

吗?

输入端的信号状态

检查信号状态“1”

检查信号状态“0”

符号 /

指令

检查结果

符号 /

指令

检查结果

动作

LAD:

LAD:

1

Yes

1

No

0

常开触点

常闭触点

不动作

0

No

0

Yes

1

FBD:

FBD:

&

&

常闭触点

动作

0

No

0

Yes

1

不动作

STL:

STL:

1

Yes

1

No

0

A I x.y

AN I x.y

常开和常闭触点,传感器和符号

过程

传感器是 ...

常开触点

slide6

硬件

S1

S2

S1

S2

S1

S2

I1.0

I1.1

I1.0

I1.1

I1.0

I1.1

I 1.0

I 1.0

I 1.1

I 1.0

I 1.1

I 1.1

可编程控制器

可编程控制器

可编程控制器

Q 4.0

Q 4.0

Q 4.0

Light

Light

Light

软件

I1.0

I1.1

Q 4.0

I1.0

I1.1

Q 4.0

I 1.0

I 1.1

Q 4.0

FDB

STL

LAD

&

&

&

I 1.0

I1.0

I1.0

Q 4.0

Q 4.0

Q 4.0

I1.1

I1.1

I1.1

....... I1.0

....... I1.1

....... Q 4.0

....... I1.0

....... I1.1

....... Q 4.0

....... I1.0

....... I1.1

....... Q 4.0

练习8.1:常开点与常闭点

任务:当S1 动作和S2 不动作时,在所有三个例子中灯应该点亮!

slide7

A I 1.0A I 1.1= Q 4.0

I 1.0

I 1.1

Q 4.0

I 1.0

&

( )

Q 4.0

赋值

=

I 1.1

I 1.2

I 1.3

A I 1.2A I 1.3S Q 4.1

I 1.2

&

Q 4.1

置位

Q 4.1

S

I 1.3

(S)

I 1.4

O I 1.4O I 1.5R Q 4.1

I 1.4

Q 4.1

>=1

Q 4.1

(R)

复位

I 1.5

R

I 1.5

赋值,置位,复位

LAD

FBD

STL

slide8

LAD

FBD

STL

M0.0

M0.0

I1.2

A I 1.2S M 0.0A I 1.3R M 0.0A M 0.0= Q 5.3

Q 5.3

SR

SR

复位优先

Q

I1.2

S

S

Q5.3

I1.3

R

Q

=

I1.3

R

M0.0

M0.0

I1.3

A I 1.3R M 0.0A I 1.2S M 0.0A M 0.0= Q 5.3

Q 5.3

RS

RS

置位优先

Q

I1.3

R

R

Q5.3

I1.2

Q

=

I1.2

S

S

触发器的置位 / 复位
slide9

LAD

FBD

STL

I 1.0

I 1.1

M0.0

I 2.0

I 2.1

M 1.1

Q 4.0

( )

( )

( )

NOT

A I 1.0

A I 1.1

= M 0.0

A M 0.0

A I 2.0

A I 2.1

NOT

= M 1.1

A M 1.1

= Q 4.0

I 1.0

&

M0.0

I 1.1

&

I 2.0

M1.1

Q 4.0

I 2.1

=

连接器
slide11

A I0.0 A I0.1 NOT = Q4.0

LAD

FBD

STL

Q4.0

NOT

&

I0.0

I0.0

I0.1

Q4.0

( )

NOT

I0.1

=

CLR

CLR

不存在

不存在

SET

不存在

不存在

SET

I1.6

( SAVE)

SAVE

A I1.6

SAVE

&

I1.6

SAVE

( )

Q4.1

BR

Q4.1

BR

A BR

= Q 4.1

BR

=

15

BR

8

RLO

1

Status word

影响RLO的指令
slide12

LAD

MCRA // 激活

A I0.0 // 允许MCR

MCR( // 打开MCR

A I0.7 // NO 触点

= Q4.5 // 输出线圈

= M0.6 //输出线圈

A I0.4 // NO 触点

S Q8.0 // 置位输出

)MCR // 关闭MCR

AN M5.5 // 紧急触点

AN I 2.7 // 紧急触点

= M69.0 // 输出线圈

MCRD // 取消

( MCRA )

MCRA

FBD

STL

I0.0

( MCR< )

&

A0.0

MCR<

Q4.5

I0.7

Q4.5

( )

=

&

A0.7

M0.6

M0.6

( )

=

Q8.0

Q8.0

I0.4

( S)

&

A0.4

S

( MCR> )

MCR>

M69.0

&

I 2.7

M5.5

M5.5

M69.0

( )

=

I 2.7

( MCRD )

MCRD

主控继电器功能
slide13

LAD

FBD

STL

Network 1

Network 1

Network 1

JU NEW1

Network 2

:

:

:

:

Network x

NEW1: AN M5.5

AN I 2.7

= M69.0

NEW1

NEW1

( JMP )

....

JMP

Network 2

:

:

:

:

Network x

Network 2

:

:

:

:

Network x

NEW1

NEW1

M69.0

&

M5.5

M69.0

M5.5

I 2.7

=

I 2.7

( )

无条件跳转 (不依赖于RLO)
slide14

LAD

FBD

STL

&

A I0.0

A I0.1

JC NEW1

NEW1

I 0.0

I 0.1

I0.0

NEW1

如果RLO=1就跳转

(JMP)

JMP

I0.1

&

I0.2

如果RLO=0就跳转

A I0.2

A I0.3

JCN NEW2

I 0.2

I 0.3

NEW2

NEW2

(JMPN)

I0.3

JMPN

条件跳转 (依赖于RLO)
slide15

LAD

FBD

STL

I1.0

&

M8.0

A I1.0

A I1.1

FP M1.0

= M8.0

A I 1.0 A I 1.1 FN M1.1 = M8.1

M1.0

I1.0

I1.1

M1.0

M8.0

I1.1

P

=

P

I1.0

&

M8.1

M1.1

I1.0

I1.1

M1.1

M8.1

I1.1

N

=

N

OB1-循环

I1.0

I1.1

RLO

M1.0

M1.1

M8.0

M8.1

RLO - 边沿检测

例如

slide16

LAD

FBD

STL

I1.0

A I1.0

A (

A I1.1

FP M1.0

)

= M8.0

A I1.0

A (

A I1.1

FN M1.1

)

= M8.1

I1.1

I1.0

&

I1.1

M8.0

M8.0

POS

Q

POS

M1.0

=

M_BIT

M1.0

M_BIT

I1.1

I1.0

I1.0

M8.1

&

I1.1

NEG

Q

M8.1

NEG

M1.1

M1.1

M_BIT

=

M_BIT

OB1-周期

信号 - 边沿检测

I1.0

I1.1

例如

M1.0

M1.1

M8.0

M8.1

slide17
练习8.3:灌装线编程 (模式选择)

设备ON/OFF:

手动/自动模式:

I 0.0 =

启动 (瞬态常开触点开关)

I 0.4 =

手动/自动 (开关)

停止 (瞬态常闭触点开关)

I 0.1 =

I 0.5 =

接受模式 (瞬态常开触点开关)

向前点动(瞬态常开触点开关)

I 0.2 =

I 0.3 =

向后点动 (瞬态常开触点开关)

瓶子传感器

I 8.6

M

Q 8.5 传送带向前

Q 8.6 传送带向后

ad