FB_ContactorControl - General Information
Type: |
Function block |
Available as of: |
V 1.0.0.0 |
Inherits from: |
- |
Implements: |
- |
Versions: |
Current version |
Function blocks used to switch the mains contactor on and off with monitoring functions.
The function block is activated with i_xEnable. Subsequently, the i_xMainsWatch and i_xMainsOn states are checked. If the statuses are valid (i_xMainsWatch = TRUE and i_xMainsOn = TRUE), the q_xMainsContactor output is set. When the i_timPowerOnDelay time has elapsed, the status of the mains contactor is monitored via the i_xMainsWatch input and the q_xPowerOnDelayOver output is set. The i_timPowerOnDelay time is checked for the minimum value of 1s in the POU. If the time is smaller than 1s, 1s is used as the monitoring time. In the case of an exception, the procedure can be restarted after it is acknowledged.
i_xMainsWatch (external monitoring of the device): The i_xMainsWatch input is connected to a contact of the mains contactor to verify the mains contactors for proper functioning. When the mains contactor is activated, the i_xMainsWatch input must be FALSE. The functioning of the MainsWatch contact is checked when the POU is activated and after every edge change from FALSE to TRUE at the i_xMainsOn input. The i_xMainsWatch input must be TRUE when setting to Enable and become FALSE when the mains contactor is activated. Several of these function blocks can be cascaded if a machine has more than one contactor. Program delays between switching on mains contactors to avoid temporary power peaks on the network. Each mains contactor must be controlled by an instance of this function block. The typical application is in the SR_MainMachine program.
Input |
Data type |
Description |
---|---|---|
i_xEnable |
BOOL |
A rising edge FALSE -> TRUE activates the POU, a falling edge TRUE -> FALSE deactivates the POU. A deactivated POU does not execute any actions. |
i_xMainsOn |
BOOL |
TRUE: The mains contactor is closed. FALSE: The mains contactor is opened. |
i_xMainsWatch |
BOOL |
State of the mains contactor FALSE: The mains contactor is closed. TRUE: The mains contactor is opened. |
i_timPowerOnDelay |
TIME |
Delay for activating the mains contactor. |
i_xDiagQuit |
BOOL |
An edge FALSE -> TRUE resets the exception state of the POUs. |
Output |
Data type |
Description |
---|---|---|
q_xActive |
BOOL |
TRUE: The POU is active and has to be executed further. FALSE: The POU is inactive. |
q_xReady |
BOOL |
TRUE: The POU is ready to operate and can accept user commands. FALSE: The function block is not ready to accept user commands. |
q_etDiag |
General library-independent statement on the diagnostic. A value not equal to ET_Diag.Ok corresponds to an diagnostic message. |
|
q_etDiagExt |
POU-specific output on the diagnostic. q_etDiag = ET_Diag.Ok -> Status message q_etDiag <> ET_Diag.Ok -> Diagnostic message |
|
q_sMsg |
STRING[80] |
Event-triggered message which gives more detailed information on the diagnostic state. |
q_xPowerOnDelayOver |
BOOL |
TRUE: The delay for activating the mains contactor has elapsed. The mains contactor is being checked. |
q_xMainsContactor |
BOOL |
Output for switching the mains contactor. TRUE: The mains contactor shall be closed. FALSE: The mains contactor shall be opened. |
q_etDiag |
q_etDiagExt |
Enumeration value |
Description |
---|---|---|---|
OK |
43 |
Checking the mains contactor. |
|
OK |
36 |
The POU is disabled. |
|
OK |
37 |
Initialization |
|
OK |
44 |
The mains contactor is switched on. |
|
OK |
38 |
Waiting for MainsOn |
|
OK |
41 |
Waiting until exception has been reset. |
|
OK |
40 |
Waiting until switch-on delay has elapsed. |
|
ControllerConditionInvalid |
42 |
The controller is not supported. |
|
ExecutionAborted |
39 |
Exception while monitoring the mains contactor |
Enumeration name: |
CheckMainsWatch |
Enumeration value: |
43 |
Description: |
Checking the mains contactor. |
The input i_xMainsWatch is checked upon a signal at i_xMainsOn.
Enumeration name: |
ControllerInvalid |
Enumeration value: |
42 |
Description: |
The controller is not supported. |
Issue |
Cause |
Solution |
---|---|---|
- |
The controller does not provide the required conditions. |
For more details, see q_sMsg output |
Enumeration name: |
Disabled |
Enumeration value: |
36 |
Description: |
The POU is disabled. |
The function block is deactivated, it executes no actions whatsoever. i_xEnable and q_xActive have the value FALSE.
Enumeration name: |
Initializing |
Enumeration value: |
37 |
Description: |
Initialization |
The function block is being initialized and thus is not yet ready to receive commands at its inputs. The function block will signalize that it is ready for operation with the signal q_xReady = TRUE.
Enumeration name: |
MainsWatchException |
Enumeration value: |
39 |
Description: |
Exception while monitoring the mains contactor |
Issue |
Cause |
Solution |
---|---|---|
- |
Upon a signal at the i_xMainsOn input, the mains contactor reports that it is activated after the monitoring time i_timPowerOnDelay has elapsed, although the POU has not yet set the signal required for this purpose. |
Verify the time at the i_timPowerOnDelay input. It must be sufficient to switch the mains contactor. Verify the signal path of the mains contactor feedback. FALSE must be applied at the i_xMainsWatch input if the mains contactor is activated and TRUE if it is open. Make certain that the contacts of the mains contactor do not "stick". Verify the signal path for switching the mains contactor. If the q_xMainsContactor output is FALSE, the mains contactor must be opened. If it is TRUE, it must be closed. |
- |
The feedback of the mains contactor signals an unintended opening during operation. |
Verify the signal path for switching the mains contactor. If the q_xMainsContactor output is FALSE, the mains contactor must be opened. If it is TRUE, it must be closed. Verify the signal path of the mains contactor feedback. FALSE must be applied at the i_xMainsWatch input if the mains contactor is activated and TRUE if it is open. |
Enumeration name: |
PowerOn |
Enumeration value: |
44 |
Description: |
The mains contactor is switched on. |
The mains contactor has been closed. It is now being monitored.
Enumeration name: |
WaitForMainsOn |
Enumeration value: |
38 |
Description: |
Waiting for MainsOn |
Enumeration name: |
WaitUntilExceptionIsReset |
Enumeration value: |
41 |
Description: |
Waiting until exception has been reset. |
The exception state of the POUs is reset.
Enumeration name: |
WaitUntilPowerOnDelayExpired |
Enumeration value: |
40 |
Description: |
Waiting until switch-on delay has elapsed. |
Waiting until mains contactor has been activated.