Hi everyone. It’s been a while since I posted anything but I am hoping one or more of you can help me with this small problem. I am working with an old TI plc. We only have two in our plant and I probably know more than anyone here about the programming software. (Witch isn’t much I might add).
I would like to take a range of the accumulated value of a timer and energize an output when the timer is within that range. For example, if the timer preset is 25 seconds, I would want to energize the output while the timers accumulated value is within the range of 2.2 seconds and 2.8 seconds for a total .6 seconds. The instruction I believe I need to use is the CMP instruction. I have attached, (I hope), a jpg image of the instruction as it appears when I create it in the tisoft software. The manual I have is of little help, it states and I quote,
“compares a number in memory location A to a number in memory location B. The comparison is made for equal to, less than, or greater than. Values in the A and B memory locations are not affected.”
Ok, here is what I think I have figured out. When the A and B areas of the instruction are highlighted I have multiple memor locations to choose to compare. Wx, wy, v, tcp, tcc, stw, dsp, dcp, dsc, and dcc. I believe what I want to use is the tcc, witch I believe is timer/counter/accumulated. That would be my value for A I would plug in. For the B value I would Choose V witch would be my static value I wish to compare my timer accumulated value too. Here is my dilemma. When the Lt: and Gt: areas of the instruction are highlighted, I only have two instruction types to choose from, Y and C. Y is an output coil or so I believe, C is a internal coil I believe, like the Allen Bradley b3: bit in a slc controller.
How do I actually define the terms greater than or less than in the instruction and how can I use Y and or C to do this? I am stumped! Does anyone have any experience with this software? Am I attempting to use the correct instruction? Any help would be greatly appreciated.
I would like to take a range of the accumulated value of a timer and energize an output when the timer is within that range. For example, if the timer preset is 25 seconds, I would want to energize the output while the timers accumulated value is within the range of 2.2 seconds and 2.8 seconds for a total .6 seconds. The instruction I believe I need to use is the CMP instruction. I have attached, (I hope), a jpg image of the instruction as it appears when I create it in the tisoft software. The manual I have is of little help, it states and I quote,
“compares a number in memory location A to a number in memory location B. The comparison is made for equal to, less than, or greater than. Values in the A and B memory locations are not affected.”
Ok, here is what I think I have figured out. When the A and B areas of the instruction are highlighted I have multiple memor locations to choose to compare. Wx, wy, v, tcp, tcc, stw, dsp, dcp, dsc, and dcc. I believe what I want to use is the tcc, witch I believe is timer/counter/accumulated. That would be my value for A I would plug in. For the B value I would Choose V witch would be my static value I wish to compare my timer accumulated value too. Here is my dilemma. When the Lt: and Gt: areas of the instruction are highlighted, I only have two instruction types to choose from, Y and C. Y is an output coil or so I believe, C is a internal coil I believe, like the Allen Bradley b3: bit in a slc controller.
How do I actually define the terms greater than or less than in the instruction and how can I use Y and or C to do this? I am stumped! Does anyone have any experience with this software? Am I attempting to use the correct instruction? Any help would be greatly appreciated.
Last edited: