Block library TeleControl ST7
5.7 Master copies
TIM 1531 IRC
250
Operating Instructions, 02/2018, C79000-G8976-C468-02
Table 5- 14 Assignment of the half byte "time status"
0
0 = date/time invalid
1 = date/time valid
1
0 = standard time
1 = daylight saving time
2
(not used)
3
(not used)
Apart from the time status, whether or not the date/time is valid can also be determined
based on data bit 16.1 "CpuClockOk". As soon as the time on the CPU is valid, this bit is set
to 1 by FC TimeTask. In the user program this bit can be queried directly under the symbolic
name "BasicData.CpuClockOk".
5.7.2.11
FC Trigger
Function
The FC sets an output (memory bit, data bit or digital output) at a time that can be configured
by the user or at a preset time interval.
The FC resets this output after one OB1 cycle.
The FC can be called at any point in the cyclic user program (OB1) also more than once.
If the running of a program section or a software function is to be triggered using FC Trigger
we recommend that FC Trigger is called directly before execution of this function.
Applications for triggering functions due to the memory bit set by FC Trigger are, for
example, as follows:
●
Running through a function
●
Calling a block
●
Triggering transfer of a counted value every 2 hours
If several functions need to be activated at the same time this can be implemented by one
FC Trigger block if all functions query the same memory bit set by the FC. This works,
however, only when the triggered functions do not reset this memory bit themselves.
Remedy if triggered blocks reset the memory bit:
●
You call FC Trigger often, every time with the same time but a different output memory
bit.
●
After calling FC Trigger you reproduce the set output memory bit in an appropriate
number of further memory bits.
The FC accesses the SINAUT time of day in the first two data double words of the DB
BasicData. These are constantly supplied if an FC TimeTask is included in the user program
and this is synchronized at regular intervals by a local TIM. FC Trigger compares the time
set for it with the current time only when the time in DB BasicData, data byte 7 (time status
byte, bit 0 = 1) is marked as being valid.
The accuracy with which FC Trigger operates depends on the accuracy of the time and on
the OB1 cycle time.