FB_Watch - General Information
Type: |
Function block |
Available as of: |
1.2.10.0 |
Versions: |
Current version |
The POU controls the mains contactor of a machine with simple exemption.
The POU switches off the machine mains contactor via the q_xMainsContactor output and monitors the contactor via the i_xMainsWatch input. The exceptional states of the machine are signalled via the i_xAlarmCalass1 and the i_xAlarmClass3 input. According to these exceptions, the master and the slave axis are stopped via the q_xMasterStop, the q_xMasterQStop and the q_xSlaveStop outputs and, if necessary, brought to a standstill via the q_xAxisEnable output.
For more information concerning the operating principle, please refer to chapter Use of FB_Watch.
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_xMainsWatch |
BOOL |
The feedback signal of a mains contactor N/C contact. |
i_xMainsOff |
BOOL |
TRUE: the mains contactor is switched off. FALSE: the mains contactor is managed by the function block. |
i_timPowerOnDelay |
TIME |
Required time for the mains contactor to switch on. |
i_xAlarmClass1 |
BOOL |
TRUE: alarm class 1 is enabled. |
i_xAlarmClass2 |
BOOL |
TRUE: alarm class 2 is enabled. |
i_xAlarmClass3 |
BOOL |
TRUE: alarm class 3 is enabled. |
i_lrMasterVel |
LREAL |
Current velocity of the master axis. |
i_timMasterStop |
TIME |
Time in which the master in alarm class 2 must come to a stop. |
i_xAlarmQuit |
BOOL |
A positive edge acknowledges all alarm classes. |
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 POU is not ready to accept user commands. |
q_etDiag |
General library-independent statement on the diagnostic. A value unequal to GD.ET_Diag.Ok corresponds to a diagnostic message. |
|
q_etDiagExt |
POU-specific output on the diagnostic. q_etDiag = GD.ET_Diag.Ok -> status message q_etDiag <> GD.ET_Diag.Ok -> diagnostic message |
|
q_sMsg |
STRING[80] |
Event-triggered message which gives more detailed information on the diagnostic state. |
q_diAlarmLevel |
DINT |
Current alarm level Following values are output: - 10: alarm class 1 is active - 20: alarm class 2 is active - 30: alarm class 3 is active |
q_xAxisEnable |
BOOL |
Output with which the input i_xEnableDrive of the corresponding FB_DriveEnable function block has to be connected. |
q_xAlarm |
BOOL |
TRUE: an alarm is enabled. |
q_xMasterStop |
BOOL |
Output that has to be connected with i_xStart of the master motion. |
q_xMasterQStop |
BOOL |
Output that has to be connected with i_xEnable of the master motion. |
q_xSlaveStop |
BOOL |
Output that has to be connected with i_xEnable of the slave motion. |
q_xMainsContactor |
BOOL |
Output that has to be connected with the digital output which switches off the mains contactor. |
q_etDiag |
q_etDiagExt |
Enumeration value |
Description |
---|---|---|---|
OK |
310 |
Alarm level 1 |
|
OK |
311 |
Alarm level 2 |
|
OK |
312 |
Alarm level 3 |
|
OK |
9 |
The POU is disabled. |
|
OK |
308 |
Mains off alarm |
|
OK |
303 |
Power is on |
|
OK |
307 |
Wait until alarm is acknowledged. |
|
OK |
301 |
Waiting for mains watch signal |
|
OK |
304 |
Waiting for master to stop |
|
OK |
305 |
Waiting for the master to stop with TimeOut |
|
OK |
302 |
Wait for switch-on delay |
|
ControllerConditionInvalid |
100 |
The controller is not supported. |
|
ExecutionAborted |
309 |
Mains watch exception |
Enumeration name: |
AlarmLevel1 |
Enumeration value: |
310 |
Description: |
Alarm level 1 |
An alarm has been triggered at the i_xAlarmClass1 input.
Enumeration name: |
AlarmLevel2 |
Enumeration value: |
311 |
Description: |
Alarm level 2 |
An alarm has been triggered at the i_xAlarmClass2 input.
Enumeration name: |
AlarmLevel3 |
Enumeration value: |
312 |
Description: |
Alarm level 3 |
An alarm has been triggered at the i_xAlarmClass3 input.
Enumeration name: |
ControllerInvalid |
Enumeration value: |
100 |
Description: |
The controller is not supported. |
Issue |
Cause |
Solution |
---|---|---|
- |
The controller does not provide the required conditions. |
For more details, see output q_sMsg. |
Enumeration name: |
Disabled |
Enumeration value: |
9 |
Description: |
The POU is disabled. |
The function block is disabled and executes no actions whatsoever. i_xEnable and q_xActive are set to FALSE
Enumeration name: |
MainsOffAlarm |
Enumeration value: |
308 |
Description: |
Mains off alarm |
The i_xMainsOff input forces the mains contactor to switch off.
Enumeration name: |
MainsWatchException |
Enumeration value: |
309 |
Description: |
Mains watch exception |
Issue |
Cause |
Solution |
---|---|---|
- |
The mains contactor does not switch. After a positive edge on the i_xEnable input, the mains contactor reports a TRUE signal at the i_xMainsWatch input for a longer period than the time span defined by the i_timPowerOnDelay input. |
Verify the mains contactor. Verify the signal path of the mains contactor feedback. |
- |
The mains contactor failed during operation (i_xMainsWatch input receives a TRUE signal) without the q_xMainsContactor output having been set to FALSE. |
Verify the mains contactor. |
- |
When switching on the function block the mains contactor already reports that it is active (i_xMainsWatch = False). |
Verify the mains contactor. Verify the corresponding variable. Verify the signal path of the mains contactor feedback. |
Enumeration name: |
PowerOn |
Enumeration value: |
303 |
Description: |
Power is on |
The mains contactor is enabled and no alarm class is enabled.
Enumeration name: |
WaitForAlarmReset |
Enumeration value: |
307 |
Description: |
Wait until alarm is acknowledged. |
Pending alarms and exceptions are acknowledged.
Enumeration name: |
WaitForMainsWatch |
Enumeration value: |
301 |
Description: |
Waiting for mains watch signal |
Awaiting the mains contactor to be disabled.
Enumeration name: |
WaitForMasterStopped |
Enumeration value: |
304 |
Description: |
Waiting for master to stop |
Awaiting the master to stop in alarm class 3.
Enumeration name: |
WaitForMasterStoppedTimeOut |
Enumeration value: |
305 |
Description: |
Waiting for the master to stop with TimeOut |
Awaiting the master to stop in alarm class 2, monitored with a i_timMasterStop.
Enumeration name: |
WaitForPowerOnDelay |
Enumeration value: |
302 |
Description: |
Wait for switch-on delay |
Awaiting a i_timPowerOnDelay time out in which the mains contactor is switched on.