Description
Original instructions
Function description
With this function block the input signal is delayed by a deadtime.
The function block delays the signal IN by the deadtime T_DELAY, before it is transmitted to OUT again.
The function block has a delay puffer for 128 elements (IN values), i.e. 128 IN values can be saved during the T_DELAY time. The buffer is used in such a way that it corresponds with the operating mode.
Whether the system is started cold or warm, the value of OUT remains unchanged. The internal values are set to the value of IN.
After a change of deadtime T_DELAY or a cold or warm system start, the output READY goes to "0". This means: that the buffer is empty and not ready.
The function block has both a tracking and automatic mode.
NOTE: This function block performs an internal initialization in the first program cycle after a warm start or cold start (e.g. application download or power cycle) of the PLC program.
Due to this, you have to make sure that the function block is invoked in the first program cycle. In case of inkoving the function block in a later program cycle, the internal initialization will not be performed and the ouputs may deliver wrong values.
WARNING
UNEXPECTED OUTPUT BEHAVIOUR
Make sure that the function block is always invoked in the first program cycle.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
EN and ENO can be configured as additional parameters.
Representation in FBD
Representation:
Representation in LD
Representation:
Representation in IL
Representation:
CAL QDTIME_Instance (IN:=InputValue, T_DELAY:=DeadTime,
    TR_I:=InitializationInput, TR_S:=InitializationType,
    OUT=>Output, READY=>InternalBufferFlag)
Representation in ST
Representation:
QDTIME_Instance (IN:=InputValue, T_DELAY:=DeadTime,
    TR_I:=InitializationInput, TR_S:=InitializationType,
    OUT=>Output, READY=>InternalBufferFlag) ;
QDTIME parameter description
Description of input parameters:
Parameter
Data type
Description
IN
Input value
T_DELAY
Deadtime
TR_I
REAL
Initialization input
TR_S
Initialization type:
"1" = Operating mode Tracking
"0" = Automatic operating mode
Description of output parameters:
Parameter
Data type
Description
OUT
REAL
Output
READY
BOOL
"1" = internal buffer is full
"0" = internal buffer is not full (e.g. after warm/cold start or alteration to deadtime)
Runtime error
For a list of all block error codes and values, see Conditioning.