| Volume pwrb | |
| Attributes: Runtime | Development | System | Template | Detail C Binding: Struct | Class  ClassTree | INDEX NO INDEX |
Class NameToStr
|
||
|---|---|---|
| Version | 1.0 | |
| Modified | 08-MAR-2026 11:05:32.00 | |
Converts AttrRef to string. The main use for this object is in TemplatePlc's where symbolic names like $PlcHost and $PlcConnected can be converted. The conversion is done when the plc program is compiled.

| RtBody attributes pwr_sClass_NameToStr | |||
|---|---|---|---|
| String80 | Out | Out | String output |
| DevBody attributes | |||
|---|---|---|---|
| AttrRef | Object | Referenced attribute | |
| Int32 | ObjectSegments | Number of name segments displayed | |
| PlcNode | PlcNode | ||
| GraphPlcNode | |
|---|---|
| object_type | 11 |
| parameters[0] | 0 |
| parameters[1] | 0 |
| parameters[2] | 1 |
| parameters[3] | 0 |
| subwindows | 0 |
| graphmethod | 7 (Get,Set) |
| graphindex | 0 |
| default_mask[0] | 0 |
| default_mask[1] | 1 |
| segname_annotation | 0 |
| devbody_annotation | 1 |
| compmethod | 60 |
| compindex | 1 |
| connectmethod | 0 |
| tracemethod | 0 |
| traceindex | 1 |
| objname | NameToStr |
| graphname | NameToStr |
| debugpar | |
| Template Object | |
|---|---|
| ObjectSegments | 1 |
| Out Output | ||
|---|---|---|
| Class | Output | |
| Type | String80 | |
| Flags | NOEDIT | |
| GraphName | Out | |
| Body | RtBody | |
String output containing the name of the attrref.
| Object Intern | ||
|---|---|---|
| Class | Intern | |
| Type | AttrRef | |
| Flags | ||
| Body | DevBody | |
Referenced attribute
| ObjectSegments Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Int32 | |
| Flags | ||
| Body | DevBody | |
Number of name segments displayed
| PlcNode Buffer | ||
|---|---|---|
| Class | Buffer | |
| Type | PlcNode | |
| Flags | INVISIBLE | |
| Body | DevBody | |