Melfa.Robot
0.1.22.4
See the version list below for details.
dotnet add package Melfa.Robot --version 0.1.22.4
NuGet\Install-Package Melfa.Robot -Version 0.1.22.4
<PackageReference Include="Melfa.Robot" Version="0.1.22.4" />
paket add Melfa.Robot --version 0.1.22.4
#r "nuget: Melfa.Robot, 0.1.22.4"
// Install Melfa.Robot as a Cake Addin #addin nuget:?package=Melfa.Robot&version=0.1.22.4 // Install Melfa.Robot as a Cake Tool #tool nuget:?package=Melfa.Robot&version=0.1.22.4
Melfa.Robot
This is a implementation of Mitsubishi Electronics Factory Automation (MELFA) robot R-protocol client in C#.
The R-protocol is described in BFP-A4288, the version this project consult is BFP-A4288-V (2018/11/15).
Configure the robot controller
Go to "Parameter → Communication Parameterr → Ethernet", Check the "Device & Line" tab.
Make sure one of OPT11 ~ OPT19 is configured as Server
. For example:
- Mode (NETMODE): 1 - Server
- Port (NETPORT): 12345 # This is the port used to connect to the controller
- Protocol (OPCE11): 0 - No-procedure # This is probably irrelevant
- Exit Code (NETTERM): 0 - No-included
- Packet Type (CTERME): 0 - CR
Usage
Create the robot object
var robot = new MelfaRobot("localhost", 10001, 1); // use the port configured above
robot.Connect();
var info = robot.Open("ClientName");
Do something with the robot
robot.OperationEnabled = true; // CTRLON
robot.ServoOn = true; // SRVON
robot.Override = 10; // OVRD=10
robot.Execute("MOV P1");
Load a program and run
robot.RunProgram("blah");
Clean-up
robot.Close();
robot.Disconnect();
robot.Dispose();
TODO
- Finish implement of all functionalities
- Add more error log items (which is tedious...)
Disclaimer
The author of this software is not affiliated with Mitsubishi Electronics Factory Automation (MELFA) in any way. All trademarks and registered trademarks are property of their respective owners, and company, product and service names mentioned in this readme or appearing in source code or other artifacts in this repository are used for identification purposes only.
Use of these names does not imply endorsement by either Mitsubishi Electronics Factory Automation (MELFA).
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Framework | net481 is compatible. |
-
.NETFramework 4.8.1
- CommunityToolkit.Diagnostics (>= 8.2.2)
- Microsoft.Bcl.HashCode (>= 1.1.1)
- System.Collections.Immutable (>= 1.7.1)
-
net5.0
- CommunityToolkit.Diagnostics (>= 8.2.2)
-
net6.0
- CommunityToolkit.Diagnostics (>= 8.2.2)
-
net8.0
- CommunityToolkit.Diagnostics (>= 8.2.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Initial release