SR_<MySensor> — General Information

Overview

Type:

Program

Available as of:

V1.0.0.0

Inherits from:

-

Implements:

-

This chapter provides information on:

Functional Description

The Smart Template Sensor Module program is generated as an IEC code. It is using the SERT.FB_RandomTargetsGenerator to generate targets.

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_xDiagQuit

BOOL

A rising edge FALSE -> TRUE acknowledges pending diagnostic messages.

Output

Data type

Description

q_xActive

BOOL

TRUE: The POU is active.

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

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

SERT.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 that gives more detailed information on the diagnostic state.

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value

Plain text

OK

OK

0

OK

OK

Disabled

11

Disabled

Methods

Name

Description

Configuration

The method Configuration is called only once before the initial step of the module is executed.

RegisterLoggerPoint

Registers the program to the Application Logger.

GetTargets

The method is called when xNewTargetsAvailable is TRUE.

Logic

The method is used to program a sensor logic.

Trigger

The method is called, when xTrigger is TRUE.

GetMatrixTargetsNoRotation

Reads out the parameter for matrix targets without rotation.

GetMatrixTargetsMinMaxRotation

Reads out the parameter for matrix targets between minimum and maximum rotation values.

GetTargetMatrixInPlaneRotationList

Reads out the parameter for matrix targets with fixed rotation values.

GetRandomTargetsNoRotation

Reads out the parameter for random targets without rotation.

GetRandomTargetsMinMaxRotation

Reads out the parameter for random targets between minimum and maximum rotation values.

GetRandomMatrixInPlaneRotationList

Sets the parameter for random targets with fixed rotation values.

SetMatrixTargetsNoRotation

Sets the parameter for matrix targets without rotation.

SetMatrixTargetsMinMaxRotation

Sets the parameter for matrix targets between minimum and maximum rotation values.

SetTargetMatrixInPlaneRotationList

Sets the parameter for matrix targets with fixed rotation values.

SetRandomTargetsNoRotation

Sets the parameter for random targets without rotation.

SetRandomTargetsMinMaxRotation

Sets the parameter for random targets with minimum and maximum rotation values.

SetRandomMatrixInPlaneRotationList

Sets the parameter for random targets with fixed rotation values

Properties

Name

Data type

Accessing

Description

xNewTargetsAvailable

BOOL

Get

Get new targets on sensor.

xTrigger

BOOL

Get/Set

Get / Set the value.