<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="www.iec.ch/public/TC65SC65BWG7TF10"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="www.iec.ch/public/TC65SC65BWG7TF10 IEC61131_10_Ed1_0.xsd"
schemaVersion="1.0">
<FileHeader companyName="Some Company" companyURL="http://www.someCompany.com"
productName="Some PADT" productVersion="Edition1" productRelease="2018"/>
<ContentHeader name="IEC_61131-10_Document_Example" version="1.0"
creationDateTime="2017-06-14T09:00:00Z" modificationDateTime="2018-11-04T11:56:00Z"
organization="Some Organization" author="TF10" language="En">
<CoordinateInfo>
<FbdScaling x="3" y="3" />
<LdScaling x="4" y="6" />
<SfcScaling x="6" y="4" />
</CoordinateInfo>
<AddDataInfo/>
</ContentHeader>
<Types>
<GlobalNamespace>
<NamespaceDecl name="AnnexC">
<Program name="Main">
<ExternalVars>
<Variable name="Q8_1"> <Type> <TypeName>BOOL</TypeName> </Type> </Variable>
<Variable name="Q8_2"> <Type> <TypeName>BOOL</TypeName> </Type> </Variable>
<Variable name="Q8_3"> <Type> <TypeName>BOOL</TypeName> </Type> </Variable>
<Variable name="Q8_4"> <Type> <TypeName>BOOL</TypeName> </Type> </Variable>
<Variable name="Q8_5">
<Type>
<TypeName>BOOL</TypeName>
</Type>
</Variable>
<Variable name="Q8_6">
<Type>
<TypeName>BOOL</TypeName>
</Type>
</Variable>
</ExternalVars>
<Vars accessSpecifier="private">
<Variable name="IL_FB_Instance"> <Type> <TypeName>IL_FB</TypeName> </Type> </Variable>
<Variable name="ST_FB_Instance"> <Type> <TypeName>ST_FB</TypeName> </Type> </Variable>
<Variable name="LD_FB_Instance"> <Type> <TypeName>LD_FB</TypeName> </Type> </Variable>
<Variable name="FBD_FB_Instance"> <Type> <TypeName>FBD_FB</TypeName> </Type> </Variable>
<Variable name="SFC_FB_Instance">
<Type>
<TypeName>SFC_FB</TypeName>
</Type>
</Variable>
<Variable name="SFC_FB2_Instance">
<Type>
<TypeName>SFC_FB2</TypeName>
</Type>
</Variable>
</Vars>
<MainBody>
<BodyContent xsi:type="ST">
<ST>
<![CDATA[
IL_FB_Instance(Output => Q8_1);
ST_FB_Instance(Output => Q8_2);
LD_FB_Instance(Output => Q8_3);
FBD_FB_Instance(Output => Q8_4);
SFC_FB_Instance(Output => Q8_5);
SFC_FB2_Instance(Output => Q8_6);
]]>
</ST>
</BodyContent>
</MainBody>
</Program>
<FunctionBlock name="IL_FB">
<Parameters>
<OutputVars>
<Variable name="Output" orderWithinParamSet="1"> <Type> <TypeName>BOOL</TypeName> </Type> </Variable>
</OutputVars>
</Parameters>
<Vars accessSpecifier="private">
<Variable name="S1"> <Type> <TypeName>BOOL</TypeName> </Type> <InitialValue> <SimpleValue value="TRUE"/> </InitialValue> </Variable>
<Variable name="S2"> <Type> <TypeName>BOOL</TypeName> </Type> </Variable>
<Variable name="S1TON"> <Type> <TypeName>TON</TypeName> </Type> </Variable>
<Variable name="S2TON"> <Type> <TypeName>TON</TypeName> </Type> </Variable>
</Vars>
<MainBody>
<BodyContent xsi:type="IL">
<IL>
<![CDATA[
// S1 -> S2
CAL S1TON(IN := S1, PT := T#1S)
LD S1TON.Q
R S1
S S2
// S2 -> S1
CAL S2TON(IN:= S2, PT := T#1s);
LD S2TON.Q
R S2
S S1
// Output
LD Output
ST S1
]]>
</IL>
</BodyContent>
</MainBody>
</FunctionBlock>
<FunctionBlock name="ST_FB">
<Parameters>
<OutputVars>
<Variable name="Output" orderWithinParamSet="1"> <Type> <TypeName>BOOL</TypeName> </Type> </Variable>
</OutputVars>
</Parameters>
<Vars accessSpecifier="private">
<Variable name="S1"> <Type> <TypeName>BOOL</TypeName> </Type> <InitialValue> <SimpleValue value="TRUE"/> </InitialValue> </Variable>
<Variable name="S2"> <Type> <TypeName>BOOL</TypeName> </Type> </Variable>
<Variable name="S1TON"> <Type> <TypeName>TON</TypeName> </Type> </Variable>
<Variable name="S2TON"> <Type> <TypeName>TON</TypeName> </Type> </Variable>
</Vars>
<MainBody>
<BodyContent xsi:type="ST">
<ST>
<![CDATA[
// S1 -> S2
S1TON(IN := S1, PT := T#1S);
IF S1TON.Q THEN
S1 := FALSE;
S2 := TRUE;
END_IF
// S2 -> S1
S2TON(IN:= S2, PT := T#1s);
IF S2TON.Q THEN
S2 := FALSE;
S1 := TRUE;
END_IF
// Output
Output := S1;
]]>
</ST>
</BodyContent>
</MainBody>
</FunctionBlock>
<FunctionBlock name="LD_FB">
<Parameters>
<OutputVars>
<Variable name="Output" orderWithinParamSet="1">
<Type>
<TypeName>BOOL</TypeName>
</Type>
</Variable>
</OutputVars>
</Parameters>
<Vars accessSpecifier="private">
<Variable name="S1">
<Type>
<TypeName>BOOL</TypeName>
</Type>
<InitialValue>
<SimpleValue value="TRUE"/>
</InitialValue>
</Variable>
<Variable name="S2">
<Type>
<TypeName>BOOL</TypeName>
</Type>
</Variable>
<Variable name="S1TON">
<Type>
<TypeName>TON</TypeName>
</Type>
</Variable>
<Variable name="S2TON">
<Type>
<TypeName>TON</TypeName>
</Type>
</Variable>
</Vars>
<MainBody>
<BodyContent xsi:type="LD">
<Rung evaluationOrder="1">
<RelPosition x="1" y="1"/>
<CommonObject xsi:type="Comment">
<RelPosition x="1" y="0"/>
<Content xsi:type="SimpleText">S1 -> S2</Content>
</CommonObject>
<LdObject xsi:type="LeftPowerRail">
<RelPosition x="1" y="0"/>
<ConnectionPointOut connectionPointOutId="1">
<RelPosition x="0" y="7"/>
</ConnectionPointOut>
<ConnectionPointOut connectionPointOutId="2">
<RelPosition x="0" y="15"/>
</ConnectionPointOut>
</LdObject>
<LdObject xsi:type="Contact" operand="S1">
<RelPosition x="4" y="4"/>
<ConnectionPointIn>
<RelPosition x="2" y="3"/>
<Connection refConnectionPointOutId="1"/>
</ConnectionPointIn>
<ConnectionPointOut connectionPointOutId="3">
<RelPosition x="4" y="3"/>
</ConnectionPointOut>
</LdObject>
<FbdObject xsi:type="DataSource" identifier="T#1s">
<RelPosition x="8" y="9"/>
<ConnectionPointOut connectionPointOutId="4">
<RelPosition x="4.2" y="1"/>
</ConnectionPointOut>
</FbdObject>
<FbdObject xsi:type="Block" typeName="TON" instanceName="S1TON">
<RelPosition x="13" y="4"/>
<InputVariables>
<InputVariable parameterName="IN">
<ConnectionPointIn>
<RelPosition x="0" y="3"/>
<Connection refConnectionPointOutId="3"/>
</ConnectionPointIn>
</InputVariable>
<InputVariable parameterName="PT">
<ConnectionPointIn>
<RelPosition x="0" y="6"/>
<Connection refConnectionPointOutId="4"/>
</ConnectionPointIn>
</InputVariable>
</InputVariables>
<OutputVariables>
<OutputVariable parameterName="Q">
<ConnectionPointOut connectionPointOutId="5">
<RelPosition x="5" y="3"/>
</ConnectionPointOut>
</OutputVariable>
<OutputVariable parameterName="ET">
<ConnectionPointOut connectionPointOutId="6">
<RelPosit
IEC61131-10 XSD
需积分: 0 59 浏览量
2023-04-26
17:31:11
上传
评论
收藏 17KB ZIP 举报
bforget
- 粉丝: 0
- 资源: 3
最新资源
- 基于matlab实现电力系统仿真计算软件包,包括潮流计算,最优潮流计算等.rar
- 基于matlab实现电力系统各种故障波形仿真,单相接地故障,两相间短路,两相接地短路,三相短路等.rar
- 基于matlab实现电动汽车动力性,爬坡性,续驶里程等性能仿真.rar
- Python动态烟花代码.pdf
- 基于matlab实现串口发送接收数据 可配置端口,波特率等 发送可选择ASCII方式或HEX方式
- matlab基于BP神经网络手写字母识别(单一).zip代码9
- 基于matlab实现编写的串口调试工具,数据接收部分采用中断方式,保证了实时的数据显示
- 基于matlab实现39节点电力系统合闸角调控过程中的机组和负荷的灵敏度计算.rar
- HBase数据库性能调优
- 原生微信小程序源码 - -首字母排序选择
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈