I/Os - Siemens SIMATIC PCS 7 Function Manual

Process control system, advanced process functions apf
Hide thumbs Also See for SIMATIC PCS 7:
Table of Contents

Advertisement

Best before / UTC time supply
9.1 FB_BBD
Rounding DOB and BBD to full minutes, hours and days
The date of birth / best before data can be rounded up to full minutes, hours or days. The
rounding function is executed before the function for suppressing seconds, minutes and hours.
● Rounding up seconds to full minutes:
The seconds are set to "0" and the minute value is increased by 1. Bit 12 (RND_SEC) of
the mode word is used for selection.
● Rounding up minutes to full hours:
The second and minute values are set to "0" and the hour value is increased by 1. Bit 13
(RND_MIN) of the mode word is used for selection.
● Rounding up hours to full days:
The second, minute and hour values are set to "0" and the day value is increased by 1. Bit
14 (RND_HOUR) of the mode word is used for selection.
Suppressing seconds, minutes and hours in the DOB and BBD
The seconds, minutes, and/or hours in the date of birth / best before date can be suppressed
(set to = "0"). Bit 8 (SUPP_SEC), bit 9 (SUPP_MIN) and bit 10 (SUPP_HOUR) of the mode
word are used for selection. Suppression is executed after any rounding processes.
9.1.3

I/Os

Input parameters
The following table shows the input parameters of the "FB_BBD" block:
Parameter
SAMPLE_T
RUNUPCYC
UTC_DT
UTC_DTB
LOT_DEV
DST_DEV
SL_HOUR
SL_DAY
GENERATE
DST_ON
MODE
238
Description
Sampling time [s]
Number of startup cycles
External UTC time part A
External UTC time part B
Difference between local time and UTC [min]
Difference between daylight saving time and lo‐
cal time [min]
Best before date in hours
(0 – 9999)
Best before date in days
(0 – 6000)
1 = Generate DOB / BBD
1 = Daylight saving time active
Mode of the block
Type
REAL
1
INT
10
DWORD
16#08123123
DWORD
16#59590000
INT
60
INT
60
DINT
0
DINT
0
BOOL
1
BOOL
30.0
WORD
0
Advanced Process Functions (APF)
Function Manual, 07/2016, A5E38719883-AA
Default

Advertisement

Table of Contents
loading

Table of Contents