Detailed description
Original instructions
Function description
WARNING
FORCED VALUES NOT TAKEN INTO ACCOUNT
This procedure overwrites the values in State memory WITHOUT regard to possible forced values in the reference data editor. This can produce serious process conditions.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
IEC_BMDI_M creates a word-by-word copy of the number of elements listed in LENGTH from the OFF_IN position in the source table (SEL_IN) to the OFF_OUT position in the destination table (SEL_OUT). While copying, LENGTH always uses the type of SEL_IN for orientation (%IX, %MX: LENGTH = Number of Bits; %IW, %MW: LENGTH = number of words)
Copy behavior:
Example 1
In the example, 64 %MX source bits from start address %MX129 are copied into the %MW destination register (starting at address %MW112). The input range is %MX129 to %MX192 and the output range is %MW112 to %MW115.
Example 2
In the example, 11 %MW source bits from start address %MW250 are copied into the %MX destination register (starting at address %MX257). The input range is %MW250 to %MW260 and the output range is %MX257 to %MX432.
Example 3
In the example, 128 %MX source bits from start address %MX001 are copied into the %MX destination register (starting at address %MX257). The input range is %MX001 to %MX127 and the output range is %MX257 to %MX384.
Example 4
In the example, 15 %MW source bits from start address %MW250 are copied into the %MW destination register (starting at address 4:01030). The input range is %MW250 to %MW264, and the output range is 4:01030 to 4:01044.