EasyManua.ls Logo

Eaton ELC-PB - Page 176

Eaton ELC-PB
728 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
3. Instruction Set
MN05003003E For more information visit: www.eaton.com
3-7
Program Example:
X0
Y1
X1
M0
X2
Y2
END
MPP
MRD
MPS
Instruction: Operation:
LD X0 ; Load contact A of X0
MPS
; Save to stack
AND X1 ; Connect to contact A of X1 in series
OUT Y1 ; Drive Y1 coil
MRD
; Read from stack
AND X2 ; Connect to contact A of X2 in series
OUT M0 ; Drive M0 coil
MPP
; Read from stack and pop pointer
OUT Y2 ; Drive Y2 coil
END ; Program end
MPS, MRD and MPP usage:
1. When writing a program in ladder format, programming tools automatically add all MPS, MRD
and MPP instructions at the program conversion stage. If the generated instruction program
is viewed, the MPS, MRD and MPP instructions are present.
2. When writing a program in instruction format, it is entirely up to the user to enter all relevant
MPS, MRD and MPP instructions as required.
Mnemonic Operands Function Program steps
OUT
X, Y, M, S, T, C Output coil 1
ELC ELCB ELCM
PB PC/PA/PH PV PB PH/PA
Use the OUT Instruction to turn a bit on when the conditions preceding it are evaluated as true.
Program Example:
X0 X1
Y1
Instruction: Operation:
LDI X0 ; Load contact B of X0
AND X1 ; Connect to contact A of X1 in series
OUT Y1
; Drive Y1 coil

Related product manuals