
Advanced Function Instruction
7 -8 1
FUN 95
RAMP
RAMP FUNCTION FOR D/A OUTPUT
FUN 95
RAMP
Tn : Timer for ramp function
PV : Preset value of ramp timer (the unit is 0.01 second)
or the increment value of every 0.01 second
S
L
: Lower limit value
(ramp floor value).
S
U
: Upper limit value
(ramp ceiling value).
D : Register storing current ramping value.
D+1 : Working register
S
U
, S
L
could be positive or negative value when incorporate
with AO module application.
WX
WY
WM
WS
TMR CTR
HR
IR
OR
SR
ROR DR
K
Range
Ope-
rand
WX0
∣
WX240
WY0
∣
WY240
WM0
∣
WM1896
WS0
∣
WS984
T0
∣
T255
C0
∣
C255
R0
∣
R3839
R3840
∣
R3903
R3904
∣
R3967
R3968
∣
R4167
R5000
∣
R8071
D0
∣
D4095
16-bit
+/- number
Tn
○
PV
○
○
○
○
○
○
○
○
○
○
○
○
○
S
L
○
○
○
○
○
○
○
○
○
○
○
○
○
S
U
○
○
○
○
○
○
○
○
○
○
○
○
○
D
○
○
○
○
○
○
○
○
○
*
○
Description
z
Tn must be a 0.01 sec time base timer and never used in other part of program.
z
PV is the preset value of ramp timer. Its unit is 10ms (0.01 second).
z
When input control “EN
↑
” changes from 0
→
1, it first reset the timer Tn to 0.
When “U/D”=1 it will load the value of SL to register D. And when M1974 = 0 it will be increased by S
U
−
S
L
/
PV every 0.01 sec or when M1974 = 1 it will increase by PV every 0.01 sec. When the D value reaches the
S
U
value the output “ASU” =1.
When “U/D”=0 it will load the value of S
U
to register D. When M1974 = 0 it will be decreased by S
U
−
S
L
/ PV
every 0.01 sec or when M1974 = 1 it will be decreased by PV every 0.01 sec. When the D value reaches the
S
L
value the output “ASL” =1.
z
The ramping direction(U/D) is determined at the time when input control “EN
↑
” changes from 0
→
1. After the
output D start to ramp, the change of U/D is no effect.
z
If it is required to pause the ramping action, it must let the input control “PAU” = 1; when “PAU”=0, and the
ramping action is not completed, it will continue to complete the ramping action.
z
The value of S
U
must be larger than S
L
, otherwise the ramp function will not be performed, and the output
“ERR” will set to 1.
z
This instruction use the register D to store the output ramping value; if the application use the D/A module to
send the speed command, then speed command can be derived from the RAMP function to get a more
smooth movement.
z
In addition to use register D to store the ramping value, this instruction also used the register D+1 to act as
internal working register; therefore the other part of program can not use the register D+1.
Содержание FBs-CBE
Страница 78: ...MEMO ...
Страница 111: ...4 6 X0 X1 Node A Y0 Y1 Node B differential down Incerse differential up t Scan time Inverse t t ...
Страница 141: ...Basic Function Instruction 6 16 FUN 2 SKP SKIP START FUN 2 SKP Y2 Y1 Y0 T201 10S X0 X1 X2 0 10 0 ...
Страница 305: ...MEMO ...
Страница 348: ...MEMO ...