You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An [InterSystems ObjectScript](https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cls?KEY=GCOS_INTRO) implementation, thats builds an ObjectScript Class based on a [MTConnect](https://www.mtconnect.org/) probe file and adds data from a current file.
* Download the [latest realease](https://github.com/phil1436/MTConnect-ObjectScript/releases/latest)
26
-
* Extract the file
27
-
* In the [InterSystems Management Portal](https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cls?KEY=GSA_USING_PORTAL) navigate to `System Explorer > Classes`
28
-
* Click on `Import`
29
-
*Under *Import from File or a Directory* make sure to select *Directory*
30
-
*Enter the path to the [MTConnect Folder](cls/MTConnect) under `cls/MTConnect`
31
-
* Click on `Import`
25
+
- Download the [latest realease](https://github.com/phil1436/MTConnect-ObjectScript/releases/latest)
26
+
- Extract the file
27
+
- In the [InterSystems Management Portal](https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cls?KEY=GSA_USING_PORTAL) navigate to `System Explorer > Classes`
28
+
- Click on `Import`
29
+
-Under _Import from File or a Directory_ make sure to select _Directory_
30
+
-Enter the path to the [MTConnect Folder](https://github.com/phil1436/MTConnect-ObjectScript/tree/master/cls/MTConnect) under `cls/MTConnect`
*`probeFromFile`: When enabled the probe property contains an absolute path to the probe file. When disabled the probe property contains the probe file as a string.
41
-
*`current`: Holds the data from the current file.
42
-
*`currentToFile`: When enabled the current property contains an absolute path to the current file. When disabled the current property contains the current file as a string.
43
-
*`recievedLine`(optional): Holds a received string. (Used for *cleardata*)
44
-
*`className`(will be set): The complete class name of the generated class.
39
+
-`probe`: Holds the data from the probe file.
40
+
-`probeFromFile`: When enabled the probe property contains an absolute path to the probe file. When disabled the probe property contains the probe file as a string.
41
+
-`current`: Holds the data from the current file.
42
+
-`currentToFile`: When enabled the current property contains an absolute path to the current file. When disabled the current property contains the current file as a string.
43
+
-`recievedLine`(optional): Holds a received string. (Used for _cleardata_)
44
+
-`className`(will be set): The complete class name of the generated class.
A Business Operation, that builts an ObjectScript class based on a MTConnect probe file. After the class is successfully generated, the operation inserts data from a MTConnect current file.
*`DataType`: The underlying ObjectScript type (Currently only works with *%String*, *%Integer* and *%Double*).
91
-
*`AllowedStringValues`: Comma separated list for the allowed values. If left empty all values will be allowed. (only used when `DataType` is *%String*)
92
-
*`AllowedNumericMaxValue`: The maximum value that is allowed. If left empty all values will be allowed. (only used when `DataType` is *%Double* or *%Integer*)
93
-
*`AllowedNumericMinValue`: The minimum value that is allowed. If left empty all values will be allowed. (only used when `DataType` is *%Double* or *%Integer*)
88
+
-`Name`: The name of the datatype.
89
+
-`Unit`: The unit to display the datatype with.
90
+
-`DataType`: The underlying ObjectScript type (Currently only works with _%String_, _%Integer_ and _%Double_).
91
+
-`AllowedStringValues`: Comma separated list for the allowed values. If left empty all values will be allowed. (only used when `DataType` is _%String_)
92
+
-`AllowedNumericMaxValue`: The maximum value that is allowed. If left empty all values will be allowed. (only used when `DataType` is _%Double_ or _%Integer_)
93
+
-`AllowedNumericMinValue`: The minimum value that is allowed. If left empty all values will be allowed. (only used when `DataType` is _%Double_ or _%Integer_)
Builds MTConnect Datatypes based on a [MTConnect.MSG.CreateDataTypeRequest](cls/MTConnect/MSG/CreateDataTypeRequest.cls).
99
+
Builds MTConnect Datatypes based on a [MTConnect.MSG.CreateDataTypeRequest](https://github.com/phil1436/MTConnect-ObjectScript/blob/master/cls/MTConnect/MSG/CreateDataTypeRequest.cls).
100
100
101
101
### Execute Method
102
102
103
-
*`pRequest`: The [MTConnect.MSG.CreateDataTypeRequest](cls/MTConnect/MSG/CreateDataTypeRequest.cls)
104
-
*`pPackage`: The package name to store the datatypes (Default is *MTConnect.DataTypes*)
105
-
*`pGenerateIsValid`: If enabled generates the *IsValid* method for the datatype (enabled by default)
106
-
*`pGenerateNormalize`: If enabled generates the *Normalize* method for the datatype (enabled by default)
107
-
*`pGenerateDisplayToLogical`: If enabled generates the *DisplayToLogical* method for the datatype (enabled by default)
108
-
*`pGenerateLogicalToDisplay`: If enabled generates the *LogicalToDisplay* method for the datatype (enabled by default)
103
+
-`pRequest`: The [MTConnect.MSG.CreateDataTypeRequest](https://github.com/phil1436/MTConnect-ObjectScript/blob/master/cls/MTConnect/MSG/CreateDataTypeRequest.cls)
104
+
-`pPackage`: The package name to store the datatypes (Default is _MTConnect.DataTypes_)
105
+
-`pGenerateIsValid`: If enabled generates the _IsValid_ method for the datatype (enabled by default)
106
+
-`pGenerateNormalize`: If enabled generates the _Normalize_ method for the datatype (enabled by default)
107
+
-`pGenerateDisplayToLogical`: If enabled generates the _DisplayToLogical_ method for the datatype (enabled by default)
108
+
-`pGenerateLogicalToDisplay`: If enabled generates the _LogicalToDisplay_ method for the datatype (enabled by default)
A Business Operation to build MTConnect Datatypes based on a [MTConnect.MSG.CreateDataTypeRequest](cls/MTConnect/MSG/CreateDataTypeRequest.cls).
114
+
A Business Operation to build MTConnect Datatypes based on a [MTConnect.MSG.CreateDataTypeRequest](https://github.com/phil1436/MTConnect-ObjectScript/blob/master/cls/MTConnect/MSG/CreateDataTypeRequest.cls).
@@ -125,76 +125,74 @@ A Business Operation to build MTConnect Datatypes based on a [MTConnect.MSG.Crea
125
125
126
126
#### DataType
127
127
128
-
*`Package`: The package name to store the datatypes (Default is *MTConnect.DataTypes*)
129
-
*`IsValid`: If enabled generates the *IsValid* method for the datatype
130
-
*`Normalize`: If enabled generates the *Normalize* method for the datatype
131
-
*`DisplayToLogical`: If enabled generates the *DisplayToLogical* method for the datatype
132
-
*`LogicalToDisplay`: If enabled generates the *LogicalToDisplay* method for the datatype
128
+
-`Package`: The package name to store the datatypes (Default is _MTConnect.DataTypes_)
129
+
-`IsValid`: If enabled generates the _IsValid_ method for the datatype
130
+
-`Normalize`: If enabled generates the _Normalize_ method for the datatype
131
+
-`DisplayToLogical`: If enabled generates the _DisplayToLogical_ method for the datatype
132
+
-`LogicalToDisplay`: If enabled generates the _LogicalToDisplay_ method for the datatype
133
133
134
-
> Tip: Hava a look at [MTConnect.DataTypes](cls/MTConnect/DataTypes) for some default MTConnect DataTypes.
134
+
> Tip: Hava a look at [MTConnect.DataTypes](https://github.com/phil1436/MTConnect-ObjectScript/tree/master/cls/MTConnect/DataTypes) for some default MTConnect DataTypes.
A simple [Production](cls/MTConnect/ExampleProduction/Production.cls) to show the usage of the [DataTypesBuilder Operation](cls/MTConnect/BO/DataTypesBuilderOperation.cls) and the [ClassBuilder Operation](cls/MTConnect/BO/ClassBuilder.cls).
140
+
A simple [Production](https://github.com/phil1436/MTConnect-ObjectScript/blob/master/cls/MTConnect/ExampleProduction/Production.cls) to show the usage of the [DataTypesBuilder Operation](https://github.com/phil1436/MTConnect-ObjectScript/blob/master/cls/MTConnect/BO/DataTypesBuilderOperation.cls) and the [ClassBuilder Operation](https://github.com/phil1436/MTConnect-ObjectScript/blob/master/cls/MTConnect/BO/ClassBuilder.cls).
141
141
142
142
How to open and start the Production:
143
143
144
-
* In the InterSystems Management Portal navigate to `Interoperabilty > Configure > Production > Go`
145
-
* Click on `Production Settings`
146
-
* Navigate to `Actions > Open`
147
-
* Choose `MTConnect > ExampleProduction > Production > Go`
148
-
* Click on `Start`
144
+
- In the InterSystems Management Portal navigate to `Interoperabilty > Configure > Production > Go`
145
+
- Click on `Production Settings`
146
+
- Navigate to `Actions > Open`
147
+
- Choose `MTConnect > ExampleProduction > Production > Go`
148
+
- Click on `Start`
149
149
150
150
### DataTypes
151
151
152
-
An example for how to use the [DataTypesBuilder Operation](cls/MTConnect/BO/DataTypesBuilderOperation.cls) to create MTConnect DataTypes.
152
+
An example for how to use the [DataTypesBuilder Operation](https://github.com/phil1436/MTConnect-ObjectScript/blob/master/cls/MTConnect/BO/DataTypesBuilderOperation.cls) to create MTConnect DataTypes.
153
153
154
-
*From the *category* dropdown menu choose `DataTypes`
155
-
* Choose the `DataTypes Process`
156
-
* Navigate to `Actions > Test`
157
-
*From the *Request Type* dropdown menu choose `Ens.StringRequest`
158
-
*Type in the `StringValue` field *String* to generate a String MTConnect DataType
159
-
**OR**
160
-
*Type in the `StringValue` field *Double* to generate a Double MTConnect DataType
161
-
**OR**
162
-
*Type in the `StringValue` field *Inetger* to generate a Integer MTConnect DataType
163
-
* Click on `Invoke Testing Service`
164
-
*You can follow the *Visual Trace* to see how the DataType was created
165
-
* You will find the DataTypes under `MTConnect.ExampleProduction.DataTypes`
154
+
-From the _category_ dropdown menu choose `DataTypes`
155
+
- Choose the `DataTypes Process`
156
+
- Navigate to `Actions > Test`
157
+
-From the _Request Type_ dropdown menu choose `Ens.StringRequest`
158
+
-Type in the `StringValue` field _String_ to generate a String MTConnect DataType
159
+
**OR**
160
+
-Type in the `StringValue` field _Double_ to generate a Double MTConnect DataType
161
+
**OR**
162
+
-Type in the `StringValue` field _Inetger_ to generate a Integer MTConnect DataType
163
+
- Click on `Invoke Testing Service`
164
+
-You can follow the _Visual Trace_ to see how the DataType was created
165
+
- You will find the DataTypes under `MTConnect.ExampleProduction.DataTypes`
An example for how to use the [ClassBuilder Operation](cls/MTConnect/BO/ClassBuilder.cls) to create MTConnect Class from a MTConnect [Probe](http://mtconnect.mazakcorp.com:5609/probe) and [Current](http://mtconnect.mazakcorp.com:5609/current) file.
171
+
An example for how to use the [ClassBuilder Operation](https://github.com/phil1436/MTConnect-ObjectScript/blob/master/cls/MTConnect/BO/ClassBuilder.cls) to create MTConnect Class from a MTConnect [Probe](http://mtconnect.mazakcorp.com:5609/probe) and [Current](http://mtconnect.mazakcorp.com:5609/current) file.
172
172
173
-
*From the *category* dropdown menu choose `Class Builder`
174
-
* Choose the `Class Builder Process`
175
-
* Navigate to `Actions > Test`
176
-
*From the *Request Type* dropdown menu choose `Ens.Request`
177
-
* Click on `Invoke Testing Service`
178
-
*You can follow the *Visual Trace* to see how the MTConnect Class was created
179
-
* You will find the MTConnect Class under `MTConnect.ExampleProduction.BuiltClasses`
180
-
* The Operation will also generate MTConnect DataTypes based on the files. You can find them under `MTConnect.ExampleProduction.DataTypes`
173
+
-From the _category_ dropdown menu choose `Class Builder`
174
+
- Choose the `Class Builder Process`
175
+
- Navigate to `Actions > Test`
176
+
-From the _Request Type_ dropdown menu choose `Ens.Request`
177
+
- Click on `Invoke Testing Service`
178
+
-You can follow the _Visual Trace_ to see how the MTConnect Class was created
179
+
- You will find the MTConnect Class under `MTConnect.ExampleProduction.BuiltClasses`
180
+
- The Operation will also generate MTConnect DataTypes based on the files. You can find them under `MTConnect.ExampleProduction.DataTypes`
0 commit comments