EasyManua.ls Logo

Eaton ELC-PB - 3.3 Pointers

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...
ELC Programming Manual
For more information visit: www.eaton.com MN05003003E
3-12
3.3 Pointers
Mnemonic Function Program steps
P
Pointer (P0~P255) 1
ELC ELCB ELCM
PB PC/PA/PH PV PB PH/PA
Description:
Pointers are used with the jump instructions (CJ, CALL) to jump to another area of logic or to call a
subroutine. Pointer numbers can only be used once.
Program Example 1:
Y1
X1
P10
X0
CJ P10
Instruction: Operation:
LD X0 ; Load A contact of X0
CJ P10 ; Jump from CJ to P10
:
P10
; Pointer P10
LD X1 ; Load A contact of X1
OUT Y1 ; Drive Y1 coil
Program Example 2:
FEND
CALL
P9
P9
M1013
Y20
SRET
X0
Instruction: Operation:
LD X0 ; Call the Subroutine P9 when X0 is ON
CALL P9 ; Jump from CALL to P9
:
FEND ; Program end
P9
; Pointer P9
LD M1013 ; Load A contact of M1013
OUT Y20 ; Drive Y20 coil
:
SRET ; Subroutine return
Available devices:
1. ELC-PB and ELCB-PB have 64 pointers; available from the range of P0 to P63.
2. ELC-PC/PA/PH/PV and ELCM-PH/PA have 256 pointers; available from the range of
P0~P255.

Related product manuals