adccommunitymod (AutomationDirect) asked a question.

Programming CLICK analog

Created Date: August 03,2009

Created By: uman

**** 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 have a new CLICK 02DR-D plc and I would like to learn to develop ladder logic with the CLICK application to read an analog input (volt) and output an analog signal (volt). I have a project that is basically two parts: My first challenge is to read 0-2v and display value on a screen bargraph. Second challenge is to change a touch screen value to produce an output voltage 0-5. If you have any examples or sample code that uses the CLICK application for analog in or out, I would like to study this to learn the process. Just asking for a helping nudge :D Jeff in Florida


  • adccommunitymod (AutomationDirect)

    Created Date: August 03,2009

    Created by: bcarlton

    Do you understand the wiring necessary to bring a voltage to an input from an external device and to attach a voltage from an output to an external device? If not reference chapter 2 of the CPU manual.

    Once you have these items wired in place configure the analog channels. View, using the Click software only, the result of a changing input voltage. Change internal numbers to vary the output voltage.

    When this is complete (you are familiar with the internal status of the PLC for analog inputs and outputs) then you must interface the display. At first create a display of any number, vary it using the Click software and observe the result on the display. Secondly create an operator to allow the HMI to change an internal number in the PLC. Work at this until you have the expected result.

    Finally set the numeric indicator to view the number which is the result of the changing analog input. Set the numeric input operator to vary the number which will be sent to the analog output. Observe both results.

    Take these paragraphs in order. COMPLETE one bedfore jumping to the next. That way you have a solid foundation to progress. Let us know if you need help completing a step.

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: August 04,2009

    Created by: jonesjeremya

    Jeff,

    In my experience:

    I have seen applications similar to your description and have always seen the use of external digital>analog, and analog>digital converters.

    The apps I have most seen would be used to generate a 0-10v signal from the plc to control the output frequency of a VFD. The plc's would output in binary using discrete outputs, and the DAC would then convert to 0-10v for the inverter.

    Good luck!

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: August 04,2009

    Created by: Do-more PE

    Doing analog control via discrete IO isn't done much anymore since PLC's can input and output analog very easily. Back 15 or 20 years ago this style of control was still in use because analog was expensive. This is not the case today.

    Using a Click with analog is fairly simple. In the programming software go to Setup -> System Configuration and select your CPU type. Then go to Setup -> CPU Built-in I/O Setup. Setup your analog channels and pick a data register. Do the same for your Output. Be sure to pick different data registers for each channel for both the inputs and the outputs. None of the data registers for the analog setup should be the same.

    Put an END statement in your program, download it to the PLC and put the PLC in run. VIOLA! Assuming that you have wired the analog input you should see values appear in the register that you selected for that channel. You can verify this by opening up a data view window.

    To get the analog output to work, you write values to the register that you picked.

    I realize that this is an over simplification, but you should be able to get it up and running with a little help.

    You can either post back here with more questions or call/email our Technical Support staff. Our support is free. While we can't do your application for you we can certainly answer any questions that you may have on how to get your application working.

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: August 04,2009

    Created by: uman

    Excellent feedback!

    I expect the CLICK to arrive tomorrow. I have no real PLC programming experience, except for smart relay Siemens LOGO, which quickly max out. I did figured out how to program a PLC with a simple digital in/out and confident analog will not be a show stopper. I hope my timed expectations are not too high, since I have limited experience.

    I am also comparing the CLICK and the D05 side by side for a new product in development. The CLICK really has some impressive specifications and the software is straight forward, unfortunately AD does not have a software manual available at this time; only hardware.

    Well I am armed with my electronic books, PLC manuals, PLC hardware, stocked lab, time, and the AD forum. Yes...I am confident; the victory cigar has been acquired.

    victory is considered challenge 1 & 2 complete and planned for early Saturday night (this Saturday) .

    I have my work cut out for me and quite excited about this new project. Thanks for the push uh shove and look forward to returning the favor to others.

    Jeff in Florida

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: August 04,2009

    Created by: Do-more PE

    Be sure to use the help in the software for the Click. It should answer 90% of your questions, should you have any.

  • adccommunitymod (AutomationDirect)

    Created Date: August 03,2009

    Created by: uman

    Hello,

    I have a new CLICK 02DR-D plc and I would like to learn to develop ladder logic with the CLICK application to read an analog input (volt) and output an analog signal (volt).

    I have a project that is basically two parts:

    My first challenge is to read 0-2v and display value on a screen bargraph.

    Second challenge is to change a touch screen value to produce an output voltage 0-5.

    If you have any examples or sample code that uses the CLICK application for analog in or out, I would like to study this to learn the process.

    Just asking for a helping nudge :D

    Jeff in Florida

    Expand Post