ToddM
Member
Hi folks
I'm expierementing with an analog trim program that I would like to try on some of our nappers {Thats the machine that puts the fuzzy side on your sweat shirts} We run 2 of these machines in tandem to get a better finish on the cloth. The only part I'm concerned with right now is the cloth drive part.As the cloth exits the master machine it loops down and runs over to the machine either across or right beside it {depending on where it is in our plant right now.}What I'm wanting to do is control the loop between the machines. I wrote a chunk of code that worked OK on RS emulate, but didn't work too cool when I tried it on my test PLC at work.I get a math over run error. I know why but I'm not quite sure If I'm heading in the right direction. Here's what I've written so far
I:1.0 is the reference from the master or "A" machine. I:1.1 is the reference from a Senix ultra sonic sensor located between the 2 machines.I put B3:0/0 in just as a block to cut off the actual trim part. The 8030 in the source b of the LES and GRT statements was the mid point between the distance I had my senix reading. I don't want anyone to write the code for me just tell me if I'm heading in the right direction or at least point me there. I wouldn't mind seeing how someone else has done this , if they have some sample code already written.{In other words I want to understand it rather than just stick a chunk of someone elses code in there} I hope I have included enough information.
Thanks in advance... Todd
I'm expierementing with an analog trim program that I would like to try on some of our nappers {Thats the machine that puts the fuzzy side on your sweat shirts} We run 2 of these machines in tandem to get a better finish on the cloth. The only part I'm concerned with right now is the cloth drive part.As the cloth exits the master machine it loops down and runs over to the machine either across or right beside it {depending on where it is in our plant right now.}What I'm wanting to do is control the loop between the machines. I wrote a chunk of code that worked OK on RS emulate, but didn't work too cool when I tried it on my test PLC at work.I get a math over run error. I know why but I'm not quite sure If I'm heading in the right direction. Here's what I've written so far
I:1.0 is the reference from the master or "A" machine. I:1.1 is the reference from a Senix ultra sonic sensor located between the 2 machines.I put B3:0/0 in just as a block to cut off the actual trim part. The 8030 in the source b of the LES and GRT statements was the mid point between the distance I had my senix reading. I don't want anyone to write the code for me just tell me if I'm heading in the right direction or at least point me there. I wouldn't mind seeing how someone else has done this , if they have some sample code already written.{In other words I want to understand it rather than just stick a chunk of someone elses code in there} I hope I have included enough information.
Thanks in advance... Todd