
adccommunitymod (AutomationDirect) asked a question.
Dl05 up down counter
Created Date: August 04,2011
Created By: bilt2spd
**** 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.****
Is there a way to limit the UP count on an UP DOWN COUNTER? I want to be able to count from 0 to 3 and not go past if the UP input is fed again. Any help is appreciated.
Created Date: August 05,2011
Created by: milldrone
bilt2spd,
Give this a try. Copy the text below, save in notepad, start a new instance of Direct Soft 5. Click on file, import, program, find the notepad file you just saved, click on open. Direct Soft 5 will do the rest.
PLC 05
// Rung 1
// Address 0
#BEGIN COMMENT
"http://forum.automationdirect.com/showthread.php?t=8497 "
" "
"Is there a way to limit the UP count on an UP DOWN COUNTER? I want to be able to "
"count from 0 to 3 and not go past if the UP input is fed again. Any help is appreciated. "
#END
STR X0
ANDN CTA0 K3
STR X1
STR X3
UDC CT0 K0
// Rung 2
// Address 8
END
// Rung 3
// Address 9
NOP
Created Date: September 02,2011
Created by: tommycai
have you tried counter example on 5-47 of the dl205 usermanual and have that bit after three reset the up down counter?
Created Date: August 04,2011
Created by: bilt2spd
Is there a way to limit the UP count on an UP DOWN COUNTER? I want to be able to count from 0 to 3 and not go past if the UP input is fed again. Any help is appreciated.