In CCW you might end up using a UDFB (User Defined Funftion Block) called dint_to_time. I’ve seen it in sample code somewhere. So far I have only found time_to_dint.
Your code might look like HMI_Time (DINT type) to the seconds input of the UDFB and time out of the UDFB would be Preset_Time (TIME type). Use the Preset_Time tag for the timer preset.
Edit - It might be any_to_time
Another edit - Any_to_time is a built in function, not a UDFB. It’s one of the conversion instructions.
Your code might look like HMI_Time (DINT type) to the seconds input of the UDFB and time out of the UDFB would be Preset_Time (TIME type). Use the Preset_Time tag for the timer preset.
Edit - It might be any_to_time
Another edit - Any_to_time is a built in function, not a UDFB. It’s one of the conversion instructions.
Last edited: