koyo (automation direct) help

mrdmrd

Member
Join Date
Dec 2002
Location
Nebraska
Posts
77
Here is the problem that I have
The program relies on x4 toggling back and forth from on/off to create the timing and thus the location of the machine.
Basically each on is one index or vial movement of the machine and so is the off.

What is happening is the source for the x4 input sucks. Sometimes it
makes a double on because of electric noise. The Koyo goes well that's weird and throws **** away.

Could someone help me write something that would make it so the on impulse would have some sort of millisecond timer that would be able to discount any further impulses until it should see the off impulse.

The catch is you can not hold the on impulse on because it will not toggle the bit correctly.

Any help that any one could give me will be appreceated
 
Try this:

| X4 T1 C1
|---] [---+---]/[---+---(PD)
| | |
| C0 | | C0
|---] [---+ +---(OUT)
| |
| | +-----+
| +---| TMR |
| | T1 |
| | K5 |
| +-----+



Use C1 in place of X4 as your "impulse"
When X4 turns ON, C1 turns ON for one scan
C0 simply latches until the timer expires, so input X4 is "ignored" for the time dictated by T1

beerchug

-Eric
 
Eric's logic is sometimes called a "pulse stretcher". It will work fine if you can be sure that every time the contact bounces, it is associated with a bona fide transition from Off to On.

However, it doesn't address the potential for contact bounce on the On-to-Off transition. Nor does it filter out a miscellaneous spike such as might be generated if the switch was tripped for just a few milliseconds.

It will work correctly if the switch signal looks like this:

________
/\ /\ / \
___/ \/ \/ \_____


*
But not if it looks like this:

___________
/\ / \
___/ \_______________/ \_______
| |
| This time is |
|longer than T1 |



*


Here's a more generic solution:

X4 _____
--| |------| |
| TMR |
| T1 |
|_____|

X4 _____
--|/|------| |
| TMR |
| T2 |
|_____|

Next On
T1 Is On Pulse
---| |----| |------(PD)-


Next Off
T2 Is On Pulse
---| |----|/|------(PD)-


Off Next
Pulse Is On
---| |--------------(L)-


On Next
Pulse Is On
---| |--------------(U)-


*
 

Similar Topics

Anyone used one of these yet? Software looks good and the hardware is cheap...
Replies
4
Views
3,872
I AM MESSING AROUND WITH A KOYO/AUTOMATION DIRECT I/O CHASSIS(A 205) IT HAS A 16 PT. INPUT MODULE AND A 12 PT. OUTPUT MODULE. I AM COMMUNICATING...
Replies
6
Views
5,596
I need this screen creator for GC-53 software to get an program from GC-53 MHI KOYO , Please help me.
Replies
0
Views
6
I have a c-more micro with a three digit input box on one of the screens. This is being written to a memory location in a DL05. I don't have the...
Replies
3
Views
83
Hey, I am entirely new to PLC's and am trying to help my friend with a project. He wants to take the signal from a PNP photoelectric sensor as...
Replies
12
Views
2,184
Back
Top Bottom