Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
12 Applied Instructions (High Speed Processing)
308
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
12.10 PLSR / Acceleration/Deceleration Setup
Related devices
1. Instruction execution complete flag
2. Monitoring the number of generated pulses
The number of pulses output from Y000 or Y001 is stored in the following special data registers:
The contents of each data register can be cleared using the following program.
3. How to stop the pulse output
When the command input is set to OFF, the pulse generation is immediately stopped. When the command
input is set to ON again, pulse generation operation restarts from the beginning.
When the special auxiliary relays (M) shown below are set to ON, the pulse output is stopped.
To restart pulse output again, set the device corresponding to the output number to OFF, and then drive
the pulse output instruction again.
Cautions about writing during RUN
Avoid writing during RUN after either of the following operations in a circuit block including the pulse output
instruction or positioning instruction.
Changing a program for a circuit block including a corresponding instruction.
Changing a program for a circuit block just before or after a circuit block including a corresponding
instruction.
Deleting or adding a circuit block just before or after a circuit block including a corresponding instruction.
This caution about the above operations is applicable to the following PLCs and instructions.
FX
1S, FX1N and FX1NC PLCs : PLSY, DPLSY, PWM, PLSR, DPLSR, ZRN, DZRN, PLSV,
DPLSV, DRVI, DDRVI, DRVA and DDRVA
FX
2N and FX2NC PLCs : PLSY, DPLSY, PWM, PLSR and DPLSR
FX
3S, FX3G, FX3GC, FX3U and FX3UC PLCs: DSZR, DVIT
*1
, DDVIT
*1
, DTBL
*2
, ZRN, DZRN, PLSV, DPLSV,
DRVI, DDRVI, DRVA and DDRVA
*1. Not available for the FX
3S, FX3G or FX3GC PLC.
*2. Not available for the FX
3S PLC.
Cautions
1. Maximum frequency
When using transistor outputs on the main unit, set the maximum frequency specified by as follows.
Device Name Description
M8029
Instruction execution
complete
OFF :The command input is OFF, or pulses are being output. (This flag does not turn ON if the pulse
output is interrupted in the middle of output.)
ON :Output of the number of pulses set in is completed.
Device
Description Contents of data
High
order
Low
order
D8141 D8140
Accumulated number of pulses
output from Y000
Accumulated number of pulses output from Y000 by PLSY and PLSR
instructions
D8143 D8142
Accumulated number of pulses
output from Y001
Accumulated number of pulses output from Y001 by PLSY and PLSR
instructions
D8137 D8136
Total accumulated number of
pulses output from Y000 and Y001
Total accumulated number of pulses output from Y000 and Y001 by PLSY and
PLSR instructions
Device
Description
FX3U, FX3UC FX3S, FX3G, FX3GC FX1S, FX1N, FX1NC
M8349 M8145, M8349 M8145 Immediately stops pulse output from Y000.
M8359 M8146, M8359 M8146 Immediately stops pulse output from Y001.
Command
input
DMOV
EN
s
ENO
d
K0 Low order device in the table above