I have the following logic in A/B PLC5
CPT F8:5 (((F8:3 * 86400.0) + (N7:13 * 3600.0)) + (N7:14 * 60.0)) + N7:15
F8:3 = 13936
N7:13 = 16
N7:14 = 20
N7:15 = 8
Results in F8:5 = 1204129000 Should be 1204129208.
Floating point is killing me. Any ideas how to do unsigned integer math in PLC5. Trying to do unix epoch in plc seconds since 1/1/1970 UTC for timestamping and date math later.
CPT F8:5 (((F8:3 * 86400.0) + (N7:13 * 3600.0)) + (N7:14 * 60.0)) + N7:15
F8:3 = 13936
N7:13 = 16
N7:14 = 20
N7:15 = 8
Results in F8:5 = 1204129000 Should be 1204129208.
Floating point is killing me. Any ideas how to do unsigned integer math in PLC5. Trying to do unix epoch in plc seconds since 1/1/1970 UTC for timestamping and date math later.