FB_ContactorControl - General Information
Type: |
Function Block |
Available as of: |
V1.0.4.0 |
Inherits from: |
- |
Implemented: |
- |
Function blocks used to switch the mains contactor on and off using monitoring functions
The POU is activated via the 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 enabling and become FALSE after 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 accepts user commands. FALSE: the POU is not ready to operate and does not accept user commands. |
q_etDiag |
General, library-independent statement on the diagnostic. A value not equal to ET_Diag.Ok corresponds to an error message. |
|
q_etDiagExt |
POU-specific output on the diagnostic. q_etDiag = ET_Diag.Ok -> Status message q_etDiag <> ET_Diag.Ok -> Error 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 |
74 |
Checking the mains contactor. |
|
OK |
22 |
Diagnostic message disabled |
|
OK |
37 |
Initialization |
|
OK |
77 |
The mains contactor is switched on. |
|
Ok |
149 |
Waiting for MainsOn. |
|
OK |
78 |
Waiting until exception has been reset. |
|
OK |
75 |
Waiting until switch-on delay has elapsed. |
|
ControllerConditionInvalid |
6 |
The controller is invalid. |
|
ExecutionAborted |
140 |
Exception while monitoring the mains contactor. |
Enumeration name: |
CheckMainsWatch |
Enumeration value: |
74 |
Description: |
Checking the mains contactor. |
The input i_xMainsWatch is checked upon a signal at i_xMainsOn.
Enumeration name: |
ControllerInvalid |
Enumeration value: |
6 |
Description: |
The controller is invalid. |
Issue |
Cause |
Solution |
---|---|---|
- |
The controller does not provide the required conditions. |
For more details, see q_sMsg output |
Enumeration name: |
Disabled |
Enumeration value: |
22 |
Description: |
Diagnostic message disabled |
The function block is disabled and executes no actions whatsoever. i_xEnable and q_xActive are set to 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: |
140 |
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 checking 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 sure 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: |
77 |
Description: |
The mains contactor is switched on. |
The mains contactor has been closed. It is now being monitored.
Enumeration name: |
WaitForMainsOn |
Enumeration value: |
149 |
Description: |
Waiting for MainsOn. |
Mains contaktor commanded to be closed, wait till contaktor is colsed.
Enumeration name: |
WaitUntilExceptionIsReset |
Enumeration value: |
78 |
Description: |
Waiting until exception has been reset. |
The exception state of the POUs is reset.
Enumeration name: |
WaitUntilPowerOnDelayExpired |
Enumeration value: |
75 |
Description: |
Waiting until switch-on delay has elapsed. |
Waiting until mains contactor has been activated.