图。 02
S7-1200/S7-1500 的块
The function “SetTimeOn” [FC2] contains the two instructions “RD_SYS_T” and “WR_SYS_T” for reading out and setting the clock in the CPU. The function is called in the OB “SetTime” and parameterized with the variables of the data block “DB”。功能块 “SetTimeOn” [FC2] 使用两个指令 “RD_SYS_T” 和 “WR_SYS_T” 对 CPU 的时钟进行读写。在 OB 块 “SetTime” 调用该功能块,并将数据块 “DB” 的变量填写到该功能块的管脚。