Alarms with external timestamp in Freelance
Hello, in Freelance system description 3BDD010023 it is noted: "Whereas the internal controller time is generally used for the timestamp for messages, you also have the option of using a special function block to assign external timestamps to alarms. In this way, for example, you can generate an alarm from a device connected to the Modbus in the correct chronological order with the device’s timestamp."
Pleas advice what function block should be used for generating alarms with external timestamp?
Pleas advice what function block should be used for generating alarms with external timestamp?
Voted best answer
Dear:
Try with the FC M_GEN (i don't know if is the exactly name). That FC supports external time stamp
BR
Try with the FC M_GEN (i don't know if is the exactly name). That FC supports external time stamp
BR
Answers
Yes, M_GEN is the function block (in the Monitoring FB group) you will want to use. It has an input TSP of type DT by which you can feed in the date and time to be used when sending the alarm. The parameter "Use external Time Stamp" must be checked in order to use values connected to TSP.
The tricky part will be to convert the date and time coming from outside the system into a variable from type DT. How to do this will depend on the format the time from outside has.
The tricky part will be to convert the date and time coming from outside the system into a variable from type DT. How to do this will depend on the format the time from outside has.
Add new comment