Skip to content

Commit b446f40

Browse files
committed
update
1 parent 35fe954 commit b446f40

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
/// v1.0
2+
/// This is a production example on how to use the MTConnect operations.
3+
Class MTConnect.ExampleProduction.Production Extends Ens.Production
4+
{
5+
6+
XData ProductionDefinition
7+
{
8+
<Production Name="MTConnect.ExampleProduction.Production" TestingEnabled="true" LogGeneralTraceEvents="false">
9+
<Description>This is a production example on how to use the MTConnect operations.</Description>
10+
<ActorPoolSize>2</ActorPoolSize>
11+
<Item Name="Class Builder Operation" Category="Class Builder" ClassName="MTConnect.BO.ClassBuilder" PoolSize="1" Enabled="true" Foreground="false" Comment="This is a example of a Class Builder Operation." LogTraceEvents="false" Schedule="">
12+
<Setting Target="Host" Name="DataTypesPackage">MTConnect.ExampleProduction.DataTypes</Setting>
13+
<Setting Target="Host" Name="GenerateDataTypes">1</Setting>
14+
<Setting Target="Host" Name="LogFile">path/to/logFile.log</Setting>
15+
<Setting Target="Host" Name="PackageName">MTConnect.ExampleProduction.BuiltClasses</Setting>
16+
<Setting Target="Host" Name="suffixClass">Example</Setting>
17+
</Item>
18+
<Item Name="DataTypes Builder Operation" Category="DataTypes" ClassName="MTConnect.BO.DataTypesBuilderOperation" PoolSize="1" Enabled="true" Foreground="false" Comment="This is a example of a DataTypes Builder Operation." LogTraceEvents="false" Schedule="">
19+
<Setting Target="Host" Name="DisplayToLogical">1</Setting>
20+
<Setting Target="Host" Name="IsValid">1</Setting>
21+
<Setting Target="Host" Name="LogicalToDisplay">1</Setting>
22+
<Setting Target="Host" Name="Normalize">1</Setting>
23+
<Setting Target="Host" Name="Package">MTConnect.ExampleProduction.DataTypes</Setting>
24+
</Item>
25+
<Item Name="DataTypes Process" Category="DataTypes" ClassName="MTConnect.ExampleProduction.BP.DataTypesProcess" PoolSize="1" Enabled="true" Foreground="false" Comment="Test this process with Ens.StringRequest and StringValue to &quot;String&quot; to generate a example String DataType or to &quot;Integer&quot; to create a example Integer DataType or to &quot;Double&quot; to create a example Double DataType.
26+
You can find the generated DataTypes under MTConnect.ExampleProduction.DataTypes." LogTraceEvents="false" Schedule="">
27+
<Setting Target="Host" Name="foo">Test</Setting>
28+
</Item>
29+
<Item Name="Class Builder Process" Category="Class Builder" ClassName="MTConnect.ExampleProduction.BP.ClassBuilderProcess" PoolSize="1" Enabled="true" Foreground="false" Comment="Test this production with a Ens.Request to generate a new MTConnect Class and the corresponding MTConnect DataTypes.
30+
You can find the class under: MTConnect.ExampleProduction.BuiltClasses
31+
You can find the DataTypes under: MTConnect.ExampleProduction.DataTypes" LogTraceEvents="false" Schedule="">
32+
</Item>
33+
<Item Name="Get MTConnect Current File" Category="Class Builder" ClassName="MTConnect.ExampleProduction.BO.GenericRestOperation" PoolSize="1" Enabled="true" Foreground="false" Comment="Gets the MTConnect Current File from:
34+
http://mtconnect.mazakcorp.com:5609/current" LogTraceEvents="false" Schedule="">
35+
<Setting Target="Adapter" Name="URL">http://mtconnect.mazakcorp.com:5609/current</Setting>
36+
<Setting Target="Adapter" Name="method">GET</Setting>
37+
</Item>
38+
<Item Name="Get MTConnect Probe File" Category="Class Builder" ClassName="MTConnect.ExampleProduction.BO.GenericRestOperation" PoolSize="1" Enabled="true" Foreground="false" Comment="Gets the MTConnect Probe File from:
39+
http://mtconnect.mazakcorp.com:5609/probe" LogTraceEvents="false" Schedule="">
40+
<Setting Target="Adapter" Name="URL">http://mtconnect.mazakcorp.com:5609/probe</Setting>
41+
<Setting Target="Adapter" Name="method">GET</Setting>
42+
</Item>
43+
<Item Name="Ens.Alerting.AlertMonitor" Category="" ClassName="Ens.Alerting.AlertMonitor" PoolSize="1" Enabled="false" Foreground="false" Comment="" LogTraceEvents="false" Schedule="">
44+
</Item>
45+
</Production>
46+
}
47+
48+
}
49+

0 commit comments

Comments
 (0)