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-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.
Содержание 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...