Use communication channel

The ACD channel is used to exchange handshake signals between the master axis (MachineControl/VirtualMaster) and the slave axes (Infeed, Unwinder).

The ACD channel only ever exists between the master and slave. There is no provision for cross-communication.

  • Set up communication channel (ACD Slave Access)

In the example project, the ACD channel is used to initiate synchronisation to the master axis only when the master axis has reached its set speed. For this purpose, a query was programmed in the cyclic area in "Automatic" mode to determine whether the set speed lrSetVel is equal to the set output speed lrSetVelOut :

If the target speed is reached, the LineVelReached variable from the ACD channel is set to TRUE.

This value is then queried by the ACD channel in the slave and synchronisation is then started.

The ACD channel is used from the master to the slave via the reference rACD[Slave instance name] . If the LineVelReached bit is to be set for the slave "Infeed", the programming line is as follows:

rACDZufuehrung.LineVelReached := TRUE;

To read this value in the slave, the MACD structure is accessed. The value is then read with MACD.LineVelReached :