Mitsubishi Electronics FX3U Coffeemaker User Manual


 
FX
3G
/FX
3U
/FX
3UC
PLC User's Manual - Positioning Control Edition
Built-in Positioning Functions
12 Examples of Programs
12.5 Program for Reading Current ABS Value Using ABS Instruction
B - 168
12.5 Program for Reading Current ABS Value Using ABS Instruction
1) Program for storing ABS data in current value registers specified by a positioning instruction for Y000
(pulse output destination)
2) Program for storing ABS data in the current value registers of the FX
2N-1PG(-E) or FX2N-10PG
Caution:
*1. The ABS data will be read out as a pulse converted value. For this reason, be sure to specify "motor
system" when setting parameters (BFM #3) for the FX
2N-1PG(-E).
*2. When writing the ABS data to the FX2N-10PG, be sure to use the current value registers (BFM #40,
BFM #39) to store the converted pulse data.
M8000
RUN
monitor
FNC155
DABS
X031 Y021 D8340
S
D
1
D
2
Reads out the ABS data to the current value registers
D8341 and D8340.
Read time limit (5 sec)
ABS data read error
ABS data reading is complete.
ABS data reading completed
T0
Read time error detected
M8029
"Execution
completion" flag
T0
M2
M 1SET
K50
M1
ABS(bit0) Servo-ON
signal
M8000
RUN
monitor
FNC155
DABS
X031 Y021 D100
S
D
1
D
2
Reads out the ABS data to D101 and D100.
Read time limit (5 sec)
ABS data read error
ABS data reading is complete.
Writes data (data converted into pulse data) to the
current value registers #40 and #39 of the FX
2N
-10PG.
*2
Writes data in current value registers #27 and #26 of the
FX
2N
-1PG.
*1
ABS data reading completed
T0
Read time error detected
M8029
"Execution
completion" flag
T0
M2
M 1SET
K50
M1
M1
ABS data
reading is
completed.
D100 U
\G39
FNC12
DMOV
Block No.
BFM#39
(
#40
)
M1
ABS data
reading is
completed.
FNC12
DMOV
D100 U
\G26
Block No.
BFM#26(#27)
ABS(bit0) Servo-ON
signal