beckhoff TwinCAT 2 — 4.4 "Low Cost" stepper motor axes with digital control (24V / 2A)

TwinCAT NC Axes In the event of the stepper motor not being able to cope, the contact to the driving electromagnetic field is interrupted, and the motor comes to a halt (with a chaotic jitter). For commissioning, the motor should therefore be brought up to the desired set velocity (1st test parameter) with slowly and constantly increasing velocity during a first test series with slight ramps (low acceleration and deceleration), in order to ensure that the motor can follow. In a second test series (with fixed set velocity) the ramps should be increased slowly and constantly to the desired acceleration/deceleration (2nd test parameter).

IO configuration of the drive The link (mapping) of the logical NC axis outputs (drive output structure, 'nCtrl' byte or 'nExtCtrl' byte) with the physical digital IO outputs (24V / 2A) still has to be carried out manually in the TwinCAT System Manager. Individual bits from the 'nCtrl byte' or 'nExtCtrl byte' are linked with the respective digital outputs. In order to select an individual bit from a byte (8 bit), a byte offset in the range between 0 and 7 should be entered. If, for example, the second bit of a byte is to be addressed, a value of 1 has to be entered as byte offset. Configuration parameters Numerical Control (NC) Basics 27 Version:

1.2 Data type Byte Bit Def.- Range Variable name Description 1 INT32 0 – 3 __ __ nOutData1 Drive output data 1 (NC→I/O) 2 INT32 4 – 7 __ __ nOutData2 Drive output data 2 (NC→I/O) 3 UINT8 8 __ __ nControlByte Control byte 3.0 BOOL 8 0 0 / 1 bPhaseA Phase A 3.1 BOOL 8 1 0 / 1 bPhaseAInv Phase A inverse 3.2 BOOL 8 2 0 / 1 bPhaseB Phase B 3.3 BOOL 8 3 0 / 1 bPhaseBInv Phase B inverse 3.4 BOOL 8 4 0 / 1 __ RESERVE 3.5 BOOL 8 5 0 / 1 __ RESERVE 3.6 BOOL 8 6 0 / 1 bBreakInv Inverse braking bit:

(0 = ACTIVE, 1 = PASSIVE) 3.7 BOOL 8 7 0 / 1 bBreak Braking bit (0 = PASSIVE, 1 = ACTIVE) 4 UINT8 9 __ __ nExtControlByte Extended control byte 4.0 BOOL 9 0 0 / 1 bFrequency Frequency (square wave signal) 4.1 BOOL 9 1 0 / 1 bDirectionPlus Direction positive 4.2 BOOL 9 2 0 / 1 __ RESERVE 4.3 BOOL 9 3 0 / 1 __ RESERVE 4.4 BOOL 9 4 0 / 1 __ RESERVE 4.5 BOOL 9 5 0 / 1 __ RESERVE 4.6 BOOL 9 6 0 / 1 __ RESERVE 4.7 BOOL 9 7 0 / 1 __ RESERVE 5 UINT16 10 -11 __ __ nReserved Reserved bytes