Sanding pads controlling

tesalmin

Member
Join Date
Oct 2003
Posts
36
Hello everyone!

I'm upgrading an old sanding machines control system.
Old system is based on 286 PC and I'm changing that to Siemens PLC and Touchscreen.

While making the program I came into something where I couldn't think of any smart idea. I was hoping someone here could help me with this.

Here ís some explanation about the system:

The machine is a wide belt sandingmachine for sanding wooden boards. The board goes through the machine in a conveyor and the sanding pads are in a distance of about 1m from the micros.
Sanding pad is divided into 32 pads. There are also 32 microswitches before the machine which tells the width of the board to be sanded with the pads.
Normally sanding is only done 1:1 to the microswitches. There is also possibility to add or decrease the pads on the edges.

Normal settings 1:1 to microswitches
0000_0011_1111_1111_1111_1111_0000_0000 (MICROSWITCHES)
0000_0011_1111_1111_1111_1111_0000_0000 (PADS USED FOR SANDING)

1 pad added to edges
0000_0011_1111_1111_1111_1111_0000_0000 (MICROSWITCHES)
0000_0111_1111_1111_1111_1111_1000_0000 (PADS USED FOR SANDING)

1 pad decreased from edges
0000_0011_1111_1111_1111_1111_0000_0000 (MICROSWITCHES)
0000_0001_1111_1111_1111_1110_0000_0000 (PADS USED FOR SANDING)

My basic idea is to read the microswitch inputs with every pulsencoder pulse and shift them forward as a double word in a shiftregister.

Then I read the shiftregister indirectly in the point where the board is in place for dropping down the sandingpads and also in the point when board ends and the pads must be lifted (These points must be adjustable)

For deciding which pads to use I have my problem.

Adding the pads to edges is easy by shifting the bits on the DW to left and right and adding them together.
0000_0011_1111_1111_1111_1111_0000_0000 (MICROSWITCHES)
0000_0111_1111_1111_1111_1110_0000_0000 shifted 1 left
0000_0001_1111_1111_1111_1111_1000_0000 shifted 1 right
0000_0111_1111_1111_1111_1111_1000_0000 ADDED TOGETHER

But for decreasing the pads in edges I haven't found a solution.
If the board was always at the middle I could do the shifting with half of the DW at a time and then add them together.
0000_0011_1111_1111_1111_1111_0000_0000 (MICROSWITCHES)
0000_0001_1111_1111 (SHR 1) 1111_1100_0000_0000 (SHL 1)
0000_0001_1111_1111_1111_111O_0000_0000 RESULT

But because the board can be at any place in the conveyor (Left or right or anywhere between) I can't think of any wise idea.

I would be more than happy if someone could help me with this!
I hope you will understand what I have written about the system and if there is any more info needed please ask.

Best Regards

TS
 
Instead of thinking of the math ADD think of the logical AND and OR. Your addition of pads would be by ORing the left and right shifted bits. The subtraction of pads would be by ANDing the left and right shifted bits. Example using some of your stuff


0000_0011_1111_1111_1111_1111_0000_0000 (MICROSWITCHES)
0000_0111_1111_1111_1111_1110_0000_0000 shifted 1 left
0000_0001_1111_1111_1111_1111_1000_0000 shifted 1 right

0000_0111_1111_1111_1111_1111_1000_0000 OR
0000_0001_1111_1111_1111_1110_0000_0000 AND
 
Thanx bernie

My mind must have been blurred from looking at the screen all day.

The answer was something I should have figured out myself, but it seems that a good kick in the head or some sleeping always helps clear my mind.

TS
 

Similar Topics

Has anyone had success in replacing the membrane keypad of an HMI? Specifically, I would like to repair several Mitsubishi E200, E1022, and...
Replies
4
Views
2,457
Good day, I am hoping some of the experienced automation engineers have ran across this. Basically HMI project works fine, but when certain...
Replies
2
Views
1,552
Hello, I am looking for a Keypad that can be attached to a CAN bus so I do not had to wire buttons to an input module. It is for a mobile...
Replies
0
Views
1,405
I've got an RSView32 project that I'm working on, I've built a recipe screen using vba so we can create/modifiy/save all of our recipes in a .csv...
Replies
2
Views
4,531
Afternoon all, I'm working on setting up a large excel recipe table for porting updates through the Linx Gateway RTD/DDE function into my recipe...
Replies
2
Views
110
Back
Top Bottom