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-15
3.5 Application Programming Instructions
1.
ELC instructions each have a unique mnemonic. Most instructions are also given a number so
the ELC knows how to execute the instruction. In the example below the numerical value
given to the instruction is 00, also called the API (Application Programming Instruction)
number. The mnemonic name is CJ and the function is Conditional Jump.
API Mnemonic
Operands
Function
00
CJ P
S
Conditional Jump
OP Range Program
Steps
S
P0~P255
CJ, CJP: 3 steps
2.
The table will be found at the beginning of each new instruction description. The area
identified as ‘Operands’ will list the various operands that can be used with the instruction.
Various identification letters will be used to associate each operand with its function, i.e.
D-destination, S-source, n, m-number of elements. Additional numeric suffixes will be
attached if there are more than one operand with the same function.
3.
When using ELCSoft to create the application it is not necessary to remember the API number
of an instruction since ELCSoft uses a drop down list to select an instruction or there is a
button on the toolbar for the instruction.
4.
Not all instructions and conditions apply to all ELC’s models. Applicable controllers are
identified by the boxes at the bottom right hand corner of the table. For more detailed
information on each instruction, a second indicator box is used to identify the availability of
pulse (P), single word (16) and double word (32) format.
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
5.
No modification of the instruction mnemonic is required for 16 bit operation. However, pulse
operation requires a ‘P’ to be added directly after the mnemonic while 32 bit operations require
a ‘D’ to be added before the mnemonic. This means that if an instruction is being used with
both pulse and 32 bit operation it would look line…D***P where *** was the basic mnemonic.
Instruction Composition
Instructions consist of either just the instruction or the instruction followed by operand parameters
command
operand
X0
K10
D10
MOV
S
D
Command : Indicates the instruction type
Operand
: Indicates additional parameters needed
Содержание 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...