ModBUS Profile uint16 to time - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Gateway (https://forum.logicmachine.net/forumdisplay.php?fid=10) +--- Thread: ModBUS Profile uint16 to time (/showthread.php?tid=5466) |
ModBUS Profile uint16 to time - emme - 14.06.2024 Ciao, I have a ISMA PLC with some registers for schedules those registers works as uint16 data and contain the raw minuts form 00:00 to 25:59 (from 0 to 1439) is there a way by whitch I can create a modbus profile and automatically convert uint16 to time dataobject (DTP10) without having a specific script to run for it? The only way I can inagine is to duplicate the objects and have the first obj ad uint16 and the second with dtp10 and run script on update to convert... but I don't find this really reliable.. thanks Marco RE: ModBUS Profile uint16 to time - admin - 14.06.2024 Event script is the only solution. Check the event.sender field in scripts to prevent an infinite loop between two scripts. For Modbus the sender is mb |