B - 177
A
Common Items
B
Built-in
Positioning
Functions
Apx.
Example
Connection
FX
3S
/FX
3G
/FX
3GC
/FX
3U
/FX
3UC
PLC User's Manual - Positioning Control Edition
Built-in Positioning Functions
12.5 Program for Reading Current ABS Value Using ABS Instruction
12 Examples of Programs
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
3U-1PG, FX2N-1PG(-E) or FX2N-
10PG
*1. When writing the ABS data to the FX
3U-1PG, be sure to use the current value registers (BFM#59,
BFM#58) to store the pulse converted data.
*2. 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).
*3. When writing the ABS data to the FX
2N-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• D1• D2•
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.
*3
Writes data in current value registers #27 and #26 of the
FX
2N
-1PG.
*2
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
FNC 12
DMOV
Unit No.
BFM#39(#40)
M1
ABS data
reading is
completed.
FNC 12
DMOV
D100 U\G26
Unit No.
BFM#26(#27)
Writes data (data converted into pulse data) to the
current value registers #59 and #58 of the FX
3U
-1PG.
*1
M1
ABS data
reading is
completed.
FNC 12
DMOV
D100 U\G58
Unit No.
BFM#58(#59)
ABS(bit0) Servo-ON
signal
Downloaded from ManualsNet.com search engine