CPU module cannot detect any error. To ensure safety operation in such a case, provide a safety mechanism or a fail-safe circuit external to the programmable controller. For a fail-safe circuit example, refer to "General Safety Requirements" in the MELSEC iQ-R Module Configuration Manual.
Page 4
[Design Precautions] WARNING ● When connecting an external device with a CPU module or intelligent function module to modify data of a running programmable controller, configure an interlock circuit in the program to ensure that the entire system will always operate safely. For other forms of control (such as program modification, parameter change, forced output, or operating status change) of a running programmable controller, read the relevant manuals carefully and ensure that the operation is safe before proceeding.
Page 5
[Design Precautions] CAUTION ● During control of an inductive load such as a lamp, heater, or solenoid valve, a large current (approximately ten times greater than normal) may flow when the output is turned from off to on. Therefore, use a module that has a sufficient current rating. ●...
Page 6
[Installation Precautions] CAUTION ● Use the programmable controller in an environment that meets the general specifications in the Safety Guidelines included with the base unit. Failure to do so may result in electric shock, fire, malfunction, or damage to or deterioration of the product. ●...
Page 7
For wiring, refer to the MELSEC iQ-R Module Configuration Manual. ● For Ethernet cables to be used in the system, select the ones that meet the specifications in the user's manual for the module used.
Page 8
[Startup and Maintenance Precautions] WARNING ● Do not touch any terminal while power is on. Doing so will cause electric shock or malfunction. ● Correctly connect the battery connector. Do not charge, disassemble, heat, short-circuit, solder, or throw the battery into the fire. Also, do not expose it to liquid or strong shock. Doing so will cause the battery to produce heat, explode, ignite, or leak, resulting in injury and fire.
Page 9
[Startup and Maintenance Precautions] CAUTION ● When connecting an external device with a CPU module or intelligent function module to modify data of a running programmable controller, configure an interlock circuit in the program to ensure that the entire system will always operate safely. For other forms of control (such as program modification, parameter change, forced output, or operating status change) of a running programmable controller, read the relevant manuals carefully and ensure that the operation is safe before proceeding.
Page 10
● When disposing of this product, treat it as industrial waste. ● When disposing of batteries, separate them from other wastes according to the local regulations. For details on battery regulations in EU member states, refer to the MELSEC iQ-R Module Configuration Manual.
Before using this product, please read this manual and the relevant manuals carefully and develop familiarity with the functions and performance of the MELSEC iQ-R series programmable controller to handle the product correctly. When applying the program examples provided in this manual to an actual system, ensure the applicability and confirm that it will not cause system control problems.
This manual does not include information on the module function blocks. For details, refer to the Function Block Reference for the module used. e-Manual refers to the Mitsubishi Electric FA electronic book manuals that can be browsed using a dedicated tool.
Flexible high-speed I/O control module The abbreviation for the MELSEC iQ-R series flexible high-speed I/O control module Global label A label that is valid for all the program data when multiple program data are created in the project. The global label has two types: a module specific label (module label), which is generated automatically by GX Works3, and an optional label, which can be created for any specified device.
MANUAL PAGE ORGANIZATION Pages describing the hardware logic are organized as shown below. The following illustration is for explanation purpose only, and should not be referred to as an actual documentation. An icon displayed here indicates the window where the terminal or block is used. The meaning of each icon is as follows.
FUNCTIONS This chapter describes the details on the functions that can be used in the flexible high-speed I/O control module and their setting methods. Modes The flexible high-speed I/O control module has the normal operation mode and inter-module synchronous mode. Change the mode according to the function used.
Continuous Logging Function This function collects the status of the Output terminal of the external input blocks (IN 0 to IN B) continuously at a specified interval. Collecting logging data Logged data is stored in Continuous logging data storage area (Un\G15020 to Un\G25259). ■Storing data to the buffer memory Logged data is temporarily saved in the module and stored in Continuous logging data storage area (Un\G15020 to Un\G25259), from the start address in increments of 64 points.
Page 20
Starting continuous logging Write the hardware logic to the module and start hardware logic control. When the hardware logic control starts, the value in 'Continuous logging status monitor' (Un\G15010) changes from Disabled (0) to Start request waiting (1). Set the continuous logging cycle (1s (0) to 1000s (3)) in 'Continuous logging cycle setting' (Un\G15008). Changing the value in 'Continuous logging start/stop request' (Un\G15009) from Stop request (0) to Start request (1) starts the continuous logging on the set continuous logging cycle.
Page 21
Operation of continuous logging When logging data is stored in Continuous logging data storage area (Un\G15020 to Un\G25259), 'Continuous logging data points' (Un\G15014, Un\G15015) is refreshed for each data storage. 'Continuous logging data points' (Un\G15014, Un\G15015) indicates the number of data stored in Continuous logging data storage area (Un\G15020 to Un\G25259).
Page 22
Stopping continuous logging Changing the value in 'Continuous logging start/stop request' (Un\G15009) from Start request (1) to Stop request (0) stops continuous logging. After continuous logging is stopped, the data that was partially logged is stored in buffer memory areas and the value in 'Continuous logging data points' (Un\G15014, Un\G15015) is refreshed to the number of data points that was logged by the time the stop request was accepted.
Page 23
■Restarting continuous logging To restart continuous logging after stopping it, perform the following operations. Check that the value in 'Continuous logging status monitor' (Un\G15010) is Start request waiting (1). Change the value in 'Continuous logging start/stop request' (Un\G15009) from Stop request (0) to Start request (1). When the value in 'Continuous logging status monitor' (Un\G15010) is In progress (2), the start request is ignored.
• For the file register capacity setting, refer to the MELSEC iQ-R CPU Module User's Manual (Application). • For details on the function block for continuous logging data transfer, refer to the MELSEC iQ-R Flexible High-Speed I/O Control Module Function Block Reference.
Page 25
■Program example to transfer data with the function block To start the continuous logging and copy logging data for 102400 points and register them in the file register (ZR0 to ZR102399) of the CPU module continuously • Label settings Classification Label name Description Device...
Page 26
(The processing time of this program must be 3.9ms or shorter including the processing time of the function block.) *1 Maximum processing time of each instruction is used for the calculation. ( MELSEC iQ-R Programming Manual (Instructions, Standard Functions/Function Blocks)) *2 This value is for when the continuous logging is executed every 1s cycle.
Page 27
Transfer of data with the interrupt function The interrupt program is executed on the timing when the logging data for 5120 points are stored in the buffer memory. Thus, logging data can be transferred into the file register (ZR) without depending on the scan time. For the interrupt program, do not use the function block for continuous logging data transfer because the function block does not operate properly by doing so.
Page 28
• Scan program The settings are configured as follows by the contact turning on for one scan after RUN. 'G_udWriteStartPosition' (D10) is set to 0 so that ZR0 is set as the start position of the save destination file register. ...
Page 29
• Interrupt program (189) An interrupt occurs each time logging data for 5120 points are stored in the buffer memory. In addition, if both 'Continuous logging data A side storage flag' (Un\G15012) and 'Continuous logging data B side storage flag' (Un\G15013) are on, it is regarded as a logging data omission and 'G_bErrorDetection' (F0) is turned on.
Page 30
(when the refresh processing is set) at the interrupt execution to the instruction processing time of the interrupt program. The interrupt overhead time and the refresh processing time at the interrupt execution vary depending on the parameter settings of the CPU module. For details, refer to MELSEC iQ-R CPU Module User's Manual (Application).
Page 31
Use the SP.FWRITE instruction to write the data into the SD memory card. For details on the SP.FWRITE instruction, refer to the following. MELSEC iQ-R Programming Manual (Instructions, Standard Functions/Function Blocks) Restrictions The maximum response delay time of interrupt during the execution of continuous logging is 200s.
Interrupt Function This function notifies the CPU module that either of following conditions is satisfied as an interrupt request. • A signal is input to the SI device terminal of the hardware logic. • The logging data for 5120 points is stored in Continuous logging data storage area (Un\G15020 to Un\G25259). For the flexible high-speed I/O control module, the maximum number of interrupt pointers available is 9 per module.
Page 33
• Multi function counter block detail window (Counter_0(16bit_Unsigned)) • Multi function counter block detail window (Counter_1(32bit_Unsigned)) • Multi function counter block detail window (Counter_2(32bit_Unsigned)) • An interrupt request to the CPU module can also be output using a detection in the input signal event detection block as a trigger.
Page 34
For details on the interrupt pointers, refer to the following. MELSEC iQ-R CPU Module User's Manual (Application) When the same factor occurs again after the execution of an interrupt program, an interrupt request is output to the CPU module to start an interrupt program.
Page 35
Setting example When 'General command 0' (Y10) is turned on in the interrupt program (I50) • Parameter setting Set "Interrupt setting" of the module parameter as follows. Condition target setting Interrupt pointer SI device terminal 0 (SI0) • Label settings Classification Label name Description...
Inter-Module Synchronization Function This function synchronizes the control timings of multiple flexible high-speed I/O control modules. Overview The following table lists the targets that can be synchronized by the inter-module synchronization function. Target Timing Overview Synchronous output of external output signals Inter-module synchronization signal The High/Low states of the external output terminals are changed at a time.
Page 37
■Latch of the count values and the states of external input signals The count values of all the multi function counter blocks and the High/Low states of external input signals are latched in synchronization with the inter-module synchronization signal. After the latch count values are stored in the buffer memory areas and the external input signals are stored in the X signals, the latch count values and the High/Low states of the external input signals at the latest synchronization cycle can be referred to in the inter-module synchronous interrupt program.
Page 38
Setting method ■System parameter setting To use the inter-module synchronization function, set the inter-module synchronization function in "System Parameter" and set the flexible high-speed I/O control module for an inter-module synchronization target module. The following describes an example of the setting procedure. [Navigation window] ...
Page 39
For details on the interrupt program, refer to the following. MELSEC iQ-R CPU Module User's Manual (Application) When the flexible high-speed I/O control module is set for a synchronization target, the I/O refresh is executed before and after the synchronous interrupt program.
Page 40
Operation ■Timing to start the inter-module synchronization cycle • Refreshing the synchronization latch count values and the states of external input signals The count values at the timing to start the inter-module synchronization cycle are latched to Synchronization latch count value (Un\G700 to Un\G715).
Page 41
(mounting position of the module). For details, refer to the following. MELSEC iQ-R Inter-Module Synchronization Function Reference Manual Synchronization accuracy of the external When "SYNC" is set for "Delay Time(Unit)" of an external output block, the input status to the external output output signals block is reflected to the external output within 1s (output response time) from the timing to start the inter-module...
Page 42
Operation examples ■Basic operations The following shows the basic operations when two flexible high-speed I/O control modules are in the synchronous operating status. • Changes in the synchronous operations when the state of the CPU module is set from STOP to RUN (The flexible high- speed I/O control modules store the latest latch count values in Synchronization latch count value (Un\G700 to Un\G715) from the timing to start the inter-module synchronization cycle until the execution of the synchronous interrupt program.) Inter-module synchronization cycle...
Page 43
• Changes in the synchronous operations when the state of the CPU module is set from RUN to STOP Inter-module synchronization cycle Inter-module synchronization cycle Operating status of the CPU module STOP Synchronization status of the CPU module Synchronization in progress Synchronization stopped Module A, module B On: Hardware logic control in progress...
Page 44
Faulty operations during synchronization Faulty operations during synchronization have the following causes. • Cycle crossing over ( Page 42 Operations at a cycle crossing over) • Cycle skip ( Page 44 Operations at a cycle skip) • Synchronization loss ( Page 45 Operations at a synchronization loss) ■Operations at a cycle crossing over The "cycle crossing over"...
Page 45
• The following shows the operations of the flexible high-speed I/O control module when "Hardware logic control stop" is set for "Hardware logic control selection during synchronization error occurrence" and a cycle crossing over occurs. Inter-module synchronization cycle Inter-module synchronization cycle Synchronous Synchronous Synchronous...
Page 46
■Operations at a cycle skip The "cycle skip" is a phenomenon that the refresh processing of General command and User Address to the modules is not performed during an inter-module synchronization cycle due to the operation timing of a synchronous interrupt program. When a cycle skip occurs, an inter-module synchronization cycle skip error (error code: 2601H) occurs.
Page 47
■Operations at a synchronization loss The "synchronization loss" is a phenomenon that the flexible high-speed I/O control module cannot receive an inter-module synchronization signal at the proper cycle. When a synchronization loss occurs, an inter-module synchronization signal error (error code: 2610H) occurs. For the operations of the flexible high-speed I/O control module when this error occurs, whether to continue or stop the hardware logic control can be selected in "Hardware logic control selection during synchronization error occurrence"...
Page 48
• The following shows the operations of the flexible high-speed I/O control module when "Hardware logic control stop" is set for "Hardware logic control selection during synchronization error occurrence" and a synchronization loss occurs. Inter-module synchronization cycle Inter-module synchronization cycle Synchronous Synchronous Synchronous...
Error History Function Up to 16 errors that occurred in the flexible high-speed I/O control module are stored in the buffer memory areas as an error history. Operation The error code and error time of each error are stored in Error history No.1 (Un\G8010 to Un\G8019) and sequentially thereafter.
Page 50
Checking the error history The start address of the error history where the latest error has been stored can be checked with Latest address of error history (Un\G8000). The following shows the case in which the third error has occurred. The third error is stored in Error history No. 3 and 8030 (start address of Error history No.
Page 51
The following shows the case in which the 17th error has occurred. The 17th error is stored in Error history No. 1 and Latest address of error history (Un\G8000) is overwritten with 8010 (start address of Error history No.1). Latest address of error history (Un\G8000) Address Latest...
The event history function can be set from the event history setting window of the engineering tool. For the setting method, refer to the following. MELSEC iQ-R CPU Module User's Manual (Application) Displaying event history Access the menu window of the engineering tool. For details on the operating procedure and how to view the contents, refer to the following.
Page 53
List of event history data The following table lists the events that occur in the flexible high-speed I/O control module when the event type is operation. Event code Event class Event name Event detail Additional information 20100 Information Error clear "Error clear"...
Hardware logic is automatically restored when the failed module is replaced with a new one using the online module change. For details on the online module change, refer to the following. MELSEC iQ-R Online Module Change Manual Details of the module-specific backup parameter A module-specific backup parameter is a file created in an SD memory card or the data memory of the control CPU.
Reading of module-specific backup parameters To read a module-specific backup parameter and restore hardware logic, set "Hardware logic control auto restoration executed/unexecuted" of the module parameter to "Enable" in advance. [Navigation window] [Parameter] [Module Information] Module model name [Module Parameter] [Application setting] ...
FUNCTIONS OF THE CONFIGURATION TOOL This chapter describes the configuration tool for creating the hardware logic and writing it into the flexible high-speed I/O control module. Starting and Exiting the Configuration Tool This section describes how to start or exit the configuration tool. Start Follow the steps below.
Page 57
■Connection target The configuration tool acquires information of the connection destination from GX Works3 at its start-up. Therefore, when the connection destination has been changed on GX Works3 after the start-up of the configuration tool, exit from the configuration tool once. And start it again. Exit Select [Project] and [Exit] in the configuration tool.
Window Layout The following figure shows the whole window layout. Title bar Menu bar Toolbar Element selection window Work window Status bar Navigation Watch window Map display window window Docking window For details on each item, refer to the following. Window Reference Page 58 Navigation window...
Page 59
■Switching the docking window displays between docking and floating. • Docking display: Drag and drop the title bar of a docking window with floating display into the guidance to dock the window. Or select a docking window with floating display and perform [Window] [Docking]. Drag and drop Drag a dockable window to the guidance A new tab appears after the window is docked.
Navigation window In the Navigation window, the Hardware logic outline window and names of multi function counter blocks arranged in the window (Counter_: A multi function counter block number comes in .) are displayed in the tree format. For details on the hardware logic outline window and multi function counter blocks, refer to the following. Page 115 CREATING A HARDWARE LOGIC 2 FUNCTIONS OF THE CONFIGURATION TOOL 2.2 Window Layout...
Element Selection window In the Element Selection window, the main blocks that can be arranged when the hardware logic is created are displayed in the tree format. This window displays only the blocks in a category selected from the drop-down menu at the upper section of the window. When a multi function counter block is selected in the Element Selection window and arranged on the work window, the tab of the block is added in the work window.
Work window The hardware logic is created or the monitor display is executed in the work window. One of the hardware logic outline window (one window) and multi function counter block detail windows (up to eight windows) is displayed. Switch the window with one of the following operations. •...
Map display window The map display window displays the hardware logic outline window that is currently being displayed or a whole image of multi function counter block detail windows in the work window. Click the area to display to move the display position of the work window. 2 FUNCTIONS OF THE CONFIGURATION TOOL 2.2 Window Layout...
List of Menus of the Configuration Tool [Project] menu Menu Reference Page 66 Creating a new project [Project] [New] Page 66 Opening a project [Project] [Open] [Project] [Close] Page 67 Saving an existing project [Project] [Save] [Project] ...
Page 65
[Online] menu Menu Reference [Online] [Start I/O number setting] Page 86 Start I/O number setting Page 87 Writing data to the module [Online] [Write to Module (execution memory)] [Online] [Write to Module (execution + Flash ROM)] Page 87 Reading data from the module [Online] ...
Page 66
[Debug] menu Menu Reference [Debug] [Simulation] Page 95 Simulation function [Debug] [Logic Analyzer] Page 102 Logic analyzer function Page 108 Continuous logging [Debug] [Continuous logging] [Start] [Debug] [Continuous logging] [Stop] [Window] menu Menu Reference ...
Printing The contents in the Work window are printed. Printing method Open the "Print" window. [Project] [Print] Select the items to be printed. The following contents are printed depending on the items to be selected. Item Content Hardware logic outline window •...
Project Management The configuration tool manages the hardware logic as a project. This section describes the basic operations of the configuration tool for projects, such as creating, opening, and saving of a project. Because a created project can be managed as a project file, changing of a project name, copying and pasting of a project, ...
Saving a project file Save a project file in a hard disk or other areas in a personal computer. Saving a project with a new name Name the project being edited and save the project file. [Project] [Save As] Saving an existing project Overwrite the hardware logic information being edited on an existing project file.
Verifying a project file Verify the contents of a currently opened project and those of another project in a hard disk. Verification results are displayed in a list and mismatches can be checked. Verifying the hardware logic The following describes how to verify the hardware logic. Select the following item.
Security When the hardware logic is written into a flash ROM, add a password to prevent inappropriate access to read the data. After [Security] is set to "Enable" and [Write to Module (Execution memory + Flash ROM)] in [Online] is executed, the password input window is displayed.
Page 72
■Operations to be performed when "Read from Module (Flash ROM)" is executed Hardware logic in the Description module With a password • The password input window is displayed. • Only when the input password matches the password in the module, the hardware logic can be read. Without a password •...
Windows for Creating the Hardware Logic The following two types of window are prepared for creating the hardware logic. The window can be switched between the hardware logic outline window and the multi function counter block detail window. Window Description Hardware logic outline window This window is for creating the outline of the hardware logic in the flexible high-speed I/O control module.
Hardware logic outline window The hardware logic outline window is composed of the following five sections. Depending on the section, the blocks that can be arranged differ. Change the setting and linking of each block to create the hardware logic with various functions. Section Description Blocks and terminals that can be...
Multi function counter block detail window A multi function counter block detail window is composed of the following six sections. Change the setting and linking of each block to create various count operations. Section Description Blocks and terminals that have been arranged First section The terminals corresponding to inputs to a multi function counter block have been...
How to use blocks Arranging blocks The following describes how to arrange a block. Select a block in the Element Selection window. Drag and drop the block into the hardware logic outline window. When a block is dragged into the hardware logic outline window, the area to which the block can be dropped is highlighted. When the selected block is dropped into the work window, the block is automatically arranged in the highlighted area.
Page 77
Block setting Configure block settings by changing values in the drop-down lists and text boxes of each block. Item name Description Drop-down list Select a setting value from the drop-down list. Text box Input a one-byte numerical value (decimal). User Address •...
Page 78
Linking blocks The following describes how to link blocks. Click the terminal to be a start point. The outer frame of the selected terminal is highlighted. Click the terminal to be an end point. The start point and end point are automatically linked. Event terminals of a multi function counter block can be linked to Event terminals of another multi function counter block arranged in the same section.
Page 79
■Linking conditions of terminals Terminals in the same color can be linked. Terminals with two colors can be linked with the terminals with either of the two colors. For details on the terminal colors, refer to the following. Page 115 Main Blocks in the Hardware Logic Outline Window ■Link type The two link colors, blue and gray, are provided.
Page 80
■Operation details and restrictions • Multiple blocks cannot be copied at a time. Only a single block can be copied. • The link between the block to be copied and other blocks is not copied. However, when the block to be copied is a multi function counter, link information in the multi function counter block detail window is also copied.
Page 81
Pasting a block This function pastes the copy of a block. Select [Edit] [Paste] for a block with the same type as the copy to overwrite the setting values with the ones of the copy at a time. Select [Edit] [Insert and Paste] to add the copy as a new block in the hardware logic outline window.
Adding a comment Comments can be arranged in the Work window. Inserting a comment The following describes the procedure of inserting a comment. Right-click the area in which a comment is to be inserted in the Work window. Select "Comment Insert" from the context menu. Comments can also be inserted by selecting [Edit] ...
Page 83
Deleting a comment The following describes the procedure of deleting a comment. Click the comment to be deleted. The comment is selected (displayed in blue). Right-click the comment and select "Comment Delete" from the context menu. Or press the key. Moving a comment The following describes the procedure of moving a comment.
Page 84
Cutting, copying, and pasting a comment The following describes the procedure of cutting, copying, and pasting a comment. Click the comment to be cut or copied. The comment is selected (displayed in blue). Right-click the comment, and select "Comment Cut" or "Comment Copy" from the context menu. Right-click the area on which the comment is to be pasted in the Work window.
Library Function A library is a block in which the types and setting values of main blocks have been combined. Libraries can be shared among multiple projects by registering them in the configuration tool. There are the following two types of library. Library type Description Library provided by the manufacturer...
Page 86
Operation details and restrictions • Multiple blocks cannot be exported at a time. Only a single block can be exported. • The link between the block to be exported and other blocks is not exported. However, when the block to be exported is a multi function counter, the link information in the multi function counter block detail window and the link between Event terminals of a multi function counter block in the hardware logic outline window are also exported.
Library operation The following describes the library. No library exists immediately after the installation of GX Works3. Register libraries as necessary. Registering a library Register the libraries provided by the manufacturer and exported user libraries in the configuration tool. Registering libraries adds the blocks in library files in the "Library"...
Online Functions Connect the computer in which GX Works3 has been installed and the CPU module, and read or write data from/to the flexible high-speed I/O control module through the CPU module. The following table lists the online functions. Function Description Reference Start I/O number setting...
Writing data to the module Write the hardware logic to the execution memory of the flexible high-speed I/O control module. The execution memory and the flash ROM are available as the write destination of the data. Select only the execution memory or both the execution memory and the flash ROM as the write destination.
Verifying with the module Verify the hardware logic in the project file being edited and the hardware logic saved in the flash ROM of the flexible high- speed I/O control module. Verification results are displayed in a list and mismatches can be checked. Verifying the hardware logic The following describes how to verify the hardware logic.
Module operation The hardware logic control can be started or stopped with the configuration tool. Start or stop the hardware logic control under the following situations. Operation Situation Starting the hardware logic control • Use this operation after the power is turned on. The hardware logic control is stopped after the power-on. Check the safety and select [Hardware logic control start] to start the control.
Monitor The High/Low states of I/O terminals and count values are displayed in the hardware logic outline window or a multi function counter block detail window. The following lists the items that can be monitored. Window Block Item Hardware logic outline window External input block ON/OFF state of the corresponding external input terminal...
Page 93
Monitor display ■Monitor display target The following terminals can be monitored. Monitor values of the terminals that have not been linked are not displayed. Window name Block name Terminal Item to be monitored Hardware logic outline External input block IN 0 to IN B ...
Watch Function Current values such as High/Low states of I/O terminals and count values can be displayed in a watch window. The following table lists items that can be displayed. Window Block Item Hardware logic outline window External input block High/Low state of the output terminal Multi function counter block High/Low state of the Output 0 terminal...
Page 95
Registration with a watch window ■Watch item selection Select an item to be watched and register it with a watch window. Display a watch window. [View] [Docking Window] [Watch 1] to [Watch 4] Right-click the watch window and select "Watch Item Setting" from the context menu. Select a watch window to be used with "Target Window Selection".
Page 96
Watch display ■Watch target The following table lists terminals targeted for the watch. Window name Block name Terminal "Current Value" display Hardware logic outline External input block IN 0 to IN B Output terminal High/Low state of a terminal window Multi function counter block Counter_0 to Counter_7 Output 0 terminal...
2.10 Debug Function This function performs simulation and logic analyzer, and starts/stops continuous logging. Simulation function The simulation function verifies the hardware logic written into the flexible high-speed I/O control module without wiring with external devices. With the configuration tool, create "simulation input data", the substitute for external input signals, and write the data into the flexible high-speed I/O control module to operate the hardware logic.
Page 98
The following table lists the items to be displayed in the "Simulation Settings" window. Item Description External input signal data setting area To verify the hardware logic, set the status of data to be imported as external input signals (IN 0 to IN B). The setting value 0 indicates that an external input signal is off, and the setting value 1 indicates that an external input signal is on.
Page 99
How to use The following describes how to use the simulation function. Open the "Simulation Settings" window. [Debug] [Simulation] Click each cell in the external input signal data setting area and switch "0: External input signal OFF" and "1: External input signal ON".
Page 100
Set "Simulation step unit time setting". Changing "Simulation step unit time setting" changes the following timing. • Timing to move external input data to the next step (Data is changed one step by one step at the set unit time.) •...
Page 101
Click "Writing to Module" to write the simulation input data into the flexible high-speed I/O control module. If a communication error has occurred during the communication with the module with the simulation function, the possible cause is one of the following causes. Check the target module and communication status. •...
Page 102
CSV file format of simulation execution results The following shows the CSV file format specifications of simulation execution results. Item name Character Delimiter Comma (,) Return code CRLF (0x0D, 0x0A) ■1st row [LOGGING], RD40PD01_1, 2, 3, and 4 are output (fixed output). ■2nd row The data type of the simulation execution result is output.
Page 103
The data in the 0th step of the simulation input data is reflected to the initial value of the Output terminal in the external input block. Because the processing time of the hardware logic affects the simulation step, the following time is required until the simulation input data changes the Output terminal in the external input block.
Logic analyzer function When the trigger setting that has been set in advance and the states of the hardware logic match, the logic analyzer function acquires the states of the hardware logic before and after the match timing as sampling data. Acquired sampling data can be saved in CSV files.
Page 105
The following table lists the items to be displayed in the "Logic Analyzer" window. Item Description Trigger Signal Select a signal to be a trigger. • When the "Logic Analyzer" window is opened from an external input block, the selected external input block is set for "Trigger Signal". •...
Page 106
Data that can be acquired as sampling data Window name Block name Terminal Data to be acquired Hardware logic outline External input block IN 0 to IN B Output terminal High/Low state of a terminal window External output block OUT 0 to OUT 7 Input terminal OUT 0_DIF to OUT 5_DIF Input terminal...
Page 107
If a communication error has occurred during the communication with the module with the logic analyzer function, the possible cause is one of the following causes. Check the target module and communication status. • A module with the target start I/O number does not exist. •...
Page 108
Switching the trigger status between the trigger ready and trigger stop The following describes how to switch the trigger status between the trigger ready and trigger stop. ■Switching the trigger stop to the trigger ready Switch the trigger stop to the trigger ready with one of the following methods. •...
Page 109
CSV file format of sampling data The following shows the CSV file format specifications of sampling data. Item name Character Delimiter Comma (,) Return code CRLF (0x0D, 0x0A) ■1st row [LOGGING], RD40PD01_1, 2, 3, and 4 are output (fixed output). ■2nd row •...
Continuous logging A start request or stop request of continuous logging can be issued from the configuration tool. The continuous logging cycle can be set when issuing a start request. For details on the continuous logging function, refer to the following. Page 17 Continuous Logging Function How to start or stop the continuous logging function The following describes how to start or stop the continuous logging function.
2.11 Pattern Generator Function The pattern generator function performs output from the external output terminals according to the output pattern data consisting of up to 8192 points that have been registered in the flexible high-speed I/O control module in advance. If a counter timer block and pattern generator block are used together, periodic pattern output according to the clock in the flexible high-speed I/O control module and High/Low output corresponding to the input pulse from the external input terminals can be performed.
Page 112
Operation of pattern output When a created output pattern is assigned to a pattern generator block, the pattern can be used. Outputs from the pattern generator block are determined depending on the count value of the counter timer block linked with the pattern generator block.
Page 113
■Counting input pulses from an external input terminal Output are performed according to the input pulses from an external input terminal. For example, output corresponding to position data can be performed. Encoder (pulse output type) Count value (position data) Input pulse Pattern generator output (1) to (4) When the position data are the same, the output are also the same.
Page 114
Window layout The following describes the configurations of the "Pattern generator output pattern setting" window. Set the output pattern data in this window. To display the "Pattern generator output pattern setting" window, click "Detail" of the pattern generator block in the Multi function counter block detail window (Counter_(16bit_Unsigned)).
Page 115
Setting method The following describes the setting method of the "Pattern generator output pattern setting" window. Click "Detail" of a pattern generator block in the Multi function counter block detail window (Counter_(16bit_Unsigned)) to open the "Pattern generator output pattern setting" window. Select a pattern to be output in "Pattern selection".
CSV file format of output pattern data The following shows the CSV file format specifications of output pattern data. Item name Character Delimiter Comma (,) Return code CRLF (0x0D, 0x0A) ■Contents of rows The rows correspond to the pattern numbers of output patterns. For example, the 1st row corresponds to the pattern number 1 of the output pattern.
CREATING A HARDWARE LOGIC This chapter describes how to create a hardware logic. Main Blocks in the Hardware Logic Outline Window With the flexible high-speed I/O control module, various controls are possible by arranging multi function counter blocks and various function blocks and linking these blocks. In the Hardware logic outline window, all of external input blocks, inter-module synchronization signal input terminal, Y device terminals, and OUT terminals are arranged in the first section and all of external output blocks and SI device terminals are arranged in the fifth section when a project is started.
Page 118
Relationship of I/O in the hardware logic This section describes the relationship between the I/O in the hardware logic and the I/O of X/Y devices and of the connectors for external devices. CPU module Flexible high-speed I/O control module Program Hardware logic Connector for Connector for...
Page 119
Link combination The terminals to which the terminals of each main block can be linked are predetermined. An input terminal and an output terminal in the same color can be linked. Input terminals or output terminals cannot be linked each other. The following table lists the combinations.
External input block Outline In the first section in the hardware logic outline window, 12 external input blocks ("IN 0" to "IN B") are arranged by default. Select which signal (among "IN 0" to "IN B") input from the connector for external devices is to be used as an input signal in the hardware logic.
Page 121
■"Filter Time" General-purpose input or pulse input count can be selected for "Filter Time". • General-purpose input (General Input 0s to General Input 5ms) Set this method to reduce noise. When a pulse width is less than the setting value of "Filter Time", the pulse is not detected as an input signal.
Page 122
■Link with SSI encoder blocks When an external input block is linked with the "Data" terminal of an SSI encoder block, the "Filter Time" of the external input block is automatically changed according to the setting value of "Transmission Speed" of the SSI encoder block. Additionally, if the setting value of "Transmission Speed"...
*1 For the accuracy of the ON timing, refer to the section of the inter-module synchronization accuracy in the following manual. MELSEC iQ-R Inter-Module Synchronization Function Reference Manual 3 CREATING A HARDWARE LOGIC 3.1 Main Blocks in the Hardware Logic Outline Window...
Y device terminal Outline In the first section in the hardware logic outline window, 16 Y device terminals ("Y 10" to "Y 1F") are arranged by default. The ON/OFF states of 'General command 0 to General command F' (Y10 to Y1F) are output as signals and used as inputs in the hardware logic.
OUT terminal Outline In the first section in the hardware logic outline window, eight OUT terminals for DC output ("OUT 0" to "OUT 7") and six OUT terminals for differential output ("OUT 0_DIF" to "OUT 5_DIF") are arranged by default. Signals output from external output blocks in the fifth section can be used as inputs in the hardware logic.
Parallel encoder block Outline In the second section in the hardware logic outline window, one parallel encoder block ("Parallel_Encoder") can be arranged. The parallel encoder block transmits data with the encoder for parallel transmission and receives the data of the bit points set in the data length setting as the data of Input Data Type to convert this data into word data.
Page 127
Parameter The following table shows the parameters of the parallel encoder block. Variable name Data type Valid range Default value Description Input Data Type Word Pure binary Pure binary Set the input data type of the parallel interface. Gray code •...
Page 128
■Setting and link of the encoder for which Input Data Type is set to Pure binary or BCD When data is input from the encoder for which Input Data Type is set to Pure binary or BCD, an error of 2 bits or more is generated depending on the timing of reading data.
SSI encoder block Outline In the second section in the hardware logic outline window, two SSI encoder blocks ("SSI_Encoder_") can be arranged. The SSI encoder blocks perform serial communication with the absolute encoder having the SSI (Synchronous Serial Interface) output and acquire position data. The acquired position data is stored as a count value of the multi function counter block linked to this block.
Page 130
Parameter The following table shows the parameters of the SSI encoder block. Variable name Data type Valid range Default value Description Encoder Type Word Single Turn Single Turn Set the type of the SSI encoder. Multi Turn • Single Turn •...
Page 131
• Parameters of "Data Frame Setting" Variable name Data type Valid range Default value Description Input Data Type Word Pure binary Pure binary Set the type of input data from the SSI encoder. Gray code • Pure binary • Gray code Data Frame Length Word 1 to 32 (bit)
Page 132
Output The following table shows the outputs of the SSI encoder block. Variable name Data type Linkable block Output value Description Clock External output 0, 1 Outputs the clock signal to perform synchronous data communication with the SSI encoder. When an SSI encoder block is arranged in the hardware logic outline window, the "Clock"...
Page 133
Setting examples of the SSI encoder block This section shows setting examples of the SSI encoder block suitable for a receive frame from the SSI encoder and communication specifications. ■Multi turn The following example is for the receive frame of a multi turn encoder. The receive frame consists of the elements below. •...
Page 134
■Single turn The following example is for the receive frame of a single turn encoder. The receive frame consists of the elements below. • Single turn: 24 bits • Status bit: 1 bit • Parity bit: None Clock Most significant bit Least significant bit Receive frame bit position...
Page 135
Monoflop time The monoflop time indicates the time set aside to refresh position data of the SSI encoder. The time is stipulated by an encoder type. If the monoflop time is set to be shorter than the stipulated time, correct position data cannot be received. When CLK transmission from the connected device is stopped by the monoflop time, the DATA signal from the SSI encoder returns to High.
Page 136
Receive data monitor Out of the data frame received from the SSI encoder, the information for the number of bits specified with "Data Frame Length" is stored in the following buffer memory areas. (The parity bit is not included.) Buffer memory address SSI encoder block Un\G110, Un\G111 SSI_Encoder_0...
Logical operation block Outline In the fourth section in the hardware logic outline window, 14 logical operation blocks ("Logic_Operation_0" to "Logic_Operation_D") can be arranged. Any logical operation of AND operation, OR operation, or XOR operation is executed for all signals input to the "Input" terminal.
External output block Outline In the fifth section in the hardware logic outline window, eight external output blocks for DC output ("OUT 0" to "OUT 7") and six external output blocks for differential output ("OUT 0_DIF" to "OUT 5_DIF") are arranged by default. The result of the operation from the first to the fourth section in the hardware logic is output from the connector for external devices (OUT 0 to OUT 7, OUT 0_DIF to OUT 5_DIF).
Page 139
Parameter The following table shows the parameters of the external output block. Variable name Data type Valid range Default value Description Logic Select Non-Inversion Non-Inversion Set Non-Inversion or Inversion for input signals. Inversion Delay Time (Step) Word 0 to 64 Adjust the signal output timing.
Page 140
■Delay time A delay time is calculated by multiplying "Delay Time (Unit)" by "Delay Time (Step)". An error of one unit time may be generated in delay time. However, the error can be reduced by setting the delay time as shown below.
SI device terminal Outline In the fifth section in the hardware logic outline window, eight SI device terminals ("SI 0" to "SI 7") are arranged by default. When a signal is input to an SI device terminal, an interrupt request is output to the CPU module to start an interrupt program. The interrupt program corresponding to each SI device terminal needs to be set in GX Works3 in advance.
Multi Function Counter Block Outline In the third section in the hardware logic outline window, up to eight multi function counter blocks ("Counter_0" to "Counter_7") can be arranged. Set details on how to count pulses of input signals in the Multi function counter block detail window. To shift to the Multi function counter block detail window, double-click the corresponding block in the Hardware logic outline window.
Page 143
Input The following table shows the inputs of the multi function counter block. Variable name Data type Linkable block Valid range Description Input 0 • External input 0, 1 The input terminals are for external input signals. • Inter-module synchronization signal Executes OR processing for all signals input to the Input 1 input...
Internal blocks of multi function counter blocks There are 14 types of internal blocks in a multi function counter block. Control operations can be freely customized by linking the internal blocks. When a multi function counter block is arranged in the hardware logic outline window, all internal blocks are arranged in the multi function counter block detail window.
Page 145
Link combination An input terminal and output terminal in the same color can be linked among the internal blocks. Input terminals or output terminals cannot be linked each other. The following table lists the combinations. Output side Input side Color Block name Terminal name Block name...
Page 146
■Restrictions on linking the same-color terminals for 16-bit multi function counter blocks For 16-bit multi function counter blocks, linkable combinations of blocks and terminals are restricted even if the terminals are in the same color. • Input signal event detection block and event output terminal Input signal event detection block (output side) Event output terminal (input side) Block name...
Page 147
Assignment of "User Address" "User Address" can be set to particular internal blocks arranged in a multi function counter block detail window. By assigning buffer memory addresses to "User Address", the status of input terminals and parameter setting values can be changed with programs and values of the hardware logic can be monitored during the hardware logic control.
Input terminal Multi function In the first section in a multi function counter block detail window, two input terminals ("Input 0", "Input 1") are arranged by default. They are used to use signals input to a multi function counter block in the hardware logic outline window ("Input 0", "Input 1") as input signals in the multi function counter block detail window.
Event input terminal Multi function In the first section in a multi function counter block detail window, event input terminals are arranged by default. For a 16-bit counter, four event input terminals ("Event 0" to "Event 3") are arranged. For a 32-bit counter, two event input terminals ("Event 0", "Event 1") are arranged.
Input signal event detection block Multi function In the second section in a multi function counter block detail window, one input signal event detection block ("Input_Signal_Event") is arranged by default. Set conditions to detect input signals of a multi function counter block. When the detection conditions are satisfied, the Output terminal turns to High.
Page 151
Parameter The following tables show the parameters of the input signal event detection block. • Parameter of "Detector Select" Variable name Data type Valid range Default value Description Detector Select Set the condition to detect signals. Click the [Detector Select] button to open the detection condition setting window ("Select Box").
Page 152
Variable name Data type Valid range Default value Description B: Fall When the fall of "Input B" has been detected, Output turns to High only for one clock cycle. The status of "Input A" does not affect the status of Output. Input A Input B Output...
Page 153
Variable name Data type Valid range Default value Description A: Low+B: Rise When the Low state of "Input A" and the rise of "Input B" have been detected, Output turns to High only for one clock cycle. Input A Input B Output A: High+B: Rise When the High state of "Input A"...
Page 154
■Pulse input modes and count timing The following table shows the relationships between each pulse input mode and count timing. "Pulse Input Mode" Count timing The value is counted up at the rise () of A. 1-phase multiple of 1 (1-Phase Multiple of At up count ΦA B is Low.
Page 155
■Detection conditions in pulse input modes The following table shows the detection conditions in each pulse input mode. Pulse input mode "Pulse Input Mode" Detection condition 1-phase multiple Up count 1-Phase Multiple of 1+ ...
Page 156
Output The following table shows the outputs of the input signal event detection block. Variable name Data type Linkable block Output value Description Output 0 • Counter timer 0, 1 Outputs signals detected with the detector. • Set/reset Output 1 •...
Latch event detection block Multi function In the second section in a multi function counter block detail window, one latch event detection block ("Latch_Event") is arranged by default. Set conditions to detect latch input signals of the multi function counter block. When the detection conditions are satisfied, the Output terminal turns to High.
Page 158
Parameter The following tables show the parameters of the latch event detection block. • Parameter of "Detector Select" Variable name Data type Valid range Default value Description Detector Select Word Set the condition to detect signals. Click the [Detector Select] button to open the "Select Box"...
Counter timer block Multi function In the third section in a multi function counter block detail window, counter timer blocks are arranged by default. For a 16-bit counter timer block, two counter timer blocks ("Counter_Timer_0"(16bit_Unsigned/Signed), "Counter_Timer_1"(16bit_Unsigned/Signed)) are arranged. For a 32-bit counter timer block, one counter timer block ("Counter_Timer_0"(32bit_Unsigned/Signed)) is arranged.
Page 160
• 32-bit multi function counter block The counter timer block has the following functions. • Input pulses are counted. • Counting is performed every clock cycle. • Either of the ring counter mode or the linear counter mode can be selected (For 16-bit counter timer blocks, only the ring counter mode can be selected).
Page 161
Input The following table shows the inputs of the counter timer block. Variable name Data type Linkable block Valid range Description *1*6 • Event input 0, 1 Adds 1 to the count value every preset clock cycle. • Input signal event detection Multiple signals can be input to the terminal.
Page 162
The High/Low states of the input terminals are detected per clock cycle. When the High states of multiple terminals are detected, only the input of the terminal with the highest priority becomes valid. The inputs of terminals with lower priority become invalid. Link the terminals so that multiple signals are not input at the same time.
Page 163
Parameter The following table shows the parameters of the counter timer block. Variable name Data type Valid range Default value Description Count Enable Set the count enable to valid or invalid. OFF: Invalid ON: Valid Count Mode Linear Linear Set the counter mode to the ring Ring counter or the linear counter.
Page 164
Variable name Data type Valid range Default value Description Preset Value Word 16-bit signed -32768 to 32767 Set the preset value. counter 16-bit unsigned 0 to 65535 counter 32-bit signed -2147483648 to 2147483647 counter 32-bit unsigned 0 to 4294967295 counter *1 The valid range is determined by the type of the multi function counter block arranged in the hardware logic outline window.
Page 165
Monitor The following table shows the monitors of the counter timer block. Variable name Data type Description Count Value Word A count value is stored in the buffer memory area specified with "User Address". Latch Value Word A latched count value is stored in the buffer memory area specified with "User Address". Overflow Word When an overflow is detected, 1 is stored in the buffer memory area specified with "User Address".
Page 166
Linear counter mode When the linear counter mode is selected, the count operation is performed between the lower limit value and the upper limit value. The following table shows the setting ranges (lower limit value and upper limit value). Multi function counter block Setting range 32-bit unsigned 0 to 4294967295...
Page 167
■Overflow/underflow error • In a 32-bit counter timer block with the linear counter mode setting, when "Count Value" exceeds the upper limit value in up count, the overflow error (error code: 100H) is stored in Latest error code (Un\G100). When "Count Value" falls below the lower limit value in down count, the underflow error (error code: 101H) is stored in Latest error code (Un\G100).
Page 168
Ring counter mode When the ring counter mode is selected, the count operation is performed between "Lower Limit" and "Upper Limit" repeatedly. The overflow error and underflow error do not occur. Count value Upper limit value Counting down Counting up Lower limit value ■Lower limit value ...
Page 169
■Upper limit value Lower limit value When "Count Value" has reached the value of "Upper Limit" -1, "Lower Limit" is stored in "Count Value" in the next up count. When "Count Value" has reached the "Lower Limit", the value of "Upper Limit" - 1 is stored in "Count Value" in the next down count.
Comparison block Multi function In the fourth section in a multi function counter block detail window, comparison blocks are arranged by default. For a 16-bit counter, two comparison blocks ("Compare_0", "Compare_1") are arranged. For a 32-bit counter, one comparison block ("Compare_0") is arranged.
Page 171
Parameter The following table shows the parameters of the comparison block. Variable name Data type Valid range Default value Description Condition Word Coincidence Coincidence Specify a comparison method. Range • Coincidence • Range Compare Mode A Word (Blank) (Blank) Select a mode for comparing the count Compare Mode B value and the compare value.
Page 172
Output The following table shows the output of the comparison block. ■When "Condition" is set to "Coincidence" Variable name Data type Linkable block Output value Description Input Value A • Set/reset 0, 1 Outputs the comparison result between • Event output "Count Value"...
Pattern generator block Multi function In the fourth section in the Multi function counter block detail window (Counter_(16bit_Unsigned)), one pattern generator block ("Pattern_Generator") is arranged by default. No pattern generator block is arranged in the multi function counter block detail window (Counter_(16bit_Signed)), (Counter_(32bit_Signed)), or (Counter_(32bit_Unsigned)). A pattern generator block performs pattern output according to the output pattern data consisting of up to 8192 points that have been set for the block.
Page 174
Operation details ■Change timing of the pattern generator output The pattern generator output switches when the count value of the counter timer block is changed. The following shows an operation example when output patterns of 6 points are set. Item Setting value Counter timer block "Count Mode"...
Cam switch block Multi function In a multi function counter block detail window, one cam switch block ("Cam_Switch") linked to a counter timer block is arranged across the fourth and fifth sections. However, no cam switch block is arranged in a 16-bit multi function counter block.
Page 176
Parameter The following table shows the parameters of the cam switch block. Variable name Data type Valid range Default value Description Number of Step Word 1 to 16 Set the number of steps of the cam switch. A step indicates the point in which the Low state is switched to the High state or the High state is switched to the Low state.
Page 177
Output The following table shows the output of the cam switch block. Variable name Data type Linkable block Output value Description Output Cam switch output 0, 1 Outputs signals created in the cam switch block. Only the "Cam Output" terminal can be linked to the "Output"...
Page 178
■When the number of steps is set to 2 • Setting details Item Setting value Number of Step Lower Limit -2147483648 Lower Limit Output State Step No.0 1000 Step No.1 2000 Upper Limit 2147483647 *1 Set it in the counter timer block. *2 When "Low"...
Set/reset block Multi function In the fifth section in a multi function counter block detail window, set/reset blocks are arranged by default. For a 16-bit counter, two set/reset blocks ("Set/Reset_0" and "Set/Reset_1") are arranged. For a 32-bit counter, one set/reset block is arranged.
Output terminal Multi function In the sixth section in a multi function counter block detail window, one output terminal ("Output 0") is arranged by default. When terminals have been linked to the output terminal, the signals input to the output terminal can be output from the "Output"...
Event output terminal Multi function In the sixth section in a multi function counter block detail window, event output terminals are arranged by default. For a 16-bit counter timer block, four event output terminals ("Event 0" to "Event 3") are arranged. For a 32-bit counter timer block, two event output terminals ("Event 0", "Event 1") are arranged.
Pattern generator output terminal Multi function In the sixth section in the multi function counter block detail window (Counter_(16bit_Unsigned)), one pattern generator output terminal ("P.G. Output") is arranged by default. No pattern generator output terminal is arranged in the multi function counter block detail window (Counter_(16bit_Signed)), (Counter_(32bit_Signed)), or (Counter_(32bit_Unsigned)).
BLOCK LINK EXAMPLES Various controls can be performed with the combinations of various blocks. This chapter shows link examples to perform the following controls. Control name Description Reference Page 181 Coincidence Detection Coincidence detection Turns on the output of the multi function counter block at coincidence detection. One-shot timer Turns on the output of the multi function counter block for the specified time Page 186 One-shot Timer...
Page 184
Link and parameter The following shows a link example of the hardware logic outline window and a link example and parameter setting example of the multi function counter block detail window. ■Hardware logic outline window Phase A input pulse Coincidence detection signal Phase B input pulse...
Page 185
Operation The following shows operation of coincidence detection when the count value becomes 1000. UP terminal High (Multi function counter block_0) Comparison output terminal High (Multi function counter block_0) Output terminal High (Multi function counter block_0) ......Count value 1000 1001 (Multi function counter block_0)
Page 186
The multi function counter block with a link for coincidence detection can be used as a trigger of other multi function counter blocks. The following shows link examples of the hardware logic outline window and multi function counter block _0 detail window. •...
Page 187
Precautions for using 32-bit multi function counter blocks Coincidence detection control can be set even with 32-bit multi function counter blocks. However, usable blocks are different. The following shows link examples of the hardware logic outline window and multi function counter block detail window. •...
One-shot Timer The output signal is turned on for the specified time period using an input signal as a trigger. The following describes a link and parameter example of a one-shot timer. With the example setting, an output is turned on for 100ms using an external input signal as a trigger.
Page 189
■Multi function counter block detail window Block Variable name Setting value Description Input 0 Event 0 Input_Signal_Event Detector Select User Setting (ON only in A: High) Set this parameter to detect the phase A input signal. Detector Select User Setting (ON only in A: Rise) Counter_Timer_0...
Page 190
Operation The following shows operation of the one-shot timer when a trigger signal is input. High Input terminal 0 Output 0 of the input signal event High detection block Output 1 of the input signal event High detection block PRESET terminal of the counter High timer block RUN terminal of the counter...
Page 191
If the multi function counter block with a link for one-shot timer is used together with other multi function counter blocks with links for coincidence detection or other functions, any output ON time for external devices can be set. The following shows link examples of the hardware logic outline window and multi function counter block_1 detail window.
Event Generation An external input signal is output as an event signal. Only two event signals can be generated with one multi function counter block. If several multi function counter blocks are used together, three or more event signals can be used with one multi function counter block. The following describes a link and parameter example of event generation.
Page 193
■Multi function counter block detail window Block Variable name Setting value Description Input 0 Input 1 Input_Signal_Event Detector Select User Setting (ON only in A: Rise) Set conditions to generate an event signal. Detector Select User Setting (ON only in B: High) ...
Cam Switch The preset output status of the coincidence output range is compared with a count value to switch on or off the output of the multi function counter block at each step. The following is an example assuming that an output is switched by seven steps as follows. Note that this link example is for when a 32-bit unsigned multi function counter block is used.
Page 195
■Multi function counter block detail window Block Variable name Setting value Description Input 0 Input 1 Input_Signal_Event Detector Select 1/2-Phase Multiple of 1(CW/CCW) Set this parameter to detect an addition pulse. Detector Select 2-phase multiple of 1- Set this parameter to detect a subtraction pulse.
Operation The following shows operation where a count value is compared with the setting value of each step. High UP terminal High Cam switch output terminal ⋅⋅⋅ ⋅⋅ ⋅⋅ ⋅⋅ ⋅⋅ ⋅⋅ ⋅⋅ ⋅⋅⋅ Count value 1000 1999 2000 2999 3000 3999 4000...
Page 197
■Multi function counter block detail window Block Variable name Setting value Description Input 0 Input 1 Input_Signal_Event Detector Select User Setting (ON only in A: Rise) Set conditions to detect a PWM output start signal. Detector Select User Setting (ON only in B: Rise) Set conditions to detect a PWM output stop signal.
Operation The following shows operation of when the PWM output start signal (input terminal 0) is input and when the PWM output stop signal (input terminal 1) is input. High Input terminal 0 High Input terminal 1 High Output terminal Cycle time ON time Performed in the flexible high-speed I/O control module...
Page 199
■Multi function counter block detail window Block Variable name Setting value Description Input 0 Input 1 Input_Signal_Event Detector Select User Setting (ON only in A: Rise) Set conditions to detect a fixed cycle output start signal. Detector Select User Setting (ON only in B: Rise) Set conditions to detect a fixed cycle output stop signal.
Operation The following shows operation of when the fixed cycle output start signal (input terminal 0) is input and when the fixed cycle output stop signal (input terminal 1) is input. High Input terminal 0 High Input terminal 1 High Output terminal Cycle time ON time...
Page 201
■Multi function counter block detail window Block Variable name Setting value Description Input 0 Input 1 Latch 0 Input_Signal_Event Detector Select 2-phase multiple of 1+ Set this parameter to detect an addition pulse. Detector Select 2-phase multiple of 1- Set this parameter to detect a subtraction pulse.
Page 202
Operation The following shows operation of when a latch signal is input. Count value High Latch input terminal Latch value Performed in the flexible high-speed I/O control module Description When a signal is input to the latch input terminal, the current count value is stored in the latch value. When a signal is input to the latch input terminal again, the latch value is updated.
Ratio Conversion An input signal multiplied with the set ratio (x/y) is output from the multi function counter block. Ratio conversion enables the following controls. • An encoder output of the motor at the unwinding part is input to the programmable controller to control the motor speed of lines with distribution output.
Page 204
Link and parameter The following shows a link example of the hardware logic outline window and a link example and parameter setting example of the multi function counter block detail window. ■Hardware logic outline window Used for inputting a signal to Input 0 of Counter_1.
Page 205
■Multi function counter block detail window • Counter_0 (16bit_Unsigned) Block Variable name Setting value Description Input 0 Input_Signal_Event Detector Select User Setting Set "A: Rise" and "A: Fall" to "ON" and the others to (A: Rise ON, A: Fall ON) "OFF".
Page 206
• Counter_1 (32bit_Unsigned) Block Variable name Setting value Description Input 0 Input_Signal_Event Detector Select User Setting (ON only in A: High) Set this parameter to detect the phase A input signal. Detector Select User Setting (ON only in A: Rise) Counter_Timer_0 Count Enable Set this parameter to "ON".
Operation The following shows operation of ratio conversion. Input 10 pulses. Count value 17 0 9 12 15 18 1 13 16 19 2 11 14 17 0 (Counter_0) Input terminal High (Counter_0) Comparison output terminal High (Counter_0) Output terminal High (Counter_1) Performed in the flexible high-speed I/O control module...
Page 208
■Multi function counter block detail window Block Variable name Setting value Description Input 0 Latch 0 Input_Signal_Event Detector Select User Setting (ON only in A: Rise) Set ON only in "A: Rise". Detector Select User Setting (ON only in A: Fall) Set ON only in "A: Fall".
Page 209
Operation The following shows operation of pulse measurement. Count value Latch value Input signal High RUN terminal High Latch terminal High STOP terminal Performed in the flexible high-speed I/O control module Description When the input signal is turned on, the RUN terminal turns to High and counting per clock cycle starts. When the input signal is turned off, the following two operations are simultaneously performed.
PARAMETER SETTINGS Application Setting Setting method Open "Application setting" of the engineering tool. Start "Module Parameter". [Navigation window] [Parameter] [Module Information] Module model name [Module Parameter] [Application setting] Click the item to be changed to enter the setting value. •...
Interrupt Settings Setting method Open "Interrupt setting" of the engineering tool. Start "Module Parameter". [Navigation window] [Parameter] [Module Information] Module model name [Module Parameter] [Interrupt setting] Click the item of interrupt setting number (No.1 to 9) to be changed to enter the setting value. •...
Refresh Settings Setting method Set the buffer memory area of the flexible high-speed I/O control module to be refreshed. The refresh settings eliminate the need for reading data by programming. Start "Module Parameter". [Navigation window] [Parameter] [Module Information] Module model name [Module Parameter] [Refresh setting] Click "Target"...
The refresh processing time [s] is a constituent of the scan time of the CPU module. For details on the scan time, refer to the following. MELSEC iQ-R CPU Module User's Manual (Application) The refresh processing time [s], which is taken for refresh, is given by: •...
TROUBLESHOOTING This chapter describes errors that may occur when the flexible high-speed I/O control module is used, and those troubleshooting. Troubleshooting with the LEDs Checking the display status of LEDs enables the primary diagnosis without an engineering tool and can narrow the range of trouble causes.
Checking the State of the Module The following functions are available in the "Module Diagnostics" window of the flexible high-speed I/O control module. Function Application Error Information Displays the descriptions of errors that have occurred. Clicking the [Event History] button displays the errors that have occurred on the flexible high-speed I/O control module and the history of the errors detected and the operations executed on each module.
Page 216
Module information list Switch to the "Module Information List" tab to display status information of the flexible high-speed I/O control module. Item Description LED information Displays the LED status of the flexible high-speed I/O control module. 6 TROUBLESHOOTING 6.2 Checking the State of the Module...
Is exchanging the module allowed in the process of the online module Execute the online module change. For details, refer to the following. change? MELSEC iQ-R Online Module Change Manual Other than the above Reset the CPU module and check that the RUN LED turns on. If the RUN LED still does not turn on, the possible cause is a failure of the module.
Outputs to external devices are not performed Check item Action Is the lower section LED of the indicator LED on? Check the block layout and links between blocks in the hardware logic and make necessary corrections. Is the external wiring correct? Check the external wiring and make necessary corrections.
Page 219
Check and correct the value according to the SSI encoder to be connected. Is the cable length within the range of the maximum cable length? Check the cable length and size. ( MELSEC iQ-R Flexible High-Speed I/O Control Module User's Manual (Startup)) Or slow the SSI transmission speed.
■Pulse shaping method As one of measures against external noise or waveform distortion, the following describes the shaping method of a pulse waveform with dummy resistors. An effective method for pulse shaping is to apply dummy resistors of several hundreds ohms (/several watts) across pulse input terminals connected to an encoder to increase a load current through the cables.
The synchronization latch count value does not change Check item Action Checking the system Is the flexible high-speed I/O control module Check 'Synchronization status monitor' (Un\G8173). When 'Synchronization parameter settings of GX selected for a synchronization target module? status monitor' (Un\G8173) is Not the inter-module synchronization target Works3 (0), the module is not selected for a synchronization target.
List of Error Codes When an error occurs during operation, the flexible high-speed I/O control module stores an error code in 'Latest error code' (Un\G100) of the buffer memory. In addition, 'Error flag' (XF) turns on. Turning on 'Error clear request' (YF) clears the error code in 'Latest error code' (Un\G100), and 'Error flag' (XF) turns off.
Page 223
Error code Error name Description and cause Operation at the error Action (hexadecimal) 109H SSI encoder block The positive and negative of the Position data from the encoder Check the external wiring for the DATA signal wire DATA signal wire are reversely cannot be received properly.
Page 224
Error code Error name Description and cause Operation at the error Action (hexadecimal) 17E1H Module-specific backup The module-specific backup The hardware logic stored in Check the free space on the data parameter creation parameter was not created. the flash ROM in the new memory of the control CPU and the error module after online module...
APPENDICES Appendix 1 Module Label The functions of the flexible high-speed I/O control module can be set with module labels. Module labels of I/O signals The module label names of I/O signals are defined as follows. "Module name"_"Module number".b"Label name" or "Module name"_"Module number".b"Label name"_D RD40PD01_1.bModuleREADY_D ■Module name The character string of a module model name is given.
Appendix 2 I/O Signals List of I/O signals The following tables list the I/O signals of the flexible high-speed I/O control module. For details on the I/O signals, refer to the following. Page 226 Details of input signals Page 230 Details of output signals •...
Page 227
Output signal Device number Signal name Y0 to Y2 Use prohibited Operating condition settings batch-reset command Hardware logic control start request Hardware logic control stop request Hardware logic control stop signal at disconnection Hardware logic control stop flag clear request at disconnection Y8 to YE Use prohibited Error clear request...
Details of input signals The following describes the details of the input signals for the flexible high-speed I/O control module which are assigned to the CPU module. The I/O numbers (X/Y) in this section apply when the start I/O number of the flexible high-speed I/O control module is set to "0".
Page 229
Hardware logic control flag While the hardware logic is operating, 'Hardware logic control flag' (X4) is on. ■ON of 'Hardware logic control flag' (X4) In the following states, this signal turns on. • When 'Hardware logic control start request' (Y4) is turned on •...
Page 230
Hardware logic control stop flag at disconnection • This signal is enabled when "Enable" is set for "Hardware logic control at disconnection enable/disable" in "Application setting". • When 'Hardware logic control stop signal at disconnection' (Y6) is turned off during hardware logic control, the hardware logic control is stopped and this signal turns on.
Page 231
Error flag This signal turns on when an error occurs. Error 'Latest error code' (Un\G100) 'Error flag' (XF) 'Error clear request' (YF) Performed in the flexible high-speed I/O control module Performed in the program ■OFF of 'Error flag' (XF) When the error cause has been eliminated and 'Error clear request' (YF) is turned on and off, the following flag and error code are cleared.
Details of output signals The following describes the details of the output signals for the flexible high-speed I/O control module which are assigned to the CPU module. The I/O numbers (X/Y) in this section apply when the start I/O number of the flexible high-speed I/O control module is set to "0".
Page 233
Hardware logic control stop request This signal is used to stop the operation of the hardware logic. When the operation of the hardware logic is stopped by turning on this signal, the count value is reset. To stop only the count operation without resetting the count value, set "OFF" for "Count Enable"...
Page 234
Hardware logic control stop signal at disconnection This signal is enabled when "Enable" is set for "Hardware logic control at disconnection enable/disable" in "Application setting". Under the condition where the remote head module is not mounted, do not set "Enable" for "Hardware logic control at disconnection enable/disable"...
Page 235
Hardware logic control stop flag clear request at disconnection This signal is enabled when "Enable" is set for "Hardware logic control at disconnection enable/disable" in "Application setting". Turn on and off this signal to turn off 'Hardware logic control stop flag at disconnection' (X7). For the timing of turning on and off this signal, refer to the following.
Appendix 3 Buffer Memory Areas List of buffer memory addresses The following table lists the buffer memory addresses of the flexible high-speed I/O control module. For details on the buffer memory areas, refer to the following. Page 237 Details of buffer memory areas The buffer memory areas of the flexible high-speed I/O control module are classified by the following data types.
Page 237
Address Address Name Default Data type Auto (decimal) (hexadecimal) value refresh 8010 1F4AH Error history No.1 Error code Monitor 8011 1F4BH Error time First two digits Last two digits of the year of the year 8012 1F4CH Month 8013 1F4DH Hour Minute...
Page 238
Address Address Name Default Data type Auto (decimal) (hexadecimal) value refresh 15011 3AA3H Continuous logging cycle monitor (s) Monitor 15012 3AA4H Continuous logging data A side storage flag Monitor 15013 3AA5H Continuous logging data B side storage flag Monitor ...
Details of buffer memory areas The following section describes the details on the buffer memory areas of the flexible high-speed I/O control module. Latest error code This area stores the latest error code detected in the flexible high-speed I/O control module. For details on the error codes, refer to the following.
Page 240
Trigger start request This area issues a trigger start request of the logic analyzer function. When Start request (1) is set in 'Trigger start request' (Un\G120) during the hardware logic control after the trigger setting has been written to the flexible high-speed I/O control module, the trigger status of the flexible high-speed I/O control module is switched to the trigger ready.
Page 241
Trigger setting status monitor This area stores the trigger setting status of the logic analyzer function. Stored value Description Trigger setting disable Trigger setting enable (Auto trigger disable) Trigger setting enable (Auto trigger enable) • Write the trigger setting to the flexible high-speed I/O control module with the configuration tool. ( Page 102 Logic analyzer function) •...
Page 242
Sampling data acquired flag This area stores the sampling data acquisition status of the logic analyzer function. Stored value Description Sampling data is not acquired Sampling data is acquired • When the trigger is detected while Trigger ready (1) is stored in 'Trigger status monitor' (Un\G123), the flexible high-speed I/O control module generates sampling data.
Page 243
Synchronization latch count value This area stores the latch count value of the counter timer for each inter-module synchronization cycle. When this area is referred to in an inter-module synchronous interrupt program, the latch count value synchronized among multiple modules can be acquired.
Page 244
Hardware logic area The monitor items and setting items of the hardware logic can be assigned to buffer memory addresses. There are two types of areas for the buffer memory areas: High speed area and low speed area. For each area, the addresses are assigned as follows.
Page 245
*1 The output values of each block in the hardware logic are "R" and the input values of each block in the hardware logic are "R/W". *2 Assign a parameter of two words (32 bits) to an even address. *3 The setting and storage ranges are determined depending on the type of a counter timer block. *4 The item cannot be assigned in a 16-bit counter timer block.
Page 246
Error history This area stores up to 16 errors that have occurred in the module. For details on the error history function, refer to the following. Page 47 Error History Function Un\G8010 Error code Un\G8011 First two digits of the year Last two digits of the year Un\G8012 Month...
Page 247
ERR LED status monitor This area stores the current status of the ERR LED. ERR LED status Stored value Description The ERR LED is off. The ERR LED is on. ■Buffer memory address The following shows the buffer memory address of this area. Buffer memory name Buffer memory address ERR LED status monitor...
Page 248
Continuous logging cycle setting Set the logging cycle for the continuous logging function. Setting value Setting details 1s 10s 100s 1000s If a value other than the above is set, the continuous logging cycle setting range error (error code: 10D6H) occurs and the continuous logging does not start.
Page 249
Continuous logging status monitor The execution status of the continuous logging function is stored. Stored value Description Disabled Start request waiting In progress ■Buffer memory address The following shows the buffer memory address of this area. Buffer memory name Buffer memory address Continuous logging status monitor 15010 Continuous logging cycle monitor (s)
Page 250
Continuous logging data points The number of logging data points stored in continuous logging data storage areas can be checked during continuous logging. • After continuous logging is started, 'Continuous logging data points' (Un\G15014, Un\G15015) increases by 64 every time logging data of 64 points is stored.
Appendix 4 Logic Analyzer Function (Executed with a Program) The logic analyzer function verifies the hardware logic control in the flexible high-speed I/O control module during the system operation. Users can check that the hardware logic written to the module operates properly by using the signals input to the external input terminals of the flexible high-speed I/O control module.
Page 252
Setting method Set the trigger condition in the "Logic Analyzer" window of the configuration tool in advance. For details, refer to the following. Page 102 Logic analyzer function ■Trigger start request When Start request (1) is set in 'Trigger start request' (Un\G120) while the hardware logic control is executed and Trigger stop (0) is stored in 'Trigger status monitor' (Un\G123), a trigger start request is issued.
Page 253
• When Start request (1) is set in 'Trigger start request' (Un\G120) before a trigger condition is set, a trigger start error at trigger setting disabled (error code: 10C0H) occurs. • When the hardware logic control is stopped in the trigger ready, the trigger status is switched to the trigger stop.
Page 254
When the trigger condition is satisfied twice or more time If the trigger condition is satisfied again while the sampling for the specified points is being performed with the previous trigger as the starting point, next sampling is performed for the points specified in "After Trigger Point" with the subsequent trigger as the starting point.
Appendix 5 Operation Examples of When the Remote Head Module Is Mounted This section describes operation examples of when the remote head module is mounted System configuration example The following system configuration is used to explain an example of operation. (1) Master station (Network number 1, station number 0) •...
Setting in the master station Connect the engineering tool to the CPU module of the master station and set parameters. Create the project with the following settings. [Project] [New] Configure the setting to use the module labels and add the module labels of the CPU module. Add the master/local module with the following settings.
Page 257
Configure the setting to use the module labels and add the module labels of the master/local module. Set "Required Settings" of "Module Parameter" of the master/local module as shown below. [Navigation window] [Parameter] [Module Information] [RJ71GF11-T2] [Module Parameter] [Required Settings] Set "Network Configuration Settings"...
Page 258
For parameters of the master/local module which are not described in this procedure, set default values. For details on parameters of the master/local module, refer to the following. MELSEC iQ-R CC-Link IE Field Network User's Manual (Application) APPX Appendix 5 Operation Examples of When the Remote Head Module Is Mounted...
Setting in the intelligent device station Connect the engineering tool to the remote head module of the intelligent device station and set parameters. Write the hardware logic to the flexible high-speed I/O control module with the configuration tool. Parameter Create the project with the following settings. [Project] ...
Page 260
For parameters of the remote head module which are not described in this procedure, set default values. For details on parameters of the remote head module, refer to the following. • MELSEC iQ-R CC-Link IE Field Network Remote Head Module User's Manual (Application) APPX...
Page 261
Creating a hardware logic Create a hardware logic with the configuration tool. ■Link and setting in the Hardware logic outline window Arrange a 32-bit unsigned multi function counter block in the hardware logic outline window, and link it with an external input block.
Page 262
■Link and setting in the Multi function counter block detail window Link blocks in the Multi function counter block detail window as follows. Set the setting values of the input signal event detection blocks as follows. Set the setting values of the counter timer block as follows. APPX Appendix 5 Operation Examples of When the Remote Head Module Is Mounted...
For how to perform the CC-Link IE Field Network diagnostics from the master station, refer to the following. MELSEC iQ-R CC-Link IE Field Network User's Manual (Application) Program examples For the program examples, the module labels of the master/local module are used.
Page 264
Common program The following figure shows an example of the program to check the data link status of the remote head module (station number 1). Check the data link status of the remote head module (station number 1). Add the MCR instruction shown below to the last of the program. Program example 1 The following figure shows an example of the program to turn on 'Hardware logic control stop signal at disconnection' (Y1006).
Page 265
Program example 3 The following figure shows an example of the program to start the hardware logic control. (185) Turn on 'Hardware logic control start request' (Y1004). (229) Turn off 'Hardware logic control start request' (Y1004). Program example 4 The following figure shows an example of the program to stop the hardware logic control. (255) Turn on 'Hardware logic control stop request' (Y1005).
Page 266
Program example 6 The following figure shows an example of the program to reset the operating condition settings in a batch. (414) Turn on 'Operating condition settings batch-reset command' (Y1003). (562) Turn off 'Operating condition settings batch-reset command' (Y1003). Program example 7 The following figure shows an example of the program to turn off 'Hardware logic control stop flag at disconnection' (X1007).
Operations of the flexible high-speed I/O control module when the remote head module is mounted The following describes the operations of the flexible high-speed I/O control module when the own station is disconnected. The operations differ depending on the setting combination of "Hardware logic control at disconnection enable/disable" and "CPU error output mode setting"...
Page 268
For details on Y signal status when the remote head module is mounted, refer to the following. MELSEC iQ-R CC-Link IE Field Network Remote Head Module User's Manual (Application) APPX Appendix 5 Operation Examples of When the Remote Head Module Is Mounted...
Appendix 6 Addition/change of a Function This section describes an added or changed function of the flexible high-speed I/O control module and the engineering tool, and supported firmware version of the flexible high-speed I/O control module and the software version of the engineering tool. Added/changed function Supported firmware version of Supported software version of...
Japanese manual number: SH-081646-C This manual confers no industrial property 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.
WARRANTY Please confirm the following product warranty details before using this product. 1. Gratis Warranty Term and Gratis Warranty Range If any faults or defects (hereinafter "Failure") found to be the responsibility of Mitsubishi occurs during use of the product within the gratis warranty term, the product shall be repaired at no cost via the sales representative or Mitsubishi Service Company.
TRADEMARKS Ethernet is a registered trademark of Fuji Xerox Co., Ltd. in Japan. 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.
Page 276
SH(NA)-081647ENG-C(1710)MEE MODEL: RD40PD01-U-OU-E MODEL CODE: 13JX56 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.