socaoh Posted November 19, 2014 Report Share Posted November 19, 2014 Hello I have Vision130 and I need MI to convert to 4 MB s, _ So If MI =0 then MB1= 0, MB2=0 MB3=3, MB4=0 If MI=3 THEN 0 0 1 1 ... MI=15 THEN 1 1 1 1 Thanks in advance Link to comment Share on other sites More sharing options...
s.pratt Posted November 19, 2014 Report Share Posted November 19, 2014 Hello socaoh, Thank you for using our Unitronics Forum. Please refer to the Numeric to Bits function block located under the "Vector" function tab. You can set up the integer you wish to monitor and place the bit value they create within a vector of bits. There is also a function block for creating a numeric value according to a vector of bits called "Bits to Numeric". Hope this helps! Link to comment Share on other sites More sharing options...
socaoh Posted November 20, 2014 Author Report Share Posted November 20, 2014 Thanks Prat At this moment Unitronics PLC are acceptable to Macedonian market because gives most for its price, Please if You are willing leave a subroutine how to do that. Thanks in advance Link to comment Share on other sites More sharing options...
s.pratt Posted November 20, 2014 Report Share Posted November 20, 2014 Hello, You do not need a subroutine for this function. It has already been done for you. Please refer to the images below. Link to comment Share on other sites More sharing options...
socaoh Posted November 21, 2014 Author Report Share Posted November 21, 2014 thanks Pratt Till now I ve worked Jazz and M91 Plc. Now I migrate to Vision and I ve ordered V130. While I m waiting to arrive I must prepare the program. Please if you have time tell me if I make the function as bellow in attachment AND MI2=7 and I make one Positive pulse on SB41 wiil be these MB's MB10 =1 MB11=1 MB12=1 MB13=0 Thanks in advance Link to comment Share on other sites More sharing options...
s.pratt Posted November 21, 2014 Report Share Posted November 21, 2014 Hello, Yes, that is correct. MB3 being the most significant bit and MB0 being the least significant bit. 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