Download SmartConfigLite1.6.3.0 User Manual (Lite Version)
Transcript
SmartConfigLite1.6.3.0 LT0345 IO-Net one or more operands with each pair of operands separated by a binary operator. All operands return a logical value of TRUE or FALSE. If the right hand side of an expression evaluates to TRUE then the specified output on the left hand side will be turned ON (and FALSE = OFF) or if the left hand side is a variable, then the variable will be assigned a value of TRUE or FALSE. See Timers 45 for more details on the operation of timers. If the output or variable which appears on the left hand side of the = also appears as an operand on the right hand side then the value used on the right hand side is the value of the operand before the new assignment. Any operand may be preceded by the unary operator NOT (the symbol ^ may also be used) which complements the value of the operand. Each operand may itself consist of an expression enclosed in parentheses () with a maximum nesting level limited by the amount of stack space required for evaluation at run time. The nesting level limit is 16 which is more than enough for any foreseeable requirement. See also Example Programs 5.3.2 51 . Operators The binary operators which may be used are: AND - logical AND (alternatively use .) OR - logical OR (alternatively use +) XOR - exclusive OR The one unary operator which may be used is: NOT - logical complement (alternatively use ^) The single character "+" (plus) may be used instead of OR, the character "." (fullstop) may be used instead of AND, and the character "^" may be used instead of NOT. The truth tables for AND, OR, XOR and NOT are (F = FALSE, T = TRUE) A AND B A F F T T B F T F T RESULT F F F T A OR B A F F T T B F T F T RESULT F T T T A XOR B A F F T T B F T F T RESULT F T T F NOT A A F T RESULT T F Example NOT A OR NOT B A B RESULT 37