8/20/2007 1:08 PM | |
Posts: 10 Rating: (4) |
Can anyone help. I have a customer is looking to use a 4 position switch to give a 4 stage analogue output. Position 1to give a 5v output. Position2to give a 6v output. Position3to give a 7v output. Position 4 to give a 8v output. He also is asking if it possible to change anyvalues if needed via the front screen. I have attached an example using2 analogue outputs but I cannot work out using just one. Can anyone please help. Attachmentproblem.zip (712 Downloads) |
8/20/2007 2:53 PM | |
Posts: 10 Rating: (4) |
Thanks for that I have it working but i require it to be using just 1 analogue output. |
8/20/2007 3:08 PM | |
Joined: 1/5/2007 Last visit: 4/7/2023 Posts: 1690 Rating: (580) |
Hello STOKIE, i have changed your litle program to solve your questions. I havs also add two demo-programs from me, so you can get some more ideas for your own solutions. Attention: if you copy and past a analoge multiplexer-funktion, the parameters (pointer to ohter funktions) are lost, so you must set the Parameters (Pointers) new! If you need more help tell me. Best regards Betel AttachmentForum_problem_solution.zip (826 Downloads) |
Last edited by: Betel at: 20.08.2007 15:18Note: If you want to have 5 V Output (for example), you must set the output value to 500!!! The handbook says for analoge inputs and outputs: values from 0 to 1000 results 0,00 V to 10,00 V ==> Meine TAG-Listen: "deut." |
|
8/20/2007 3:30 PM | |
Posts: 10 Rating: (4) |
Thank you. That works a treat. |
8/20/2007 4:08 PM | |
Joined: 1/5/2007 Last visit: 4/7/2023 Posts: 1690 Rating: (580) |
Hello STOKIE, i have a 2. version for you. With correct values and with a ramp-funktion. So the analoge output is not more going from value to value as impulse; now the output goes from value to value with a defind speed. Because i don´t now the details of the type and the changing of the digital inputs... I mean there ist an not diffined situation every time if an input is set and an other input shuld be set.. Best regards Betel Attachmentproblem_solution_2.zip (800 Downloads) |
==> Meine TAG-Listen: "deut." |
|
Follow us on