Increment (Fun15) - FATEK FBS Series Manual

Plc
Hide thumbs Also See for FBS Series:
Table of Contents

Advertisement

Basic Function Instruction
FUN 15
D P
(+1)
Range
WY
WY0
Ope-
rand
WY240
D
Adds 1 to the register D when the increment control input "EN" =1 or "EN↑" (
the value of D is already at the upper limit of positive number 32767 or 2147483647, adding one to this
value will change it to the lower limit of negative number -32768 or -2147483648. At the same time, the
overflow flag FO0 (OVF) is set to 1.
Example
16-bit increment register
Ladder diagram
X0
15.
EN
WM
WS
TMR CTR
WM0
WS0
T0
C0
WM1896
WS984
T255
C255
(+1)
R
0V OVF
D
D
INCREMENT
(Adds 1 to the D value)
HR
OR
HR
R0
R3904
R3920
R3839
R3919
R4047
Key operations
ORG
When V=100,0+100=100
R100
1
X0=
R100
2
6 - 3 2
Operand
D : The register to be increased
D may combine with V, Z, P0~P9 to serve
indirect addressing
HSCR RTCR
SR
ROR
R4096
R4128
R4136
R5000
R4127
R4135
R4167
R8071
○*
○*
P
instruction) from 0 to 1. If
Mnemonic code
ORG TU
FUN
D :
FUN 15
D P
(+1)
DR
X R
D0
V 、 Z
D4095
P 0 ~ P 9
X
0
15
R
0V

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents