CALL "DPWR_DAT"
LADDR :=W#16#3C
RECORD :="Commu_DB".output_data
RET_VAL:=#stat_ret_val_0
CALL "DPRD_DAT"
LADDR :=W#16#3C
RET_VAL:=#stat_ret_val_1
RECORD :="Commu_DB".input_data
我的300PLC DP下挂了一个EM277,设置8个字节输入,8个字节输出,想用上面的代码一次性的读和写,但就是不行,我在组态中的地址输入输出都是60~67,所以LADDR=W#16#3C应该没错吧,Commu_DB".input_data也是定义成array的,8个字节,但返回结果就不行,错误代码是8090,看MANUAL的解释是
1.You have not configured a module for the specified logical base address
2.you have ignored the restriction concerning the length of consistent data
3.you have not entered the start address in the LADDR parameter in hexadecimal format.
但我看我好像三条都没有范那错误,请高手帮一下忙,错在那里了