1, using built-in functions: Siemens PLC provides many built-in functions, which can convert real data into time data. You can use the built-in function "TFROMREAL" to convert real data into time data.
2. Using programming language: Using the programming language of Siemens PLC, StructuredControlLanguage(SCL) or LadderDiagram(LAD), you can use the corresponding grammar to convert real data into time data.