This is part of 1.24.0latest release: 2.1.0.

MLxCommunication

Communication handling for a MotoLogix system [DEPRECATED].

This function is no longer used. It is replaced by MLxCommunicationRead and MLxCommunicationWrite which have better performance.

Overview

kindnametypedefaultcomment
in_outMLX_InputARRAY[0..108] OF UDINT
in_outMLX_OutputARRAY[0..108] OF UDINT
in_outMLXMLxDataThe MLxData Controller Scope tag.

Details

MLX_Input

ARRAY[0..108] OF UDINT

Input data buffer (mapped to fieldbus IO).

MLX_Output

ARRAY[0..108] OF UDINT

Output data buffer (mapped to fieldbus IO).

The MotoLogix variable which acts as the shared memory for a MotoLogix system.

As the PLC runs through its scan cycle each active MotoLogix FB will read from- and write to this MotoLogix variable.

It is also used for processing the data red from- and sent to the robot controller.

There are a few important rules:

  • MLxCommunicationRead must be called at the very beginning of the PLC scan cycle.
  • MLxCommunicationWrite must be called at the very end of the PLC scan cycle.
  • All other MotoLogix FB’s used in your application must be called inbetween.
  • All off this must be handled by the same PLC task, respecting above rules.

Failing to follow above rules can lead to inconsistent data being sent to the robot controller which could result in unexpected motion.

Implementation

Snippet of the function call:
fbCommunication : ARRAY[0..0] OF MLxCommunication;

fbCommunication[0]( MLX_Input := dummy,  MLX_Output := dummy,  MLX := dummy );

Pages built with Hugo - 28 Oct 2025 16:37 CET