Applies To:
  • CitectSCADA

Summary:
I want to check the operator input before I send the new value to the plc. If I use this in the keyboard command;

If (Arg1 < 50) Then Output = Arg1 End;

I get the compile error "Incompatible types", am I using the correct approach?

 

Solution:
Use this;

If (Argvalue1 < 50) Then Output = Arg1 End;

This is required because;

1. Arg1 does a getglbStr(0), the argument is a string data type.

2. ArgValue1 does a StrToValue(Arg1), the input string is converted to a value to compare to the number we are comparing with.

 

Keywords:
 

Attachments