Xeall Posted February 27, 2014 Report Share Posted February 27, 2014 Hi there, I would like to know if there is a special function similar to the "Copy vector of inputs to a register" for use with outputs. I would like to be able to copy the current state of outputs to a MI register. An alternative would be to use a bunch of contacts and coils to link the outputs to MBs then use the "convert MB to MI" special function. However this does not seem like the tidiest solution. What I am aiming to achieve is having a screen to display the current state of all inputs and outputs. The user will be able to navigate up and down the list of outputs and see their current state. The aim is to achieve this using a single display in the UI. I have already achieved what I want for the inputs. Using the "Copy vector of inputs to a register" function, I can copy the selected Input value to an MI and display that on the screen. It appears that there is only a "Copy MI to output vector" for outputs which is the opposite of what I would like. I would really appreciate any suggestions. Quote Link to comment Share on other sites More sharing options...
MVP 2021 Flex727 Posted February 28, 2014 MVP 2021 Report Share Posted February 28, 2014 I don't see how copying a vector of inputs or outputs to an MI aids in displaying the state of inputs and outputs on the screen. Can you post a screenshot of what you're trying to do, perhaps one for the inputs that you've successfully done? Quote Link to comment Share on other sites More sharing options...
MVP 2021 Joe Tauser Posted March 2, 2014 MVP 2021 Report Share Posted March 2, 2014 Go back and look at the Help on "Copy MI to Output Vector" - it's full name is "Copy MI to Output Vector, Input Vector to MI". You set SB 172 to get what you want. Joe T. Quote Link to comment Share on other sites More sharing options...
Xeall Posted March 2, 2014 Author Report Share Posted March 2, 2014 What I am trying to achieve is having one screen to display the state of all inputs and one screen to display the state of all outputs. I have achieved what I want with the inputs. but have not been able to achieve the same thing with outputs. For the inputs, I have a screen that looks like the following: Input: 05 OFF Air pressure low The up and down arrows increase/decrease the input number. The selected input number is used with the "Input vector to MI" function to copy the state of the specified input to a MI which is then displayed on the screen as ON/OFF. The text on the 2nd line is just a list linked to the selected input number. Specifically: #2 (The address of the register used to display ON/OFF) into SI170 MI3 (The register containing the current input number) into SI171 #1 (only want to copy the value of a single input) into SI172 Set SB172 (to copy input to MI) This setup for inputs is functioning exactly as expected, however I would like to replicate this screen with another that does the same thing with outputs. The problem is that the special function for outputs only copies a value to the outputs and I cannot find a way to copy the value of an output to a register. As stated in my previous message, I could use a bunch of contacts and coils to link the relevant outputs to MIs and then use "Copy vector of MBs" special function to copy the currently selected output value to a register to be displayed on screen. This does not seem as tidy as what I have achieved for the inputs. I really just want to know if there is some equivalent to the "Copy Input vector to MI" function for outputs such as "Copy Output vector to MI". Thanks Quote Link to comment Share on other sites More sharing options...
MVP 2021 Flex727 Posted March 2, 2014 MVP 2021 Report Share Posted March 2, 2014 SB 172? That can't be right, can it? Quote Link to comment Share on other sites More sharing options...
MVP 2021 Flex727 Posted March 3, 2014 MVP 2021 Report Share Posted March 3, 2014 SB 172? That can't be right, can it? Excuse me - I forgot I was viewing the U90 Ladder forum (thought I was in the Vision forum). Quote Link to comment Share on other sites More sharing options...
Xeall Posted March 3, 2014 Author Report Share Posted March 3, 2014 SB 172 is definitely the correct system bit to set to copy inputs to an MI.Below is the relevant section of the documentation: Input to Register+--------+----------------------------------------+--------+----------+| SI | Description | SB | Function |+--------+----------------------------------------+--------+----------+| SI 170 | Address of MI containing integer value | SB 172 | I to MI || SI 171 | Start address of bit array (vector) | SB 173 | MI to O || SI 172 | Amount of bits | | |+--------+----------------------------------------+--------+----------+Example: Input to MI, SB 172 Store the value 7 into SI 170, 2 into SI 171 and 4 into SI 172. Set SB 172 to ON. The program takes the status of I2 to I5, and changes the status of the respective bits in MI 7.Bits in the target register that are outside of the defined range are not affected. SB 172 is used to copy inputs to a register which is what I have used for the input part of my program. What I want is to copy outputs to a register. I cannot use SB 173 as this provides the opposite functionality (copy MI to outputs) to what I want (copy outputs to MI). Quote Link to comment Share on other sites More sharing options...
MVP 2021 Joe Tauser Posted March 4, 2014 MVP 2021 Report Share Posted March 4, 2014 I think you're out of luck on this request. You'll just have to crowbar it and manually map the outputs to MBs as you mentioned in your first post. Joe T. Quote Link to comment Share on other sites More sharing options...
Xeall Posted March 5, 2014 Author Report Share Posted March 5, 2014 Thanks Joe, I think I will have to map the outputs to MBs manually as suggested. A bit of a pain, but it will have to do for now. Thanks for the input. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.