3 . I n s t r u c t i o n S e t
M N050 03003E F or mo re infor ma tio n vi sit:
w w w. e a t o n . c o m
3-217
API Mnemonic
Operands
Function
79
D
TO
P
m
1
, m
2
, S, n
Write CR to 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
*
*
*
S
*
*
*
*
*
*
*
*
*
*
*
n
*
*
*
TO, TOP: 9 steps
DTO, DTOP: 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 of the special module
S
: Data address of the data to write to the specialty module
n
: Number of words to write
Description:
1. 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).
2. 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.
3.
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.
4. When
S
is a bit operand, K1~K4 can be used for 16-bit instruction and K1~K8 can be used for
32-bit instruction.
5.
Flag: M1083 FROM/TO mode exchange.
6.
ELC-PB, ELCB-PB series doesn’t support the index registers E, F.
Program Example:
1.
Using the 32-bit instruction DTO, the program will write D11 and D10 into CR#13 and CR#12
of the specialty module#0.
2.
The instruction will be executed when X0=ON.
X0
DTO
K0
K12
D10
K1
The rule of instruction operand:
1.
m
1
: The number of the specialty module. The right specialty module closest to the ELC
controller will be assigned 0, the next closest will be assigned 1, etc. for a maximum of 8
Summary of Contents for ELC-PB
Page 1: ......
Page 5: ...For more information visit www eaton com MN05003003E iv...
Page 29: ...ELC Programming Manual For more information visit www eaton com MN05003003E 1 24 MEMO...
Page 502: ...3 Instruction Set MN05003003E For more information visit www eaton com 3 333...
Page 601: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 432...
Page 625: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 456...