Mitsubishi Electric MELSEC iQ-R Series User Manual page 275

Motion module
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

MCv_SetPositionTriggered
Item
Description
Function overview
Changes the current position of specified axis (set position, actual position) to the position compensated at the trigger input
signal detection timing.
Symbol
[Structured Ladder]
Symbol
MCv_SetPositionTriggered (Axis, TriggerInput, Execute, Position, Relative, InTrigger, Done, Busy, CommandAborted, Error,
[Structured Text]
ErrorID)
Applicable hardware and
RD78G(H) (Structured Text)
software (Language)
Number of steps (The
maximum value)
■Function description
This FB changes the current position of the specified axis.
• The current position is changed when the TriggerInput signal is detected. When the processing is completed, Done turns
TRUE.
• When Relative is TRUE, the current position is changed to the position obtained by the addition of the target position
(relative distance) and the current position.
• When Relative is FALSE, the current position is changed to the target position (absolute position).
• This FB is executed when Execute turns TRUE, and Busy turns TRUE when the processing is normally started.
• When an error has occurred in the FB, this FB turns Error to TRUE and stores an error code in ErrorID.
• For details of error codes, refer to the following.
Page 534 List of Error Codes
Precautions
This FB can be executed only when the axis status (AxisName.Md.AxisStatus) is "4: Standstill". If it is other than "4: Standstill",
an error occurs and it cannot be executed.
■Timing chart
[When the FB is normally completed]
TriggerInput.Source
(Leading edge detection
setting)
Execute
Busy
InTrigger
Done
Error
ErrorID
MCv_SetPositionTriggered
DUT : Axis
DUT : TriggerInput
B : Execute
L : Position
B : Relative
UD : Options
Axis : DUT
TriggerInput : DUT
InTrigger : B
Done : B
Busy : B
CommandAborted : B
Error : B
ErrorID : UW
CancelAccepted : B
0
8 RELEVANT FUNCTIONS to POSITION
8.1 Current Position Change Function
8
273

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rd78g32Rd78g64Rd78ghvRd78g4Rd78ghwRd78g8 ... Show all

Table of Contents