Asynchronous Message Thread; Asynchronous Commands - HEIDENHAIN MSE 1000 Operating Instructions Manual

Table of Contents

Advertisement

9.4

Asynchronous message thread

MSEsetup has a thread that runs in the background and binds a UDP socket to the
asynchronous port. The asynchronous default port is 27300 and can be changed
in the Networking screen. This thread is used to accept asynchronous messages
from the MSE 1000 modules as well as from other client applications that want to
perform functions through MSEsetup.
Modules send broadcasts specifying their network information as well as
referencing complete, foot switch triggers, warnings, and errors.
The MSEvba.xlsm file is an Excel spreadsheet that is installed with MSEsetup for
demonstrating how to send asynchronous commands to MSEsetup using Visual
Basic for Applications (VBA).
MSEvba.xlsm location:
9.4.1

Asynchronous commands

Any application that can utilize sockets can interface with MSEsetup.
Command structure format:
STRUCT ASYNCCMDSTRUCT
{
UNSIGNED CHAR UDPCODE;
UNSIGNED CHAR REQUEST;
UNSIGNED CHAR MODULENUM;
UNSIGNED CHAR CHANNELNUM;
UNSIGNED CHAR VALUE;
};
The udpCode is always 222. This is a special command informing the
Asynchronous thread the command is not from the modules.
Available requests:
Request
Connect
HEIDENHAIN | MSE 1000 | Operating Instructions | 10/2015
Asynchronous message thread
C:\Program Files\HEIDENHAIN\MSEsetup\Excel
Parameters
A value of 150 must be put in the UDP packet.
The moduleNum is not used.
The channelNum is not used.
The value is not used.
Responds by sending the text "connect" back.
9
9.4
121

Advertisement

Table of Contents
loading

Table of Contents