Class AtoI
Version 1.0
Modified 08-MAR-2026 11:05:32.00
Code rt_plc_macro_io.h
 Convert analog value to integer.

 The AtoI object converts the value of the analog input to
 an integer (pwr_tInt32) stored in ActVal.
 The analog value is rounded to closest integer value.

RtBody attributes pwr_sClass_AtoI
Float32 In In Analog input that will be converted to integer.
Int32 ActVal Val Output that contains the integer.

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


Attributes detail


In Input
Class Input
Type Float32
Flags STATE | RTVIRTUAL | NOEDIT | NOREMOVE
GraphName In
Body RtBody
 Analog input that will be converted to integer.

ActVal Output
Class Output
Type Int32
Flags STATE | NOEDIT | REDUTRANSFER
GraphName Val
Body RtBody
 Output that contains the integer.

PlcNode Buffer
Class Buffer
Type PlcNode
Flags INVISIBLE
Body DevBody