Description
Original instructions
Function description
With this function block the input signal is delayed by a deadtime.
The function block delays the signal X by the deadtime T_DELAY before it appears again at Y.
The function block incorporates a delay buffer for 128 elements (X values), meaning that during the time span T_DELAY 128 X values can be stored. 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 Y remains unchanged. The internal values are set to the value of X.
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 not ready because it is empty.
The function block has the following operating mode: Manual, halt and automatic mode.
EN and ENO can be configured as additional parameters.
NOTE: The delay time continues to run even if the block is disabled via the EN parameter, because the block calculates its time differences according to the system clock.
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.
Representation in FBD
Representation:
Representation in LD
Representation:
Representation in IL
Representation:
CAL DELAY_Instance (MAN:=ManualMode, HALT:=HaltMode, 
    X:=InputValue, T_DELAY:=DelayTime, 
    YMAN:=ManualControl_Y_Value, Y=>Output, 
    READY=>InternalBufferFlag)
Representation in ST
Representation:
DELAY_Instance (MAN:=ManualMode, HALT:=HaltMode, 
    X:=InputValue, T_DELAY:=DelayTime, 
    YMAN:=ManualControl_Y_Value, Y=>Output, 
    READY=>InternalBufferFlag) ;
Parameter description
Description of input parameters:
Parameter
Data type
Description
MAN
"1" = Manual operating mode
HALT
BOOL
"1" = Halt mode
X
Input value
T_DELAY
Deadtime
YMAN
REAL
Manually manipulated value
Description of output parameters:
Parameter
Data type
Description
Y
REAL
Output
READY
BOOL
"1" = internal buffer is full
"0" = internal buffer is not full (e.g. after warm/cold start or modification of deadtime)
Runtime error
For a list of all block error codes and values, see CLC.