KMAPI

From SoftMC-Wiki
Revision as of 07:33, 29 May 2017 by Itay (talk | contribs) (Overview: overview)
Jump to: navigation, search

Overview

The KMAPI software package allows you to communicate with softMC from popular programming languages, such as Visual Basic over TCP/IP and UDP. The KMAPI provides complete access to the command line interface of your system across a TCP/IP connection. Fast access to frequently changing data, such as axis set-points and feedback, is provided via a UDP connection, also called UDP fast data.

Introduction

General Information

Initialization

Error Messages

Sending/Retrieving Files

Advanced asynchronous message handling

Asynchronous messages and Microsoft Visual Basic

Library Reference

KMInitialize

KMTerminate

KMCreateController

KMExecuteCmd

KMExecuteCmdResponse

Example #1

KMGetFile

KMPutFile

Error Handling

Error Codes

KMErrorGetMessage

KMErrorGetDeviceMessage

KMErrorGetOriginalDeviceMessage

Example #3