[PML] AVEVA PML Studio says '$P should not be used in production code' ? why?

 
Parents
  • [QUOTE=mno;105408]What my_hungry says is true, and there is another reason as well: "write" should be used instead since it is more PML2 style, you do not need the horrible $-sign to use it, you simply change

    $p $!variable

    to this:

    write !variable


    "write" didn't work :/
    my code

     !X= 123
     write !X

    PDMS error message
    "(2,427)   The value of the expression is undefined In line 7 of PML function jump
     write !X"
Reply
  • [QUOTE=mno;105408]What my_hungry says is true, and there is another reason as well: "write" should be used instead since it is more PML2 style, you do not need the horrible $-sign to use it, you simply change

    $p $!variable

    to this:

    write !variable


    "write" didn't work :/
    my code

     !X= 123
     write !X

    PDMS error message
    "(2,427)   The value of the expression is undefined In line 7 of PML function jump
     write !X"
Children
No Data