rander13
Member
All,
I am trying to write the logic to record the diameter of a part as it passes through a line. I have a laser with an analog input to my plc. At the peak measurement that will be my diameter. How can I write the logic to record this value as the part passes through the laser? I was thinking some type of comparison where each new value is compared to the next reading until it starts to go back down. When it is no longer greater than the previous value it moves the previous greatest value as the recorded value. I will be doing this in Siemens S7. I have a lot of experience in Control Logix, but very little Siemens experience. Any tips are greatly appreciated.
KAA
I am trying to write the logic to record the diameter of a part as it passes through a line. I have a laser with an analog input to my plc. At the peak measurement that will be my diameter. How can I write the logic to record this value as the part passes through the laser? I was thinking some type of comparison where each new value is compared to the next reading until it starts to go back down. When it is no longer greater than the previous value it moves the previous greatest value as the recorded value. I will be doing this in Siemens S7. I have a lot of experience in Control Logix, but very little Siemens experience. Any tips are greatly appreciated.
KAA