Mitsubishi Electric MELSEC iQ-F Series User Manual page 20

Positioning control
Hide thumbs Also See for MELSEC iQ-F Series:
Table of Contents

Advertisement

5.3
Mechanical OPR
If forward rotation pulses or reverse rotation pulses are generated, the positioning instruction will increase or decrease the
value of the current address.
When the power of the CPU module is turned off, the value stored in the current address will be erased. For this reason, after
turning on the power again, be sure to adjust the value of the current address in the CPU module to the current position of the
machine. The positioning function uses the DSZR/DDSZR instruction (OPR instruction) to adjust the value of the current
address in the CPU module to the current mechanical position.
DSZR/DDSZR
This instruction executes mechanical OPR.
Ladder
(s1)
(s2)
(d1)
Setting data
■Description, range, data type (DSZR)
• FX5 operand
Operand
Description
(s1)
Word device number storing OPR speed or data
(s2)
Word device number storing creep speed or data
(d1)
Axis number from which pulses are output
(d2)
Bit device number of the instruction execution complete
flag and abnormal end flag
• FX3 compatible operand
Operand
Description
(s1)
Bit device number to which the near-point dog signal is
input
(s2)
Bit device number to which the zero signal is input
(d1)
Output bit device number (Y) from which pulses are output
(d2)
Bit device number from which rotation direction is output
*1 OPR speed and creep speed can be changed during positioning operation. (Page 32 Command speed change during positioning
operation)
ST
ENO:=DSZR(EN,s1,s2,d1,d2);
ENO:=DDSZR(EN,s1,s2,d1,d2);
(d2)
Range
*1
1 to 65535
(User system unit)
*1
1 to 65535
(User system unit)
K1 to 4
Range
0 to 3
FBD/LD
EN
s1
s2
d1
Data type
Data type (label)
16-bit unsigned binary
ANY_ELEMENTARY
(WORD)
16-bit unsigned binary
ANY_ELEMENTARY
(WORD)
16-bit unsigned binary
ANY_ELEMENTARY
(WORD)
Bit
ANY_BOOL
Data type
Data type (label)
Bit
ANY_ELEMENTARY
(BOOL)
Bit
ANY_ELEMENTARY
(BOOL)
Bit
ANY_ELEMENTARY
(BOOL)
Bit
ANY_BOOL
5 POSITIONING INSTRUCTION
5.3 Mechanical OPR
5
ENO
d2
71

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec iq-f fx5

Table of Contents