E L C P r o g r a m m i n g M a n u a l
F o r m o r e i nf o r m a t i o n v i sit :
w w w. e a t o n . c o m
MN05003003E
3-190
API Mnemonic
Operands
Function
67
RAMP
S
1
, S
2
, D, n
Ramp variable Value
Bit Devices
Word devices
Program Steps
Type
OP
X Y M S K H KnX
KnY
KnM KnS T
C D E
F
S
1
*
S
2
*
D
*
n
*
*
*
RAMP: 9 steps
ELC ELCB
ELCM
PB PC/PA/PH
PV
PB PH/PA
32 16
P
32 16
P
32 16
P
32 16 P 32 16 P
Operands:
S
1
: Starting set-point of ramp signal
S
2
: Ending set-point of ramp signal
D
: Current value of
ramp signal
n
: Scan times (
n
=1~32,767)
Description:
1.
This instruction creates a ramp output. The linearity of the ramp depends on a consistent
program scan time. Therefore, set the scan time to a fixed time prior to using this RAMP
instruction. This can be done by setting the constant scan mode bit M1039 and the constant
scan time register D1039 (ms).
2.
When the RAMP instruction is executed, the ramp signal will ramp from
S
1
to
S
2
. The Current
value of the ramp signal is stored in
D. D+1
stores the current number of accumulated scans.
When ramp signal reaches
S
2
, or when the conditions preceding the RAMP instruction turn
OFF, the contents in
D
varies according to the setting of M1026 which is explained later in
Points to note
.
3. When
n
specifies a D register, the value in D cannot be modified during the execution of the
instruction. The contents of D can only be modified when the instruction is stopped.
Program example:
1.
Before executing the instruction, first set bit M1039 = ON to fix the scan time and move a value
in ms into the constant scan time register D1039. Assume 30 was moved into D1039, which
fixes the scan time at 30ms. If n = K100, the time for D10 to increase to D11 will be 3 seconds
(30ms × 100).
2. When X20 turns OFF, the instruction will stop execution. When X20 goes ON again, the
content in D12 and D13 will be reset to 0.
3.
When M1026 = OFF, the RAMP instruction will operate continuously. The ramp complete bit
(M1029) will turn on for one scan at the end of each ramp cycle and the contents of D10 will be
moved into D12 for the start of the next ramp cycle. When M1026 = ON, the RAMP
instruction will operate for one ramp cycle and stop. When X20 turns off, then on again, the
contents of D10 will be moved into D12 and the next ramp cycle will execute. Each time the
Содержание ELC-PB
Страница 1: ......
Страница 5: ...For more information visit www eaton com MN05003003E iv...
Страница 29: ...ELC Programming Manual For more information visit www eaton com MN05003003E 1 24 MEMO...
Страница 502: ...3 Instruction Set MN05003003E For more information visit www eaton com 3 333...
Страница 601: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 432...
Страница 625: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 456...