Chapter 4. Ladder Diagram (LD) Programming160 PACSystems* RX7i, RX3i and RSTi-EP CPU Programmer's Reference Manual GFK-2950C4.8.11 MoveWhen the MOVE function receives power flow, it copies data as individualbits from one location in PLC memory to another. Because the data iscopied in bit format, the new location does not need to be the same datatype as the original.The MOVE function copies data from input operand IN to output operandQ as bits. If data is moved from one location in BOOL (discrete) memoryto another, for example, from %I memory to %T memory, the transitioninformation associated with the BOOL memory elements is updated toindicate whether or not the MOVE operation caused any BOOL memoryelements to change state. Data at the input operand does not changeunless there is an overlap in the source and destination.Mnemonics:MOVE_BOOLMOVE_DINTMOVE_DWORDMOVE_INTMOVE_REALMOVE_UINTMOVE_WORDNote: If an array of BOOL-type data specified in the Q operand does not include all the bits in abyte, the transition bits associated with that byte (which are not in the array) are clearedwhen the Move function receives power flow. The input IN can be either a variable providinga reference for the data to be moved or a constant. If a constant is specified, then theconstant value is placed in the location specified by the output reference. For example, if aconstant value of 4 is specified for IN, then 4 is placed in the memory location specified by Q.If the length is greater than 1 and a constant is specified, then the constant is placed in thememory location specified by Q and the locations following, up to the length specified. Donot allow overlapping of IN and Q operands.The result of the MOVE depends on the data type selected for the function, as shown below. Forexample, if the constant value 9 is specified for IN and the length is 4, then 9 is placed in the bitmemory location specified by Q and the three locations following:MOVE BOOL MOVE WORDEnable MOVEBOOL4OK9 OutputIN QEnable MOVEWORD4OK9 OutputIN Q1 2 3 4MSB LSB(Length = 4 bits)9999(Length = 4 words)The MOVE function passes power to the right whenever it receives power.