set
=M170.3
CALL,FC21
Enable:=M170.3
Funct:=B#16#4
S7Var:=P#DB100.DBX12.0 REAL 4
IVAR1:=20
IVWR2:=-1
Error:=M171.3
ErrCode:=DB100.DBW94
set
=M170.1
CALL,FC21
Enable:=M170.1
Funct:=B#16#3
S7Var:=P#DB100.DBX70.0 REAL 5
IVAR1:=0
IVWR2:=-1
Error:=M171.1
ErrCode:=DB100.DBW92
最佳答案
CALL,FC21
Enable:=M170.3-->触发条件
Funct:=B#16#4-->功能为写
S7Var:=P#DB100.DBX12.0 REAL 4-->DB100.DBD12,DB100.DBD16,DB100.DBD20,DB100.DBD24
IVAR1:=20-->$A_DBR[20],$A_DBR[24],$A_DBR[28],$A_DBR[32]
IVWR2:=-1
Error:=M171.3--->错误标识
ErrCode:=DB100.DBW9--》错误代码
另外个读类似我就不详细写了
提问者对于答案的评价:
原创文章,作者:more0621,如若转载,请注明出处:https://www.zhaoplc.com/plc307833.html