![background image](http://html1.mh-extra.com/html/eaton/elc-pb/elc-pb_programming-manual_4017452385.webp)
E L C P r o g r a m m i n g M a n u a l
F o r m o r e i nf o r m a t i o n v i sit :
w w w. e a t o n . c o m
MN05003003E
3-216
API Mnemonic
Operands
Function
78
D FROM P
m
1
, m
2
, D, n
Read CR from Module
Bit Devices
Word devices
Program Steps
Type
OP
X Y M S K H KnX
KnY
KnM KnS T
C D E
F
m
1
*
*
*
m
2
*
*
*
D
*
*
*
*
*
*
*
*
n
*
*
*
FROM, FROMP: 9 steps
DFROM, DFROMP: 17
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:
m
1
: Specialty module number
m
2
: CR (Control Register) number in the specialty module
D
: Location to save the read data
n
: number of data words to read
Description:
1.
The ELC uses this instruction to read CR data from specialty modules.
2. Range
of
m
1
(16-bit and 32-bit): for ELC-PB/PC/PA/PH, ELCB-PB, ELCM-PH/PA: 0 ~ 7, for
ELC-PV: 0 ~ 7, 100 ~ 107 (0-7 are right-side modules and 100-107 are left-side modules).
3. Range
of
m
2
(16-bit and 32-bit): for ELC-PB/PC/PA/PH, ELCB-PB: 0 ~ 48, for ELC-PV: 0 ~
499, for ELCM-PH/PA: 0 ~ 255.
4.
Range of n:
a) 16-bit: for ELC-PB/PC/PA/PH, ELCB-PB: 1 ~ (49 –
m
2
), for ELC-PV: 1 ~ (500 –
m
2
) , for
ELCM-PH/PA: 1 ~4
b) 32-bit: for ELC-PB/PC/PA/PH, ELCB-PB : 1 ~ (49 –
m
2
)/2, for ELC-PV: 1 ~ (500 –
m
2
)/2,
for ELCM-PH/PA: 1 ~2.
5. When
D
indicates a bit device operand, use K1~K4 for the16-bit instruction and K5~K8 for the
32-bit instruction.
6.
Flag: When M1083=ON, it enables interrupts during the execution of the FROM/TO
instructions.
7.
ELC-PB, ELCB-PB series doesn’t support the index registers E, F.
Program Example:
1.
Read the contents of CR#29 and CR#30 from specialty module#0 and place the data in D0
and D1.in the ELC controller. 2 words are read because
n
=2.
2.
The instruction will be executed when X0=ON.
X0
FROM
K0
K29
D0
K2
Содержание 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...