CODESYS GT

GT is an IEC operator that performs the greater-than comparison. It returns TRUE if the first operand is greater than the second operand; otherwise it returns FALSE. The document shows an ST example with the result FALSE.

Source checked3/3 values · 2026-10-26

Specification

2 sources
Languageiec 61131 3
CodeGT
Syntax20 > 30
DialectCODESYS

Study notes

  • Permitted data types of the operands: any basic data type.
  • The example uses VAR1 := 20 > 30;.
  • The example is shown in ST and FBD representations.
↑↓ navigate↵ openesc close