I am using [AVEVA PML Studio 1.1] to learning PML. I notice it tells me '$P should not be used in production code' .
Could experienced one tell me why?
ps.When writing PDMS code in c#,I usually use Command line to show error message.So it's really matter to me :(
Well, usually we use $P to output some temp values of variables while debugging of programs.
So, when you've finished it, its obviously - you should delete all $P symbols.. >>
Every output slows down program execution + users dont need to see hidden code
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
[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"