163
6-3. Description of High-level Instructions
Description
• The hexadecimal digits in the 16-bit data or in the 16-bit equivalent constant specified by S are
copied to the 16-bit area specified by D according to content specified by n when the trigger
turns ON.
■
How to specify the n
• The hexadecimal digit position of 16-bit data
is specified as shown on the right.
• The n specifies source and destination hexadecimal digit positions and number of digits to be
copied using hexadecimal data as follows:
Note:
■
Flag condition
• Error flag (R9007):
Turns ON and keeps the ON state when the area specified using the index
modifier exceeds the limit. The error address is transferred to DT9017
and held. (See notes below.)
• Error flag (R9008):
Turns ON for an instant when the area specified using the index modifier
exceeds the limit. The error address is transferred to DT9018. (See notes
below.)
Notes:
• Special data registers DT9017 and DT9018 are available only for FP1s with CPU
version 2.7 or later. (All FP1s with a suffix “B” on the part number have this function.)
• When using special internal relay R9008 as the flag for this instruction, be sure to
program the flag at the address immediately after the instruction.
• Refer to page 223, “8-3. Table of Special Internal Relays”, for details about error
flags.
• If the value for
1
,
2
, and
3
is 0, such as “H0000” in the example program on the
previous page, use the short form, “H0”.
1
Source: Starting hexadecimal digit position (H0 to H3)
H0: Hexadecimal digit 0
H1: Hexadecimal digit 1
H2: Hexadecimal digit 2
H3: Hexadecimal digit 3
n : H 0
2
Number of hexadecimal digits to be copied (H0 to H3)
H0: Copies 1 hexadecimal digits (4 bits)
H1: Copies 2 hexadecimal digits (8 bits)
H2: Copies 3 hexadecimal digits (12 bits)
H3: Copies 4 hexadecimal digits (16 bits)
3
Destination: Starting hexadecimal digit position (H0 to H3)
H0: Hexadecimal digit 0
H1: Hexadecimal digit 1
H2: Hexadecimal digit 2
H3: Hexadecimal digit 3
11
8
3
0
15
•
•
12
•
•
•
•
7
4
•
•
0 0 0 0 0 0 0 1 0 1 0 0 1 0 0 1
Hexadecimal
digit 3
Hexadecimal
digit 2
Hexadecimal
digit 1
Hexadecimal
digit 0
16-bit data
Summary of Contents for FP1
Page 1: ...PROGRAMMABLE CONTROLLER FP1 is a global brand name of Matsushita Electric Works Hardware ...
Page 28: ...20 ...
Page 98: ...90 ...
Page 150: ...142 ...
Page 208: ...200 ...
Page 226: ...218 ...
Page 280: ...272 ...