| Volume pwrb | |
| Attributes: Runtime | Development | System | Template | Detail C Binding: Struct | Class | Code  ClassTree | INDEX NO INDEX |
Class AtoI
|
||
|---|---|---|
| Version | 1.0 | |
| Modified | 15-JAN-2025 13:23:34.00 | |
| Kod | rt_plc_macro_io.h | |
Konvertera analogt värde till heltal.

AtoI objektet konverterar värdet av den analoga ingången till heltal (pwr_tInt32) som lagras i ActVal. Det analoga värdet avrundas till närmsta heltal.
| RtBody attributes pwr_sClass_AtoI | |||
|---|---|---|---|
| Float32 | In | In | Analog ingång som konverteras till heltal. |
| Int32 | ActVal | Val | Utgång som innehåller heltalet. |
| DevBody attributes | |||
|---|---|---|---|
| PlcNode | PlcNode | ||
| GraphPlcNode | |
|---|---|
| object_type | 11 |
| parameters[0] | 1 |
| parameters[1] | 0 |
| 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 | AtoI |
| graphname | AtoI |
| In Input | ||
|---|---|---|
| Klass | Input | |
| Typ | Float32 | |
| Flags | STATE | RTVIRTUAL | NOEDIT | NOREMOVE | |
| GraphName | In | |
| Kropp | RtBody | |
Analog ingång som konverteras till heltal.
| ActVal Output | ||
|---|---|---|
| Klass | Output | |
| Typ | Int32 | |
| Flags | STATE | NOEDIT | REDUTRANSFER | |
| GraphName | Val | |
| Kropp | RtBody | |
Utgång som innehåller heltalet.
| PlcNode Buffer | ||
|---|---|---|
| Klass | Buffer | |
| Typ | PlcNode | |
| Flags | INVISIBLE | |
| Kropp | DevBody | |