mtconnectR: Read Data from Delimited 'MTConnect' Data Files and Perform some Analysis

Read data in the 'MTConnect'<http://www.mtconnect.org/> standard. You can use the package to read data from historical 'MTConnect logs' along with the 'devices.xml' describing the device. The data is organised into a 'MTConnectDevice' S4 data structure and some convenience methods are also provided for basic read/view operations. The package also includes some functions for analysis of 'MTConnect' data. This includes functions to simulate data (primarily position data, feed rate and velocities) based on the G code and visualisation functions to compare the actual and simulated data.

AuthorAlex Joseph [aut], Sainath Adapa [aut], Nitin Madasu [aut], Subramanyam Ravishankar [aut, cre]
Date of publication2016-08-02 09:13:26
MaintainerSubramanyam Ravishankar <subramanyam@systeminsights.com>
LicenseAGPL-3
Version1.0.1

View on CRAN

Man pages

add_data_item_to_mtc_device: Add a new data item to an existing MTC Device Class

calculated_feed_from_position: Calculate feed rate from the path position data items

clean_reduntant_rows: Removes Redundant Rows in a data frame assuming statefulness

convert_interval_to_ts: Convert Interval to Time Series

convert_ts_to_interval: Convert Time Series to Intervals

create_mtc_device_from_dmtcd: Create MTCDevice class from Delimited MTC Data and log file

create_mtc_device_from_ts: Create a MTC device object from a merged time series data...

example_dmtcd: Example data set showing MTC Log data

example_gcode_parsed: Example data set showing parsed G code data

example_mapped_plot: ggplot object showing mapping between simulated and actual...

example_mtc_data_item: Example data set showing a MTConnect DataItem

example_mtc_device: Example data set showing a MTConnect Device

example_mtc_device_2: A bigger example data set showing a MTConnect Device with...

example_mtc_device_3: Example data set showing a MTConnect Device

example_mtc_device_sim: MTCDevice object showing simulated G code data

example_mtc_sim_mapped: MTCDevice object containing actual and simulated data and the...

example_parsed_device_xml: Example dataset showing the parsed xml for a device

example_simulated_gcode_data: Example data set showing simulated G code data

example_xpath_info: Example data set showing Xpaths from a device XML

extract_param_from_xpath: Extract different parts of a xpath

filter_timestamps_mtc_device: Filter MTCDevice object based on time range

getData: Get data from the object in a data frame form

getDataItem: Get data on one or more data items from the class

getDataItem-MTCCycle-ANY-method: Get the first dataitem

getDataItem-MTCCycle-character-method: Get one or more data items from the MTCCycle or MTCDevice...

getDataItem-MTCCycle-numeric-method: Get one or more data items from the MTCCycle or MTCDevice...

getData-MTCCycle-method: Get Data from MTCDevice/MTCCycle Object as a data.frame

getData-MTCDataItem-method: Get Data from the Object as a data.frame

get_device_info_from_xml: Get info on all the devices in the xml file

get_xpaths_from_xml: Get XML xpath info

grep_subset: Subset a data frame using regex matching on the column name...

map_gcode_mtc: Create a mapping between simulated and actual data

merge-MTCCycle-ANY-method: Merge all data items from the MTCCycle or MTCDevice

merge-MTCCycle-character-method: Merge one or more data items from the MTCCycle or MTCDevice...

merge-MTCCycle-numeric-method: Merge one or more data items from the MTCCycle or MTCDevice...

mergeTS: Merges all the data.frames in the list into single data.frame

MTCCycle-class: An S4 class to represent the different data items of a device

MTCDevice-class: An S4 class to represent a device. It contains MTCCycle class...

mtconnectR: mtconnectR: A package to read analyze data in the 'MTConnect'...

parse_devicexml_for_a_device: Parse XML file for given device name

parse_gcode: Read the gcode and translate it as per the dictionary

plot_twoway: To plot the mapping between the simulated and actual versions

read_dmtcd_file: Function to load Log data into R as a data.frame

simulate_data_from_gcode: Simulate position,velocity and other data from G-code

summary-MTCCycle-method: Show a quick summary of the MTCCyle or MTCDevice Object

summary-MTCDataItem-method: Show a quick summary of the MTCDataItem

Functions

add_data_item_to_mtc_device Man page
calculated_feed_from_position Man page
clean_reduntant_rows Man page
convert_interval_to_ts Man page
convert_ts_to_interval Man page
create_mtc_device_from_dmtcd Man page
create_mtc_device_from_ts Man page
example_dmtcd Man page
example_gcode_parsed Man page
example_mapped_plot Man page
example_mtc_data_item Man page
example_mtc_device Man page
example_mtc_device_2 Man page
example_mtc_device_3 Man page
example_mtc_device_sim Man page
example_mtc_sim_mapped Man page
example_parsed_device_xml Man page
example_simulated_gcode_data Man page
example_xpath_info Man page
extract_param_from_xpath Man page
filter_timestamps_mtc_device Man page
getData Man page
getDataItem Man page
getDataItem,MTCCycle,ANY-method Man page
getDataItem,MTCCycle,character-method Man page
getDataItem,MTCCycle,numeric-method Man page
getData,MTCCycle-method Man page
getData,MTCDataItem-method Man page
get_device_info_from_xml Man page
get_xpaths_from_xml Man page
grep_subset Man page
map_gcode_mtc Man page
merge,MTCCycle,ANY-method Man page
merge,MTCCycle,character-method Man page
merge,MTCCycle,numeric-method Man page
mergeTS Man page
MTCCycle-class Man page
MTCDevice-class Man page
mtconnectR Man page
mtconnectR-package Man page
parse_devicexml_for_a_device Man page
parse_gcode Man page
plot_twoway Man page
read_dmtcd_file Man page
simulate_data_from_gcode Man page
summary,MTCCycle-method Man page
summary,MTCDataItem-method Man page

Files

mtconnectR
mtconnectR/inst
mtconnectR/inst/extdata
mtconnectR/inst/extdata/raw_gcode.NC
mtconnectR/inst/extdata/raw_gcode_sample.NC
mtconnectR/inst/extdata/Devices.xml
mtconnectR/inst/extdata/data_truncated.bz2
mtconnectR/inst/doc
mtconnectR/inst/doc/simulate_map_gcode.Rmd
mtconnectR/inst/doc/simulate_map_gcode.R
mtconnectR/inst/doc/simulate_map_gcode.html
mtconnectR/inst/doc/create_mtc_device.R
mtconnectR/inst/doc/create_mtc_device.Rmd
mtconnectR/inst/doc/create_mtc_device.html
mtconnectR/inst/testdata
mtconnectR/inst/testdata/dataExtraction
mtconnectR/inst/testdata/dataExtraction/test_devices.xml
mtconnectR/inst/testdata/dataExtraction/nist_test_bed_Devices.xml
mtconnectR/inst/testdata/dataExtraction/GF_Agie_HPM600U-20OCT2015
mtconnectR/inst/testdata/dataExtraction/test_dmtcd.log
mtconnectR/inst/gcode_dict.csv
mtconnectR/tests
mtconnectR/tests/testthat.R
mtconnectR/tests/testthat
mtconnectR/tests/testthat/test-MTCDataItem.R
mtconnectR/tests/testthat/test-parse_gcode.R
mtconnectR/tests/testthat/test-simulate_gcode.R
mtconnectR/tests/testthat/test-map_gcode_mtc.R
mtconnectR/tests/testthat/test-common.R
mtconnectR/tests/testthat/test-merge.R
mtconnectR/tests/testthat/test-dataExtraction_mtc.R
mtconnectR/tests/testthat/test-MTCDevice.R
mtconnectR/tests/testthat/test-deviceXML.R
mtconnectR/tests/testthat/test-MTCCycle.R
mtconnectR/tests/testthat/test-mtconnectR_staging.R
mtconnectR/NAMESPACE
mtconnectR/data
mtconnectR/data/example_mtc_sim_mapped.rda
mtconnectR/data/example_mtc_device_sim.rda
mtconnectR/data/example_dmtcd.rda
mtconnectR/data/example_mapped_plot.rda
mtconnectR/data/example_simulated_gcode_data.rda
mtconnectR/data/example_mtc_device.rda
mtconnectR/data/example_gcode_parsed.rda
mtconnectR/data/example_mtc_device_3.rda
mtconnectR/data/example_xpath_info.rda
mtconnectR/data/example_mtc_device_2.rda
mtconnectR/data/example_mtc_data_item.rda
mtconnectR/data/example_parsed_device_xml.rda
mtconnectR/R
mtconnectR/R/parse_gcode.R mtconnectR/R/deviceXML.R mtconnectR/R/MTCDataItem.R mtconnectR/R/simulate_gcode.R mtconnectR/R/map_gcode_mtc.R mtconnectR/R/common.R mtconnectR/R/MTCDevice.R mtconnectR/R/mtconnectR.R mtconnectR/R/MTCCycle.R mtconnectR/R/dataExtraction_mtc.R mtconnectR/R/merge.R mtconnectR/R/zzz.R
mtconnectR/vignettes
mtconnectR/vignettes/simulate_map_gcode.Rmd
mtconnectR/vignettes/create_mtc_device.Rmd
mtconnectR/MD5
mtconnectR/build
mtconnectR/build/vignette.rds
mtconnectR/DESCRIPTION
mtconnectR/man
mtconnectR/man/mergeTS.Rd mtconnectR/man/merge-MTCCycle-ANY-method.Rd mtconnectR/man/MTCCycle-class.Rd mtconnectR/man/parse_gcode.Rd mtconnectR/man/mtconnectR.Rd mtconnectR/man/summary-MTCDataItem-method.Rd mtconnectR/man/getDataItem-MTCCycle-character-method.Rd mtconnectR/man/example_mtc_device.Rd mtconnectR/man/getData-MTCCycle-method.Rd mtconnectR/man/getDataItem.Rd mtconnectR/man/create_mtc_device_from_dmtcd.Rd mtconnectR/man/getDataItem-MTCCycle-ANY-method.Rd mtconnectR/man/example_gcode_parsed.Rd mtconnectR/man/clean_reduntant_rows.Rd mtconnectR/man/grep_subset.Rd mtconnectR/man/example_mtc_sim_mapped.Rd mtconnectR/man/get_device_info_from_xml.Rd mtconnectR/man/convert_ts_to_interval.Rd mtconnectR/man/simulate_data_from_gcode.Rd mtconnectR/man/create_mtc_device_from_ts.Rd mtconnectR/man/example_xpath_info.Rd mtconnectR/man/calculated_feed_from_position.Rd mtconnectR/man/merge-MTCCycle-character-method.Rd mtconnectR/man/getDataItem-MTCCycle-numeric-method.Rd mtconnectR/man/example_mtc_device_3.Rd mtconnectR/man/parse_devicexml_for_a_device.Rd mtconnectR/man/getData-MTCDataItem-method.Rd mtconnectR/man/summary-MTCCycle-method.Rd mtconnectR/man/example_mtc_device_sim.Rd mtconnectR/man/example_mapped_plot.Rd mtconnectR/man/filter_timestamps_mtc_device.Rd mtconnectR/man/plot_twoway.Rd mtconnectR/man/merge-MTCCycle-numeric-method.Rd mtconnectR/man/extract_param_from_xpath.Rd mtconnectR/man/example_dmtcd.Rd mtconnectR/man/convert_interval_to_ts.Rd mtconnectR/man/read_dmtcd_file.Rd mtconnectR/man/add_data_item_to_mtc_device.Rd mtconnectR/man/example_parsed_device_xml.Rd mtconnectR/man/example_simulated_gcode_data.Rd mtconnectR/man/map_gcode_mtc.Rd mtconnectR/man/get_xpaths_from_xml.Rd mtconnectR/man/getData.Rd mtconnectR/man/example_mtc_device_2.Rd mtconnectR/man/MTCDevice-class.Rd mtconnectR/man/example_mtc_data_item.Rd

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.