Panasonic FP-E Programming Manual page 1046

Fp series
Table of Contents

Advertisement

High−level Instructions
F411
(CHGB)
P411
(PCHGB)
Outline
Index register bank number change over with remembering preceding
bank number.
Program example
Trigger
R0
10
F411 CHGB, K 2
n
Operands
Relay
Operand
Operand
WX WY WR WL
n
A
A
Description
This instruction selects the current index register bank number.
At this time, the current index bank number is stored in the push area (the push area has only one effective
level, thus previous data is overwritten).
The bank numbers of index registers used in interrupt programs, subroutines, and other sub programs
should be specified in such a way that the F411 (CHGB) instruction is executed at the beginning of the sub
program, and the F412 (POPB) instruction is executed at the end of the sub program.
Precautions during programming
The bank number is automatically set to bank 0 before execution of the starting address of the program.
If the program memory is 120K steps, when the program is switched to the No. 1 program or the No. 2
program, the index register bank number is automatically set to 0.
The push area has only one effective level, thus the previous data is overwritten.
3 − 782
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
Changing the index register bank number
Ladder Diagram
Ladder Diagram
n
Constant data or area where register bank number is stored.
Timer/Counter
SV
EV
A
A
A
A
Index
Register
register
DT
LD
FL
I
A
A
A
A
Boolean
Address
Instruction
10
ST
R
11
F411 (CHGB)
K
Constant
Index
Integer
modifier
modifier device
K
H
f
A
A
N/A
A
A:
Available
N/A: Not Available
0
2
device
N/A

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fp0Fp2Fp2shFp0rFrsFp10sh ... Show all

Table of Contents