ceilingwalker
Lifetime Supporting Member
Good day all. I have a Quick Panel Jr and a SLC500 with 5/03 processor. I'm creating a timer instruction that the preset will be set by the operator at the HMI (Quick Panel Jr.). I have the base set to 1-second. I would like to be able to have operator's input amounts to the nearest 1/2 hour. For example: the operator will put 1 for one hour, 2 for two hours,1.5forone and one-half hours, .5 for one half-hour, etc... . How to I set the time base so that when the operator selects 1, it will tell the PLC 60 seconds? I tried creating a multiply instruction so that, whatver the operator entered, it would multiply it by 3660 (seconds in one hour), and then move that value to the timers' preset. I keep getting overflow errors. Does anyone have a suggestion as to how I can accomplish this? Thanks much.