Technical data

SINAUT TD7 software package for the CPU
2.6 Blocks for optional expansion
Software
294 System Manual, 07/2009, C79000-G8976-C222-07
2.6.3 FC Trigger
Function
This function block sets an output (memory bit, data bit or digital output) at a point in time or
at time intervals specified by the user. The block resets this output after one OB1 cycle.
The FC can be called from any point and also several times in the cyclic SINAUT program
(in OB1).
When an individual program section or software function is to be triggered using FC Trigger,
it is advisable to call it directly before the block that, for example, will be executed
conditionally due to the memory bit set by FC Trigger, or will execute a certain function
triggered by the memory bit (e.g. triggering a counted value transmission every 2 hours).
If you want to activate several (software) functions at the same time, this can be done with
one FC Trigger: All query the same memory bit set by FC Trigger. However, this only works
without problems when the triggered blocks do not reset this memory bit themselves. To
avoid the problem of triggered blocks resetting the memory bit:
Insert a suitable number of Trigger FCs, each with the same time but with a different
output memory bit, or
Set a suitable number of additional memory bits after FC Trigger has set its output
memory bit.
The FC accesses the SINAUT time in the first two data double words in DB BasicData.
These are continuously updated if an FC TimeTask is included in the SINAUT program and
this is synchronized with the date and time of day by a local TIM at regular intervals. FC
Trigger only compares its time parameters with the current time of day if the SINAUT time is
marked as O.K. (for a valid time of day bit 0 is set in DB BasicData in data byte 7, the time
status byte).
The precision with which FC Trigger operates depends, on the one hand, on the exactness
of the SINAUT time and, on the other, on the OB1 cycle time. If the OB1 cycle time is less
than 1 s (this is usually the case), the output is set exactly to the set second value (with the
inaccuracy of the OB1 cycle time of less than 1 sec.). If the OB1 cycle time is greater than 1
s, the FC works with a tolerance window of 4 s; in other words, if the FC is processed late
but still within 4 s of the configured time or time interval, the output is still set.
The edge memory bit (Flag parameter) to be set for the FC is also set with the output and
reset 5 s after the specified point in time or time interval. It is not allowed to use a dummy
parameter for the edge memory bit or to reset it with the user program!
Following the descriptions of the parameters below, you will find several examples that
explain how to set parameters for points in time or time intervals using FC Trigger.
Explanation of the parameters
Name: IntervalMode
Declaration: INPUT