5 -6
5.1.4
Functions Output (FO)
The “Function Output” (FO) is used to indicate the operation result of the function instruction. Like control input, each
function outputs shown in the screen of programming software are all attached with a word which comes from the
abbreviation of the output functionality. Such as CY derived from CarrY. The maximum number of function outputs is 4
and those are denoted as FO0, FO1, FO2, FO3 respectively. The FO status must be taken out by FO instruction (there is
a FO special key on FP-07 program writing device). The unused FO may be left without connecting to any elements, such
as FO1 (CY) shown in Example 4 below.
Example 4 :
Ladder Diagram
Mnemonic Codes
X0
EN
U/S
11D.(+)
Sa :
Sb :
R
D :
R
R
0
2
4
D=0
CY
BR
Y0
Y1
ORG X 0
FUN 11D
Sa: R 0
Sb: R 2
D : R 4
FO 0
OUT Y 0
FO
2
OUT Y 1
When M1919=0, the FO status will only be updated if the instruction is executed. It will keep the same status until
a new FO status is generated after the instruction is executed again (memory keeping).
When M1919=1, the FO status will be reset to 0 (no memory keeping) if the instruction is not executed.
5.2
Use Index Register(XR) for Indirect Addressing
In the FBs-PLC function instructions, there are some operands that can be combined with pointer register (V
、
Z
、
P0~P9)
to make indirect addressing (will be shown in the operand table if it applicable). However, only the registers in the range
R0
~
R8071 can be combined with an pointer register to perform indirect addressing (other operands such as discrete,
constant and D0
~
D3071 cannot be used for indirect addressing).
There are twelve pointer registers XR (V
、
Z
、
P0~P9). The V register in fact is the R4164 of special registers (R3840
~
R4167) , the Z register is the R4165 and the P0~P9 register is the (D4080~D4089). The actual addressed register by
index addressing is just offset the original operand with the content of the index register.
Original
Operand
↓
Pointer
Register
↓
Actual
Operand
↓
R100
V (If V=50)
= R150
100 +
50
(If V=100)
= R200
•
•
•
•
•
•
•
•