Examples of HW operation 21.03.2020 13:44 21.03.2020 13:44

The EVSE_AC_lib library contains a function block for charging electric vehicles using the CIB module C-EV-0302M.
EVSE_AC_lib is supported by all Foxtrot variants.
The library does not require an application profile.

The function block enables operation and control of electric vehicle charging by AC module HW C-EV-0302M. This FB is based on the basic connection.

Charging control for electric vehicles.
The block can be operated in several charging modes:
1) Automatic - after connecting the vehicle, the contactor is closed and the vehicle is charged.
2) Manual (Manual HDO) - Charging will occur only upon request by the user. Start and Stop inputs.

Using a block
The FB is immediately ready for the charging function. It is preset in automatic control mode, ie after connecting the car charger head to the car, it activates the Connect output. If PWM voltage is present at the CP terminal, the Charge and Lock output will also close. This starts charging the electric car. Other settings can be defined in the block configuration structure.

 

Maximum charging current
Max. charging current in automatic mode is preset to 32A and can be changed or controlled in manual mode.   

Dynamic charging current control can also be used using FB.

Use in CFC

Use in ST

VAR_GLOBAL
  EVSEData : TEVSE;
END_VAR
PROGRAM prgst
  VAR_OUTPUT
    StykacAC : BOOL;
  END_VAR
  VAR
    NabijecAC : fbEVSEChargerAC;
  END_VAR
    NabijecAC(Charge =>StykacAC, EV_IN := EV_In, EV_OUT := EV_Out, EVSE := EVSE-
Data);
END_PROGRAM