遗忘海岸

江湖程序员 -Feiph(LM战士)

导航

s7-200 PID控位

只有加热模块,没有风扇,所以温度上冲达到5度左右

TITLE=程序注释
Network 1 // 网络标题
// 初始化
LD     SM0.1
LPS
MOVW   300, VW500
MOVW   300, VW502
MOVR   0.0, VD104
AENO
MOVR   1.0, VD112
LRD
MOVR   1.0, VD116
LPP
MOVR   1.0, VD120
AENO
MOVR   0.0, VD124
Network 2 
Network 3 
LDN    T36
TON    T33, VW500
Network 4 
LD     T33
TON    T36, VW502
=      Q0.6
Network 5 
LDN    T33
EU
MOVW   VW400, VW500
MOVW   VW402, VW502
INCD   VD200
BITIM  VD260
Network 6 
LD     SM0.0
CITIM  VD260, VD264
Network 7 
// 读取温度数据
LD     SM0.5
EU
LPS
MOVW   AIW0, AC0
AENO
ITD    AC0, AC0
LRD
DTR    AC0, AC0
AENO
/R     320.0, AC0
LPP
MOVR   AC0, VD360
AENO
MOVR   VD360, VD100
Network 8 
LDN    T37
TON    T37, 10
EU
LPS
PID    VB100, 0
INCD   VD204
MOVR   VD108, AC1
*R     600.0, AC1
AR>    AC1, 550.0
MOVR   600.0, AC1
LRD
AR<    AC1, 50.0
MOVR   0.0, AC1
LPP
TRUNC  AC1, AC1
AENO
DTI    AC1, VW402
AENO
MOVW   +600, VW400
-I     VW402, VW400
Network 9 
Network 10 
Network 11 
Network 12 
Network 13 
Network 14 
Network 15 
Network 16 
Network 17 
Network 18 
Network 19 
Network 20 
Network 21 
Network 22 
Network 23 
Network 24 
Network 25 
View Code

 

posted on 2017-09-12 15:45  遗忘海岸  阅读(269)  评论(0编辑  收藏  举报