Move Axis

TwinCAT NC PTP offers the PLC programmer simple function blocks for the operation of NC axes. This example describes the integration and operation of an axis within the TwinCAT system.

The example program uses simulation axes (axes with simulated encoders), and can thus be run on any Windows NT PC without additional hardware. The file TcNcsample PTPmove.wsm is loaded into the TwinCAT System Manager, and the system is started with these settings.

TwinCAT Scope is used to be able to examine the result. The supplied setting, TcNcsample PTPmove.scp , allows the axis motion to be recorded.

Finally, the example program TcNcsample PTPmove.pro is loaded into TwinCAT PLC Control, compiled, and started.

Once the program has started, the axis is moved in simulation mode, and recording commences. The image shows position, velocity, and acceleration of the axis.

Move Axis 1:
Move Axis 2:
Move Axis 3: