quote:以下是引用axg2008在2012-12-20 15:36:00的发言:
没有详细看,程序第2步就有错。
L #DB_no //打开DB块
T TEMP1 //加入这个再看吧
OPN DB [#temp1]
是的,少了这个 。
现在是SF灯亮,读取数据长度错误。
Area length error when reading
Global DB, double-word access, Access address: 8040
Requested OB: Programming error OB (OB121)
Priority class: 1
Internal error, Incoming event
08:17:50.310 PM 12/20/2012
不知道是不是DB定义的有问题。
我把下面这埠定义在DB里。
temp1 word
temp2 dword
temp3 dword
temp4 dint
temp5 dint
temp6 word
temp7 dword
temp8 word
temp9 dword
temp10 int
temp11 dword
temp12 dint