4 asynchronous message thread, 1 asynchronous commands – HEIDENHAIN MSE 1000 User Manual

Page 107

Advertising
background image

Operating information

Asynchronous message thread

Operating Instructions

107

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: C:\Program Files\HEIDENHAIN\MSEsetup\Excel

9.4.1

Asynchronous commands

Any application that can utilize sockets can interface with MSEsetup.

Command structure format:

s t r u c t A s y n c C m d S t r u c t

{

u n s i g n e d c h a r u d p C o d e ;

u n s i g n e d c h a r r e q u e s t ;

u n s i g n e d c h a r m o d u l e N u m ;

u n s i g n e d c h a r c h a n n e l N u m ;

u n s i g n e d c h a r v a l u e ;

} ;

The udpCode is always 222. This is a special command informing the Asynchronous
thread the command is not from the modules.

Available requests:

Request

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.

Connect

Responds by sending the text “connect” back.

Advertising