Prefix Parts

Overview

Prefixes are used to assign names by function.

The following parts of prefixes are available:

Prefix part

Use

Syntax

Example

scope prefix

scope of variables and constants

[scope]_[designator]

G_diFirstUserFault

data type prefix

identifying the data type of variables and constants

[type][designator]

xEnable

property prefix

identifying the properties of variables and constants

[property]_[designator]

c_iNumberOfAxes

POU prefix

identifying if POU was implemented as a function, function block, or program

[POU]_[designator]

FB_VisuController

namespace prefix

for POUs, data types, variables, and constants declared within a library

[namespace].[identifier]

TPL.G_dwErrorCode