Jump to content

Recommended Posts

Posted

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.


Posted

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.
 

 

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

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.

  • Like 1

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
×
×
  • Create New...