Mitsubishi Electric MELSEC iQ-F Series Manual

Mitsubishi Electric MELSEC iQ-F Series Manual

Programmable controller fx5 analog input module/output module/ multiple input module function block reference
Hide thumbs Also See for MELSEC iQ-F Series:

Quick Links

MELSEC iQ-F
FX5 Analog Input Module/Output Module/
Multiple Input Module Function Block Reference
Table of Contents
loading

Summary of Contents for Mitsubishi Electric MELSEC iQ-F Series

  • Page 1 MELSEC iQ-F FX5 Analog Input Module/Output Module/ Multiple Input Module Function Block Reference...
  • Page 3: Safety Precautions

    SAFETY PRECAUTIONS (Read these precautions before use.) Before using this product, please read this reference and the relevant manuals introduced in this reference carefully and pay full attention to safety in order to handle the product correctly. The precautions given in this reference are concerned with this product only. For the safety precautions of the programmable controller system, refer to the User's Manual (Hardware) of the CPU module used.
  • Page 4: Introduction

    If in doubt about the operation or use, please consult your local Mitsubishi Electric representative. • Mitsubishi Electric will not accept responsibility for actual use of the product based on these illustrative examples. Please use it after confirming the function and safety of the equipment and system.
  • Page 5 MEMO...
  • Page 6: Table Of Contents

    CONTENTS SAFETY PRECAUTIONS ..............1 INTRODUCTION .
  • Page 7 Error code ................27 M+FX5-4DA_WaveOutputSetting (Waveform output setting) .
  • Page 8: Relevant Manuals

    RELEVANT MANUALS Manual name Description MELSEC iQ-F FX5S/FX5UJ/FX5U/FX5UC User's Manual (Hardware) Describes the details of hardware of the CPU module, including performance specifications, wiring, installation, and maintenance. MELSEC iQ-F FX5 User's Manual (Application) Describes basic knowledge required for program design, functions of the CPU ...
  • Page 9: Generic Terms And Abbreviations

    GENERIC TERMS AND ABBREVIATIONS Unless otherwise specified, this manual uses the following generic terms and abbreviations. Generic terms and abbreviations Description FB is the abbreviation for function block, in which the circuit blocks used repeatedly in a sequence program are broken down into parts so that the parts can be used for other purposes in the sequence program. This improves the program development efficiency, reduces program errors and improves the program quality.
  • Page 10: Chapter 1 Overview

    OVERVIEW The FBs listed in this reference are module FBs (for GX Works3) to use the MELSEC iQ-F series analog input module (FX5- 4AD), multiple input module (FX5-8AD) and analog output module (FX5-4DA). Function Block (FB) List Shown below is the list of the module FBs cited in this reference.
  • Page 11: System Configuration

    System Configuration System configurations to use the module FBs for this reference is shown below. Analog input module FB (1) FX5 CPU module (2) Analog input module (FX5-4AD) (3) Current sensor, Voltage sensor For specifications of the module used, refer to the MELSEC iQ-F FX5 User's Manual(Analog Control - Intelligent function module).
  • Page 12 Analog output module FB 24V DC (1) FX5 CPU module (2) Analog output module (FX5-4DA) (3) Inverter, DC motor For specifications of the module used, refer to the MELSEC iQ-F FX5 User's Manual(Analog Control - Intelligent function module). 1 OVERVIEW 1.3 System Configuration...
  • Page 13: Chapter 2 Analog Input Module, Multiple Input Module Fb

    ANALOG INPUT MODULE, MULTIPLE INPUT MODULE FB M+Model_RequestSetting (Validation of settings) Name Target module M+FX5-4AD_RequestSetting FX5-4AD M+FX5-8AD_RequestSetting FX5-8AD Overview Turning on i_bEN (execution command) allows the settings of all channels to be enabled. M+FX5-4AD_RequestSetting i_bEN o_bENO i_stModule o_bOK o_bErr o_uErrId Labels Input label Variable name...
  • Page 14: Fb Details

    Engineering tool  FX5-4AD GX Works3 Version 1.040S or later FX5-8AD  GX Works3 Version 1.040S or later ■CPU module MELSEC iQ-F series Basic specifications Item Description Language Ladder diagram Number of steps 57 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 15: Parameter Setting

    Restrictions or precautions • This FB does not include the error recovery processing. Program the error recovery processing separately in accordance with the required system operation. • This FB cannot be used in an interrupt program. • As this FB is executed, the A/D conversion processing stops, and thereafter when o_bOK (normal completion) turns on, the conversion processing resumes.
  • Page 16: M+Model_Operateerror (Error Operation)

    M+Model_OperateError (Error operation) Name Target module M+FX5-4AD_OperateError FX5-4AD M+FX5-8AD_OperateError FX5-8AD Overview As i_bEN (execution command) turns on, errors in the target module are monitored. After i_bEN (execution command) turns on, turning on i_bErrReset (error reset request) during an error allows the error to be reset.
  • Page 17: Fb Details

    Engineering tool  FX5-4AD GX Works3 Version 1.040S or later  FX5-8AD GX Works3 Version 1.040S or later ■CPU module MELSEC iQ-F series Basic specifications Item Description Language Ladder diagram Number of steps 195 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 18: Parameter Setting

    Restrictions or precautions • This FB does not include the error recovery processing. Program the error recovery processing separately in accordance with the required system operation. • This FB cannot be used in an interrupt program. • When operating the analog input module and multiple input module, the input range needs to be set according to the device and system to be connected.
  • Page 19: M+Model_Setloggingparam (Logging Function Setting)

    M+Model_SetLoggingParam (Logging function setting) Name Target module M+FX5-4AD_SetLoggingParam FX5-4AD M+FX5-8AD_SetLoggingParam FX5-8AD Overview Turning on i_bEN (execution command) allows the logging function of a specified channel to be set. M+FX5-4AD_SetLoggingParam i_bEN o_bENO (13) i_stModule o_bOK (14) o_bErr (15) i_uCH B : i_bLogEnable (16) o_uErrId i_uLogData...
  • Page 20 Variable name Name Data type Range Description i_uLogCycleVal Logging cycle setting Word [Unsigned]/Bit Sets the interval of cycles at which data is stored. ■FX5-4AD value String [16-bit] When the logging cycle unit setting is 0: 80 to 32767 When the logging cycle unit setting is 1: 1 to 32767 When the logging...
  • Page 21: Fb Details

    Engineering tool  FX5-4AD GX Works3 Version 1.040S or later  FX5-8AD GX Works3 Version 1.040S or later ■CPU module MELSEC iQ-F series Basic specifications Item Description Language Ladder diagram Number of steps 226 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: Parameter Setting

    Timing chart of I/O signals ■For normal completion i_bEN o_bENO Logging function parameter Unexecuted Write Unexecuted Unexecuted setting write processing o_bOK o_bErr o_uErrId ■For error completion i_bEN o_bENO Logging function parameter Unexecuted setting write processing o_bOK o_bErr o_uErrId Error code Restrictions or precautions •...
  • Page 23: Performance Value

    Performance value Performance value Number of scans Processing time Maximum scan time FX5UJ 0.145 ms 0.764 ms 1 scan *1*2 FX5U, FX5UC 0.133 ms 0.567 ms 1 scan *1 When the program capacity is set to 128 K steps, the processing speed may be reduced. *2 The labels in the standard area are used.
  • Page 24: Chapter 3 Analog Output Module Fb

    Always 0 String [16-bit] FB details Available device ■Analog output module Target module Firmware Version Engineering tool  FX5-4DA GX Works3 Version 1.040S or later ■CPU module MELSEC iQ-F series 3 ANALOG OUTPUT MODULE FB 3.1 M+FX5-4DA_RequestSetting (Validation of settings)
  • Page 25: Parameter Setting

    Basic specifications Item Description Language Ladder diagram Number of steps 54 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. For the setting options of GX Works3, refer to GX Works3 Operating Manual. The amount of label usage •...
  • Page 26: Performance Value

    Performance value Performance value Number of scans Processing time Maximum scan time FX5UJ 0.527 ms 0.711 ms 1 scan *1*2 FX5U, FX5UC 0.433 ms 0.602 ms 1 scan *1 When the program capacity is set to 128 K steps, the processing speed may be reduced. *2 The labels in the standard area are used.
  • Page 27: M+Fx5-4Da_Operateerror (Error Operation)

    M+FX5-4DA_OperateError (Error operation) Overview As i_bEN (execution command) turns on, the error information in the target module is monitored. After i_bEN (execution command) turns on, turning on i_bErrReset (error reset request) during an error allows the error to be reset. M+FX5-4DA_OperateError i_bEN o_bENO...
  • Page 28: Fb Details

    ■Analog output module Target module Firmware Version Engineering tool  FX5-4DA GX Works3 Version 1.040S or later ■CPU module MELSEC iQ-F series Basic specifications Item Description Language Ladder diagram Number of steps 94 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 29: Parameter Setting

    Restrictions or precautions • This FB does not include the error recovery processing. Program the error recovery processing separately in accordance with the required system operation. • This FB cannot be used in an interrupt program. • When operating the analog output module, the output range setting, and operation mode setting need to be set according to the device and system to be connected.
  • Page 30: M+Fx5-4Da_Waveoutputsetting (Waveform Output Setting)

    M+FX5-4DA_WaveOutputSetting (Waveform output setting) Overview As i_bEN (execution command) turns on, the wave output settings of a specified channel or all channels are written. M+FX5-4DA_WaveOutputSetting i_bEN o_bENO (11) i_stModule o_bOK (12) i_uCH o_bErr (13) i_uOutputSelect o_uErrId (14) i_wOutputValue i_udStartingAddr i_udPointsSetting W : i_wFrequency i_uConvSpeed (10)
  • Page 31: Fb Details

    ■Analog output module Target module Firmware Version Engineering tool  FX5-4DA GX Works3 Version 1.040S or later ■CPU module MELSEC iQ-F series Basic specifications Item Description Language Ladder diagram Number of steps 295 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 32 Processing • As i_bEN (execution command) turns on, the wave output settings of a specified channel or all channels are written. • The wave output setting is enabled only when the output mode setting is set to the wave output mode. The wave data for analog output is required to be set in advance.
  • Page 33: Parameter Setting

    Parameter setting It is necessary to set the output mode to "waveform output mode". Navigation window  [Parameter]  [Module Information]  [FX5-4DA]  [Module Parameter]  "Basic setting"  "Operation mode setting function"  "Output mode setting" For the parameter setting procedure, refer to MELSEC iQ-F FX5 User's Manual (Analog Control - Intelligent function module).
  • Page 34 Program • Setting of waveform pattern Set the waveform pattern for cyclical analog output in the buffer memory (U1\G10000 to 10007). M100 Setting of waveform pattern start address 1 U1\G10000 U1\G10001 Setting of waveform pattern start address 2 Setting of waveform pattern start address 3 U1\G10002 U1\G10003 Setting of waveform pattern start address 4...
  • Page 35: Performance Value

    • Operation of waveform output Waveform output is started, stopped and suspended according to the values set in i_uStartStopReq. For the details of the FB, refer to Page 34 M+FX5-4DA_WaveOutputReqSetting (Waveform output operation). M_FX5_4DA_WaveOutputReqSetting_00A_1 (M+FX5-4DA_MaveOutputReqSetting_00A) Wave output req setting FB i_bEN o_bENO FX5_4DA_1...
  • Page 36: M+Fx5-4Da_Waveoutputreqsetting (Waveform Output Operation)

    M+FX5-4DA_WaveOutputReqSetting (Waveform output operation) Overview As i_bEN (execution command) turns on, a start or stop request for the wave output of a specified channel or all channels is written to the buffer memory. M+FX5-4DA_WaveOutputReqSetting o_bENO i_bEN i_stModule o_bOK i_uCH o_uWaveStatusCH1 i_uStartStopReq o_uWaveStatusCH2 i_uUnitType...
  • Page 37: Fb Details

    ■Analog output module Target module Firmware Version Engineering tool  FX5-4DA GX Works3 Version 1.040S or later ■CPU module MELSEC iQ-F series Basic specifications Item Description Language Ladder diagram Number of steps 256 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 38: Parameter Setting

    Timing chart of I/O signals ■For normal completion i_bEN o_bENO i_uStartStopReq Write o_uWaveStatusCH1 to 4 Update in progress o_bOK o_bErr o_uErrId ■For error completion i_bEN o_bENO i_uStartStopReq o_uWaveStatusCH1 to 4 o_bOK o_bErr o_uErrId Error code Restrictions or precautions • This FB does not include the error recovery processing. Program the error recovery processing separately in accordance with the required system operation.
  • Page 39: Performance Value

    Performance value Performance value Number of scans Processing time Maximum scan time FX5UJ 0.062 ms 0.880 ms 1 scan *1*2 FX5U, FX5UC 0.058 ms 0.753 ms 1 scan *1 When the program capacity is set to 128 K steps, the processing speed may be reduced. *2 The labels in the standard area are used.
  • Page 40 MEMO 3 ANALOG OUTPUT MODULE FB 3.4 M+FX5-4DA_WaveOutputReqSetting (Waveform output operation)
  • Page 41: Instruction Index

    INSTRUCTION INDEX ....14 M+FX5-4AD_OperateError ....11 M+FX5-4AD_RequestSetting ... . . 17 M+FX5-4AD_SetLoggingParam .
  • Page 42 MEMO...
  • Page 43: Revisions

    Japanese manual number: SH-081868-C 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 44: Trademarks

    TRADEMARKS The company names, system names and product names mentioned in this manual are either registered trademarks or trademarks of their respective companies.   In some cases, trademark symbols such as ' ' or ' ' are not specified in this manual. SH-081886ENG-C...
  • Page 46 Manual number: SH(NA)-081886ENG-C HEAD OFFICE : TOKYO BUILDING, 2-7-3 MARUNOUCHI, CHIYODA-KU, TOKYO 100-8310, JAPAN NAGOYA WORKS : 1-14 , YADA-MINAMI 5-CHOME , HIGASHI-KU, NAGOYA , JAPAN When exported from Japan, this manual does not require application to the Ministry of Economy, Trade and Industry for service transaction permission. Specifications subject to change without notice.

Table of Contents