We've got very fast machine whose position controlled by interrupt OB35 set at 2ms. For position reading we use Temposonic connected to TM Posinput1 card connected to IM 155-6 PN/2 HF and update time is left automatic and is also automatically selected to be at 2ms by TIA.We have two cylinders moving this machine so everything is x2.
What I see is that it seems every 3 minutes or so I start to read the exactly same number from SSI (resolution is 0.05mm and it simply can't be the same number as machine is constantly moving) for two OB35 cycles, mostly for one cylinder while rarely it also happens for other cylinder. When this happens it goes for some time (~30s or so) and seems like 10-20% of time I'm getting two consecutive same readings. Then it stops until 3 minutes are passed and it repeats.
This of course messes with regulators and machine is performing worse as regulators are trying to fix this.
I started to think this problem comes from inputs not being refreshed fast enough to PLC. Inputs are read with postfix which should mean SW is trying to read from periphery.
I/O addresses organization block and process image are also set to automatic which now I'm not sure is correct.
I see I could set update time for IM 155-6 to 1ms manually but I'm not sure if this will help, maybe it would overload the Profinet, all devices of this PLC are on same Profinet? Would changing organization block for these inputs to OB35, leaving process image at auto and not using improve situation (if I update faster to CPU memory I don't need to access periphery, right?). Another thing is how PLC measures 2ms for OBs and Profinet, are these synced or not, and what I see might be coming from this (every 3 minutes they get out of phase and I start seeing this problem)?
Or I should look for something else?
What I see is that it seems every 3 minutes or so I start to read the exactly same number from SSI (resolution is 0.05mm and it simply can't be the same number as machine is constantly moving) for two OB35 cycles, mostly for one cylinder while rarely it also happens for other cylinder. When this happens it goes for some time (~30s or so) and seems like 10-20% of time I'm getting two consecutive same readings. Then it stops until 3 minutes are passed and it repeats.
This of course messes with regulators and machine is performing worse as regulators are trying to fix this.
I started to think this problem comes from inputs not being refreshed fast enough to PLC. Inputs are read with postfix which should mean SW is trying to read from periphery.
I/O addresses organization block and process image are also set to automatic which now I'm not sure is correct.
I see I could set update time for IM 155-6 to 1ms manually but I'm not sure if this will help, maybe it would overload the Profinet, all devices of this PLC are on same Profinet? Would changing organization block for these inputs to OB35, leaving process image at auto and not using improve situation (if I update faster to CPU memory I don't need to access periphery, right?). Another thing is how PLC measures 2ms for OBs and Profinet, are these synced or not, and what I see might be coming from this (every 3 minutes they get out of phase and I start seeing this problem)?
Or I should look for something else?