三菱st语言 fb块
//##########################初始化#########################//IF ldp(TRUE,bool_ OR bool_) OR bool_ OR bool_ OR SM402 THEN
int_:=0; int_:=0;
END_IF;
//##########################叫载具###########################//
IF bool_ AND int_=0 AND int_=0 AND NOT time_.s THEN
int_:=1;
ELSIF time_.s THEN
int_:=0;
int_:=0;
END_IF;
out_t((*bool_ AND*) int_=1 AND int_=0 OR time_.s AND andfi(TRUE,SM413),time_,200);//回应超时
out_t((*bool_ AND *)int_=51 AND bool_ AND bool_,time_,30);//叫载具成功
out_t((*bool_ AND*) int_=51 AND(NOT bool_ OR NOT bool_),time_,30);//叫载具失败
bool_:=time_.s;//叫载具正常结束
bool_:=time_.s;//叫载具异常结束
页:
[1]