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.
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.
RELEVANT MANUALS Manual name <manual number> Description MELSEC iQ-F FX5S/FX5UJ/FX5U/FX5UC User's Manual (Hardware) Describes the details of hardware of the CPU module, including performance <SH-082452ENG> specifications, wiring, installation, and maintenance. MELSEC iQ-F FX5 User's Manual (Application) Describes basic knowledge required for program design, functions of the CPU <JY997D55401>...
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.
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.
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...
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...
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.
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.
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.
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.
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.
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...
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.
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.
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)
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 •...
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.
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...
■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.
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.
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)
■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.
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...
• 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...
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...
■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.
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.
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.
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.
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.