![background image](http://html1.mh-extra.com/html/eaton/elc-pb/elc-pb_programming-manual_4017452105.webp)
EL C Pro g rammi ng Manu al
F O R MORE INFORM AT ION VISIT: WWW.E ATON.COM MN05003003E
2-76
2.15 E, F Index Registers
An Index register functions the same way as a general operand. It can be used to move, compare,
or be used as an index for byte device (KnX, KnY, KnM, KnS, T, C, D) and bit device (X, Y, M, S). It
cannot be used for constant (K, H). For ELC-PV controllers, it can be used for constant (K, H).
Index register [E], [F]
Index registers are 16-bit registers. There are 2 points, E0 and F0, for ELC-PB, ELCB-PB
controllers. There are 8 points, E0~E3 and F0~F3, for ELC-PC/PA/PH controllers. There are 16
points, E0~E7 and F0~F7, for ELC-PV, ELCM-PH/PA controllers. If you want to use index register
to be a 32-bit register, you should indicate E and at this moment F cannot be used.
Example: ”MOV K10 D0F0”
Index registers E, and F are 16-bit data registers, similar to the general data register. They are
read/write.
They can be used as a 32-bit register.
F0
E0
E0
F0
16-bit
16-bit
32-bit
lower bit
upper bit
It is recommended to use the instruction DMOVP K0 E to clear E and F to 0 at power on.
The combination of E and F when used as a 32-bit register are:
(E0, F0) , (E1, F1) (E2, F2) (E3, F3) (E4, F4) , (E5, F5) (E6, F6) (E7, F7)
When X0=ON, if E0=8, and F0=14,
D5E0=D(5+8)=D13,
D10F0 =D(10+14) = D24,
the contents of D13 will be moved to D24.
K14
F0
X0
K8
E0
MOV
D5E0
D10F0
MOV
MOV
2.16 File Register
There are 1600 file registers (K0~K1599) for ELC-PC/PA/PH controllers. There are 10000 file
registers (K0~K9999) for ELC-PV controllers. There is no device number (name) for file register; to
execute read/writes of file register use instruction MEMR or MEMW, peripheral device ELCSoft.
The other controllers are not support.
The ELC will check the following when the ELC is powered on.
Содержание 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...