I'm learning about functions and data block. I "have" 2 pumps. When process is started pump1 works for 10 sec and then pump2 works for 5 sec. I made that in plain ladder without blocks, but since pumps have ssame interface I thought it is better to write it as function blocks and later just create instance data blocks. I use stat variable to store s5time (in order timer to work). I want to make 2 modes. First pump1 works 10 sec, pump2 5 sec and
second mode: pump1 works 20 sec, pump2 works 10 sec. I got advices to use MOVE block to store time in memory area MW10 which I declared as s5time data type. So memory address MW10 will store work time. Now I have problem when creating. It seems that step7 expects number example (s5t#10s) and not address MW10 on which value is stored.
Is there any way I can do this?
second mode: pump1 works 20 sec, pump2 works 10 sec. I got advices to use MOVE block to store time in memory area MW10 which I declared as s5time data type. So memory address MW10 will store work time. Now I have problem when creating. It seems that step7 expects number example (s5t#10s) and not address MW10 on which value is stored.
Is there any way I can do this?