adccommunitymod (AutomationDirect) asked a question.

H0CTRIO's rookie question

Created Date: August 09,2005

Created By: yura

**** 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.****

Hi, ev 'ryone. I'm nearly to use H0CTRIO in DL06 project for the 1st time. Never see CTRIO modules before. Please help me - I have only 2 weeks to fulfil this project. Good money. I need only counter inputs (both), no programmed outputs and the manual is too messy http://forum1.automationdirect.com/board/mad.gif . Do I get it right that 1. AtReset Bit becomes ON and OFF depending on Preset Table 'set at N ' and 'Reset at N ' commands respectively. 2. To use inputs in Ladder Logic directly I refer to n+25.0-3 bits (n - starting Vmem address). ...and a couple of questions http://forum1.automationdirect.com/board/smile.gif . 1. What is 'direction bit '? 2. How can I control outputs from Ladder Logic directly (read and set) if they 're in Unassigned state? 3. How can I restart the exact Preset Table once more? Thanks in advance http://forum1.automationdirect.com/board/rolleyes.gif .


  • adccommunitymod (AutomationDirect)

    Created Date: August 09,2005

    Created by: yura

    Hi, ev 'ryone. I'm nearly to use H0CTRIO in DL06 project for the 1st time. Never see CTRIO modules before. Please help me - I have only 2 weeks to fulfil this project. Good money.

    I need only counter inputs (both), no programmed outputs and the manual is too messy http://forum1.automationdirect.com/board/mad.gif . Do I get it right that

    1. AtReset Bit becomes ON and OFF depending on Preset Table 'set at N ' and 'Reset at N ' commands respectively.

    2. To use inputs in Ladder Logic directly I refer to n+25.0-3 bits (n - starting Vmem address).

    ...and a couple of questions http://forum1.automationdirect.com/board/smile.gif .

    1. What is 'direction bit '?

    2. How can I control outputs from Ladder Logic directly (read and set) if they 're in Unassigned state?

    3. How can I restart the exact Preset Table once more?

    Thanks in advance http://forum1.automationdirect.com/board/rolleyes.gif .

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: August 09,2005

    Created by: GKiser

    Originally posted by yura:

    ...1. AtReset Bit becomes ON and OFF depending on Preset Table 'set at N ' and 'Reset at N ' commands respectively.

    No, AtResetValue bit comes on if the current count in the CTRIO is at the reset value. By default this is 0. However, under Config I/O you can define that reset value to anything you like.

    2. To use inputs in Ladder Logic directly I refer to n+25.0-3 bits (n - starting Vmem address).

    Bits located at n+25.0-3 are just state bits that tell you whether that particular input is on or off at the moment. However, if you are using a counter, then the count value is stored in a double word at n+0-1 (Ch1/Fn1), and n+4-5 (Ch1/Fn2), etc.

    1. What is 'direction bit '?

    If you have a CTRIO output defined as a Pulse/Direction output, then the Direction Bit tells the drive it is connected to, which direction to go.

    2. How can I control outputs from Ladder Logic directly (read and set) if they 're in Unassigned state?

    You can't.

    3. How can I restart the exact Preset Table once more?

    The Preset Table will reset automatically when you Reset the count.

    How can I distingish what input I want to use with the Preset Table?

    Preset Tables are loaded for an output that you want to control. You can load any table for any of the 4 outputs; or even load the same table for all 4 outputs. But that output is associted with Ch1/Fn1, Ch1/Fn2, Ch2/Fn1 or Ch2/Fn2 in Config I/O.

    Hope that helps,

    Greg Kiser

    Host Engineering, Inc.

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: August 10,2005

    Created by: yura

    Thanks a BIG lot, GKiser. But I need further help.

    So the only way to know what happens on inputs is to read status of outputs even if I don't want to wire them. Is it so? Then I choose exact output channel to use with Preset Table by setting its Output Enable Bit ? And read status in n+25.8 or n+25.10 ?

    Sorry for my questions but the manual is ugly. http://forum1.automationdirect.com/board/mad.gif

    Once more - I only want to know where is my vehicle. Motion algorythm is to comlex to use kind of automatic control so I will write it in my ladder program.

    Thanks.

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: August 11,2005

    Created by: GKiser

    Originally posted by yura:

    Thanks a BIG lot, GKiser. But I need further help.

    So the only way to know what happens on inputs is to read status of outputs even if I don't want to wire them. Is it so?

    Not true. Before you asked, "To use inputs in Ladder Logic directly I refer to n+25.0-3 bits (n - starting Vmem address) " and I answered, "Bits located at n+25.0-3 are just state bits that tell you whether that particular input is on or off at the moment. " So, yes, you can look at these bits and see the status of the inputs. It doesn't involve reading the outputs at all.

    Then I choose exact output channel to use with Preset Table by setting its Output Enable Bit ?

    No. I'm sorry to confuse you, but I think you are going to have to read the manual you hate in order to understand.

    The CTRIO must be configured using CTRIO Workbench. The CTRIO outputs can be configured as Raw Outputs that you can simply turn on and off by setting or resetting a bit. Or, they can be configured as Discrete Outputs that are tied to a particular Input function. Or, they can be configured as Pulse/Direction outputs, where you can then cause them to output pulse trains at your desired frequency.

    So, you choose how you want the CTRIO outputs to function.

    You can also configure up to 250 CTRIO files. These files can all be various Preset Tables if you want them to be. Or they can be any of several different types of Pulse Profiles.

    To control a CTRIO output with a Pulse Table, you first configure the Input to what you want, then configure the Output as a Discrete Output tied to the Input function you just configured. Then create a Pulse Profile table (that will have a particular file # assigned to it).

    Then to make it work from ladders; you Load a 10 (hex) into the Command Code, load the table number into Parameter1, and set the Process Command bit. This loads that table up for that particular Output, which is, according to your configuration, associated with a particular Input function.

    The Output Enable bit just allows you to basically disconnect (or connect) the Output from what the CTRIO "wants " to do with it. For example, if the CTRIO "wants " to turn the Output on because the Input has reached a certain count in a Preset Table, it can't do that unless the Output Enable bit is set.

    And read status in n+25.8 or n+25.10 ?

    You can certainly read the output status with these bits, yes.

    Sorry for my questions but the manual is ugly. http://forum1.automationdirect.com/board/mad.gif Once more - I only want to know where is my vehicle. Motion algorythm is to comlex to use kind of automatic control so I will write it in my ladder program.

    The CTRIO is not a "motion control " device, even though it can do that function in a relatively limited way. It is a counter that has the capability to output pulses.

    Writing a complex motion control from the ladders is going to suffer because of the scan time of the PLC. The CTRIO can do things MUCH FASTER and asynchronously from the ladders.

    I believe you need to investigate the CTRIO's Pulse Profiles. These are motion control algorithms that you might find very useful.

    Hope this helps!

    Greg Kiser

    Host Engineering, Inc.

    Expand Post