[西门子] [原创]3台电机顺序启动,逆序停止梯形图程序

[复制链接]
查看9579 | 回复12 | 2007-6-21 13:55:00 | 显示全部楼层 |阅读模式
方法一,
方法二,
太复杂了,我有个简单的,可以任意设定启动的顺序,用200做的

6台电机任意启动,可以设定启动顺序,vb10,vb11,vb12,vb13,vb14 vb15保存启动的顺序

TITLE=程序注释
Network 1
LD Q0.0
ON V213.0
LD Q0.1
ON V213.1
ALD
LD Q0.2
ON V213.2
ALD
LD Q0.3
ON V213.3
ALD
LD Q0.4
ON V213.4
ALD
LD Q0.5
ON V213.5
ALD
= V213.7
S V213.6, 1
Network 2
// 必须从网络7开始
LD SM0.1
R I0.1, 100
Network 3
LD I0.0
A I0.1
S V204.0, 1
R V204.1, 1
Network 4
LDB= QB0, 0
R V213.6, 1
Network 5
LDN V213.7
AN V213.6
A I0.1
ON I0.0
EU
R Q0.0, 6
R V200.1, 50
Network 6
LD V204.0
AB= VB10, 0
EU
S V202.0, 1
JMP 12
Network 7 // 网络标题
// 网络注释
LDB<> VB10, 0
A I0.1
EU
LPS
AB= VB10, 1
S Q0.0, 1
LRD
AB= VB10, 2
S Q0.1, 1
LRD
AB= VB10, 3
S Q0.2, 1
LRD
AB= VB10, 4
S Q0.3, 1
LRD
AB= VB10, 5
S Q0.4, 1
LRD
AB= VB10, 6
S Q0.5, 1
LPP
S V200.1, 1
Network 8
LD V200.1
TON T110, 30
Network 9
Network 10
LBL 12
Network 11
LD T110
O V202.0
EU
LPS
AB= VB11, 0
R V200.1, 1
S V202.1, 1
JMP 15
LPP
LPS
AB= VB11, 1
S Q0.0, 1
LRD
AB= VB11, 2
S Q0.1, 1
LRD
AB= VB11, 3
S Q0.2, 1
LRD
AB= VB11, 4
S Q0.3, 1
LRD
AB= VB11, 5
S Q0.4, 1
LRD
AB= VB11, 6
S Q0.5, 1
LRD
R V200.1, 1
LRD
S V200.2, 1
LPP
R V202.0, 1
Network 12
LD V200.2
TON T101, 30
Network 13
LBL 15
Network 14
LD T101
O V202.1
EU
LPS
AB= VB12, 0
R V200.2, 1
S V202.2, 1
JMP 18
LPP
LPS
AB= VB12, 1
S Q0.0, 1
LRD
AB= VB12, 2
S Q0.1, 1
LRD
AB= VB12, 3
S Q0.2, 1
LRD
AB= VB12, 4
S Q0.3, 1
LRD
AB= VB12, 5
S Q0.4, 1
LRD
AB= VB12, 6
S Q0.5, 1
LRD
R V200.2, 1
LRD
S V200.3, 1
LPP
R V202.1, 1
Network 15
LD V200.3
TON T102, 30
Network 16
LBL 18
Network 17
LD T102
O V202.2
EU
LPS
AB= VB13, 0
R V200.3, 1
S V202.3, 1
JMP 21
LPP
LPS
AB= VB13, 1
S Q0.0, 1
LRD
AB= VB13, 2
S Q0.1, 1
LRD
AB= VB13, 3
S Q0.2, 1
LRD
AB= VB13, 4
S Q0.3, 1
LRD
AB= VB13, 5
S Q0.4, 1
LRD
AB= VB13, 6
S Q0.5, 1
LRD
R V200.3, 1
LRD
S V200.4, 1
LPP
R V202.2, 1
Network 18
LD V200.4
TON T103, 30
Network 19
LBL 21
Network 20
LD T103
O V202.3
EU
LPS
AB= VB14, 0
R V200.4, 1
S V202.4, 1
JMP 24
LPP
LPS
AB= VB14, 1
S Q0.0, 1
LRD
AB= VB14, 2
S Q0.1, 1
LRD
AB= VB14, 3
S Q0.2, 1
LRD
AB= VB14, 4
S Q0.3, 1
LRD
AB= VB14, 5
S Q0.4, 1
LRD
AB= VB14, 6
S Q0.5, 1
LRD
R V200.4, 1
LRD
S V200.5, 1
LPP
R V202.3, 1
Network 21
LD V200.5
TON T104, 30
Network 22
LBL 24
Network 23
LD T104
O V202.4
EU
LPS
AB= VB15, 0
R V200.5, 1
JMP 26
LPP
LPS
AB= VB15, 1
S Q0.0, 1
LRD
AB= VB15, 2
S Q0.1, 1
LRD
AB= VB15, 3
S Q0.2, 1
LRD
AB= VB15, 4
S Q0.3, 1
LRD
AB= VB15, 5
S Q0.4, 1
LRD
AB= VB15, 6
S Q0.5, 1
LRD
R V200.5, 1
LPP
R V202.4, 1
Network 24
LBL 26
Network 25
// v200.6停止
LD I0.0
AN I0.1
LPS
EU
AB= VB15, 0
S V203.0, 1
LRD
S V204.1, 1
LPP
R V204.0, 1
Network 26
LD V204.1
A V203.0
EU
JMP 31
Network 27 // 网络标题
// 网络注释
LDB<> VB15, 0
AN I0.1
EU
LPS
AB= VB15, 1
R Q0.0, 1
LRD
AB= VB15, 2
R Q0.1, 1
LRD
AB= VB15, 3
R Q0.2, 1
LRD
AB= VB15, 4
R Q0.3, 1
LRD
AB= VB15, 5
R Q0.4, 1
LRD
AB= VB15, 6
R Q0.5, 1
LPP
S V205.1, 1
Network 28
LD V205.1
TON T105, 30
Network 29
LBL 31
Network 30
LD T105
O V203.0
EU
LPS
AB= VB14, 0
S V203.1, 1
R V205.1, 1
JMP 34
LPP
LPS
AB= VB14, 1
R Q0.0, 1
LRD
AB= VB14, 2
R Q0.1, 1
LRD
AB= VB14, 3
R Q0.2, 1
LRD
AB= VB14, 4
R Q0.3, 1
LRD
AB= VB14, 5
R Q0.4, 1
LRD
AB= VB14, 6
R Q0.5, 1
LRD
R V205.1, 1
LRD
S V205.2, 1
LPP
R V203.0, 1
Network 31
LD V205.2
TON T112, 30
Network 32
LBL 34
Network 33
LD T112
O V203.1
EU
LPS
AB= VB13, 0
S V203.2, 1
R V205.2, 1
JMP 37
LPP
LPS
AB= VB13, 1
R Q0.0, 1
LRD
AB= VB13, 2
R Q0.1, 1
LRD
AB= VB13, 3
R Q0.2, 1
LRD
AB= VB13, 4
R Q0.3, 1
LRD
AB= VB13, 5
R Q0.4, 1
LRD
AB= VB13, 6
R Q0.5, 1
LRD
R V205.2, 1
LRD
S V205.3, 1
LPP
R V203.1, 1
Network 34
LD V205.3
TON T107, 30
Network 35
LBL 37
Network 36
LD T107
O V203.2
EU
LPS
AB= VB12, 0
S V203.3, 1
R V205.3, 1
JMP 40
LPP
LPS
AB= VB12, 1
R Q0.0, 1
LRD
AB= VB12, 2
R Q0.1, 1
LRD
AB= VB12, 3
R Q0.2, 1
LRD
AB= VB12, 4
R Q0.3, 1
LRD
AB= VB12, 5
R Q0.4, 1
LRD
AB= VB12, 6
R Q0.5, 1
LRD
R V205.3, 1
LRD
S V205.4, 1
LPP
R V203.2, 1
Network 37
LD V205.4
TON T108, 30
Network 38
LBL 40
Network 39
LD T108
O V203.3
EU
LPS
AB= VB11, 0
S V203.4, 1
R V205.4, 1
JMP 43
LPP
LPS
AB= VB11, 1
R Q0.0, 1
LRD
AB= VB11, 2
R Q0.1, 1
LRD
AB= VB11, 3
R Q0.2, 1
LRD
AB= VB11, 4
R Q0.3, 1
LRD
AB= VB11, 5
R Q0.4, 1
LRD
AB= VB11, 6
R Q0.5, 1
LRD
R V205.4, 1
LRD
S V205.5, 1
LPP
R V203.3, 1
Network 40
LD V205.5
TON T109, 30
Network 41
LBL 43
Network 42
LD T109
O V203.4
EU
LPS
AB= VB10, 1
R Q0.0, 1
LRD
AB= VB10, 2
R Q0.1, 1
LRD
AB= VB10, 3
R Q0.2, 1
LRD
AB= VB10, 4
R Q0.3, 1
LRD
AB= VB10, 5
R Q0.4, 1
LRD
AB= VB10, 6
R Q0.5, 1
LRD
R V205.5, 1
LPP
R V203.4, 1
Network 43
LDB= VB10, 1
OB= VB11, 1
OB= VB12, 1
OB= VB13, 1
OB= VB14, 1
OB= VB15, 1
= V213.0
Network 44
LDB= VB10, 2
OB= VB11, 2
OB= VB12, 2
OB= VB13, 2
OB= VB14, 2
OB= VB15, 2
= V213.1
Network 45
LDB= VB10, 3
OB= VB11, 3
OB= VB12, 3
OB= VB13, 13
OB= VB14, 3
OB= VB15, 3
= V213.2
Network 46
LDB= VB10, 4
OB= VB11, 4
OB= VB12, 4
OB= VB13, 4
OB= VB14, 4
OB= VB15, 4
= V213.3
Network 47
LDB= VB10, 5
OB= VB11, 5
OB= VB12, 5
OB= VB13, 5
OB= VB14, 5
OB= VB15, 5
= V213.4
Network 48
LDB= VB10, 6
OB= VB11, 6
OB= VB12, 6
OB= VB13, 6
OB= VB14, 6
OB= VB15, 6
= V213.5

方法三;
A234420466 | 2007-6-21 15:53:00 | 显示全部楼层
[em01][em03][em04]
h3hdl | 2007-6-21 21:58:00 | 显示全部楼层

学习学习

[em01][em01]
hangleee | 2007-7-1 00:13:00 | 显示全部楼层

好难懂啊

[em03]
hedyhuang | 2007-7-1 01:19:00 | 显示全部楼层

仔细想想;较难

[em01]
tianwaizhou | 2007-7-10 16:28:00 | 显示全部楼层

看看

420934322 | 2007-10-11 19:36:00 | 显示全部楼层
learn more
panhua202 | 2007-10-13 10:46:00 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
hbd885 | 2007-10-13 21:15:00 | 显示全部楼层

[em01]
huaiyuan | 2007-11-7 00:10:00 | 显示全部楼层
全是高手啊
fanyinfu | 2012-3-10 12:27:01 | 显示全部楼层
晕了,看了一整天也看不懂

http://www.gzbz5.com
http://www.cd610000.com
豆豆泥 | 2012-12-26 17:24:45 | 显示全部楼层
我也是,一点没看懂


重庆餐厅设计   http://www.cqsnsj.com
您需要登录后才可以回帖 登录 | 注册哦

本版积分规则