Mc_Moverelative (Relative Value Positioning) - Mitsubishi Electric MELSEC-Q-MR-JE-C Reference Manual

Plcopen motion control function block for melsec-q series
Table of Contents

Advertisement

MC_MoveRelative (Relative Value Positioning)

Name
MC_MoveRelative_JEC
Overview
Item
Function overview
Symbol
[Structured Ladder]
Symbol
[Structured Text]
Labels
■I/O label
No.
Variable name
(1)
Axis
■Input labels (Load: П: Always, : Only at start)
No.
Variable name
(2)
Execute
(3)
Distance
(4)
Velocity
(5)
Acceleration
(6)
Deceleration
■Output labels
No.
Variable name
(7)
Done
(8)
Busy
(9)
CommandAborted
(10)
Error
(11)
ErrorID
3 FB LIBRARY
34
3.2 Details of the FB Library
Description
Moves an axis for the specified distance from the current position.
(1)
DUT: Axis
(2)
B: Execute
(3)
L: Distance
(4)
L: Velocity
(5)
D: Acceleration
(6)
D: Deceleration
MC_MoveRelative_JEC (Axis, Execute, Distance, Velocity, Acceleration, Deceleration, Done, Busy, CommnadAborted,
Error, ErrorID)
Name
Data type
Axis information
AXIS_REF_JEC
Name
Data type
Execution command
Bit
Travel distance
Double-precision
real number
Velocity
Double-precision
real number
Acceleration time
Double word
[signed]
Deceleration time
Double word
[signed]
Name
Data type
Execution
Bit
completion
Executing
Bit
Abortion of
Bit
execution
Error
Bit
Error code
Word [unsigned]
MC_MoveRelative_JEC
CommandAborted :B
Setting range
Import
Setting
range
ON, OFF
Positioning
range on
"Page 21 Unit"
 Velocity
command on
"Page 21 Unit"
0 to 20000
(ms)
0 to 20000
(ms)
Default value
OFF
OFF
OFF
OFF
0
Axis :DUT
(1)
Done :B
(7)
Busy :B
(8)
(9)
Error :B
(10)
ErrorID :UW
(11)
Description
Page 59 AXIS_REF_JEC (Axis information)
Description
ON: The FB is executed.
The travel distance is set.
The velocity command value is set.
The time taken for the servo motor to reach the rated
speed is set.
The time taken for the servo motor to stop from the
rated speed is set.
Description
It indicates that the axis has reached the
commanded position.
It indicates that the FB is in execution.
It indicates that another FB has aborted the
execution of the FB.
When ON, it indicates that an error has occurred in
the FB.
The error code generated in the FB is returned.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents