Mitsubishi Electronics FX2C Home Theater Server User Manual


 
FX Series Programmable Controllers Devices in Detail 4
4-10
4.5 Pointers
Device Mnemonic:
P
Purpose:
Pro
g
ram flow control
Alias: Pointer
Pro
g
ram pointer
P
Available forms:
Label: appears on the left of the left hand bus bar when the pro
g
ram is
viewed in ladder mode.
Devices numbered in:
Decimal, i.e. P0 to P9, P10 to P19
Further uses:
Can be used with conditional
j
ump statements (CJ function 00)
- see pa
g
e 5-5 and item on the example device usa
g
e dia
g
ram.
Can be used with call statements (CALL function 01 -not available on FX0 and
FX0N PLC’s)
- see pa
g
e 5-7 and item on the example device usa
g
e dia
g
ram
Example device usage:
Available devices:
•FX
0(S)
, FX
0N
and FX PLC’s have 64 pointers; available from the ran
g
e of P0 to P63.
•FX
(2C)
and FX
2N(C)
PLC’s have 128 pointers; available from the ran
g
e of P0 to P127.
Jumping to the end of the program:
When usin
g
conditional
j
ump instructions (CJ, function 00) the pro
g
ram end can be
j
umped to automaticall
y
b
y
usin
g
the pointer P63 within the CJ instruction. Labellin
g
the
END instruction with P63 is not required.
Device availability:
For more information about device availabilit
y
for individual PLC’s, please see chapter 8.
X20
CJ P0
1
P0
X20
CALL P1
2
P1
SRET
FEND