Mitsubishi Electric MELSEC iQ-F Manual
Mitsubishi Electric MELSEC iQ-F Manual

Mitsubishi Electric MELSEC iQ-F Manual

Fx5 positioning module function block reference
Hide thumbs Also See for MELSEC iQ-F:

Advertisement

Quick Links

MELSEC iQ-F
FX5 Positioning Module Function Block Reference

Advertisement

Table of Contents
loading

Summary of Contents for Mitsubishi Electric MELSEC iQ-F

  • Page 1 MELSEC iQ-F FX5 Positioning Module Function Block Reference...
  • Page 3: Table Of Contents

    CONTENTS CHAPTER 1 FUNCTION BLOCK (FB) LIST CHAPTER 2 POSITIONING MODULE FB M+FX5PG_SetPositioningData............. . 4 M+FX5PG_StartPositioning .
  • Page 4: Chapter 1 Function Block (Fb) List

    FUNCTION BLOCK (FB) LIST This chapter lists the FBs for the MELSEC iQ-F series positioning module. Name Description M+FX5PG_SetPositioningData Sets positioning data (Da.1 to Da.10, Da.27 to Da.29). M+FX5PG_StartPositioning Starts the positioning operation. M+FX5PG_JOG Performs the JOG operation or inching operation.
  • Page 5 MEMO 1 FUNCTION BLOCK (FB) LIST...
  • Page 6: Chapter 2 Positioning Module Fb

    POSITIONING MODULE FB M+FX5PG_SetPositioningData Name M+FX5PG_SetPositioningData Overview Item Description Overview Sets positioning data (Da.1 to Da.10, Da.27 to Da.29). Symbol M+FX5PG_SetPositioningData i_bEN o_bENO i_stModule o_bOK i_uAxis o_bErr UW : i_uDataNo o_uErrId (9) pb_uOpePattern (10) pb_uCtrlSys (11) pb_uAccTimeNo (12) pb_uDecTimeNo (13) pb_uInterpolatedAx (14) pb_uMcode (15) pb_uDwellTime (16) pb_uMcodeOnTiming...
  • Page 7 ■Public label Variable name Name Data type Range Description pb_uOpePattern Da.1: Operation pattern Word [Unsigned] 0 to 1, 3 Specify whether the positioning is completed with the data being executed, or continues with the following data. When 4 or higher, which is out of the setting range, is specified, b0 and 1 are enabled.
  • Page 8 Variable name Name Data type Range Description (13) pb_uInterpolatedAx Da.5: Axis to be Word [Unsigned] 0 to 1 Set the axis to be interpolated for performing the 2-axis interpolated interpolation operation. Values out of the setting range or the self-axis cannot be set as the axis to be interpolated.
  • Page 9 Variable name Name Data type Range Description (20) pb_dPositAdr Da.6: Positioning Double word -2147483648 Specify the target position or movement amount for the address [Signed] to 2147483647, positioning control. 0 to 35999999, The setting value differs depending on the control 0 to method.
  • Page 10 • The pulse output mode and external input/output signal logic, etc. must be set according to the connected devices and system before operating the positioning module. Set the GX Works3 module parameters according to the application. Refer to the MELSEC iQ-F FX5 User's Manual (Positioning Control - Intelligent function module) for details on setting the module parameters.
  • Page 11: M+Fx5Pg_Startpositioning

    M+FX5PG_StartPositioning Name M+FX5PG_StartPositioning Overview Item Description Overview Starts the positioning operation. Symbol M+FX5PG_StartPositioning i_bEN o_bENO i_stModule o_bOK i_uAxis o_bErr UW : i_uStartNo o_uErrId Labels ■Input label Variable name Name Data type Range Description i_bEN Execution command ON, OFF ON: The FB is activated. OFF: The FB is not activated.
  • Page 12 FB details Item Description Available device Target module FX5-20PG-P Target CPU FX5U CPU, FX5UC CPU Engineering tool GX Works3 Version 1.035M or later Language Ladder diagram Number of basic steps 263 steps The number of FB steps integrated in the program varies depending on the CPU module used, the input/output definition, and the setting options of GX Works3.
  • Page 13 • The pulse output mode and external input/output signal logic, etc. must be set according to the connected devices and system before operating the positioning module. Set the GX Works3 module parameters according to the application. Refer to the MELSEC iQ-F FX5 User's Manual (Positioning Control - Intelligent function module) for details on setting the module parameters.
  • Page 14: M+Fx5Pg_Jog

    M+FX5PG_JOG Name M+FX5PG_JOG Overview Item Description Overview Performs the JOG operation or inching operation. Symbol M+FX5PG_JOG i_bEN o_bENO i_stModule o_bOK i_uAxis o_bErr (10) B : i_bFJog o_uErrId (11) i_bRJog i_udJogSpd UW : i_uInching Labels ■Input label Variable name Name Data type Range Description i_bEN...
  • Page 15 FB details Item Description Available device Target module FX5-20PG-P Target CPU FX5U CPU, FX5UC CPU Engineering tool GX Works3 Version 1.035M or later Language Ladder diagram Number of basic steps 238 steps The number of FB steps integrated in the program varies depending on the CPU module used, the input/output definition, and the setting options of GX Works3.
  • Page 16 Item Description Timing chart of I/O signals [For normal completion (Axis 1)] • Forward run JOG operation (Inching movement amount 0) i_bEN o_bENO i_bFJog i_bRJog Cd.181: Forward run JOG start signal Cd.182: Reverse run JOG start signal BUSY signal (Md.141: BUSY.b0) o_bOK o_bErr o_uErrId...
  • Page 17 • The pulse output mode and external input/output signal logic, etc. must be set according to the connected devices and system before operating the positioning module. Set the GX Works3 module parameters according to the application. Refer to the MELSEC iQ-F FX5 User's Manual (Positioning Control - Intelligent function module) for details on setting the module parameters.
  • Page 18: M+Fx5Pg_Mpg

    M+FX5PG_MPG Name M+FX5PG_MPG Overview Item Description Overview Performs the manual pulse generator operation. Symbol M+FX5PG_MPG i_bEN o_bENO i_stModule o_bOK i_uAxis o_bErr UD : i_udMPGInMag o_uErrId Labels ■Input label Variable name Name Data type Range Description i_bEN Execution command ON, OFF ON: The FB is activated.
  • Page 19 • The pulse output mode and external input/output signal logic, etc. must be set according to the connected devices and system before operating the positioning module. Set the GX Works3 module parameters according to the application. Refer to the MELSEC iQ-F FX5 User's Manual (Positioning Control - Intelligent function module) for details on setting the module parameters.
  • Page 20: M+Fx5Pg_Changespeed

    M+FX5PG_ChangeSpeed Name M+FX5PG_ChangeSpeed Overview Item Description Overview Changes the speed. Symbol M+FX5PG_ChangeSpeed i_bEN o_bENO i_stModule o_bOK i_uAxis o_bErr UD : i_udSpdChgVal o_uErrId Labels ■Input label Variable name Name Data type Range Description i_bEN Execution command ON, OFF ON: The FB is activated. OFF: The FB is not activated.
  • Page 21 FB details Item Description Available device Target module FX5-20PG-P Target CPU FX5U CPU, FX5UC CPU Engineering tool GX Works3 Version 1.035M or later Language Ladder diagram Number of basic steps 136 steps The number of FB steps integrated in the program varies depending on the CPU module used, the input/output definition, and the setting options of GX Works3.
  • Page 22 • The pulse output mode and external input/output signal logic, etc. must be set according to the connected devices and system before operating the positioning module. Set the GX Works3 module parameters according to the application. Refer to the MELSEC iQ-F FX5 User's Manual (Positioning Control - Intelligent function module) for details on setting the module parameters.
  • Page 23: M+Fx5Pg_Changeaccdectime

    M+FX5PG_ChangeAccDecTime Name M+FX5PG_ChangeAccDecTime Overview Item Description Overview Changes the acceleration/deceleration time during speed change. Symbol M+FX5PG_ChangeAccDecTime i_bEN o_bENO i_stModule o_bOK i_uAxis o_bErr B : i_bEnable o_uErrId (10) UD : i_udNewAccTime UD : i_udNewDecTime Labels ■Input label Variable name Name Data type Range Description i_bEN...
  • Page 24 FB details Item Description Available device Target module FX5-20PG-P Target CPU FX5U CPU, FX5UC CPU Engineering tool GX Works3 Version 1.035M or later Language Ladder diagram Number of basic steps 123 steps The number of FB steps integrated in the program varies depending on the CPU module used, the input/output definition, and the setting options of GX Works3.
  • Page 25 Item Description Timing chart of I/O signals [For normal completion] • Cd.12: Acceleration/deceleration time change during speed change, enable/disable selection is enabled i_bEN o_bENO i_bEnable (enable) Present value New Value Cd.10: New acceleration time value Cd.11: New deceleration time value Present value New Value Cd.12: Acceleration/deceleration...
  • Page 26 • The pulse output mode and external input/output signal logic, etc. must be set according to the connected devices and system before operating the positioning module. Set the GX Works3 module parameters according to the application. Refer to the MELSEC iQ-F FX5 User's Manual (Positioning Control - Intelligent function module) for details on setting the module parameters.
  • Page 27: M+Fx5Pg_Changeposition

    M+FX5PG_ChangePosition Name M+FX5PG_ChangePosition Overview Item Description Overview Changes the target position. Symbol M+FX5PG_ChangePosition i_bEN o_bENO i_stModule o_bOK i_uAxis o_bErr D : i_dPosChgAdr o_uErrId UD : i_udPosChgSpd Labels ■Input label Variable name Name Data type Range Description i_bEN Execution command ON, OFF ON: The FB is activated.
  • Page 28 ■Output label Variable name Name Data type Default value Description o_bENO Execution status ON: The execution command is ON. OFF: The execution command is OFF. o_bOK Normal completion When this label is ON, it indicates that the module has accepted the target position change request values. o_bErr Error completion When this label is ON, it indicates that an error has...
  • Page 29 • The pulse output mode and external input/output signal logic, etc. must be set according to the connected devices and system before operating the positioning module. Set the GX Works3 module parameters according to the application. Refer to the MELSEC iQ-F FX5 User's Manual (Positioning Control - Intelligent function module) for details on setting the module parameters.
  • Page 30: M+Fx5Pg_Restart

    M+FX5PG_Restart Name M+FX5PG_Restart Overview Item Description Overview Restarts an axis that has stopped. Symbol M+FX5PG_Restart i_bEN o_bENO i_stModule o_bOK i_uAxis o_bErr o_uErrId Labels ■Input label Variable name Name Data type Range Description i_bEN Execution command ON, OFF ON: The FB is activated. OFF: The FB is not activated.
  • Page 31 • The pulse output mode and external input/output signal logic, etc. must be set according to the connected devices and system before operating the positioning module. Set the GX Works3 module parameters according to the application. Refer to the MELSEC iQ-F FX5 User's Manual (Positioning Control - Intelligent function module) for details on setting the module parameters.
  • Page 32: M+Fx5Pg_Operateerror

    M+FX5PG_OperateError Name M+FX5PG_OperateError Overview Item Description Overview Monitors errors and warnings, and resets errors. Symbol M+FX5PG_OperateError i_bEN o_bENO i_stModule o_bOK i_uAxis o_bModuleErr : i_bErrReset o_uModuleErrId o_bModuleWarn o_uModuleWarnId (10) o_bErr (11) o_uErrId UW (12) Labels ■Input label Variable name Name Data type Range Description i_bEN...
  • Page 33 FB details Item Description Available device Target module FX5-20PG-P Target CPU FX5U CPU, FX5UC CPU Engineering tool GX Works3 Version 1.035M or later Language Ladder diagram Number of basic steps 198 steps The number of FB steps integrated in the program varies depending on the CPU module used, the input/output definition, and the setting options of GX Works3.
  • Page 34 Item Description Timing chart of I/O signals [For normal completion] i_bEN o_bENO i_bErrReset Cd.5: Axis error reset Error detection signal (Md.31: Status.b13) o_bModuleErr Error code Error code Error code o_uModuleErrId Axis warning detection signal (Md.31: Status.b9) o_bModuleWarn o_uModuleWarnId Warning code Warning code o_bOK o_bErr...
  • Page 35 • The pulse output mode and external input/output signal logic, etc. must be set according to the connected devices and system before operating the positioning module. Set the GX Works3 module parameters according to the application. Refer to the MELSEC iQ-F FX5 User's Manual (Positioning Control - Intelligent function module) for details on setting the module parameters.
  • Page 36: M+Fx5Pg_Initializeparameter

    2.10 M+FX5PG_InitializeParameter Name M+FX5PG_InitializeParameter Overview Item Description Overview Initializes parameters. Symbol M+FX5PG_InitializeParameter i_bEN o_bENO i_stModule o_bOK o_bErr o_uErrId Labels ■Input label Variable name Name Data type Range Description i_bEN Execution command ON, OFF ON: The FB is activated. OFF: The FB is not activated. i_stModule Module label Structure...
  • Page 37 • The pulse output mode and external input/output signal logic, etc. must be set according to the connected devices and system before operating the positioning module. Set the GX Works3 module parameters according to the application. Refer to the MELSEC iQ-F FX5 User's Manual (Positioning Control - Intelligent function module) for details on setting the module parameters.
  • Page 38: M+Fx5Pg_Writeflash

    2.11 M+FX5PG_WriteFlash Name M+FX5PG_WriteFlash Overview Item Description Overview Writes positioning data and block start data in the buffer memory to the flash ROM. Symbol M+FX5PG_WriteFlash i_bEN o_bENO i_stModule o_bOK o_bErr o_uErrId Labels ■Input label Variable name Name Data type Range Description i_bEN Execution command...
  • Page 39 • The pulse output mode and external input/output signal logic, etc. must be set according to the connected devices and system before operating the positioning module. Set the GX Works3 module parameters according to the application. Refer to the MELSEC iQ-F FX5 User's Manual (Positioning Control - Intelligent function module) for details on setting the module parameters.
  • Page 40: M+Fx5Pg_Abrst

    2.12 M+FX5PG_ABRST Name M+FX5PG_ABRST Overview Item Description Overview Restores the absolute position. Symbol M+FX5PG_ABRST i_bEN o_bENO i_stModule o_bOK i_uAxis o_bServoON : i_bAbsBit0 o_bAbsTrMode (10) i_bAbsBit1 o_bAbsReq (11) i_bTrDataComp o_bAbsNG (12) o_uAbsErrId UW (13) o_bErr (14) o_uErrId UW (15) Labels ■Input label Variable name Name Data type...
  • Page 41 • When the absolute position restoration is completed with an error, o_bAbsNG (ABS error) turns on and an error code is stored in o_uAbsErrId (ABS error code). For the error codes, refer to MELSEC iQ-F FX5 User's Manual (Positioning Control - Intelligent function module).
  • Page 42 Item Description Timing chart of I/O signals [For normal completion] i_bEN o_bENO Absolute position restoration Executed Unexecuted Unexecuted instruction o_bOK o_bAbsNG o_uAbsErrId o_bErr o_uErrId [For error completion] • Out of the target axis setting range i_bEN o_bENO Absolute position restoration Unexecuted instruction o_bOK...
  • Page 43 • The pulse output mode and external input/output signal logic, etc. must be set according to the connected devices and system before operating the positioning module. Set the GX Works3 module parameters according to the application. Refer to the MELSEC iQ-F FX5 User's Manual (Positioning Control - Intelligent function module) for details on setting the module parameters.
  • Page 44: M+Fx5Pg_Startaddressoffsetpositioning

    2.13 M+FX5PG_StartAddressOffsetPositioning Name M+FX5PG_StartAddressOffsetPositioning Overview Item Description Overview The following axis starts after the preceding axis has started and moved the set movement amount. Symbol M+FX5PG_StartAddresOffsetPositioning i_bEN o_bENO (11) i_stModule o_bOK (12) i_uPrecedingAxis o_bErr (13) UW : i_uFollowingAxis o_uErrId (14) i_uStartBlock i_uPoint B : i_bShape...
  • Page 45 ■Output label Variable name Name Data type Default value Description (11) o_bENO Execution status ON: The execution command is ON. OFF: The execution command is OFF. (12) o_bOK Normal completion When this label is ON, it indicates that the block start for the following axis has finished.
  • Page 46 Item Description Processing • By turning i_bEN (Execution command) ON, the settings are made to start the following axis after the preceding axis has moved the set movement amount. When the offset address is a positive value. Position Preceding axis Offset address Following axis...
  • Page 47 Item Description Timing chart of I/O signals [For normal completion] i_bEN o_bENO New Value Da.11: Shape Present value Da.12: Start data No. New Value Present value New Value Da.14: Parameter Present value Da.13: Special start instruction New Value Present value Da.15: Condition target New Value Present value...
  • Page 48 • The pulse output mode and external input/output signal logic, etc. must be set according to the connected devices and system before operating the positioning module. Set the GX Works3 module parameters according to the application. Refer to the MELSEC iQ-F FX5 User's Manual (Positioning Control - Intelligent function module) for details on setting the module parameters.
  • Page 49: M+Fx5Pg_Settimeoffsetpositioning

    2.14 M+FX5PG_SetTimeOffsetPositioning Name M+FX5PG_SetTimeOffsetPositioning Overview Item Description Overview The following axis starts after the set time has elapsed from the start of the preceding axis. Symbol M+FX5PG_SetTimeOffsetPositioning i_bEN o_bENO i_stModule o_bOK i_uPrecedingAxis o_bErr (10) UW : i_uFollowingAxis o_uErrId (11) i_uPrecedingAxisDataNo i_uFollowingAxisDataNo UW : i_uOffsetTime Labels...
  • Page 50 FB details Item Description Available device Target module FX5-20PG-P Target CPU FX5U CPU, FX5UC CPU Engineering tool GX Works3 Version 1.035M or later Language Ladder diagram Number of basic steps 384 steps The number of FB steps integrated in the program varies depending on the CPU module used, the input/output definition, and the setting options of GX Works3.
  • Page 51 Item Description Timing chart of I/O signals [For normal completion] i_bEN o_bENO Da.1: Operation pattern New Value Present value Da.2: Control method New Value Present value Da.3: Acceleration time New Value Present value Da.4: Deceleration time New Value Present value Da.5: Axis to be interpolated New Value Present value...
  • Page 52 Item Description Timing chart of I/O signals [For error completion] i_bEN o_bENO Present value Da.1: Operation pattern Da.2: Control method Present value Da.3: Acceleration time Present value Da.4: Deceleration time Present value Da.5: Axis to be interpolated Present value Da.6: Positioning address/ Present value movement amount Da.7: Arc address...
  • Page 53 • The pulse output mode and external input/output signal logic, etc., must be set according to the connected devices and system before operating the positioning module. Set the GX Works3 module parameters according to the application. Refer to the MELSEC iQ-F FX5 User's Manual (Positioning Control - Intelligent function module) for details on setting the module parameters.
  • Page 54: Index

    INDEX ..... . 38 M+FX5PG_ABRST ... . 21 M+FX5PG_ChangeAccDecTime ....25 M+FX5PG_ChangePosition .
  • Page 55 MEMO...
  • Page 56: Revisions

    First Edition This manual confers no industrial property rights or any rights of any other kind, nor does it confer any patent licenses. Mitsubishi Electric Corporation cannot be held responsible for any problems involving industrial property rights which may occur as a result of using the contents noted in this manual.
  • Page 58 Manual number: JY997D75101A When exported from Japan, this manual does not require application to the Ministry of Economy, Trade and Industry for service transaction permission. HEAD OFFICE: TOKYO BUILDING, 2-7-3 MARUNOUCHI, CHIYODA-KU, TOKYO 100-8310, JAPAN Specifications are subject to change without notice.

Table of Contents