Host Engineering Forum
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 18, 2012, 06:16:28 pm


Login with username, password and session length


Pages: [1]
  Print  
Author Topic: Output question  (Read 3602 times)
MichaelL65
Jr. Member
**
Posts: 18


« on: March 31, 2007, 10:47:11 pm »

I have a H2-CTRIO that I've set up to receive quad encoder input, and I need to start a process when it reaches a certain count. It would appear that I can set up an output to toggle, but I want to do this in software. Do I need to wire an output (let's say Y0) on the card to a normal input, or can I just look at that output directly in the PLC code (I don't see a memory location for this)?

(Maybe I can't find the answer because it's late on a Saturday evening)

(and am I really the first to post a question regarding the CTRIO cards?)
Logged
BobO
Host Moderator
*****
Posts: 1141


Yes Pinky, we *are* going to control the world!


« Reply #1 on: March 31, 2007, 11:06:16 pm »

Well...it depends...

The primary advantage that the CTRIO provides is that it runs much faster than the PLC scan and can trigger your event independently of the PLC, with a much shorter latency. If you don't need that capability, just check the quad counter's value and trigger your event that way. Looping an output back doesn't provide any real value, and a simple relational contact is very easy to implement. Just read the accumulator and compare to your target value. This might be complicated slightly by the fact that CTRIO counters are 32 bit, and relational contacts are only 16 bit, but you can work around that pretty easily.

And yes, you are the first to ask a CTRIO question....but the forum has only been up a couple of weeks.




Logged

BobO

The Constitution does not guarantee us freedom from being offended...but we can choose not to be, and life gets so much easier.
MichaelL65
Jr. Member
**
Posts: 18


« Reply #2 on: March 31, 2007, 11:58:06 pm »

Hmm, Not the answer I was hoping for.  Embarrassed

I know the card can trigger things faster than the PLC, but for my application I have a high speed encoder that I need it to trigger a series of PLC processes. I am also needing a second encoder to trigger other events, but at multiple points in it's cycle. I was planning to do a table for that and just watch its output location. Guess a series of ">" rungs will have to do that.
Logged
BobO
Host Moderator
*****
Posts: 1141


Yes Pinky, we *are* going to control the world!


« Reply #3 on: April 01, 2007, 12:38:53 pm »

Bummer. Well, let me try again...maybe you'll like this one better. Wink

You can access the CTRIO's output state in PLC memory. When you do your memory mapping, look at the "System Functions" page. I think you will find what you are looking for there. There are two bits for each output, a state bit and a mode bit. For preset outputs, the state bit is what you are looking for.

Hopefully this answer is better...otherwise I'll have to start making things up. Grin
Logged

BobO

The Constitution does not guarantee us freedom from being offended...but we can choose not to be, and life gets so much easier.
MichaelL65
Jr. Member
**
Posts: 18


« Reply #4 on: April 01, 2007, 04:41:22 pm »

Would that possibly be listed in the manual (and program) as 'Out x Active' (V-offset 25.8/10/12/14) as opposed to 'state?' Since there was no description of these bits, I had interpreted 'active' as meaning the output was in use (i.e. assigned a function, not necessarily 'on').

Most of my PLC experience has been with the Toshiba series, so I'm still sorting out a lot of terminology differences...
 
Logged
BobO
Host Moderator
*****
Posts: 1141


Yes Pinky, we *are* going to control the world!


« Reply #5 on: April 01, 2007, 08:39:11 pm »

Yeah, my bad...it is "Active" and not "State".

We use "active" because those bits are used to describe the behavior of pulse and discrete outputs. For pulse outputs, active means pulsing. For discrete outputs, active means on. The mode bit simply tells whether it is a pulse or discrete output.
Logged

BobO

The Constitution does not guarantee us freedom from being offended...but we can choose not to be, and life gets so much easier.
MichaelL65
Jr. Member
**
Posts: 18


« Reply #6 on: April 02, 2007, 09:36:08 am »

Thanks! That was holding up the PLC end a bit. Now if the rest of the system will cooperate...
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM