Command execution

For the execution of the commands one instance of the same type of the command is enough.

Any number of commands can be issued with the instance of a command type. The commands can be sent several times within one PLC clock cycle.

To execute the command, the instance of the command function block must be created in the declaration part and connected to the L_TC2P_CoordinatedMotionState technology module.

The cyclic call of the command function block is not necessary and has no effect.

Each command has the method Execute().

For the execution of the command the method Execute() must be called. For the command Cmd_MoveLinAbs: L_TC2P_CmdMoveLinearAbsolute the call looks like this:

Cmd_MoveLinAbs.Execute();

Calling the method sends the order to execute the command. The multiple call of the method orders the command multiple times. The method Execute has the return value Execute :BOOL. The value becomes TRUE if the command is valid and has been successfully sent for the TM. The return value is FALSE if the command could not be issued for the TM.