FB_Watch - General Information

Overview

Type:

Function block

Available as of:

1.2.10.0

Versions:

Current version

Task

The POU controls the mains contactor of a machine with simple exemption.

Description

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.

Interface

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

GD.ET_Diag

General library-independent statement on the diagnostic.

A value unequal to GD.ET_Diag.Ok corresponds to a diagnostic message.

q_etDiagExt

ET_DiagExt

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.

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value

Description

OK

AlarmLevel1

310

Alarm level 1

OK

AlarmLevel2

311

Alarm level 2

OK

AlarmLevel3

312

Alarm level 3

OK

Disabled

9

The POU is disabled.

OK

MainsOffAlarm

308

Mains off alarm

OK

PowerOn

303

Power is on

OK

WaitForAlarmReset

307

Wait until alarm is acknowledged.

OK

WaitForMainsWatch

301

Waiting for mains watch signal

OK

WaitForMasterStopped

304

Waiting for master to stop

OK

WaitForMasterStoppedTimeOut

305

Waiting for the master to stop with TimeOut

OK

WaitForPowerOnDelay

302

Wait for switch-on delay

ControllerConditionInvalid

ControllerInvalid

100

The controller is not supported.

ExecutionAborted

MainsWatchException

309

Mains watch exception

AlarmLevel1

Enumeration name:

AlarmLevel1

Enumeration value:

310

Description:

Alarm level 1

An alarm has been triggered at the i_xAlarmClass1 input.

AlarmLevel2

Enumeration name:

AlarmLevel2

Enumeration value:

311

Description:

Alarm level 2

An alarm has been triggered at the i_xAlarmClass2 input.

AlarmLevel3

Enumeration name:

AlarmLevel3

Enumeration value:

312

Description:

Alarm level 3

An alarm has been triggered at the i_xAlarmClass3 input.

ControllerInvalid

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.

Disabled

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

MainsOffAlarm

Enumeration name:

MainsOffAlarm

Enumeration value:

308

Description:

Mains off alarm

The i_xMainsOff input forces the mains contactor to switch off.

MainsWatchException

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.

PowerOn

Enumeration name:

PowerOn

Enumeration value:

303

Description:

Power is on

The mains contactor is enabled and no alarm class is enabled.

WaitForAlarmReset

Enumeration name:

WaitForAlarmReset

Enumeration value:

307

Description:

Wait until alarm is acknowledged.

Pending alarms and exceptions are acknowledged.

WaitForMainsWatch

Enumeration name:

WaitForMainsWatch

Enumeration value:

301

Description:

Waiting for mains watch signal

Awaiting the mains contactor to be disabled.

WaitForMasterStopped

Enumeration name:

WaitForMasterStopped

Enumeration value:

304

Description:

Waiting for master to stop

Awaiting the master to stop in alarm class 3.

WaitForMasterStoppedTimeOut

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.

WaitForPowerOnDelay

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.