PLC Programming and Variable Naming Conventions

1

Camel Case Naming Convention

Naming Objects

This primarily targets identifiers, including variables, PLC variables, PLC data types, and structures.

Naming Rules:

1. The first letter is a lowercase letter;

2. If an identifier consists of multiple words, the first letter of subsequent words is capitalized;

3. No separators are allowed.

2

Pascal Case Naming Convention

Naming Objects

Program blocks, data blocks, process objects, libraries, PLC variable tables, monitoring and forcing tables, PLC data types, etc.

Naming Rules:

1. The first letter is a capital letter;

2. If an identifier consists of multiple words, the first letter of each word is capitalized;

3. For identifiers representing a single concept, no separators (such as underscores or hyphens) are used.

Leave a Comment