Highwayrat
Member
Hi
I am fairly new to codesys 3 but I'm currently trying to make a little project using 4 cameras, a sensor and a conveyor belt each camera take a pictures and gives a result 1 (pass) or 0 (fail) when a operation has been performed and the sensor triggers the first camera and also I'm trying to use this as the trigger to move the registers , I am trying to use The shift register function to store the result and move down the shift register until it gets to 5th station which will decide if its good or bad depending on the 1 or 0. I have the rest of the ios working but can't get my head around the shift register. Does anyone know how to change a boolean input in to a word and move it down the shift register and also how to extract the last bit of the shift register to get the result
Also I'm using structured text
Cheers
Highwayrat
I am fairly new to codesys 3 but I'm currently trying to make a little project using 4 cameras, a sensor and a conveyor belt each camera take a pictures and gives a result 1 (pass) or 0 (fail) when a operation has been performed and the sensor triggers the first camera and also I'm trying to use this as the trigger to move the registers , I am trying to use The shift register function to store the result and move down the shift register until it gets to 5th station which will decide if its good or bad depending on the 1 or 0. I have the rest of the ios working but can't get my head around the shift register. Does anyone know how to change a boolean input in to a word and move it down the shift register and also how to extract the last bit of the shift register to get the result
Also I'm using structured text
Cheers
Highwayrat
Last edited: