DL05 maximum numeric value in K constants

katratzi

Member
Join Date
Mar 2005
Posts
210
I'm working on a small program using the Automation Direct DL05 PLC. For the timer that I am using (TMRA) I have a preset value (K) of 324000. I was using a less than statement that compares the accumulated value to the preset, and, if true, keep an output energized. This worked well when the timer preset was set at 200 for testing purposes. But when the real-world preset value of 324000 was entered into the less than compare instruction, the program flagged it as an error, and indicated that the max value allowed in a K value was 9999. Without using cascading timers, or timers and counters, is there another way or another instruction that can be used to simply compare the two values? I haven't used timers in the Directlogic software much before, and never with this long of a preset.
 
katratzi,

To compare numbers larger than 9999 you will have to use the CMPD instruction.

You will need to LDD (load double) one of the values first then do the CMPD. Then you will need to use the SP60, SP61, or SP62 contacts before you use any other instruction that uses them.
 
thanks, I was hoping there was a way just to compare. But, what did you mean by "you will need to use the SP60, SP61, or SP62 contacts before you use any other instruction that uses them" ?

I understand about using the contacts, but not the "before using any other instruction that uses them" part.
 

Similar Topics

need to find C bits in the logic. They are hidden someplace! Thank you! Bob
Replies
5
Views
193
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
108
Does anyone have example code of how to read/write a discrete push button from a C-More Micro to a DL05. I just bought these two items and I am...
Replies
2
Views
981
Is it correct to say that the dl05 program when uploaded does not store the current value in a v memory location? I have a customer that has one...
Replies
8
Views
3,093
Hi, I am trying to learn how to use my encoder with my PLC. I recently got a high-speed counter module (H0-CTRIO2) for my DirectLogic05 PLC. I...
Replies
5
Views
2,207
Back
Top Bottom