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

The DtoStr object converts the value of the digital input to a 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_DtoStr | |||
|---|---|---|---|
| Boolean | In | In | Digital 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 | DtoStr |
| graphname | DtoStr |
| Template Object | |
|---|---|
| Format | %d |
| In Input | ||
|---|---|---|
| Class | Input | |
| Type | Boolean | |
| Flags | STATE | RTVIRTUAL | NOEDIT | NOREMOVE | |
| GraphName | In | |
| Body | RtBody | |
Digital 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 | |