Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
13 Applied Instructions (Handy Instruction)
13.8 RAMP / Ramp Variable Value
344
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
Function and operation explanation
1. 16-bit operation(RAMP)
The starting value and the desired end value are designated in and , and when the command input
is turned ON, the value equally divided by the number of times designated in n is added to sequentially
in every operation period, and the sum is stored in the device designated in .
This command and the analog output are combined, and the cushion start/stop command can be issued.
In +1, scan times (0 to n times) is stored.
The time from start till end is scanned by operation period × n times.
When the command input is turned OFF in the midst of operation, the execution is interrupted (present
value data of is held, and +1 scan times is cleared), and when turned ON again, is cleared,
and the operation is resumed from .
After completion of transfer, the command execution complete flag M8029 is active, and the value of
returns to the value of .
When obtaining operation results at specific time intervals (constant scan mode)
Write specified scan time in D8039 (a slightly longer value than actual scan time), and when the M8039 is
turned ON, the PLC is set in constant scan mode.
When this value is, for example, 20 ms and designated by n=100 times, the value of changes from
to in 20 seconds.
Command input
RAMP
EN
s1
s2
ENO
d
n
Initial value and
target value of
ramp
Transfer of ramp
Scan times
Present value data of ramp
n scans n scans
Scan times +1
Scan times +1
s2
2) When >
s1 s2
1) When <
s1 s2
s2
s1
s1
d
dd
d
(M8029)
Command
d
s1
s2