Siemens Data Tracking

Hope you data tracking boys are looking in.

I have a project looming where i have a continuous loop of chain which carries some clips with approximate 50mm/2 inch between the clips, (these clips can get snagged and fall off).
Normal speed would give us 3.6 - 4 pps. this does increase to about 6 pps occasionally .

The Clips go through 3 different water tanks of various sizes.

What is known is the maximum clip number.

I'm trying to establish what tank the bottle came off. i've done some BSR, BSL but when i vary the conveyor speeds it screws up. i've even put a pitching pulse into an interrupt it just isn't consistent.

PLC is a Siemens 1215C

Any ideas are welcome.

Regards
 
How do you know what tank it is using bits in a shift, done something similar on a lorry wheel spraying system this consisted of an overhead conveyor system but had 4 accumulator stations, the conveyor was basically a chain with dogs, when a wheel was put on the dog at the loading point the operator put a code number (1-30) into the system, as the conveyor moved round there were 4 accumulator stations that held 5 hangers with the wheels on, when the last hangar was released into the spray booth all the other stations would release a hangar, it was quite complicated as the numbers stored in the shift registers only moved wnen released, but in simple terms a spoke wheel with sensor moved the wheel number down a virtual conveyor shift register syncronised by the pulse from the sensor, for example if there were effectively 1000 pulses from conveyor input loading station to the entry of the spray booth then the conveyor had 1000 location where the wheel hangars were, these shifted along the shift register until they reached the spray booth, this number was then sent to the spray robot for the spray pattern for that wheel. it's pretty simple & has been covered many times here I cannot understand why if you put a pitching pulse off the conveyor why it is not consistent unless for some reason it is missing pulses, although without seeing some diagram of the system etc. it is difficult to visualise.
Again what are you detecting the bottle or clip.
One thought is to put sensors for the clips on entry & exit of the tanks & use them to detect if a clip has fallen off. probably would need a pulse off the conveyor synced with the clip positions as well.
 
i have a continuous loop of chain which carries some clips
Otay.
(these clips can get snagged and fall off).
ruh roh.

And are we talking about clips, or bottles (see below), or both?

The Clips go through 3 different water tanks of various sizes.
what does it mean to "go through" a water tank?

What is known is the maximum clip number.
Then this is the length of chain, measured in clips, assuming all clips are in place and the clip-to-clip spacing is constant.

I'm trying to establish what tank the bottle came off.
You lost me. Where did the bottles come from?

Is there a bottle on every clip?

Is a clip and bottle and integral assemble, so the terms "clip" and "bottle" mean the same thing?

What does "what tank the bottle came off" mean? Does it mean which tank's water filled the bottle? Does it mean the bottle/clip were snagged and came (fell?) off in a tank?

i've done some BSR, BSL but when i vary the conveyor speeds it screws up.
This makes sense if the BSR/BSL are triggered by a timer.

i've even put a pitching pulse into an interrupt it just isn't consistent.
What do you mean by pitching pulse? Is it a spoke on a wheel or a tooth on a sprocket that drives the chaing?

What is not consistent? Is the interrupt signal itself? Is it the relationship between the movement distance modeled by the "pitching pulse" and the distance between clips?

TL;DR

Every computer program is a model of something in the real world. The primary design choices involve the level of fidelity: the program needs to know when the chain has moved some discrete distance; the program (probably) doesn't need to know the color of the operators socks. For the model to be useful, the physical measurements (sensors, etc.) input to the model need to meet some minimum accuracy and resolution criteria.

For example, if there is a pulse coming from a proximity sensor on sprocket teeth driving the chain, where the spacing between teeth is different from the spacing between clips, then with a continuous system, could there be some accumulating round-off error in calculating the positions of the clips in the model, and is there some way to home the system periodically to reset that round-off error?

So the fundamental questions are:
  • What are the relevant parts of the process that you are measuring and detecting?
    • What inputs from the process are available?
    • What outputs from the process are available?
  • What are the required accuracy and resolution of those measurements and detections?
  • What are the actual accuracy and resolution of those measurements and detections?
 
T
How do you know what tank it is using bits in a shift, done something similar on a lorry wheel spraying system this consisted of an overhead conveyor system but had 4 accumulator stations, the conveyor was basically a chain with dogs, when a wheel was put on the dog at the loading point the operator put a code number (1-30) into the system, as the conveyor moved round there were 4 accumulator stations that held 5 hangers with the wheels on, when the last hangar was released into the spray booth all the other stations would release a hangar, it was quite complicated as the numbers stored in the shift registers only moved wnen released, but in simple terms a spoke wheel with sensor moved the wheel number down a virtual conveyor shift register syncronised by the pulse from the sensor, for example if there were effectively 1000 pulses from conveyor input loading station to the entry of the spray booth then the conveyor had 1000 location where the wheel hangars were, these shifted along the shift register until they reached the spray booth, this number was then sent to the spray robot for the spray pattern for that wheel. it's pretty simple & has been covered many times here I cannot understand why if you put a pitching pulse off the conveyor why it is not consistent unless for some reason it is missing pulses, although without seeing some diagram of the system etc. it is difficult to visualise.
Again what are you detecting the bottle or clip.
One thought is to put sensors for the clips on entry & exit of the tanks & use them to detect if a clip has fallen off. probably would need a pulse off the conveyor synced with the clip positions as well.
Hi Parky
Think I'm on the same page.

I've added an input sensor where the first bottle enters the washer system. this puts a 1 into my array of 1000. and moves it on every scan.

My clock is pulse triggered by a hardware interrupt (sensor) then moves a 1 into my my block of data by a UMOVE_BLK .

The pitch is always a guaranteed distance but the speeds are not.
 
How can the speed versus distance not be the same if the pulses are coming off the conveyor if a the pich is say 50mm & at one speed & the pulses are 20, then at a faster speed the pulses will stay the same but it will take a shorter time, it seems to me your pulses are not being taken from the conveyor
Example:
000001000001000001000001000001000001 clips
010101010101010101010101010101010101 pulses
000001000001000001000001000001000001 clip or bottle detect.
the way it should work is that the conveyor clock pulse shifts the data in the array, if a clip is sensed then a one is put into the array & every clock pulse shifts that data down the array, the only problem is that if the clock pulses are say 5.5 clips then there will be a position where the relevant "one" bit might be either before or after the pulse when checking if the clip is there or not. this can be got round in one of two ways i.e. check either side of the array as well as the position it should be in other words a window so for example lets say you need to check the clip coming out of the bath & it's position in the array should be 400 then you check positions 399, 400 & 401.
Or you use the mounting for the clip as the clock pulse.
You have never shown any physical drawings of the system, where the sensors are placed or the pitch versus the clip position, also you mention an array of 1000 where the bottle sense (not sure what this has to do with the lost clips but perhaps the clip entering the wash must have a bottle) & you state every scan is this the plc scan or the clock pulse ?. then you talk about putting a one in a block of data every interrupt some things do not seem to make sense.
I think you need to look at the normal way (as I understand it), the conveyor with clips is say 50 mtrs long the clips are 50mm apart. that means there are 1000 clips, the pulses lets say are 25mm i.e. 2 pulses every clip, so that is an array of 2000, lets say the entry into the first bath is at 1mtr, then it detects a bottle/clip & puts a one into the array, on a pulse from the conveyor clock it moves this down the array, the ouptput of the bath is say 4 mtrs then when the bottle exits the bath a sensor detects if bottle there or not in array[120] then it's ok, however, if no bottle it's fallen off, you could look at 119 & 121 of the array as well just in case there is a slight difference.
 
Here is one done on a Mitsubishi & it actually uses words instead of bits as it detects different size parts but same principal.
It's just a matter of determining the array position for each of the positions to be detected, the last one I did just calculated the position in the array based on known calculations of pulse versus conveyor & monitored i.e. put a part on the conveyor, let it travel down the conveyor until it reached the reject position in my case, & used that array position to activate the reject for that position.
Note: in this I used a timer to create the pulses for testing but the timer was eventualy replaced by a sensor & star wheel on the conveyor.
 

Attachments

  • Parts Shift.pdf
    90.5 KB · Views: 8
... clips can get snagged and fall off
...
trying to establish what [i.e. in which?] tank the bottle came off.
I just re-read Post #1, and I think I might understand better now. You are not trying to detect when to reject a bottle, you are trying to detect if and when a clip (bottle?) has been unintentionally rejected (snagged and fallen off), perhaps so the operator can know in which tank to look for it. Is that correct?

Is it the clip (and bottle) that are snagged and fallen off, or is it just the bottle that falls off of a clip?

i've done some BSR, BSL but when i vary the conveyor speeds it screws up.
Presumably you have a clip (bottle?) detector after each tank, and if the chain moves too far without a clip (bottle?) detection after a tank, then that means a clip went missing in that tank, assuming that clip/bottle was detected before that tank. Is that correct?

i've even put a pitching pulse into an interrupt it just isn't consistent.
I assume that, by pitching pulse, you mean some edge (sprocket spoke or tooth) detection each time the chain has moved by a fixed amount. Is that correct? If yes, what is the pitch in mm between pitching pulses i.e. is it the same as the clip pitch or something different?

... I've added an input sensor where the first bottle enters the washer system. this puts a 1 into my array of 1000. and moves it on every scan.

My clock is pulse triggered by a hardware interrupt (sensor) then moves a 1 into my my block of data by a UMOVE_BLK .

The pitch is always a guaranteed distance but the speeds are not.

This seems to describe the current data model.

What does each element in the array of 1000 model (represent)? What is the data type of this array (BOOL, INT, etc.)? What is the physical pitch represented between contiguous elements in this array? Does every element model a single clip, or are there elements that represent space between clips? Where in the array is the 1 put when the input sensor detects the first bottle entering the washer system?

What does "first" bottle mean? Is there a second bottle? Third? Etc.? Or soes "first" mean the first position in the array, which models the where the bottles enter the washing system?

What does on every scan mean? is it every PLC program scan cycle, or is it a scan as defined by the clock pulse mentioned above, or something else?

Is the block of data the same as the array of 1000? If not, what is the relationship between the block of data and the array of 1000? What is the physical pitch modeled between contiguous elements of the block of data?

What is modeled by that clock pulse "moving a 1 into [the] block of data?" Does it mean the pulse triggers a shift of all values in the array by one element?
 
Brian, you have also noticed the problems in being able to understand the process & what the OP is trying to do lack of clarity on what you posted.
I wonder if there are enough sensors on the system, to detect a bottle/clip falling off & which tank will require a sensors on each tank i.e. one on the input & one on the output. or how would you know which tank it fell off into. I cannot understand why if the speed changes it goes out of sync if the pulses are generated from the conveyor.
 
@parky yes, if the "pitching pulses" come from the conveyor mechanism, then the speed should not matter,

I think our "student" needs to read your posts and to come up with a better model
 
The trouble is we do not know if it is the bottle or the clip that is being detected, or if there is a possibility of some clips may not have a bottle before they go into the tanks, this needs to be clarified as if there could be empty clips i.e. not all positions occupied then a different approach needs to be taken, personally I would have two sensors on the input & output of the tanks, detect on entry, shift the data, check on exit then you know it has fallen off. it only requires two extra sensors per tank not a huge cost but probably more reliable.
 

Similar Topics

Hi all! I am looking for a simple datalogger, that can connect to our Siemens ET200SP PLC and log 50-100 values, with a 10 second resolution, up...
9
Replies
457
Views
I have bought an IFM O3M372 and I wanted to read some data from a PLC S7-1200 I read it with Trcv and Tsend so if anyone has read something about...
2
Replies
332
Views
Dear experts, I have configured the alarm log as a segmented circular log, and it is working fine. When the number of records reaches 500, it...
2
Replies
2,400
Views
Anyone know why I would not be able to copy any of the System Data Types from one project to another? I wasn't able to copy any of the blocks. I...
3
Replies
1,516
Views
Hello experts, I need help in finding a root cause of a slow update time in ADS communication between Siemens and Beckhoff. First of all, as I...
11
Replies
1,987
Views
Top