For more information: https://openplc.discussion.community/post/oscat-library-maths-section-10256390?pid=1309404891
Update available! Please read posts below!
(Additional information: This Sections contains FB / FC which are referring to a FB called T_PLC_MS or T_PLC_US. Normally these FB’s reads out the PLC internal clock via time(). This functionality is not yet implemented in OpenPLC.
Thanks to Mr. Alves, who instantly creates 2 FB replacing the original T_PLC’s temporally!
What you must know if you want to use FB’s related to T_PLC_XX:
You have to declare 2 global variables: PLC_CYCLE_COUNT on %ML1025 and TASK_TIME_MS; both ULINT
If you change the task cycle time, change TASK_TIME_MS to the same value as well.
Until time() is implemented you can’t run multiple tasks at different cycle time (this is my understanding; please correct me if I’m wrong)
If time() is available only the T_PLC_XX must be changed and you can continue using your projects.)