How to Connect a Drive

The connection to a drive must be done with the inputs and outputs of the Function Block CMC_Motion_Kernel_REAL or CMC_Motion_Kernel_INT. All inputs and outputs of the kernel Function Block with the prefix “DRIVE_” are intended to be used with a drive, but in some cases not all of them are needed. In all cases the input DRIVE_ACTUALPOSITION has to be connected with the actual position of the axis. This value can be received by an IO module of the PLC or via a fieldbus.

Depending on which device closes the position control loop either the output SPEED_REFERENCE or POSITION_REFERENCE output has to be used. The value of SPEED_REFERENCE can be connected to an analog output module or be transferred via a fieldbus. The value of POSITION_REFERENCE should be exclusively send via a real-time fieldbus like ETHERCAT.

Example 1:\ Analog drive - Motor with incremental encoder

In this example the position control loop will be closed by the PLC, therefore the input DRIVE_ACTUALPOSITION and the output SPEED_REFERENCE are to be used.

In combination with the IO module CD522 and the corresponding Function Block CD522_32BIT_ENCODER the position of the encoder can be used. For the effective resolution of the encoder parameter INC_PER_R of the parameter Function Block has to be used.

The output SPEED_REFERENCE can be written directly to the global variable of an output channel of an analog module but can also be transferred via a fieldbus. The scaling of this output value can be done with the parameters REF_MAX and MAX_RPM of the Function Block CMC_AXIS_CONTROL_PARAMETER_REAL or CMC_AXIS_CONTROL_PARAMETER_INT.

The scaling of the SPEED_REFERENCE value can be set with the inputs REF_MAX and MAX_RPM of the parameter Function Block.

../_images/157344978fce1ea10a3313900101664f
../_images/545c0a1e8fce24520a331390011491be
../_images/d5b497038fce26660a33139000421bb6
../_images/d20b7aac8fce2aa40a33139000315eac
../_images/2ef5e9348fce2fb70a331390011d8afd

In order to finish a homing sequenze which is done by the Function Block MC_StepRefPulse the outputs DRIVE_SET_REF and DRIVE_SET_POSITION from the kernel Function Block have to be connected with the inputs EN_RPI and START_VALUE of the CD552 IO module Function Block. Also the output RDY_RPI of the CD552 IO module Function Block has to be connected with DRIVE_REF_OK from the kernel Function Block.

To enable and disable the drive DRIVE_RELEASE could be connected to a binary output to activate the drive. DRIVE_INOPERATION could be connected to a binary input to get the information that DRIVE_RELEASE was successful.

Example 2:\ Servo Drive - Microflex e150 via ETHERCAT in contiuous positioning mode (csp)

In this example the position control loop will be closed by the drive, therefore the input DRIVE_ACTUALPOSITION and the output POSITION_REFERENCE are to be used. The inputs refering to the position control loop of the parameter Function Block do not have to be set.

For the effective resolution of the motor’s encoder parameter INC_PER_R of the parameter Function Block has to be used.

../_images/3756b9198fce326a0a33139001df803f
../_images/bcbf59348fce367e0a33139000a613f2
../_images/e17172e38fce3ab40a33139000e3e612
../_images/b3e9bb9f8fce3c640a33139001c89bba
../_images/8208165d8fce3e930a33139001a1b78d

To enable and disable the drive DRIVE_RELEASE and DRIVE_INOPERATION have to be connected to the control Function Block ECAT_CiA402_CONTROL_e150_APP of the library ECAT_AC500_APPL_V21.lib which controls the status and control word of the drive.

All Function Blocks from this library are not password protected and free to be changed in order to be adapted for different drives. The library and the Function Blocks are marked with the ending _APP.

For a precise homing finish a position can be latched from the e150 drive by the use of the Touch Probe objects which are available in the Microflex e150 ETHERCAT configuration. To use these Touch Probe objects the Function Block ECAT_CiA402_TouchProbe_APP can be used.

In addition to the Touch Probe Function Block the homing can be executed with the Function Block ECAT_HomingOnTouchProbe_APP which uses the latched position from the Touch Probe objects.