CASE nWriteStep OF
ENUM_config_xml.nInitial://复位动作
XmlSrvWriteByNameFb.bExecute:=FALSE;
读取配置文件失败l.bWrite THEN
configXml.status.bError:=FALSE;
configXml.status.sComment:="";
configXml.status.bWriteDone:=FALSE;
龙迷凤店nWriteStep:=ENUM_config_xml.nWrite;
END_IF
ENUM_config_xml.nWrite://写⼊数据
XmlSrvWriteByNameFb.bExecute:=TRUE;
IF XmlSrvWriteByNameFb.bBusy THEN
nWriteStep:=ENUM_config_xml.nWhetherWrite;
END_IF
ENUM_config_xml.nWhetherWrite://判断数据是否写⼊
IF XmlSrvWriteByNameFb.bError THEN
configXml.status.bError:=TRUE;
configXml.status.sComment:="写配置失败";
nWriteStep:=ENUM_config_xml.nInitial;
END_IF
IF NOT XmlSrvWriteByNameFb.bBusy AND NOT XmlSrvWriteByNameFb.bError THEN
configXml.status.bWriteDone:=TRUE;
configXml.status.sComment:="写配置写⼊完成";
nWriteStep:=ENUM_config_xml.nInitial;
END_IF
END_CASE
//读取配置信息步
CASE nReadStep OF
ENUM_config_xml.nInitial://复位动作
XmlSrvReadByNameFb.bExecute:=FALSE;
l.bRead THEN
configXml.status.bError:=FALSE;
configXml.status.sComment:="";
configXml.status.bReadDone:=FALSE;
nReadStep:=ENUM_config_xml.nRead;
END_IF
ENUM_config_xml.nRead://读取数据
XmlSrvReadByNameFb.bExecute:=TRUE;
IF XmlSrvReadByNameFb.bBusy THEN
nReadStep:=ENUM_config_xml.nWhetherRead;
END_IF
ENUM_config_xml.nWhetherRead://判断数据是否读取
IF XmlSrvReadByNameFb.bError THEN
configXml.status.bError:=TRUE;
configXml.status.sComment:="读配置失败";
nReadFail:=nReadFail+1;
IF nReadFail<5 THEN
END_IF
nReadStep:=ENUM_config_xml.nInitial;
END_IF
IF NOT XmlSrvReadByNameFb.bBusy AND NOT XmlSrvReadByNameFb.bError THEN
configXml.status.bReadDone:=TRUE;
configXml.status.bReadDone:=TRUE;
configXml.status.sComment:="读配置读取完成"; nReadStep:=ENUM_config_xml.nInitial;
END_IF面膜哪个牌子好
END_CASE传记怎么写
//功能块
XmlSrvReadByNameFb(
sNetId:='',
ePath:=,
nMode:=,
sSymName:=configXml.parameter.sSymName , sFilePath:=configXml.parameter.sFilePath ,
sXPath:=configXml.parameter.sXPath ,
bExecute:=,
tTimeout:=T#10S ,
bBusy=>,
bError=>,
nErrId=>);
XmlSrvWriteByNameFb(
sNetId:='',
ePath:=,
nMode:=XMLSRV_ADDMISSING ,
小年文案朋友圈sSymName:=configXml.parameter.sSymName , sFilePath:=configXml.parameter.sFilePath ,
sXPath:=configXml.parameter.sXPath ,
bExecute:=,
tTimeout:=T#10S ,怎样做冬瓜排骨汤
bBusy=>,
bError=>,
nErrId=>);
发布评论