Jump to content
OMRON Forums

Initialising global vars in pmh


daves
 Share

Recommended Posts

A quick question concerning something new I was taught off topic from another post.

 

I like the concept of initialising global variables in my pmh file:

 

global ThisIsOK = 100;
global ThisIsImpossible(6) = (2,4,6,8,10,12);

global ThisWorks(6);
ThisWorks(0)=5;

 

The first line is good.

I cannot guess the syntax to make the second line work (does it exist? could it be included next release?)

The last two lines will do the kind of thing I want but give me red squiggly line language service errors.

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Daves,

 

The array definition is Power PMAC Script language is actually a function call and for this reason the second line of code is not acceptable and will not be supported.

 

The second approach that you have taken is correct. first you define the array structure, and then you can access each member independently.

 

Regards,

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share


×
×
  • Create New...