L MW100 [I]// This is your selected time. 0-999 in BCD/hex format. On HMI-Panel make the input field Hex, not decimal.[/I]
L W#16#x000 [I]// x being the time base: 0 for 10ms, 1 for 100ms, 2 for 1s, 3 for 10s[/I]
OW [I]// This adds your selected time with your timebase, thus creating the same structure as a S5Time[/I]
SD T40 [I]// Preset on delay timer with your selected time[/I]