
B-63943EN-2/01 6.MACRO EXECUTOR FUNCTION
- 177 -
NOTE
1 Data cannot be specified in bit units.
2 If the specified data exceeds the byte length
specified for address L, only the specified byte
length of data is written and no error handling is
performed.
In the example shown on the previous page, if "L1"
is specified, the lowest byte (0CH) of -500.0 is
written in D300 only.
PMC address reading
- Format
G310 Dd Pp Ll ;
G310 Rr
Pp Ll ;
G310 Cc Pp Ll ;
G310 Kk Pp Ll ;
G310 Tt
Pp Ll ;
D : PMC address D
R : PMC address R
C : PMC address C
K : PMC address K
T : PMC address T
P : Number of the variable in which data is to be set
L:Data size
By specifying a variable number for address P with the control code
(G310) command, data can be read from PMC addresses D, R, C, K,
and T. By using address L, 2/4-byte data can be read as a batch.
The data that has been read is regarded to be binary format data with
the specified byte length, converted, and stored in the variable
specified for address P. If the data to be read is more than a word, the
data from the lowest address is written to the lowest byte, the data
from the second lowest address to the second lowest byte, and so on.
Example
Assume that the PMC data area (D400 and D401)
contains the following data:
D400 = 0Ch
D401 = Feh
and that the following is issued:
G310 D400 P101 L2;
then, "-500.0" is input to variable #101.
6.4.1 Differences from the Series 16i
Function
Series 16i Series 30i
Writing data to and reading
data from the PMC
The readable and writable addresses are
D, R, C, and K.
The readable and writable addresses are
D, R, C, K, and T.