Connection of the TM with command

The connection of the TMs L_TC2P_CoordinatedMotionState happens via the input itfCmdReceiver at the command. The instance of the L_TC2P_CoordinatedMotionState is to be connected directly to the input itfCmdReceiver of the command.

  • The assignment can be done directly when declaring the command:

VAR

  TM_CoordMotion: L_TC2P_CoordinatedMotionState;

  Cmd_MoveLinAbs: L_TC2P_CmdMoveLinearAbsolute :=

                  (itfCmdReceiver := TM_CoordMotion);

END_VAR

 

  • The assignment in the application:

VAR

  TM_CoordMotion: L_TC2P_CoordinatedMotionState;

  Cmd_MoveLinAbs: L_TC2P_CmdMoveLinearAbsolute;

END_VAR

 

/// Interconnection of the TM with the command

Cmd_MoveLinAbs.itfCmdReceiver := TM_CoordMotion;