Ceil function, Copy function, Ceil( a ) – Delta RMC151 User Manual
Page 362: Copy( src , dst, Len )
RMC70/150 and RMCTools User Manual
5.14.2.8. CEIL Function
CEIL(a)
Rounds a to the next greater (most positive) integer.
Parameters
a (REAL)
The input value.
Return Value
Returns a REAL.
Examples
CEIL(12.1) returns 13
CEIL(-5.2) returns -5
5.14.2.9. COPY Function
COPY(src, dst, len)
Copies up to 32 contiguous registers from src to dst. Both src and dst must be located in the
variable table. Len specifies the number of registers to be copied.
This command is useful when sending large blocks of data to the variable table via some
communications types, and that data needs to be moved around. This applies especially to
PROFIBUS, PROFINET or EtherNet/IP I/O modes that use the variable table.
Parameters
Src (Address)
The address of the first item of the source data to be copied. The source must a location
in the variable table.
Dst (Address)
The address of the first item of the destination to which data will be copied. The
destination must be a location in the variable table.
Len (DINT)
The number of registers to be copied. A maximum of 32 registers can be copied. Each
register is 32 bits.
Returns
The COPY function does not return a value.
Remarks
The data types of the src and dst registers do not need to match. COPY preserves the
bits in the registers that are copied. That is, it does not convert the data.
Best programming practice is to set up the data in arrays, and copy from and to arrays.
This is usually the cleanest and most manageable method. The RMC also provides the
ADDR_OFS function to help copying blocks of individual variables. See Using COPY with
the ADDR_OFS Function below for details and examples.
The RMC will not range-check arrays in the Variable Table when copying to or from them.
If the len is longer than the array, it will copy beyond the end of the array.
The RMC will range-check local arrays when copying to or from them. This includes arrays
declared in user functions or in user program steps.
342
Delta Computer Systems, Inc.