# CODESYS GT

Instructions · `GT` · verification: source checked

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.

## Specification

| Property | Value |
|---|---|
| Language | iec 61131 3 |
| Code | GT |
| Syntax | 20 > 30 |
| Dialect | CODESYS |

## 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.

## Sources

1. [Beckhoff Information System](https://infosys.beckhoff.com/content/1033/tc3_plc_intro/2528982923.html) (accessed 2026-10-26)
2. [CODESYS Group](https://content.helpme-codesys.com/en/CODESYS%20Development%20System/_cds_operator_gt.html) (accessed 2026-10-26)

---

Source page: https://machineschema.com/instruction/iec-gt  
JSON: https://machineschema.com/instruction/iec-gt.json  
License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Cite Machine Schema and the original sources.
