User manual

Highlevel Instructions
3 782
Outline Index register bank number change over with remembering preceding
bank number.
Program example
Ladder
Diagram
Boolean
Ladder Diagram
Address Instruction
n
Trigger
F411 CHGB, K 210
R0
10
11
ST R 0
F411 (CHGB)
K2
n Constant data or area where register bank number is stored.
Operands
O
p
erand
Relay Timer/Counter Register
Index
register
Constant
Index
modifier
Integer
device
Operand
WX WY WR WL SV EV DT LD FL I K H f
modifier device
n A A A A A A A A A A A A N/A A N/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.
F411
P411
(PCHGB)
(CHGB)
Changing the index register bank number
A
:
A
vailable
N/A: Not Available