3 . I n s t r u c t i o n S e t
M N 0 5 0 0 3 0 0 3 E F o r m o r e i n f o r m a t i o n v i s i t :
w w w. e a t o n . c o m
3 - 3 3 9
API Mnemonic
Operands
Function
149
D MEMW P
S, m, n
File Memory Write
Bit Devices
Word devices
Program Steps
Type
OP
X Y M S K H KnX KnY KnM KnS T
C
D
E
F
S
*
m
*
*
*
n
*
*
*
MEMW, MEMWP: 7 steps
DMEMW, DMEMWP: 13 steps
ELC ELCB
ELCM
PB PC/PA/PH
PV
PB PH/PA
32
16
P
32
16
P
32
16
P
32 16
P
32
16
P
Operands:
S
: Address for storing the data to be written to the file register
m
: Constant offset into the file
register
n
: Quantity of data to be written to the file register
Description:
1.
Range of S: D2000 ~ D4999 (ELC-PC/PA/PH); D2000 ~ D9999 (ELC-PV)
2.
Range of m: K0 ~ K1,599 (ELC-PC/PA/PH); K0 ~ K9,999 (ELC-PV)
3.
Range of n: For 16-bit instruction K1 ~ K1,600 (ELC-PC/PA/PH), K1 ~ K8,000 (ELC-PV); For
32-bit instruction K1 ~ K800 (ELC-PC/PA/PH), K1 ~ K4,000 (ELC-PV)
4.
ELC-PC/PA/PH uses this instruction to write data register data into file registers.
5.
ELC-PC/PA/PH allows for writing a maximum of 1,600 16-bit file registers.
6.
ELC-PV allows for writing a maximum of 10,000 16-bit file registers.
7.
m
and
n
of ELC-PC/PA/PH do not support E and F index registers.
8.
If operands m, D and n are out of range, an operand error will occur. M1067, M1068= ON and
error code 0E1A will be recorded in D1067.
9.
Flag: M1101, please refer the Note below .
Program Example:
1.
When X0= ON, the double word instruction DMEMW is executed. Write 100 32-bit data words
starting from D2001, D2000 into the file register address 0 to 199.
2.
When X0= ON, the instruction is executed. When X0 goes to OFF, the instruction is not
executed.
X0
DMEMW
D2000
K0
K100
File Register Notes:
1.
ELC-PC/PA/PH series, when the ELC starts up, it will determine the state of M1101 and the
contents of D1101 (file register provides numbers, K0~K1,599), D1102 ( the number of file
registers to be read, K1~K1,600), D1103 (destination address which stores the read data from
the file register, specified by a data register D number, K2,000~K4,999) and automatically
transfers the contents of the file register to the specified data register.
Содержание ELC-PB
Страница 1: ......
Страница 5: ...For more information visit www eaton com MN05003003E iv...
Страница 29: ...ELC Programming Manual For more information visit www eaton com MN05003003E 1 24 MEMO...
Страница 502: ...3 Instruction Set MN05003003E For more information visit www eaton com 3 333...
Страница 601: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 432...
Страница 625: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 456...