PepperedMussels

Matrix on Sysmac Studio

7 posts in this topic

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.

Share this post


Link to post
Share on other sites

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.
 

 

Share this post


Link to post
Share on other sites

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 by PepperedMussels

Share this post


Link to post
Share on other sites

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 person likes this

Share this post


Link to post
Share on other sites

You are welcome. Did you create the array or structure?

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now