mticp-npm
v1.0.5
Published
A node wrapper for the mticp transpiler, which provides transpilation between numerous IEC 61131-3 languages.
Maintainers
Readme
MTICP
MTI Code Processor (mticp) is a command-line tool for compiling and converting MTI Skipper Sheet projects into IEC 61131-3 compatible formats such as Structured Text (ST), Ladder Logic (LD), and XML. This Node.js wrapper allows mticp to be used in JavaScript-based workflows via npm.
🛠️ This package wraps a precompiled C# executable and provides cross-platform support for Node.js environments.
📦 Installation
npm install mticp-npmThis installs the Node.js wrapper along with platform-specific binaries in bin/.
🚀 Usage
You can run mticp via the provided runMticp() function or as a CLI tool:
✅ Node.js API
const { runMticp } = require('mticp-npm');
runMticp([
'action=toiec',
'src=/path/to/project.skip',
'dst=/output/folder'
])
.then(output => console.log('mticp output:\n', output))
.catch(err => console.error('mticp error:\n', err));💻 CLI (Optional)
You can invoke it via CLI if you’ve added it to your scripts:
npx mticp action=toxml src=project.skip dst=output/🧠 Supported Actions
| Action | Description |
|------------|-----------------------------------------------------------------------------|
| help | Prints help text. |
| toxml | Compiles a Skipper Sheet .skip file to MTI's XML format. |
| toiec | Converts a .skip file to IEC 61131-10 Ladder Logic format. |
| tost | Converts a .skip file to IEC 61131-3 Structured Text. |
| sendxml | Programs an MTI device with a compiled MTI XML file. Requires src and dst. |
Arguments
action=[help|toxml|toiec|tost|sendxml]– Requiredsrc=[path]– Path to source.skipfiledst=[path]– Output directory or device IP forsendxml
📂 File Structure
bin/— Contains platform-specific binaries formticpindex.js— Node wrapper to call the binaryLICENSE— Proprietary license notice
🔐 License
This software is proprietary and unlicensed for redistribution or modification without express permission from Montgomery Technology, Inc.
Copyright © 2025 Montgomery Technology, Inc.
All rights reserved.🧑💻 Author
Nathan Skipper
Montgomery Technology, Inc.
🛠️ Keywords
IEC, Structured Text, Ladder Logic, Skipper Sheets, PLC, MTI, Transpiler
