Jump to content
OMRON Forums

IF logic - Check if Mvar isn't defined in PLC


shansen

Recommended Posts

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

OK, I did end up finding a solution, although I'd still like to hear if anyone has a better way of doing this.

 

To check if an Mvar is defined, I defined a 2nd Mvar that points to the first Mvars' pointer location (see Turbo software reference manual, memory map section). The Turbo PMAC2 Mvars pointers are located at L:$4000-L:$5FFF.

 

M101->X:$4064,24 ;(point to M100 pointer location)
IF(M101>0) P100=1 ELSE P100=0 ENDIF ;(check if M100 is defined or not)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

×
×
  • Create New...