| Volume pwrb | |
| Attributes: Runtime | Development | System | Template | Detail C Binding: Struct | Class | Code  ClassTree | INDEX NO INDEX |
Class AtoStr
|
||
|---|---|---|
| Version | 1.0 | |
| Modified | 08-MAR-2026 11:05:32.00 | |
| Code | rt_plc_macro_string.h | |
Convert analog value to string.

The AtoStr object converts the value of the analog input to at string stored in ActVal. Note that an erroneous format specification may cause the plcprogram to terminate. The size of the output of the conversion should not exceed 79 characters.
| RtBody attributes pwr_sClass_AtoStr | |||
|---|---|---|---|
| Float32 | In | In | Analog input that will be converted to string. |
| String80 | Format | c-format that specifies the conversion. | |
| String80 | ActVal | Val | Output that contains the string. |
| DevBody attributes | |||
|---|---|---|---|
| PlcNode | PlcNode | ||
| GraphPlcNode | |
|---|---|
| object_type | 11 |
| parameters[0] | 1 |
| parameters[1] | 1 |
| parameters[2] | 1 |
| parameters[3] | 0 |
| subwindows | 0 |
| graphmethod | 1 (standard, common attributes) |
| graphindex | 0 |
| default_mask[0] | 1 |
| default_mask[1] | 1 |
| segname_annotation | 1 |
| compmethod | 5 |
| compindex | 0 |
| tracemethod | 0 |
| traceindex | 0 |
| executeordermethod | 2 |
| objname | AtoStr |
| graphname | AtoStr |
| Template Object | |
|---|---|
| Format | %f |
| In Input | ||
|---|---|---|
| Class | Input | |
| Type | Float32 | |
| Flags | STATE | RTVIRTUAL | NOEDIT | NOREMOVE | |
| GraphName | In | |
| Body | RtBody | |
Analog input that will be converted to string.
| Format Intern | ||
|---|---|---|
| Class | Intern | |
| Type | String80 | |
| Flags | ||
| Body | RtBody | |
c-format that specifies the conversion.
| ActVal Output | ||
|---|---|---|
| Class | Output | |
| Type | String80 | |
| Flags | STATE | NOEDIT | REDUTRANSFER | |
| GraphName | Val | |
| Body | RtBody | |
Output that contains the string.
| PlcNode Buffer | ||
|---|---|---|
| Class | Buffer | |
| Type | PlcNode | |
| Flags | INVISIBLE | |
| Body | DevBody | |