| Volume pwrb | |
| Attributes: Runtime | Development | System | Template | Detail C Binding: Struct | Class | Code  ClassTree | INDEX NO INDEX |
Class GetIpToA
|
||
|---|---|---|
| Version | 1.0 | |
| Modified | 08-MAR-2026 11:05:32.00 | |
| Code | rt_plc_macro_io.h | |
Get Integer parameter and convert to analog value.

Fetches the value of a 32-, 16- or 8-bits integer parameter in arbitrary object. The complete name of the attribute has to be supplied.Example
In the example below the value of the integer parameter, AccMod is stored: - unconditionally by StoAtoIp - conditionally by CStoAtoIp The value is also unconditionally stored as a pwr_tFloat32 on an attribute pwr_tFloat32 in the object named TIC2M

| RtBody attributes pwr_sClass_GetIpToA | |||
|---|---|---|---|
| Float32 | ActVal | VAL | Used by the PLC Editor. |
| DevBody attributes | |||
|---|---|---|---|
| AttrRef | IpObject | VAL | Used by the PLC Editor. Specifies the name of the actual attribute. |
| Int32 | IpObjectSegments | Specifies how many segments of the actual object name that is to be displayed in the symbol of the GetDp object. The segments are counted from behind. 0 and 1 both result in displaying the last segment of the actual object name. |
|
| PlcNode | PlcNode | ||
| GraphPlcNode | |
|---|---|
| object_type | 252 |
| 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 | 36 |
| compindex | 0 |
| tracemethod | 0 |
| traceindex | 0 |
| connectmethod | 7 |
| executeordermethod | 2 |
| objname | GetIpToA |
| graphname | GetIpToA |
| debugpar | |
| Template Object | |
|---|---|
| IpObjectSegments | 2 |
| ActVal Output | ||
|---|---|---|
| Class | Output | |
| Type | Float32 | |
| Flags | STATE | NOEDIT | REDUTRANSFER | |
| GraphName | VAL | |
| Body | RtBody | |
Used by the PLC Editor.
| IpObject Intern | ||
|---|---|---|
| Class | Intern | |
| Type | AttrRef | |
| Flags | ||
| GraphName | VAL | |
| Body | DevBody | |
Used by the PLC Editor. Specifies the name of the actual attribute.
| IpObjectSegments Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Int32 | |
| Flags | ||
| Body | DevBody | |
Specifies how many segments of the actual object name that is to be displayed in the symbol of the GetDp object. The segments are counted from behind. 0 and 1 both result in displaying the last segment of the actual object name.
| PlcNode Buffer | ||
|---|---|---|
| Class | Buffer | |
| Type | PlcNode | |
| Flags | INVISIBLE | |
| Body | DevBody | |