Nildo Posted August 2, 2016 Report Share Posted August 2, 2016 Friends, I have a counter currently in a V350 and would like to migrate to a v1210 ( counter=slave ) that will communicate with another v1210 ( Master= in my desk ) . Only dispose of canbus connection between them. I am designing in collecting the slave and online collect values for the master(store). Question- in the example of communication only transmission of MI and not ML , Am I right? Thank for all future help Link to comment Share on other sites More sharing options...
Ofir Posted August 2, 2016 Report Share Posted August 2, 2016 Hi, Indeed the UniCAN send element support only vectors of MIs but if you wish to send diffrent types of operands (for example ML in your case) you can use the Struct ladder element to collect diffrent types of operands and place it in vector of MIs. then when the other PLC receives the data , you will need to use extract (also using the Struct )in order to parse back the vector of MIs to the operands. You can find the struct ladder element under the ladder Vector menu. 1 Link to comment Share on other sites More sharing options...
Nildo Posted August 2, 2016 Author Report Share Posted August 2, 2016 Hi Ofir, Fristly thank for return and help me. Do you have a simple example between two devices for me start to use? If Yes, could you send me files please. I am using two v1210 to communicate. Best regards, Link to comment Share on other sites More sharing options...
Nildo Posted August 12, 2016 Author Report Share Posted August 12, 2016 Hi Ofir, Fristly thank for return and help me. Do you have a simple example between two devices for me start to use? If Yes, could you send me files please. I am using two v1210 to communicate. Best regards, Link to comment Share on other sites More sharing options...
Nildo Posted October 9, 2016 Author Report Share Posted October 9, 2016 Friends, I am not getting to make a collection of my process data using DATAXPORT software involving two devices v1210, (named them in D1 and D2) where D1 is in the collection of data (in your) and D2 this on my table job. D1 stores the values in its internal table and coming in 1000 and returned lines will begin to overlap, Currently these values I can only collect locally. This not this good because not always be in D1 at the moment that ends the table rows. I would using a CAN connection (available) to read / write values D1 D2 and automatically store this data in D2 in a excel spreadsheet (.xls file). collecting data is always ML to ML (then should I use the function STRUCT, but I'm still confused on how to use this function). I would like to ideas and suggestions if possible to improve my project. Best regards, Nildo Link to comment Share on other sites More sharing options...
Ofir Posted December 18, 2016 Report Share Posted December 18, 2016 Hi, Do you still need any help regarding this topic? Link to comment Share on other sites More sharing options...
Nildo Posted December 19, 2016 Author Report Share Posted December 19, 2016 Yes, yes, if possible help me with this function in my project. Best regards Nildo Link to comment Share on other sites More sharing options...
MVP 2023 Flex727 Posted December 19, 2016 MVP 2023 Report Share Posted December 19, 2016 There are two example programs included with your VisiLogic installation that shows how to use the Struct function. Look under "Vectors" - one is in the "Projects" folder and one is in the "Functions" folder. Link to comment Share on other sites More sharing options...
MVP 2023 Ausman Posted December 23, 2016 MVP 2023 Report Share Posted December 23, 2016 Struct Vect is confusing because it doesn't come up under the Vector Operations header in the index of the Help files. It only comes up if you actually search for "struct". Just a suggestion and thought it might help, Nildo. cheers, Aus Link to comment Share on other sites More sharing options...
Nildo Posted December 23, 2016 Author Report Share Posted December 23, 2016 Dear colleagues and collaborators, first of all thank you for the exchange of ideas and notes (of all). But unfortunately I continue without progressing to my project. I understand that it is not in the complex but I am having difficulty continuing because I have a low level of knowledge for some complex functions. Seems to be an easy programming but I'm not getting any further. I'm being honest, too. If you need receive my file please contact me in email jnildocosta@hotmail.com until I get attached my file(>0,12MB) in this topic. Thank you for now Nildo New project with 2 v1210 follow : Link to comment Share on other sites More sharing options...
MVP 2023 Ausman Posted December 27, 2016 MVP 2023 Report Share Posted December 27, 2016 Hi Nildo, Perhaps this might explain Struct Vect a little better; Imagine you have to move all your relatives and friends to a new city. You bring them all into a central area, thus collecting their different types of addresses all into one place. You then pack them all together and send them by bus (ho ho) to their new city. Once arrived at the central area there, you unpack them and send them all out to different addresses in the new city. So in your case at the source end you use Struct Vect, with the Data Direction set at "From mixed data locations to vector", to collect all your operands' addresses into one (or multiple) Vector that you send along the UniCAN line, using UniCAN Send. Once it arrives at your destination PLC, you use Struct Vect there, but at this end you are selecting "From vector to mixed data locations" to unpack all the data in the vector to the various addresses you want it to go to in the destination PLC. This can be a little confusing as you have to keep track of your source addresses and where you are going to put them in the destination PLC as you unpack them. I use screenshots of the source Struct Vect to make this a little easier. I hope this clears it up a little for you. cheers, Aus 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