the input is not responding fastly 1200 plc

adam_lhadi

Member
Join Date
Feb 2022
Location
algeria
Posts
59
Hi every one

am working on this machine ,where there is a motor that rotates an arm with high speed

when the arm reaches the sensor the motor should break with some mechanism

in the program i used the positive edge detection

the problem is that the positive edge is not always detectable

i set filter to 0.1micr also enable the pulse catch but no good results

also in the hardware circuit i controlled the mechanism coil of breaking with a slim relay

result: sometimes the arm keeps rotating and when he don't he stops but in different places

WhatsApp Image 2022-07-21 at 12.24.53 AM.jpeg
 
fix the sensor. if the pulse is too short, make the metal bigger so the pulse will be wider.


We do not know which PLC is in use; if there is a High-Speed Counter (HSC) perhaps the pulse can be detected independently of the scan cycle.
 
Hi every one

am working on this machine ,where there is a motor that rotates an arm with high speed

when the arm reaches the sensor the motor should break with some mechanism

in the program i used the positive edge detection

the problem is that the positive edge is not always detectable

i set filter to 0.1micr also enable the pulse catch but no good results

also in the hardware circuit i controlled the mechanism coil of breaking with a slim relay

result: sometimes the arm keeps rotating and when he don't he stops but in different places




Do you mean you configured a hardware interrupt for the input you sensor is connected to? If yes, does the interrupt work?
Verify the interrupt is working by setting a tag.
 
What is the rotational speed of the equipment? Is the sensor response time fast enough? Is the PLC scan too long and thereby not "seeing' every input? Would a different style or type of sensor work better? A thru beam/ sender/receiver type? Ultrasonic? As suggested above, if the rotational speed is so fast that there isn't enough time to scan and process a discrtete input, a HSC module may be in order.
 
Also every time you changel the filter time you need to download the hardware configuration to the PLC and note the warning below, taken from the manual:


"Risks with changes to filter time for digital input channel:

If you change the filter time for a digital input channel from a previous setting, a new "0" level input value may need to stay at "0" for up to 20.0 ms before the filter becomes fully responsive to new inputs. During this time, short "0" pulse events of duration less than 20.0 ms may not be detected or counted.

This changing of filter times can result in unexpected machine or process operation, which may cause death or serious injury to personnel, and/or damage to equipment. To ensure that a new filter time goes immediately into effect, a power cycle of the CPU must be applied."


Pulse stretch is not going to help you much unless your rpm is so slow that the scan cycle can react without much motor movement, which is unlikely to be the case.
Another issue that you need to watch out for is noise resulting from setting the filter time so low as you did, which I think is too low for your application. This filter noise issue is not the cause of your current problem but it is something to watch out for.

If you configure a hardware interrupt for the input and your filter setting (noise) is causing mutlipe triggers you will get a fault for multiple hardware interrupt, can't remember the exact description of the fault.
Edit: I forgot one more detail and that in your hardware interrupt you need to address your output with a :p suffix. And then immediately after that you need to update the code to make sure the output has been reset, that is usually, but not n cessarily done by setting a global tag in the interrupt that updates the relevant code in whichever block.
 
Last edited:
also in the hardware circuit i controlled the mechanism coil of breaking with a slim relay
Do you mean a brake solenoid of some sort? And if yes, do you mean it is controlled independent of the motor?
If that is the case, you are resetting two outputs, one to turn the motor off and one to turn the relay off thereby engaging the brake?


Or, do you actually mean "breaking" as in there's something that breaks/cuts a product. If this is the case, how does it relate to the problem of stopping?
 
Last edited:
stupid question, but wouldn't this be possible to carry out with a simple electric latch circuit and a position switch override to start? PLC sets the motor to start, switch turns it off.

Or is the stop supposed to happen after a few turns?
 

Similar Topics

Hello All, After trying to transfer some field changes on the safety scanner microscan3, and verifying, the device is stuck at .... waiting for...
Replies
0
Views
71
I have a 120V relay, 120V DI card and a analog input. I was wanting to know if i could put a 24V DI and well as a 120V DI card on the same plc...
Replies
1
Views
90
Hello, I'm looking for a dirt cheap digital display + input, that would be wired to an analog input and analog output. This would be for my home...
Replies
10
Views
269
Hello, I am trying to read a barcode scanner input using a cognex dataman 280 barcode reader, store it another string, the compare with another...
Replies
1
Views
94
All, I have a PowerFlex 525 driving an agitator motor. The goal is to have the agitator start automatically after a power loss or a comm loss. I...
Replies
2
Views
102
Back
Top Bottom