Search the Community
Showing results for tags 'decimal'.
Found 3 results
Hi This is my second project, and I have a question. I'm using V430-J-34 (provided by user...) Whats the best way to round up or round down decimal numbers to whole numbers? Currently I'm using simple linealization to convert result of some math to some normal number. Problem is there is whole excel table of math to do, that I am currently working on to be in plc example: Fx=IF(AND(C6>=130;C6<220);C6-20;IF(AND(C6>=220;C6<310);(C6-40)/3+G6;IF(AND(C6>=310;C6<400);(C6-40)/4+G6;IF(AND(C6>=400;C6<490);(C6-40)/5+G6;IF(AND(C6>=490;C6<=600);(C6-40)/6+G6;))))) C6 is input user makes (before in excel table, now it will be on display); G6 is just some result from previous math So for every "IF" I write conditions, then math formula. Then linearization. Then I can use that for information to compare whit encoder input to stop the motor and do some action (drill, cut, pierce...) And I still have not connected and configured encoder, but that will be question for another post if I don't figure it out.. Sorry for any mistakes, English is not my main. Best regards; Marko
Hello all, I have an 11 bit absolute rotary encoder that outputs in gray code. Here is datasheet on it: https://cdn.automationdirect.com/static/specs/encodermda.pdf This is needed for determining the position of the shaft on an engine. I am fairly new to Unitronics and Visilogic. I have a V700 with the V200-18-E3XB snap on. I have looked at other answers on this topic and have created a ladder diagram based on this format: http://www.plcdev.com/using_ladder_logic_for_gray_code_conversion However, I am still stuck when it comes to getting the binary to decimal and then being able to read the position output from the encoder on the HMI. I am a college student working on my senior capstone. Any and all help is appreciated. Thanks, Robby
Hi everyone! Does anybody have experience with extracting numerical values from SCAN FB? Im communicating between controller and V350 over serial cable. And receive messages like: R+400<CR><LF> R-3000<CR><LF> Using <LF> as ETX. In the SCAN FB i have tried configuring this message in many different ways. But did not have succes. It alwas returns -1 in "Index of received message". Simple fixed length message without variables i can receive just fine. Any ideas? or pointers? Greets Tom