Table of Contents

Light

Namespace
ZEquipment
Extends
Inherited Properties
Inherited Methods
Implements

This function block is used to control simple signaling lights on a typical automation system. It utilizes a PulsedOutput that makes all these different signaling sequences possible and a DigitalOutput which is then connected to an actually hardware-output via a fieldbus.

One has to use the Enable method to set a specific light pattern defined in LightCharacteristic or simply switch the light on or off

  • fixed: A steady light (on or off)
  • flashing: A rhythmic light in which the total duration of the light in each period is clearly shorter than the total duration of the darkness and in which the flashes of light are all of equal duration.
  • occulting: A rhythmic light in which the duration of light in each period is longer than the total duration of darkness. In other words, it is the opposite to a flashing light.
  • isophase: is a light which has dark and light periods of equal length. Typically 1Hz
  • group: Sequences of flashes get interrupted by a duration (pausetime) where the state of the light is either off or on defined by (pausetimeState).
FUNCTION_BLOCK Light EXTENDS ZEquipment.LightBase IMPLEMENTS ZEquipment.ILight, ZEquipment.IPulsedOutput

Constructor

FB_init

METHOD FB_init (
 bInitRetains : BOOL,
 bInCopyCode : BOOL,
 parent : ZCore.IManagedObject) : BOOL

Inputs

bInitRetains BOOL

if TRUE, the retain variables are initialized (warm start / cold start)

bInCopyCode BOOL

if TRUE, the instance afterwards gets moved into the copy code (online change)

parent IManagedObject

Interface to the ManagedObject that is the parent of this object

Returns

BOOL