Jump to content
OMRON Forums

Initialising global vars in pmh


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);


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



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.




Link to comment
Share on other sites

This topic is now closed to further replies.

  • Create New...