REG_REAL (file, element)
REG_DINT (file, element)
REG_DWORD (file, element)
Represents the register at the specified IEC address %MDfile.element.
Parameters
File(DINT)
The file portion of the address.
Element(DINT)
The element portion of the address.
Returns
Represents the register at the specified IEC address %MDfile.element. The function determines the returned data type:
REG_REAL: REAL
REG_DINT: DINT
REG_DWORD: DWORD
Remarks
This function is not intended for common use. All RMC registers can be addressed directly, making this function unnecessary in most applications. This function is intended for the rare cases in which it is necessary to calculate an address mathematically or address a register regardless of the data type or tag name.
The data type of the specified IEC address will be the external data type as specified in the RMC register map. This data type need not match the returned data type. The bits of the register will be preserved. That is, the data will not be converted.
Examples
MyReal := REG_REAL(num1 + 10,num2 + 8);
REG_REAL(10,8) := 20.0;
Accessing the axis' Scale parameter on an RMC75, given the axis number:
REG_REAL(12+MyAxis, 0) := 0.003;
See Also
IEC Addressing | RMC75 Register Map | RMC150 Register Map | Standard Functions
Copyright © 2024 Delta Computer Systems, Inc. dba Delta Motion