Jump to content
OMRON Forums

Any Idea how to... determine if var is M or P type ?


Unit101

Recommended Posts

Here is interesting question from end user:

 

For Example I would like to do something like what is below

 

If (MyVar == Pvaraible) { stuff } // checking if MyVar is a P variable

if (MyVar == Mvarialbe) {different stuff} //Checking if MyVar is a M Variable

 

Thanks!

 

*** Ideas on how to determine in logic a given variable is type M,Q,P ?

 

- perhaps in CfromScript sub-routine to do a query and read back the echo text to see the letter M or P ?

 

- In var Name append a letter at end _M _P then have a sub-routine return if text matches M or P ?

 

Thanks for looking...

Link to comment
Share on other sites

  • 1 month later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Guest
This topic is now closed to further replies.

×
×
  • Create New...