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-18
5.
If the 32-bit counters (C200~C255) are used as Data registers, each counter is a 32-bit
counter. Only instructions using 32-bit operands can be assigned.
Operand Data format
1.
X, Y, M, S are bit addresses and are either ON/OFF.
2.
16-bit (or 32-bit) addresses T, C, D, E, F are data registers and are defined as word or double
word addresses.
3.
If a Kn is placed in front of X, Y, M and S it will be defined as a word device, where n=1 means
4-bits. So 16-bits are defined from K1 to K4, and 32-bits are defined from K1 to K8. For
example, K2M0 represents 8-bits from M0 to M7.
X0
K2M0
D10
MOV
When X0=ON, move the contents of M0 to M7
to D10 bits 0 to 7, and bits 8 to 15 are set to 0.
Kn values
16-bit instruction
32-bit instruction
Specified Number of Digits (16-bit instruction):
K-32,768~K+32,767
Specified Number of Digits (32-bit instruction):
K-2,147,483,648~K+2,147,483,647
16-bit instruction: (K1~K4)
32-bit instruction: (K1~K8)
K1 (4 points)
0~15
K1 (4 points)
0~15
K2 (8 points)
0~255
K2 (8 points)
0~255
K3 (12 points)
0~4,095
K3 (12 points)
0~4,095
K4 (16 points)
-32,768~+32,767
K4 (16 points)
0~65,535
K5 (20 points)
0~1,048,575
K6 (24 points)
0~167,772,165
K7 (28 points)
0~268,435,455
K8 (32 points)
-2,147,483,648~+2,147,483,647
Flags
1. General
Flags
The following flags are available for the ELC:
M1020: Zero flag
M1021: Borrow flag
M1022: Carry flag
M1029: Instruction execution completed flag
When executing an instruction, all flags will be turned to ON or OFF according to the operation
result of the instruction. However, if the instruction is not executed, the ON/OFF state of the
flags will remain unchanged.
Содержание 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...