现有化工切粒系统中一套PLC通过DP方式控制MM4变频器,因对STL及变频器不熟悉,特贴上程序代码,烦请高人解读/指点,谢谢!
A T 3
JC M001
L 2#10001000110 //0446h
T QW 32
JU M002
M001: NOP 0
L 2#10001111111 //47Fh
T QW 32
M002: NOP 0
A M 85.4
= Q 33.7
L IW 32
T MW 200
L W#16#101B
T DB126.DBW 200
CALL "DPWR_DAT"
LADDR :=W#16#18
RECORD :=P#DB126.DBX 200.0 BYTE 8
RET_VAL:=DB126.DBW208
CALL "DPRD_DAT"
LADDR :=W#16#18
RET_VAL:=DB126.DBW210
RECORD :=P#DB126.DBX 212.0 BYTE 8
L DB126.DBW 218
T DB127.DBW 300
T DB85.DBW 224
NOP 0