TB_ENERGYMANAGEMENT_BM51

Representation in FBD

General Information

The function block is used to control the BM51xx active front end unit. (AFE)
With executing the function block, the DC link starts to charge. Also discharging is possible.
Furthermore error message can be read out, and errors possible to acknowledge.

To have these possibilties some defined connection to the AFE is necesserey:
1.) external wiring of digital in and outputs to the PulseEnabling Input and the Mains-switch
2.) PDO Mapping with ProMaster

The AFE dosn't included as Motion Control unit.

Recommended task: Event
Libraries used: BM_TYPES_40bd04 oder higher
ECM_SDO_40bd01 oder higher

General description


InOut Parameter

Marking: Data type: Description:
_Base ECM_PLC_MA_BMSTRUCT DPRAM-connection to theEtherCAT Master.
e.g. for the PCC

Input Parameter

Marking: Data type: Description:
x_Enable BOOL TRUE: Release of the function block.
x_PowerOn BOOL Execute the charging process (rising Edge)
Discharge the DC Link (falling Edge)
x_ErrorReset BOOL Reset Error (rising Edge)
x_FeedbackMainContactor BOOL DI: Feedback fo Main Switch (s. detailed information)
u_Axis_NodeId UINT EtherCat NodeID - Position of the AFE in the Ethercat connection (used for service data communication)
r_ActVoltageDClink REAL PDO Mapping: 0x2083:30
u_DriveManagerStatus UINT PDO Mapping: 0x206C:06

Output Parameter

Marking: Data type: Description:
x_Active BOOL TRUE: The function block is enabled and active.
x_ReadyForSwitchOn BOOL TRUE: AFE is ready for switch on. (Condition: DCvoltage = 40V AFE has no error)
x_SwitchMain BOOL DO: Output to control the Main Switch (connect a digital output of the PLC to the AFE)
x_SwitchPulseEnable BOOL DO: Ouput to control the PulseEnble Input of the AFE (connect a digital output of the PLC to the AFE)
x_PowerOnOk BOOL TRUE: AFE is in Status 4 with regulated voltage
u_ActualDCLinkVoltage UINT Shows the actual DC Link voltage 1:1 [V]
w_Controlword WORD PDO Mapping: 0x206C:01
x_Busy BOOL TRUE: While the charging and discharging process of the DC Link
x_Warning BOOL TRUE: The function block has identified an warning.
x_Error BOOL TRUE: The function block has identified an error.
w_ErrorID WORD Error number of the function block.
s_ErrorText STRING Error text of the function block.
x_DriveError BOOL TRUE: The function block has identified an drive error.
a_ErrorList INT_32_BMARRAY Error/Warning Array shows every actual AFE Error and Warnings
[0]: Number of messages
[1..31]: Error/Warning numbers (sorted by appearance)