PepperedMussels Posted January 27, 2021 Report Posted January 27, 2021 Hello, I'd like to make a matrix 2*100 on Sysmac Studio but I really don't know how to do in this software. If a matrix is not possible, also an " ARRAY OF [0,1] OF ARRAY[0..100] OF ^var^ " could be good. Thanks in advance.
IO_Rack Posted January 27, 2021 Report Posted January 27, 2021 Here is a copy/paste from a 16x16 matrix: ARRAY[0..15,0..15] OF REAL You could also do it in a STRUCTURE. I created a 3 dimensional array this way. It really helps to keep your head on straight when parsing it.
PepperedMussels Posted January 27, 2021 Author Report Posted January 27, 2021 (edited) Thank you very much. I've already tried to do it in a STRUCT way but it makes more confusion in my head (sorry but I'm new and I'm trying to understand well this thing) Maybe could you help me in this way please? EDIT: I'd like to make something like this: Trolley[Trolley_Number].targetPosition[XXX]; with "Trolley_Number" ARRAY [0,1] and "targetPosition[0..99]; Edited January 27, 2021 by PepperedMussels
IO_Rack Posted January 27, 2021 Report Posted January 27, 2021 When I get some time, I'll simplify my example and post it for you. I'll try to explain... Imagine a "Servo" motor with multiple parameters. The "Sequence" will have several steps. Each sequence will be different for each "Product". You create a Data Type (STUCTURE) of each the items in quotations. You can have mixed data types within the Structures. 1
PepperedMussels Posted January 27, 2021 Author Report Posted January 27, 2021 Yes, I made it! Thank you very much!
IO_Rack Posted January 27, 2021 Report Posted January 27, 2021 You are welcome. Did you create the array or structure?
PepperedMussels Posted January 27, 2021 Author Report Posted January 27, 2021 I created a structure, I think that is more "elegant".
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