
B–62073E–2/03
4.CONVERSATIONAL MACRO FUNCTION
123
parameter 8507 is set to 0, the data is arranged in the same sequence
as in PMC–NA format. If the system features PMC–NB, and if bit
4 of parameter 8507 is set to 1, the bytes are arranged in a sequence
such that the low–order byte is assigned the lowest address, while the
high–order byte is assigned the highest address.
Example:
When the PMC data area (D400 and D401) is as follows:
Bit 7 6 5 4 3 2 1 0
D400
D401
1
0
1
0
1
0
1
0
1
1
1
1
1
0
0
0
Executing the following control code inputs –500,0 into #101:
G310 D400 P101 L2;
Notes
1 One–byte data can be read using the PMC address function. However, since data is converted
to a two’s complement with a sign, the wrong data may be read.
2 Address Q specifies write control, while address P specifies read control. When both
addresses are specified, write control is executed.
3 Addresses other than D, R, C, and K (namely, X, Y, G, and F etc...
) cannot be used in the control
codes.
4 Address L specifies one of three different byte lengths: 1, 2, and 4 bytes. When a value other
than 2 or 4 is specified or when this address is omitted, data is read or written as one–byte data.
5 When L2 or L4 is specified, and a command for reading or writing odd–number values of
addresses D, R, C, and K is issued, the values are read and written at the following timings:
L2: 1 byte – 1 byte
L4: 1 byte – 2 bytes – 1 byte
In this case, 2–byte or 4–byte data read or write is not performed at the same timing.
6 When 0, 4, 8, etc. is specified in address R with address L set to L4, data is read or written at
the timing of 2 bytes – 2 bytes. Four–byte data read or write is not performed at the same timing.
When 2, 6, 10, etc. is specified in address R, 4–byte data read and write are performed at the
same timing.
When 0, 4, 8, etc. is specified in address D, 4–byte read and write are performed at the same
timing.
When 2, 6, 10, etc. is specified in address D, data is read or written at the timing of 2 bytes –
2 bytes. Four–byte data read or write is not performed at the same timing.
7 The table below shows the specifiable range for each PMC address. Make sure that the
specified value is within the allowable range because a value outside the range can cause an
erroneous data write operation.
Address PMCNA PMCNB
R
D
K
C
0 to 999
0 to 1859
0 to 19
0 to 79
0 to 1499
0 to 2999
0 to 19
0 to 79
This function is available only for BMI interface
The remaining shift amount of each CNC control axis can be read in the
form of a variable by using the conversational or auxiliary macro.
#5181: Remaining shift amount of axis 1
#5182: Remaining shift amount of axis 2
:
#5195: Remaining shift amount of axis 15
4.5.27
Variable for Reading
Remaining Shift
Amount