
adccommunitymod (AutomationDirect) asked a question.
Created Date: June 18,2007
Created By: mcoughlin
**** This post has been imported from our legacy forum. Information in this post may be outdated and links contained in the post may no longer work.****
I just started a project where I am using a DL-05 to connect a photoelectric switch to a wireless RF transmitter. The idea is to use the sensor to detect foam parts as they exit a conveyer oven and activate a beeper and LED across the room. The problem I am having is that the parts come out very slowly so the sensor is switched "on " for up to one minute as the parts pass through the beam. I only want the LED and beeper to beep one time, not for a minute straight. Is there a way to activate my outputs for only a second or two and then turn them off until the next part? I thought of just using a timer, but not all the parts are the same size, so the time would be different for each one. I am fairly new to ladder logic and PLCs, so any help is much appreciated. Thanks, Matt
Created Date: June 18,2007
Created by: Terryc
Try this, Matt:
X0 T1 K10
---I I-----------Timer--
X0 T1 Y0
---I I---I/I-----(OUT)--
The sensor X0 comes on, Timer T1 starts timing, and Y0 turns on. When Timer T1 reaches 10 (0.1 sec increments), your output Y0 will go off. When X0 goes off, the timer will be reset and ready to go again.
Created Date: June 18,2007
Created by: Terryc
Sorry, that didn't display very well. The normally open contact is X0, your sensor input. The normally closed contact is T1, your 'timer done ' contact. The OUT is Y0, your output to turn on your beeper and light. For the timer, I just picked T1 with a constant of K10, which is 1 second.
Created Date: June 19,2007
Created by: milldrone
Mcoughlin, Terryc
Have either of you checked out the monic import process? I find it the best way to show code on this forum. As Franji1 says in this post http://forum.hosteng.com/index.php/topic,47.0.html "mnemonic text IS a great way to share programs via the forum or whererever ".
I have taken the liberty of converting Terryc's code into monic and putting your posts into the rung comments. Be sure to back up files before attempting this.
copy below this line
------
PLC 06
// Rung 1
// Address 0
#BEGIN COMMENT
" I just started a project where I am using a DL-05 to connect a photoelectric "
"switch to a wireless RF transmitter. The idea is to use the sensor to detect foam parts as "
"they exit a conveyer oven and activate a beeper and LED across the room. "
" "
"The problem I am having is that the parts come out very slowly so the sensor is switched "
" " "on " " for up to one minute as the parts pass through the beam. I only want the LED and "
"beeper to beep one time, not for a minute straight. "
" "
"Is there a way to activate my outputs for only a second or two and then turn them off until "
"the next part? I thought of just using a timer, but not all the parts are the same size, so the "
"time would be different for each one. "
" "
"I am fairly new to ladder logic and PLCs, so any help is much appreciated. "
" "
"Thanks, Matt "
#END
STR X0
TMR T0 K10
// Rung 2
// Address 4
#BEGIN COMMENT
"The sensor X0 comes on, Timer T1 starts timing, and Y0 turns on. When Timer T1 "
"reaches 10 (0.1 sec increments), your output Y0 will go off. When X0 goes off, the timer "
"will be reset and ready to go again. "
#END
Created Date: June 19,2007
Created by: Terryc
Yes, I'm familiar with it and like it. I just didn't use it because Matt indicated being a new user and I thought this might get him going faster if he wasn't aware of the mnemonic method.
Very good point, though. Probably should have done it that way anyway, especially since my attempt wasn't very good, visually.
Created Date: June 19,2007
Created by: franji1
Use the code grouping:
BRACKET code ENDBRACKET
stick ladder diagram using dashes here
BRACKET SLASH code ENDBRACKET
Here's an example:
X0 Y0
-]
Created Date: June 19,2007
Created by: mcoughlin
Thanks for the help! I'll try it and let you know how it goes.
Created Date: June 18,2007
Created by: mcoughlin
I just started a project where I am using a DL-05 to connect a photoelectric switch to a wireless RF transmitter. The idea is to use the sensor to detect foam parts as they exit a conveyer oven and activate a beeper and LED across the room.
The problem I am having is that the parts come out very slowly so the sensor is switched "on " for up to one minute as the parts pass through the beam. I only want the LED and beeper to beep one time, not for a minute straight.
Is there a way to activate my outputs for only a second or two and then turn them off until the next part? I thought of just using a timer, but not all the parts are the same size, so the time would be different for each one.
I am fairly new to ladder logic and PLCs, so any help is much appreciated.
Thanks, Matt