LGT_CTL1: Lighting control 1,constant lighting control

Block LGT_CTL (FB821) calculates the lighting value for the actuator (positioning value). Also provides the status for achieved minimum lighting value and brightness state.

Functioning

The block calculates the lighting value:

Step

IF

THEN

1

[Brgt] > [SpBrgt]
or
[Brgt] < [SpBrgt]

[LgtVal] = [LgtCmdPrgsVal] - [StepVal]
oder
[LgtVal] = [LgtCmdPrgsVal] + [StepVal]

2

[LgtVal] < [LgtCmdCtlMin]
or
[LgtVal] > [LgtCmdCtlMax]

[LgtVal] = [LgtCmdCtlMin]
or
[LgtVal] = [LgtCmdCtlMax]

3

[LgtVal] < [LgtCmdActMin]
or
[LgtVal] > [LgtCmdActMax]

[LgtVal] = [LgtCmdActMin]
or
[LgtVal] = [LgtCmdActMax]

The block calculates status:

Step

IF

THEN

1

[LgtVal] <= [LgtCmdTshVal] +[LgtCmdActlMin]

[LgtValMinRd] = 1

2

[Brgt] >= [SpBrgt]+0.5*[HysBrgtCtl]

[BrgtSta] = 1

Input values

Pin

Description

Data type

Standard value

Engineering unit or text group

Min.

Max.

Brgt

Brightness

REAL

0.0

lx

0.0

3.40E38

SpBrgt

Brightness setpoint

REAL

500.0

lx

0.0

3.40E38

HysBrgtCtl

Hysteresis brightness control.

REAL

100.0

lx

0.0

3.40E38

LgtCmdPrgsVal

Lighting command progress value

REAL

1.0

%

0.0

100.0

LgtCmdActlMax

Lighting command maximum actual value

REAL

100.0

%

0.0

100.0

LgtCmdActlMin

Lighting command minimum actual value

REAL

1.0

%

0.0

100.0

LgtCmdCtlMax

Lighting command max. control value.

REAL

100.0

%

0.0

100.0

LgtCmdCtlMin

Lighting command min. control value.

REAL

1.0

%

0.0

100.0

StepVal

Step value

REAL

1.0

%

0.0

100.0

LgtCmdTshVal

Lighting command threshold value.

REAL

0.95

%

0.0

100.0

Output values

Pin

Description

Data type

Standard value

Engineering unit or text group

Min.

Max.

LgtVal

Lighting value.

REAL

0.0

%

0.0

100.0

LgtValMinRd

Minimum lighting value reached.

BOOL

0

False, True

 

 

BrgtSta

Brightness state.

BOOL

0

False, True

-3.40E38

 

 

Process response

Standard (see General rules and information).

Troubleshooting

Standard (see General rules and information).