| Volume pwrb | |
| Attributes: Runtime | Development | System | Template | Detail C Binding: Struct | Class | Code  ClassTree | INDEX NO INDEX |
Class DtoStr
|
||
|---|---|---|
| Version | 1.0 | |
| Modified | 15-JAN-2025 13:23:35.00 | |
| Kod | rt_plc_macro_string.h | |
Konvertera digitalt värde till sträng.

DtoStr objektet konverterar värdet på den digitala ingången till en sträng som lagras i ActVal. Observera att felaktiga format specifikationer kan få plc-programmet att terminera. Storleken på den resulterande strängen ska inte överskrida 79 tecken.
| RtBody attributes pwr_sClass_DtoStr | |||
|---|---|---|---|
| Boolean | In | In | Digital ingång som konverteras till sträng. |
| String80 | Format | c-format som specificerar konverteringen. | |
| String80 | ActVal | Val | Utgång som innehåller strängen. |
| 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 | ||
|---|---|---|
| Klass | Input | |
| Typ | Boolean | |
| Flags | STATE | RTVIRTUAL | NOEDIT | NOREMOVE | |
| GraphName | In | |
| Kropp | RtBody | |
Digital ingång som konverteras till sträng.
| Format Intern | ||
|---|---|---|
| Klass | Intern | |
| Typ | String80 | |
| Flags | ||
| Kropp | RtBody | |
c-format som specificerar konverteringen.
| ActVal Output | ||
|---|---|---|
| Klass | Output | |
| Typ | String80 | |
| Flags | STATE | NOEDIT | REDUTRANSFER | |
| GraphName | Val | |
| Kropp | RtBody | |
Utgång som innehåller strängen.
| PlcNode Buffer | ||
|---|---|---|
| Klass | Buffer | |
| Typ | PlcNode | |
| Flags | INVISIBLE | |
| Kropp | DevBody | |