howto-howto-1444x512

Suitably Power ON/OFF ctrlX DRIVE

Drives_Uwe
Community Moderator

In the following we show to you how to correctly Power ON and OFF  ctrlX DRIVE.

All the functions and screen shots are based on:

  • ctrlX DRIVE Engineering version 01V10
  • Runtime / Firmware version of drive AXS-V0302 or
    Runtime / Firmware version of drive AXS-V0208

1. Prerequisites

A connection to the ctrlX DRIVE has been successfully establi-shed, the device is correctly wired and 24 V are successfully put on. As well the engineering tool ctrlX DRIVE Engineering has been started.

2. Power ON/OFF with I/Os
2.1. Schematics for power supply discharged at Power OFF

The power ON sequence of ctrlX DRIVE, if done via I/O wiring, follows the principle that

  • the “ready” state of all drives connected over DC bus is collected over the Bb relays of all the axes
  • that collected “ready” state powers on the power supply
  • the power supply then tells the axes to change from “bb” to “Ab”

The overall sequences should be according to the following schematics if using the example wiring.

Drives_Uwe_0-1625812337903.png

Fig. 1.: Overall sequence for Power ON over I/Os (acc. to example wiring)

Drives_Uwe_1-1625812337906.png

Fig. 2.: Overall sequence for Power OFF over I/Os (acc. to example wiring)

The overall electrical circuit should be looking like that.

Drives_Uwe_2-1625812337918.png

Fig. 3.: Overall electrical circuit for power on over I/Os, if using drives with STO (Safe torque off) function (acc. to example wiring) and DC bus is discharged at Power OFF

Drives_Uwe_3-1625812337925.png

Fig. 4.: Overall electrical circuit for power on over I/Os, if using drives with SMO (Safe Motion) function (acc. to example wiring) and DC bus is discharged at Power OFF

2.2. Parameterization of power supply (XVR, XVE, XCS, XCD) discharged at Power OFF

The power supply configuration needs to be set for three-phase or single-, two-phase connection depending on the installation. Select the “Control via digital inputs”! The pins are selected automatically if accordingly configured in the I/O configuration.

Drives_Uwe_4-1625812337936.png

Fig. 5.: Power supply: Configuration (acc. to example wiring), DC bus is discharged at Power OFF

If pressing the link I/O XG31.1 you get to the I/O configuration. Select the signals as shown in here.

Drives_Uwe_5-1625812337941.png

Fig. 6.: I/O configuration of power supply (acc. to example wiring) ), DC bus is discharged at Power OFF

Drives_Uwe_8-1625812337968.png

Fig. 7.: Mains connection: Braking resistor settings --> set parameters according to your application

The power off delay time should match the maximum time needed for the deceleration of the axes with the longest deceleration time with some time margin.

Drives_Uwe_10-1625812337990.png

Fig. 8.: Mains connection: Power supply error reaction --> set power off delay time according to your application

Drives_Uwe_11-1625812337998.png

Fig. 9.: DC bus configuration of power supply --> set DC bus undervoltage threshold according to your application (standard setting is 200 V)

2.3. Schematics for power supply not discharged at Power OFF

The power ON sequence of ctrlX DRIVE, if done via I/O wiring, follows the principle that

  • the “ready” state of all drives connected over DC bus is collected over the Bb relays of all the axes
  • that collected “ready” state powers on the power supply
  • the power supply then tells the axes to change from “bb” to “Ab”

The overall sequences should be according to the following schematics if using the example wiring.

Drives_Uwe_12-1625812338006.png

Fig. 10.: Overall sequence for Power ON over I/Os (acc. to example wiring), DC bus is not discharged at Power OFF

Drives_Uwe_13-1625812338009.png

Fig. 11.: Overall sequence for Power OFF over I/Os (acc. to example wiring), DC bus is not discharged at Power OFF

The overall electrical circuit should be looking like that.

Drives_Uwe_14-1625812338019.png

Fig. 12.: Overall electrical circuit for power on over I/Os, if using drives with STO (Safe torque off) function (acc. to example wiring), DC bus is not discharged at Power OFF

Drives_Uwe_15-1625812338027.png

Fig. 13.: Overall electrical circuit for power on over I/Os, if using drives with SMO (Safe Motion) function (acc. to example wiring), DC bus is not discharged at Power OFF

2.4. Parameterization of power supply (XVR, XVE, XCS, XCD) not discharged at Power OFF

The power supply configuration needs to be set for three-phase or single-, two-phase connection depending on the installation. Select the “Control via digital inputs”! The pins are selected automatically if accordingly configured in the I/O configuration.

Drives_Uwe_16-1625812338039.png

Fig. 14.: Power supply: Configuration (acc. to example wiring), DC bus is not discharged at Power OFF

Rest of parameterization and configuration is doen like shown before in chapter 2.2.

2.5. Parameterization of inverters (XMS, XMD)

In similar way the DC bus configuration of the inverters has to be set.

Mind that normally the DC bus undervoltage threshold should be set to the same value in all devices connected to the same DC bus.

Drives_Uwe_24-1625812338104.png

Fig. 14.: DC bus configuration of axes à set DC bus undervoltage threshold according to your application (standard setting is 200 V)

If pressing the link I/O XG31.1 you get to the I/O configuration. Select the signals as shown in here.

Drives_Uwe_25-1625812338106.png

Fig. 15.: I/O configuration of inverters (acc. to example wiring)

2.6. Variant: Automatic load of DC bus to power ON

If selecting the configuration

  • If in OM, then auto soft start

or

  • If in OM, then auto soft start, automatic DC bus discharge in the case of mains failure

it is possible to keep the mains connected at all time.

This variant can also be used for operation via fieldbus connection. Then only the Power ON and OFF bits need to be used.

It is not necessary to control the parameters S-0-1720.0.150, S-0-1720.0.1 and S-0-1720.0.2 externally.

Drives_Uwe_26-1625812338110.png

Fig. 16.: Power supply: if in OM, then auto soft start

Minimal wiring is required for the exchange of information with other devices on the same DC bus.

Drives_Uwe_27-1625812338113.png

Fig. 17.: Example wiring

I/O Assignment at the power supply XG31.

Drives_Uwe_28-1625812338114.png

Fig. 18.: Example I/O assignment at power supply

I/O Assignment at the axes.

Drives_Uwe_29-1625812338116.png

Fig. 19.: Example I/O assignment at axes

3. Power ON/OFF with fieldbus
3.1. Power supply state machine

The power on sequence of ctrlX DRIVE, if done via fieldbus, follows the principle that

  • the power supply state machine is controlled by power supply control and status word (S-0-1720.0.1, S-0-1720.0.2)

In case of multi axes connected to DC bus:

  • the “ready” state (bb) of all drives connected over DC bus is collected via device status word (P-0-0115 Bit 0) by fieldbus

Mind that the status information can also be exchanged via signal status word. See chapter 4.1. in this document.

  • that collected “bb” states are used to decide when power ON can be triggered by control
  • when power supply is ready (LB) this info is forwarded to all axes to switch to state “Ab” (S-0-0240)

Mind that the control bit can also be exchanged via signal status word. See chapter 4.1. in this document.

Note: If a power supply is present with multi axes integra-ted (i.e. XCD) the information is exchanged internally.

The principle wiring and schematic possibilities you can find in chapter 9.1.4 of ctrlX DRIVE Runtime application manual (R911398021)

The power supply state machine illustrates the sequence you need to meet to switch on the supply. There is a function block for ctrlX CORE PLC to control the state machine.

For detailed info (also for other device types) see also chapter 4.2.3 of ctrlX DRIVE Runtime application manual.

Drives_Uwe_30-1625812621116.png

Fig. 20.: Power supply state machine XCS/XCD/XVE

Relevant parameters:

  • Power supply (XVE/XCS/XCD)
    S-0-1720.0.1 (Alias S-0-2057) „Power supply control word“
    S-0-1720.0.2 (Alias S-0-2058) „ Power supply status word “ 
  • Inverter in axis group
    S-0-0240 „DC Bus power control“
    P-0-0115 „Device status word”

Mind: These parameters can also be mapped in signal control/status word.

 3.2. Parameterization of power supply (XVR, XVE, XCS, XCD)

The power supply configuration needs to be set for three-phase or single-, two-phase connection depending on the installation. Select the “External control via fieldbus” to control power supply state machine via power supply control word!

Drives_Uwe_31-1625812621119.png

Fig. 21.: Power supply: Configuration

You need to activate a fieldbus protocol for communication.

For a combination with our ctrlX CORE you should use EtherCAT and Servodrive profile.

Drives_Uwe_32-1625812621122.png

Fig. 22.: Fieldbus protocol and Servodrive profile

A breaking resistor is necessary in case you want to use ZKS (DC short circuit) to discharge the DC bus voltage.

Drives_Uwe_33-1625812621139.png

Fig. 23.: Mains connection: Braking resistor settings à set parameters according to your application.

Fieldbus communication needs to be enabled in all connected axes as well. No other modifications are necessary.

3.3. Configure ctrlX CORE

The task of ctrlX CORE is to operate and evaluate the power supply control and status word. To do this, the information needs to be exchanged via the fieldbus.

Mind: Special for EtherCAT: the so called “Alias” parameters need to be used.

The control/status words can be addressed directly via the data layer from an app or via the PLC I/O image as soon as the devices have been configured in the EtherCAT master. (For control/status word assignment, see parameter description).

Steps:

  • Install EtherCAT Master App on ctrlX CORE. Open ctrlX I/O Engineering and scan for devices!
  • Add scanned devices to the project!
  • For devices with power supply (XCS, XCD, XVE, XVR), the power supply control/status words are configured by default in the process data (MDT / AT).
    Note: for power supply control/status words, “Alias” parameters are used depending on the fieldbus.
  • For inverters without power supply (e.g. XMS, XMD) supplied directly via the DC bus, the power control word (S-0-0240) and device status word are configured by default in process data (MDT/AT).
  • If necessary, activate EoE, afterwards download and activate fieldbus configuration to ctrlX CORE!
  • Read/write power supply control/status word from PLC side. Therefor install PLC app on ctrlX CORE and open ctrlX PLC Engineering.
  • Scan configured process data under Realtime_Data node, which we had previously configured in ctrlX I/O Engineering.
  • Power supply control/status word can be controlled directly via the process data. Alternatively, there are function blocks (Lib: CXA_Drive_Util) for ctrlX CORE to control the power supply state machine.
  • In both cases, you need to map the power supply control/status word to a PLC variable. Create this variable in your program or global variable list in before. Mapping can also be done via addresses (%IW2,…), if variable is declared accordingly.
  • In case of inverters (e.g. XMS, XMD) connected to DC bus, you need to map device status word and DC bus power control word to a variable as well.
  • Add CXA_DriveUtil to library manager
    Hint: You need to activate ‘display advanced libraries’
    There is an example code available in the Examples folder.
    Function block PowerSupplyDriveIntegrated is fieldbus independent and can be used for standalone power supplies as well.

      Drives_Uwe_43-1625812621187.png

     Fig. 24.: Example code for MB_PowerSupplyDriveIntegrated function block

  • Copy example code to your program and download it to ctrlX CORE!

When all connected axes report bb state, power supply will be switched to LB (= Operation_Mode) automatically after FB is activated by variable bEnablePower. When a single axis is not in bb, power supply will be switched to bb (Mains_Off_No_Discharge). You can change the target states or switching conditions according to your requirements.

4. Power ON/OFF with fieldbus using signal control and signal status word
4.1. Power supply state machine

The power on sequence of ctrlX DRIVE, if done via fieldbus, follows the principle that

  • the power supply state machine is controlled by power supply control and status word (S-0-1720.0.1, S-0-1720.0.2)

In case of multi axes connected to DC bus:

  • the “ready” state (bb) of all drives connected over DC bus is collected via device status word (P-0-0115 Bit 0) by fieldbus in signal status word.
  • that collected “bb” states are used to decide when power ON can be triggered by control
  • when power supply is ready (LB) this info is forwarded to all axes to switch to state “Ab” (S-0-0240) via signal control word.

Note: If a power supply is present with multi axes integrated (i.e. XCD) the information is exchanged internally.

The principle wiring and schematic possibilities you can find in chapter 9.1.4 of ctrlX DRIVE Runtime application manual (R911398021)

The power supply state machine illustrates the sequence you need to meet to switch on the supply. There is a function block for ctrlX CORE PLC to control the state machine.

For detailed info (also for other device types) see also chapter 4.2.3 of ctrlX DRIVE Runtime application manual.

Relevant parameters:

  • Power supply (XVE/XCS/XCD)
    S-0-1720.0.1 (Alias S-0-2057) „Power supply control word“
    S-0-1720.0.2 (Alias S-0-2058) „ Power supply status word “
  • Inverter in axis group
    S-0-0240 „DC Bus power control“
    P-0-0115 „Device status word”

These parameters need to be mapped in signal control/status word

4.2. Parameterization of power supply (XVR, XVE, XCS, XCD)

See chapter 3.2 for basic settings.

For using signal control/status word, you have to configure the necessary bits.  

Drives_Uwe_49-1625812621229.png

Fig. 25.: Configuration of signal control word in power supply. Don´t configure in XCD or XCS axis!

Drives_Uwe_50-1625812621233.png

Fig. 26.: Configuration of signal status word

Fieldbus communication need to be enabled in inverters (e.g. XMS, XMD) as well.

4.3. Configure ctrlX CORE

The task of ctrlX CORE is to operate and evaluate the power supply control and status word. To do this, they need to be exchanged via the fieldbus.
Mind: Special for EtherCAT: the so called “Alias” parameters need to be used.

The control/status words can be addressed directly via the data layer from an app or via the PLC I/O image as soon as the devices have been configured in the EtherCAT master. (For control/status word assignment, see parameter description).

 For devices with power supply (XCS, XCD, XVE, XVR), the power supply control/status words are configured by default in the process data (MDT / AT). You have to add signal control word (S-0-0145) and signal status word (S-0-0144).
Note: For power supply control/status words, alias parameters are used depending on the fieldbus!

Drives_Uwe_53-1625812621237.png

Fig. 27.: Cyclic data (MDT/AT) of power supply (e.g. XCS, XCD axis 1)

For slave axis of XCD or modular inverters (without power supply, XMS, XMD) supplied directly by DC bus, signal control word (S-0-0145) and signal status word(S-0-0144) have to be added in process data (MDT/AT).

Drives_Uwe_54-1625812621238.png

Fig. 28.: Cyclic data (MDT/AT) of inverter (e.g. XMD, XMS)

4.4. Example for a power supply function block

In the following chapter, you get an example of creating a function block, which you can call from your PLC Main Program.

Steps:
Add variables in global variable list!

Drives_Uwe_60-1625812621267.png

Fig. 29.: Sample code for global variables

Get information about status of connected axes on DC Bus!

Drives_Uwe_61-1625812621275.png

Fig. 30.: Sample code for checking drive status “bb” and “Standstill”

Check if an external error is present, which needs to power off the machine. If there is an error present and the drives are not in “Standstill” use a delay block to allow the stopping of the moving axes.

Drives_Uwe_62-1625812621277.png

Fig. 33.: Sample code for check of external errors

When axes are ready and no error is signaled, target mode “LB” of the power supply should be chosen, then the bit for enabling the function block should be set. Otherwise the Power has to be shut down.

You may add a bit (e.g. for handling an external button) for “Power ON”.

Drives_Uwe_63-1625812621281.png

Fig. 34.: Sample code “Power On” or “Power OFF”

Add failure diagnostic for better analysis of error states. Disable the power supply when an error occurs.

Drives_Uwe_64-1625812621296.png

Fig. 35.: Sample code for failure diagnostic

If the power supply is in target mode “LB”, activate the following bits on the inverters (e.g. XMS, XMD).

Drives_Uwe_65-1625812621315.png

Fig. 36.: Sample code if power supply is in “LB”

Finally map your variables to the function block!

Drives_Uwe_66-1625812621331.png

Fig. 37.: Sample code function block MB_PowerSupply

5. Power ON/OFF using IndraMotion MTX or MLC
5.1. Timing sequence schematics

The power ON sequence of ctrlX DRIVE, if using IndraMotion MTX or MLC, follows the principle that

  • the “ready” state of all drives connected over DC bus is collected over the bb information already present in the status information of the control system of all the axes
  • the collected “ready” states of all drives powers on the power supply using the parameter S-0-1720.0.1 for control at the same time taking into account the status indicated in parameter S-0-1720.0.2
  • if the power supply is in state “Ab” or “LB” the control tells the axes to change from “bb” to “Ab”
  • only then the control may set the drive enable signal to all drives

The overall sequences should be according to the following schematics.

Drives_Uwe_0-1626686588261.png

Fig. 38.: Overall sequence for Power ON over IndraMotion MTX or MLC

*  NC-PLC interface iAx_DrvPower at IndraMotion MTX

** NC-PLC interface iAx_DrvReady at IndraMotion MTX

Drives_Uwe_1-1626686623976.png

Fig. 39.: Overall sequence for Power OFF over IndraMotion MTX or MLC

*  NC-PLC interface iAx_DrvPower at IndraMotion MTX

** NC-PLC interface iAx_DrvPower at IndraMotion MTX

5.2. Parameterization of power supply (XVR, XVE, XCS, XCD)

The power supply configuration needs to be set for three-phase or single-, two-phase connection depending on the installation. Select the “External control via field bus”!

Drives_Uwe_69-1625812816667.png

Fig. 40.: Power supply: Configuration (acc. to example wiring)

Drives_Uwe_76-1625812816738.png

Fig. 41.: Master communication settings --> Sercos as active protocol and one of the Sercos profiles must be selected

Drives_Uwe_77-1625812816745.png

Fig. 42.: Configuration of cyclic telegram (connection 0) at converter as power supply (XCS, XCD) --> S-0-0145 (signal control word) must be included

Drives_Uwe_78-1625812816753.png

Fig. 43.: Configuration of cyclic telegram (connection 1) at converter as power supply (XCS, XCD) --> S-0-0144 (signal status word) must be included

Drives_Uwe_79-1625812816763.png

Fig. 44.: Configuration of signal control word (S-0-0145) at converter as power supply (XCS, XCD) --> relevant bits to be selected (assignment may be changed if some of the bits are already used in your application)

Drives_Uwe_80-1625812816772.png

Fig. 45.: Configuration of signal status word (S-0-0144) at converter as power supply (XCS, XCD) --> relevant bits to be selected (assignment may be changed if some of the bits are already used in your application)

Drives_Uwe_81-1625812816778.png

Fig. 46.: Configuration of cyclic telegram (connection 0) at power supply units (XVE, XVR)

Drives_Uwe_82-1625812816785.png

Fig. 47.: Configuration of cyclic telegram (connection 1) at power supply units (XVE, XVR)

5.3. Parameterization of inverters (XMS, XMD)

In similar way the DC bus configuration of the inverters has to be set.

Mind that normally the DC bus undervoltage threshold should be set to the same value in all devices connected to the same DC bus.

Drives_Uwe_83-1625812816788.png

Fig. 48.: DC bus configuration of axes --> set DC bus undervoltage threshold according to your application (standard setting is 200 V)

Drives_Uwe_84-1625812816797.png

Fig. 49.: Master communication settings --> Sercos as active protocol and one of the Sercos profiles must be selected

Drives_Uwe_85-1625812816804.png

Fig. 50.: Configuration of cyclic telegram (connection 0) at inverters (XMS, XMD) à S-0-0145 (signal control word) must be included

Drives_Uwe_86-1625812816812.png

Fig. 51.: Configuration of cyclic telegram (connection 1) at inverters (XMS, XMD) --> S-0-0144 (signal status word) must be included

Drives_Uwe_87-1625812816819.png

Fig. 52.: Configuration of signal control word of inverters --> S-0-0240 must be included (Bit 10 just shown as an example (may be changed if some of the bits are already used in your application))

Drives_Uwe_88-1625812816828.png

Fig. 53.: Configuration of signal status word of inverters --> we recommend to add S-0-0331 (bit 0 selected just shown as an example (may be changed if this bit is already used in your application))

5.4. PLC code example

In the following an example PLC program is shown.

in preparation

Fig. 54.:

 

 

 

 

 

Must Read

Trending

Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist