
adccommunitymod (AutomationDirect) asked a question.
Created Date: June 29,2012
Created By: keklon
**** 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.****
Hello, I need some advice on setting up a cycle timer on a DL06. Currently, I am using 2 TMRF Timers. The first is dwell timer, with a time value of 10ms. When the dwell timer reaches its preset it starts the TMRF-Delay timer, with a time value of 25ms. When The delay timer reaches its value it repeats the cycle with the dwell timer. This is working somewhat but it does not seam to repeat accuratly . Is there another way to accomplish this? Perhaps a drum sequence, which I know little about. Thanks Mike
Created Date: June 29,2012
Created by: Do-more PE
The timer memory locations wouldn't happen to be consecutive would they?
TMRF takes two memory locations for both the timer number and the preset. IE TMRF T0 takes T0 and T1. If the preset was V2000, it will take up V2000 and V2001.
Created Date: June 29,2012
Created by: keklon
Thank you. I am using T0 for my dwell and T1 for my delay with V4000 and V4001 for my presets. By the way, my time values were 100ms and 150ms. Not 10ms and 15ms.
Created Date: June 29,2012
Created by: Bob S BN
Fix the double word problem as ADC App Assist mentioned.
As for as not working right, how were you judging this. If you were trying to look at it with DirectSoft, the comm delays will make timers this short appear not to be acting correctly.
Created Date: June 29,2012
Created by: Do-more PE
T1 will interfere with T0 making it work incorrectly. Your timer numbers need to be T0 and T2. Make sure that nothing is using T3 as well.
Created Date: June 29,2012
Created by: bcarlton
This short of time - 10ms and 15 ms) are at the limits of accuracy of the PLC. Check the scan time. If this is being handled completely within standard ladder logic then you response will be as short as 'preset ' and as long as 'preset+scan time '. Look at interrupt capabilities of the high speed counter section.
Created Date: June 29,2012
Created by: keklon
As I mentioned, my time values were a typo. The values are 100ms and 150 ms. Much slower than previously stated. I will correct the addressing issue with the TMRF elements. I am suprised Direct Soft5 did not alert me of the error. Why is that? DS 5 makes me aware of other errors. I would think this error occurs often.
Created Date: June 30,2012
Created by: bcarlton
Believe it or not - the programming package can't read your mind. It's not an error but a misapplication of the instructions. As my advisory on those who are transitioning from Allen Bradley to Automation Direct mentions - "YOU are responsible for determining the correct memory types and number types. "
Created Date: June 30,2012
Created by: keklon
Ok, I have used T0 for my dwell TMRF timer an T2 for my Delay Timer. I reserved T1 and T3. Do I leave the peset values in T1 and T3 blank or should I enter V4001 in T1 if I am using V4000 for T0? With T1 and T3 left without presets the cycle timer is still erratic. When I say Erratic I mean visually erratic. Any thoughts?
Created Date: June 30,2012
Created by: bcarlton
1. Do not use T1 or T3 anywhere in your program.
2. If you are using V4000 as the preset for T0 then do not reference V4001 anywhere. If you want to use the next available memory location as a preset for T2 then it would be V4002. In that case do not reference V4003 anywhere.
3. If you are supplying the preset value using ladder code then be sure to use the OUTD command to make sure that the value is properly stored in the V4000/1 registers.
4. If you are manually entering values using a Dataview make sure the element is set to BCD/Hex and Double.
5. If you are entering values using an HMI then make sure the control tag is set to BCD and Double/32 bit.
6. If you are viewing the current values then observe the same precautions as in steps 4 and 5.
Created Date: June 30,2012
Created by: milldrone
Hello,
I need some advice on setting up a cycle timer on a DL06. Currently, I am using 2 TMRF Timers. The first is dwell timer, with a time value of 10ms. When the dwell timer reaches its preset it starts the TMRF-Delay timer, with a time value of 25ms. When The delay timer reaches its value it repeats the cycle with the dwell timer. This is working somewhat but it does not seam to repeat accuratly . Is there another way to accomplish this? Perhaps a drum sequence, which I know little about. Thanks Mike
I do not believe this is a issue with timer addressing because you state you are using the TMRF and not using the TMRAF (accumulating timer).
Ok, I have used T0 for my dwell TMRF timer an T2 for my Delay Timer. I reserved T1 and T3. Do I leave the peset values in T1 and T3 blank or should I enter V4001 in T1 if I am using V4000 for T0? With T1 and T3 left without presets the cycle timer is still erratic. When I say Erratic I mean visually erratic. Any thoughts?
Are the results of the timers outputted through a triac (120V AC) output? If they are, this is where I think the problem lies. The way a Triac works is that it can turn on at any point in the AC sine wave cycle but it will only turn off during zero crossover. This will make the signal variable in length.