kikitron Posted February 13, 2018 Report Share Posted February 13, 2018 Hi, A have one question. I control analog output 0-10V with potentiometer on analog input 4-20mA. Is it possible to add a switch that I first set the value by potentiometer and when I press switch ON panel I get seted vaule on analog output ? Now is working directly when i move potentiometer a got value 0-10V on analog output. AI-O_test.vlp Link to comment Share on other sites More sharing options...
MVP 2023 Flex727 Posted February 13, 2018 MVP 2023 Report Share Posted February 13, 2018 Yes, add a line after your linearization blocks, as follows, should do it: Link to comment Share on other sites More sharing options...
kikitron Posted February 14, 2018 Author Report Share Posted February 14, 2018 Perfect thanke you its working Is it possible to do it through the panel to if I add a button on display ? Link to comment Share on other sites More sharing options...
MVP 2023 Flex727 Posted February 14, 2018 MVP 2023 Report Share Posted February 14, 2018 Yes, just substitute an MB for the I 0 in the example above. Then link the MB to a button on the HMI. You can use either a regular pushbutton for momentary contact, or use a Binary Switch with the Toggle function checked. 1 Link to comment Share on other sites More sharing options...
kikitron Posted February 15, 2018 Author Report Share Posted February 15, 2018 Thanke you @Flex727 for your help. Link to comment Share on other sites More sharing options...
kikitron Posted March 12, 2018 Author Report Share Posted March 12, 2018 I have another question: Is it possible to reset somehow all my MB buttons to state 0 when I turn on the PLC ? Now If I push button I got 1 and if I switch off the PLC and switch it back on I still have 1. Now I would like to reset all my MBs somehow if I forgot to turn it down to 0. Link to comment Share on other sites More sharing options...
MVP 2023 Joe Tauser Posted March 12, 2018 MVP 2023 Report Share Posted March 12, 2018 Set the power-up value of each MB you want to set to 0 to "RESET". It's the little plug icon next to the MB address. Joe T. Link to comment Share on other sites More sharing options...
kikitron Posted March 13, 2018 Author Report Share Posted March 13, 2018 Perfect thanke you for fast answer and help Link to comment Share on other sites More sharing options...
kikitron Posted March 28, 2018 Author Report Share Posted March 28, 2018 Another question about potentiometer. To regulate analog output +/- 10V Im useing potentiometer 4,7kOhm + resistor on analog input (4...20mA). Potentiometer scale is 0-10 (pic in attachment) and now I have problem that my 0V is on scale 8 and not 5. Is it possible to calibrate somehow that my 0V will be in the midle (scale 5) ? +/-10V is now working ok but my 0V is on scale 8 and I regulate 0..10V from scale 8...10 and 0V...-10V from scale 8-0. Link to comment Share on other sites More sharing options...
MVP 2023 Flex727 Posted March 28, 2018 MVP 2023 Report Share Posted March 28, 2018 I'm not exactly sure what you're asking, but it seems like you could adjust your linearization blocks to achieve what you're wanting. Link to comment Share on other sites More sharing options...
kikitron Posted March 28, 2018 Author Report Share Posted March 28, 2018 I tryed with different values of linearization on analog input but with no luck. I would like that when I have potentiometer in the middle on scale 5 analog output needs to be 0V. Now 0V is on scale 8. I have less rotation adjustment from 0V to 10V (scale 8 to 10). And I have more rotation adjustment from 0V to -10V (scale 8 to 0). Linearizarion is working ok only that 0V is not in the middle of the potentiometer. Link to comment Share on other sites More sharing options...
MVP 2023 Flex727 Posted March 28, 2018 MVP 2023 Report Share Posted March 28, 2018 Add a fixed resister on your potentiometer. Link to comment Share on other sites More sharing options...
MVP 2023 Flex727 Posted March 28, 2018 MVP 2023 Report Share Posted March 28, 2018 Regarding the linearization - go online with your PLC and record the MI values for your potentiometer at minimum and maximum position (0 & 10 positions). Now use that for the linearization block for your output. If you need help with that, then post those numbers here and I'll help you. As a sanity check, you should also record the number at position 5 to confirm that it's about halfway (in value) between 0 and 10 to confirm your potentiometer is linear. Link to comment Share on other sites More sharing options...
kikitron Posted March 29, 2018 Author Report Share Posted March 29, 2018 I have fixed resistor on potentiometer like on Picture below. I calculate it 1082 Ohm to run from 4,07mA to 19,9mA on extension module IO-AI4-AO2 (analog input). I recorder MI values: 0 = 835 5= 1390 10 = 4075 Link to comment Share on other sites More sharing options...
MVP 2023 Flex727 Posted March 29, 2018 MVP 2023 Report Share Posted March 29, 2018 It looks like you hit that pretty close. The IO-AI4-AO2 has 12-bit resolution, so you should see a value between 819 & 4095 on the 4-20mA input. Now add a linearization block that looks like this: Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now