MELSEC-L Flexible High-Speed I/O Control
Module User's Manual
-LD40PD01
-Flexible High-Speed I/O Control Module Configuration tool (SW1DNN-FLEXIOP-E)
SAFETY PRECAUTIONS
WARNING
Indicates that incorrect handling may cause hazardous conditions, resulting in
death or severe injury.
CAUTION
Indicates that incorrect handling may cause hazardous conditions, resulting in
minor or moderate injury or property damage.
(Read these precautions before using this product.)
Before using this product, please read this manual and the relevant manuals carefully and pay full attention to safety to handle
the product correctly.
The precautions given in this manual are concerned with this product only. For the safety precautions of the programmable
controller system, refer to the user's manual for the CPU module used.
In this manual, the safety precautions are classified into two levels: "WARNING" and "CAUTION".
Under some circumstances, failure to observe the precautions given under "CAUTION" may lead to serious
consequences.
Observe the precautions of both levels because they are important for personal and system safety.
Make sure that the end users read this manual and then keep the manual in a safe place for future reference.
[Design Precautions]
WARNING
● In an output circuit, when a load current exceeding the rated current or an overcurrent caused by a
load short-circuit flows for a long time, it may cause smoke and fire. To prevent this, configure an
external safety circuit, such as a fuse.
● Do not write any data to the "system area" and "write-protect area" (R) of the buffer memory in the
intelligent function module. Also, do not use any "use prohibited" signals as an output signal from the
programmable controller CPU to the intelligent function module. Doing so may cause malfunction of
the programmable controller system.
● Outputs may remain on or off due to a failure of a transistor for external output. Configure an external
circuit for monitoring output signals that could cause a serious accident.
● When changing data and operating status of the running module from an external device such as a
personal computer connected, configure an interlock circuit external to the programmable controller to
ensure that the entire system always operates safely.
In addition, before performing online operations, determine corrective actions to be taken between the
external device and the module in case of a communication failure due to poor contact of cables.
[Design Precautions]
CAUTION
● Do not install the control lines or communication cables together with the main circuit lines or power
cables. Keep a distance of 150mm or more between them. Failure to do so may result in malfunction
due to noise.
● 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.
1
[Installation Precautions]
WARNING
● Shut off the external power supply (all phases) used in the system before mounting or removing a
module. Failure to do so may result in electric shock or cause the module to fail or malfunction.
[Installation Precautions]
CAUTION
● Use the programmable controller in an environment that meets the general specifications in the Safety
Guidelines provided with the CPU module or head module. Failure to do so may result in electric
shock, fire, malfunction, or damage to or deterioration of the product.
● To interconnect modules, engage the respective connectors and securely lock the module joint levers
until they click. Incorrect interconnection may cause malfunction, failure, or drop of the module.
● Do not directly touch any conductive parts and electronic components of the module. Doing so can
cause malfunction or failure of the module.
[Wiring Precautions]
WARNING
● Shut off the external power supply (all phases) used in the system before wiring. Failure to do so may
result in electric shock or cause the module to fail or malfunction.
● When connecting a differential output terminal to a differential receiver of a drive unit, connect the
high-speed output common terminal to the differential receiver common terminal of the drive unit.
Failure to do so may cause the module to fail or malfunction because of the potential difference that
occurs between the high-speed output common terminal and the differential receiver common
terminal.
2
[Wiring Precautions]
CAUTION
● Individually ground the FG and LG terminals of the programmable controller with a ground resistance
of 100 ohms or less. Failure to do so may result in electric shock or malfunction.
● Check the rated voltage and terminal layout before wiring to the module, and connect the cables
correctly. Connecting a power supply with a different voltage rating or incorrect wiring may cause a fire
or failure.
● Connectors for external devices must be crimped with the tool specified by the manufacturer or must
be correctly soldered. Incomplete connections may cause short circuit, fire, or malfunction.
● Place the cables in a duct or clamp them. If not, dangling cable may swing or inadvertently be pulled,
resulting in damage to the module or cables or malfunction due to poor contact.
● Tighten the connector screws within the specified torque range. Undertightening can cause drop of
the screw, short circuit, fire, or malfunction. Overtightening can damage the screw and/or module,
resulting in drop, short circuit, fire, or malfunction.
● Prevent foreign matter such as dust or wire chips from entering the module. Such foreign matter can
cause a fire, failure, or malfunction.
● A protective film is attached to the top of the module to prevent foreign matter, such as wire chips,
from entering the module during wiring. Do not remove the film during wiring. Remove it for heat
dissipation before system operation.
● Ground the shield cable on the encoder side (relay box). Always ground the FG and LG terminals to
the protective ground conductor. Failure to do so may cause malfunction.
● Mitsubishi programmable controllers must be installed in control panels. Connect the main power
supply to the power supply module in the control panel through a relay terminal block. Wiring and
replacement of a power supply module must be performed by qualified maintenance personnel with
knowledge of protection against electric shock. For wiring methods, refer to the MELSEC-L CPU
Module User's Manual (Hardware Design, Maintenance and Inspection).
[Startup and Maintenance Precautions]
WARNING
● Do not touch any terminal while power is on. Doing so will cause electric shock or malfunction.
● Shut off the external power supply (all phases) used in the system before cleaning the module or
retightening the connector screws. Failure to do so may result in electric shock.
3
[Startup and Maintenance Precautions]
CAUTION
● Do not disassemble or modify the module. Doing so may cause failure, malfunction, injury, or a fire.
● Shut off the external power supply (all phases) used in the system before mounting or removing a
module. Failure to do so may cause the module to fail or malfunction.
● After the first use of the product (module and display unit), do not connect/disconnect the product
more than 50 times (in accordance with IEC 61131-2). Exceeding the limit may cause malfunction.
● Tighten the connector screws within the specified torque range. Undertightening can cause drop of
the component or wire, short circuit, or malfunction. Overtightening can damage the screw and/or
module, resulting in drop, short circuit, or malfunction.
● Before handling the module, touch a conducting object such as a grounded metal to discharge the
static electricity from the human body. Failure to do so may cause the module to fail or malfunction.
● When performing online operations of the running module from an external device such as a personal
computer connected, read the relevant manuals carefully and ensure that the operation is safe before
proceeding.
● Before changing any setting of the module, read the relevant manuals carefully, ensure the safety,
and change the operating status of the CPU module to STOP.
Especially when operating the module in the network system, ensure the safety thoroughly because
controlled machines are likely to be moved inadvertently. Improper operation may damage machines
or cause accidents.
[Disposal Precautions]
CAUTION
● When disposing of this product, treat it as industrial waste.
4
CONDITIONS OF USE FOR THE PRODUCT
(1) Mitsubishi programmable controller ("the PRODUCT") shall be used in conditions;
i) where any problem, fault or failure occurring in the PRODUCT, if any, shall not lead to any major or serious accident;
and
ii) where the backup and fail-safe function are systematically or automatically provided outside of the PRODUCT for the
case of any problem, fault or failure occurring in the PRODUCT.
(2) The PRODUCT has been designed and manufactured for the purpose of being used in general industries.
MITSUBISHI SHALL HAVE NO RESPONSIBILITY OR LIABILITY (INCLUDING, BUT NOT LIMITED TO ANY AND ALL
RESPONSIBILITY OR LIABILITY BASED ON CONTRACT, WARRANTY, TORT, PRODUCT LIABILITY) FOR ANY
INJURY OR DEATH TO PERSONS OR LOSS OR DAMAGE TO PROPERTY CAUSED BY the PRODUCT THAT ARE
OPERATED OR USED IN APPLICATION NOT INTENDED OR EXCLUDED BY INSTRUCTIONS, PRECAUTIONS, OR
WARNING CONTAINED IN MITSUBISHI'S USER, INSTRUCTION AND/OR SAFETY MANUALS, TECHNICAL
BULLETINS AND GUIDELINES FOR the PRODUCT.
("Prohibited Application")
Prohibited Applications include, but not limited to, the use of the PRODUCT in;
• Nuclear Power Plants and any other power plants operated by Power companies, and/or any other cases in which the
public could be affected if any problem or fault occurs in the PRODUCT.
• Railway companies or Public service purposes, and/or any other cases in which establishment of a special quality
assurance system is required by the Purchaser or End User.
• Aircraft or Aerospace, Medical applications, Train equipment, transport equipment such as Elevator and Escalator,
Incineration and Fuel devices, Vehicles, Manned transportation, Equipment for Recreation and Amusement, and
Safety devices, handling of Nuclear or Hazardous Materials or Chemicals, Mining and Drilling, and/or other
applications where there is a significant risk of injury to the public or property.
Notwithstanding the above, restrictions Mitsubishi may in its sole discretion, authorize use of the PRODUCT in one or
more of the Prohibited Applications, provided that the usage of the PRODUCT is limited only for the specific
applications agreed to by Mitsubishi and provided further that no special quality assurance or fail-safe, redundant or
other safety features which exceed the general specifications of the PRODUCTs are required. For details, please
contact the Mitsubishi representative in your region.
5
INTRODUCTION
Thank you for purchasing the Mitsubishi Electric MELSEC-L series programmable controllers. This manual describes the
functions and programming of a flexible high-speed I/O control module.
Before using this product, please read this manual and the relevant manuals carefully and develop familiarity with the
functions and performance of the MELSEC-L series programmable controller to handle the product correctly.
When applying the program examples introduced in this manual to an actual system, ensure the applicability and confirm that
it will not cause system control problems.
Relevant product
LD40PD01
Unless otherwise specified, this manual describes the program examples in which the I/O numbers of X/Y00
to X/Y1F are assigned for a flexible high-speed I/O control module. For I/O number assignment, refer to the
following.
MELSEC-L CPU Module User's Manual (Function Explanation, Program Fundamentals)
COMPLIANCE WITH EMC AND LOW VOLTAGE
DIRECTIVES
Method of ensuring compliance
To ensure that Mitsubishi programmable controllers maintain EMC and Low Voltage Directives when incorporated into other
machinery or equipment, certain measures may be necessary. Please refer to one of the following manuals.
• MELSEC-L CPU Module User's Manual (Hardware Design, Maintenance and Inspection)
• MELSEC-L CC-Link IE Field Network Head Module User's Manual
• Safety Guidelines (This manual is included with the CPU module or head module.)
The CE mark on the side of the programmable controller indicates compliance with EMC and Low Voltage Directives.
Additional measures
To ensure that this product maintains EMC and Low Voltage Directives, please refer to the following.
Page 37 External wiring precautions
MELSEC-L CPU Module User's Manual (Hardware Design,
Maintenance and Inspection)
[SH-080890ENG]
MELSEC-L CPU Module User's Manual (Function Explanation,
Program Fundamentals)
[SH-080889ENG]
Head module user's manual
Manual name
[Manual number]
MELSEC-L CC-Link IE Field Network Head Module User's Manual
[SH-080919ENG]
MELSEC-L SSCNET/H Head Module User's Manual
[SH-081152ENG]
Operating manual
Manual name
[Manual number]
GX Works2 Version 1 Operating Manual (Common)
[SH-080779ENG]
GX LogViewer Version 1 Operating Manual
[SH-080915ENG]
Description
Specifications of the CPU modules, power supply modules, display unit, branch module,
extension module, SD memory cards, and batteries, information on how to establish a
system, maintenance and inspection, and troubleshooting
Functions and devices of the CPU module, and programming
Description
Specifications, procedures before operation, system configuration, installation, wiring,
settings, and troubleshooting of the head module
Specifications, procedures before operation, system configuration, installation, wiring,
settings, and troubleshooting of the head module
Description
System configuration, parameter settings, and online operations of GX Works2, which are
common to Simple projects and Structured projects
System configuration, functions, and operating methods of GX LogViewer
12
MANUAL PAGE ORGANIZATION
An icon displayed here indicates the window
where the terminal or block is used.
Outline
Multi function
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.
The meaning of each icon is as follows.
IconDescription
The "Outline" icon indicates that the terminal or block is the one for the hardware logic outline window.
The "Multi function" icon indicates that the terminal or block is the one for multi function counter block detail windows.
13
TERMS
Unless otherwise specified, this manual uses the following terms.
Ter mDescription
Buffer memoryA memory in an intelligent function module, where data (such as setting values and monitoring values) exchanged with
a CPU module are stored
Configuration toolThe abbreviation for the configuration tool for flexible high-speed I/O control modules (SW1DNN-FLEXIOP-E)
Display unitA liquid LCD to be attached to the CPU module
Execution memoryThe memory in a flexible high-speed I/O control module where the hardware logic is written
External wiringWiring between a flexible high-speed I/O control module and external devices
Flash ROMA non-volatile memory to which the hardware logic can be written. Although the number of writes to a flash ROM is
limited, the written hardware logic is not deleted even after the power off and automatically read at the power-on.
Flexible high-speed I/O control
module
GX LogViewerThe software for visually displaying execution results of the simulation function
GX Works2The product name of the software package for the MELSEC programmable controllers
Hardware logicA control logic that users create graphically combining inputs, outputs, logical operation circuits, and counters with the
Head moduleThe Abbreviation for the LJ72GF15-T2 CC-Link IE Field Network head module
LinkTo connect blocks or terminals on the configuration tool
Programming toolAnother name for GX Works2
The abbreviation for the MELSEC-L series flexible high-speed I/O control module LD40PD01
configuration tool
PACKING LIST
The following items are included in the package of this product. Before use, check that all the items are included.
Flexible high-speed I/O control module
Before Using the Product
Module
14
1FLEXIBLE HIGH-SPEED I/O CONTROL
++
Microcomputer board
FPGA board
Flexible high-speed I/O control module
Input
module
Output
module
Counter
module
MODULE
For the flexible high-speed I/O control module, users can easily create a high-speed, complicated hardware logic independent
from the CPU module by graphically combining input/outputs, logical operation circuits, and counters with the configuration
tool.
1.1Features
Controls that have been performed using a microcomputer board or an FPGA board or combining several modules can be
performed only with the flexible high-speed I/O control module.
• High-speed, high-response control with μs orders
• Controls with stable response time
• Logic controls that requires rapidity
• Measurement control with sensor inputs
• Controls triggered by external inputs
1
By using this module instead of a microcomputer board or an FPGA board, which cannot be supplied steadily and constantly
due to their high introduction cost and design cost, users can configure a system only with a programmable controller,
reducing man-hours and the total system cost.
1 FLEXIBLE HIGH-SPEED I/O CONTROL MODULE
1.1 Features
15
High-speed, stable I/O response
Flexible high-speed I/O control module
The output variation
depending on input
can be reduced.
User can easily create a hardware logic with intuitive actions of "selecting" and "connecting".
Simulation function
The operation of a created hardware logic can be checked using simulation data instead of external input signals.
1
1 FLEXIBLE HIGH-SPEED I/O CONTROL MODULE
1.1 Features
17
Filter for eliminating noise
The timing variation due to electronic components can be adjusted.
Output A
Output B
Output C
Output D
Variation in output timing
Without delay adjustment
No variation
With delay adjustment
A filter for reducing external noise has been implemented for external inputs. This filter eliminates chattering of input pulses.
Delay adjustment of output timing
The delay adjustment function has been implemented for external outputs. The delay adjustment function adjusts the output
timing.
Interrupt function
When a signal that triggers an interrupt is detected, the flexible high-speed I/O control module will send an interrupt request to
the CPU module.
The flexible high-speed I/O control module enables a flexible, high-speed interrupt control with this function.
18
1 FLEXIBLE HIGH-SPEED I/O CONTROL MODULE
1.1 Features
1.2Application Example
Light sensor
Pulse
Example: Filling process (container type identification control)
Encoder
Drill
Coincidence output (inverter stop)
Control example: Drilling process (fixed-feed control)
Inverter
Counter input
The flexible high-speed I/O control module realizes the following applications.
Pulse measurement
Pulses can be measured with a measurement resolution of 25ns. Pulse widths (ON width and OFF width) of pulse signals can
be measured with a high degree of accuracy. This measurement can be applied to variable pulse measurement applications,
such as the workpiece length measurement and control of transportation and machining speeds in each carrier device and
machining equipment.
1
Coincidence output
The coincidence output enables a desired fixed-feed control comparing a preset compare value and an input count value.
1 FLEXIBLE HIGH-SPEED I/O CONTROL MODULE
1.2 Application Example
19
Cam switch output
ON
OFF
ON
OFF
ON
OFF
10002000300040005000600070008000
Output 1
Output 2
Output 3
Present count value
OFF
ON
Dim
Bright
Power for
the lighting
LED light
PWM signal
PWM output ON time
PWM output cycle time
PWM output ON time
Illuminance
Short
Long
LED light control with a PWM signal
Inverter
circuit
According to an input count current value, outputs can be turned on or off at preset points without a program. ON/OFF
controls can be performed with greater accuracy without being affected by scan time.
PWM output
PWM of 2MHz at a maximum can be output. The duty ratio can be changed in increments of 25ns, enabling a smooth output
control. With PWM outputs, a dimming control with duty ratio changes can be performed.
20
1 FLEXIBLE HIGH-SPEED I/O CONTROL MODULE
1.2 Application Example
2PART NAMES
(1)
(2)
(4)
(1)
(7)(1)
(5)
(6)
(3)
This chapter lists the part names of the flexible high-speed I/O control module.
No.NameDescription
(1)Module joint leverA lever for connecting two modules
(2)RUN LEDThis LED indicates the operating status.
(3)ERR. LEDThis LED indicates the error status.
(4)Indicator LEDThis LED indicates the I/O status of external I/O terminals.
LED0
(Upper section)
LED1
(Lower section)
(5)Connector for external devices (40 pins) A connector used to connect encoders and control devices. For the terminal layout, refer to the
(6)DIN rail hookA hook used to mount the module to a DIN rail
(7)Serial number markingDisplays the serial number printed on the rating plate.
*1 For differential output terminals, the LED indicates the ON/OFF status of each differential output+ signal.
On: Normal operation
Flashing: During simulation
Off: When 5V power off or a watchdog timer error has occurred
On: An error has occurred.
Off: Normal operation
This LED indicates the input status of each external input terminal.
• On: A voltage has been applied.
• Off: No voltage has been applied.
0 to B indicate external input terminals (IN 0 to IN B).
This LED indicates the output status of each external output terminal.
• On: A signal output is on.
• Off: A signal output is off.
0 to D indicate the following external output terminals.
• 0 to 7: OUT 0 to OUT 7
• 8 to D: OUT 0_DIF to OUT 5_DIF
following.
Page 43 Interface with external devices
*1
2
2 PART NAMES
21
MEMO
22
2 PART NAMES
3SPECIFICATIONS
This chapter describes general specifications, performance specifications, functions, I/O signals, and buffer memory areas.
3.1General Specifications
For the general specifications of the flexible high-speed I/O control module, refer to the following.
Safety Guidelines, provided with the CPU module or head module
3
3 SPECIFICATIONS
3.1 General Specifications
23
3.2Performance Specifications
The following table lists the performance specifications of the flexible high-speed I/O control module.
ItemSpecifications
DifferentialDC
Number of input points12 points (common for 5VDC/24VDC/differential)
Number of output points6 points8 points (5 to 24VDC, 0.1A/point)
X4Hardware logic control flagY4Hardware logic control start request
X5Use prohibitedY5Hardware logic control stop request
X6Use prohibitedY6Hardware logic control stop signal at disconnection
X7Hardware logic control stop flag at disconnectionY7Hardware logic control stop flag clear request at
X8Use prohibitedY8Use prohibited
X9Use prohibitedY9Use prohibited
XAUse prohibitedYAUse prohibited
XBUse prohibitedYBUse prohibited
XCUse prohibitedYCUse prohibited
XDUse prohibitedYDUse prohibited
XEUse prohibitedYEUse prohibited
XFError flagYFError clear request
X10IN 0Y10General command 0
X11IN 1Y11General command 1
X12IN 2Y12General command 2
X13IN 3Y13General command 3
X14IN 4Y14General command 4
X15IN 5Y15General command 5
X16IN 6Y16General command 6
X17IN 7Y17General command 7
X18IN 8Y18General command 8
X19IN 9Y19General command 9
X1AIN AY1AGeneral command A
X1BIN BY1BGeneral command B
X1CUse prohibitedY1CGeneral command C
X1DUse prohibitedY1DGeneral command D
X1EUse prohibitedY1EGeneral command E
X1FUse prohibitedY1FGeneral command F
Output (Signal direction: CPU module → Flexible high-speed I/
O control module)
disconnection
3
• The I/O numbers (X/Y) listed above are shown on the assumption that the start I/O number of the flexible
high-speed I/O control module is set to 0.
• The use prohibited signals listed above are used by the system and are not available for users. If a user
uses these signals (turning off and on), the performance of the flexible high-speed I/O control module is not
guaranteed.
3 SPECIFICATIONS
3.4 List of I/O Signals
29
3.5List 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 247 Details of Buffer Memory Areas
Do not write any data to the system area and write-protect area of the buffer memory. If data is written to these
areas, a malfunction may occur.
Address
(decimal)
0 to 990H to 63HSystem area
10064HLatest error code0R
10165HSystem area
10266HCumulative number of write accesses to a flash ROM0R
10367H
104 to 10968H to 6DHSystem area
110, 1116EH, 6FHSSI receive data monitor 00R
112, 11370H, 71HSystem area
114, 11572H, 73HSSI receive data monitor 10R
116 to 99974H to 3E7HSystem area
1000 to 10293E8H to 405HHardware logic area (High speed area)0R/W
1030 to 1099406H to 44BHHardware logic area (Low speed area)0R/W
1100 to 799944CH to 1F3FHSystem area
80001F40HLatest address of error history0R
80011F41HSystem area
80021F42HClear setting of error history0R/W
8003 to 80091F43H to 1F49HSystem area
80101F4AHError history No. 1Error code0R
80111F4BHError timeFirst two digits
80121F4CHMonthDay
80131F4DHHourMinute
80141F4EHSecondDay of the
8015 to 80191F4FH to 1F53HSystem area
8020 to 80241F54H to 1F58HError history No. 2Same with error history No. 10R
8025 to 80291F59H to 1F5DHSystem area
8030 to 80341F5EH to 1F62HError history No. 3Same with error history No. 10R
8035 to 80391F63H to 1F67HSystem area
8040 to 80441F68H to 1F6CHError history No. 4Same with error history No. 10R
8045 to 80491F6DH to 1F71HSystem area
8050 to 80541F72H to 1F76HError history No. 5Same with error history No. 10R
8055 to 80591F77H to 1F7BHSystem area
8060 to 80641F7CH to 1F80HError history No. 6Same with error history No. 10R
8065 to 80691F81H to 1F85HSystem area
8070 to 80741F86H to 1F8AHError history No. 7Same with error history No. 10R
8075 to 80791F8BH to 1F8FHSystem area
8080 to 80841F90H to 1F94HError history No. 8Same with error history No. 10R
8085 to 80891F95H to 1F99HSystem area
8090 to 80941F9AH to 1F9EHError history No. 9Same with error history No. 10R
8095 to 80991F9FH to 1FA3HSystem area
8100 to 81041FA4H to 1FA8HError history No. 10Same with error history No. 10R
Address
(hexadecimal)
NameDefault value*1Read/write
Last two digits
of the year
of the year
week
*2
30
3 SPECIFICATIONS
3.5 List of Buffer Memory Addresses
Address
(decimal)
8105 to 81091FA9H to 1FADHSystem area
8110 to 81141FAEH to 1FB2H Error history No. 11Same with error history No. 10R
8115 to 81191FB3H to 1FB7HSystem area
8120 to 81241FB8H to 1FBCH Error history No. 12Same with error history No. 10R
8125 to 81291FBDH to 1FC1H System area
8130 to 81341FC2H to 1FC6H Error history No. 13Same with error history No. 10R
8135 to 81391FC7H to 1FCBH System area
8140 to 81441FCCH to 1FD0H Error history No. 14 Same with error history No. 10R
8145 to 81491FD1H to 1FD5H System area
8150 to 81541FD6H to 1FDAH Error history No. 15Same with error history No. 10R
8155 to 81591FDBH to 1FDFH System area
8160 to 81641FE0H to 1FE4H Error history No. 16Same with error history No. 10R
8165 to 81691FE5H to 1FE9H System area
81701FEAHRUN LED status monitor0R
81711FEBHERR LED status monitor0R
8172 to 327671FECH to 7FFFH System area
Address
(hexadecimal)
NameDefault value*1Read/write
*2
*1 The default value to be set after the power is turned on or the CPU module is reset
*2 Whether a value can be read/written from/to a program or not is indicated.
R: Readable
W: Writable
3
3 SPECIFICATIONS
3.5 List of Buffer Memory Addresses
31
4PROCEDURES BEFORE OPERATION
This chapter describes the procedures before operation.
1. Installing the module
Install the flexible high-speed I/O control module with a desired configuration.
Page 34 Overall Configuration
2. External wiring
Wire external devices to the flexible high-speed I/O control module.
Page 37 External Wiring
3. Creating a hardware logic
Create a hardware logic with the configuration tool.
Page 63 FUNCTIONS OF THE CONFIGURATION TOOL
4. Programming and debugging
Create and check a program.
Page 207 DISPLAY UNIT
32
4 PROCEDURES BEFORE OPERATION
MEMO
4
4 PROCEDURES BEFORE OPERATION
33
5SYSTEM CONFIGURATION
Power supply
module
CPU module
Display unit
(optional)
I/O module
or
intelligent function module
END
cover
Flexible high-speed
I/O control module
Power supply moduleHead module
I/O module or
intelligent function
moduleEND cover
Flexible high-speed
I/O control module
This chapter describes the overall system configuration, number of connectable modules, and compatible software versions
of the flexible high-speed I/O control module.
5.1Overall Configuration
The following figure shows a system configuration example of when the flexible high-speed I/O control module is used.
When connected to the CPU module
When connected to the head module
34
5 SYSTEM CONFIGURATION
5.1 Overall Configuration
5.2Applicable System
Number of connectable modules
For the number of connectable modules, refer to the following.
MELSEC-L CPU Module User's Manual (Hardware Design, Maintenance and Inspection)
MELSEC-L CC-Link IE Field Network Head Module User's Manual
Compatible software version
The following table lists compatible software versions.
SoftwareVer sio n
GX Works2Version 1.535H or later
GX LogViewerVersion 1.46Y or later
Configuration toolVersion 1.000A or later
5.3Restrictions When the Flexible High-Speed I/O
Control Module Is Connected to the Head Module
This section describes the restrictions when the flexible high-speed I/O control module is connected to the head module.
• The intelligent function module interrupt cannot be used.
5
5 SYSTEM CONFIGURATION
5.2 Applicable System
35
6INSTALLATION AND EXTERNAL WIRING
This chapter describes the installation and external wiring of the flexible high-speed I/O control module.
6.1Installation Environment and Installation Position
For precautions for the installation environment and installation position, refer to the following.
MELSEC-L CPU Module User's Manual (Hardware Design, Maintenance and Inspection)
MELSEC-L CC-Link IE Field Network Head Module User's Manual
36
6 INSTALLATION AND EXTERNAL WIRING
6.1 Installation Environment and Installation Position
6.2External Wiring
This section describes wiring of encoders and controllers to the flexible high-speed I/O control module.
External wiring precautions
To obtain the maximum performance from the functions of the flexible high-speed I/O control module and improve the system
reliability, an external wiring with high durability against noise is required.
This section describes the precautions for wiring of encoders and controllers.
Wiring
• Different terminals are prepared depending on the voltage of the signal to be input. Connecting to a terminal with an
incorrect voltage may cause a malfunction of the module or failure of the connected devices.
• In 1-phase pulse input, always connect a pulse input cable on the phase A side.
• Install a fuse for each external terminal to prevent the external devices or module from being burnt out or damaged if a load
shorts in an output circuit. The following fuses have been tested by Mitsubishi.
Fuse model nameRated currentContact
312.7500.75ALittelfuse
216.8000.8A
Connector for external devices
• Connectors for external devices must be soldered or crimped properly. A poor soldering or crimping may result in a
malfunction.
• Securely connect the connectors for external devices to the connectors of the flexible high-speed I/O control module, and
securely tighten the two screws.
• When disconnecting a cable from the flexible high-speed I/O control module, do not pull the cable holding the cable part.
Remove a cable supporting the connector part of the cable by hand. Pulling the cable being connected to the flexible high-
speed I/O control module can cause a malfunction. In addition, a damage of the flexible high-speed I/O control module or
cables can result.
www.littelfuse.com
6
6 INSTALLATION AND EXTERNAL WIRING
6.2 External Wiring
37
Measures to reduce noise
The flexible high-speed I/O control module may malfunction if pulse-like noise is input. Thus, take the following measures to
reduce noise:
• Always use a shielded twisted pair cable.
• Arrange a shielded twisted pair cable keeping a distance of 150mm or more from the power cable, I/O cables, or other
cables that cause much noise. Wire the shielded twisted pair cable in the minimum distance to the extent possible.
• Ground a shield wire on the encoder side (relay box). Always ground the FG and LG terminals to the protective ground
conductor.
• Do not wire terminals that are not to be used. Doing so may result in malfunction due to noise.
Wiring example for measures to reduce noise
The following figure shows a wiring example of when the measures to reduce noise are reflected to the actual system.
Programmable controller
Inverter
Terminal block
(1)
Flexible high-speed I/O control module
For the encoder power supply
To the flexible high-speed I/O control module
(2)
Relay box
To øA
To øB
To + 24 V
To 0 V
To the encoder
(4)
AC
motor
(1)Keep a distance of 150mm or more from the I/O cables of high voltage devices including a relay and an inverter regardless of whether the devices are
inside and outside the panel.
(2)For metal pipes, do not use solenoid valves and inductive loads together in a single pipe. When the distance from high voltage cables cannot be kept
because of duct wiring or other factors, use shield wires such as CVVS for the high voltage cables.
(3)Keep the minimum distance between an encoder and a relay box. When the distance between the flexible high-speed I/O control module and an encoder
is long, a voltage drop may occur. Check that the voltage while the encoder is operating and the voltage while the encoder has stopped are within the
rated voltage range of the encoder using a measuring instrument such as a tester on the terminal block of the relay box. When a voltage drop is large, use
a thicker wire or use the 24DCV encoder that consumes less current.
(4)Connect the shield wires of the encoder and the shield wires of the shielded twisted pair cable inside the relay box. When the shield wires of the encoder
in use have not been grounded in the encoder, ground them inside the relay box as shown above.
Cart
Encoder
(3)
38
6 INSTALLATION AND EXTERNAL WIRING
6.2 External Wiring
Compliance with the EMC and Low Voltage Directives
AD75CK
Flexible
high-speed I/O
control module
20 to 30cm
Inside of control panel
Take the following measures for compliance with the EMC and Low Voltage Directives.
• Always attach a ferrite core on the DC power supply cable to be connected to the flexible high-speed I/O control module
and the one to be connected to a controller. Using the ESD-SR-250 ferrite core manufactured by NEC TOKIN Corporation
is recommended.
• Install a DC power and the module in the same control panel.
• Use a shielded cable for the DC power when the DC power supply cable is extended out of the control panel.
• The length of the cables to be connected to the output section and external devices must be 2m or shorter for open
collector output or 10m or shorter for differential output.
• Keep the length of the cables between the input section and the external devices to 30m or less.
• Use a shielded twisted pair cable and ground the shielded part of the cable to the control panel with the AD75CK cable
clamp manufactured by Mitsubishi.
6
For details on the AD75CK, refer to the following.
AD75CK-type Cable Clamping Instruction Manual
• Take the following measures to reduce noise when wiring connectors for external devices.
■Wiring to use a shielded cable
The following figure shows a wiring example for measures to reduce noise using the A6CON1.
(1)Shorten the distance between the connector and shielded cable as far as possible.
(2)Ground a FG cable of 2 or thicker in the minimum distance. Securely ground the cable in the control panel on the module side.
(3)Shielded cables
A6CON1
(1)
(2)
(3)
6 INSTALLATION AND EXTERNAL WIRING
6.2 External Wiring
39
■Example of noise reduction measures taken to shielded cables
(5)
(4)
(2)
(1), (3)
(1)Remove the jacket of each shielded cable.
(2)Take out a shield from a shielded cable and solder it on the FG wire.
(3)Connect a shield of each shielded cable with a conductive tape.
(4)Cover a connector pin with a heat-shrinkable insulation tube to protect signal wires. If signal wires are bared, the module may be affected by static
electricity and malfunction.
(5)Cover the signal wires with an insulating tape.
■Assembling the A6CON1
(1)
(1)Cover the cables on which a conductive tape has been applied with a heat-shrinkable tube.
40
6 INSTALLATION AND EXTERNAL WIRING
6.2 External Wiring
Connector for external devices
Precautions
• Tighten the connector screws within the specified tightening torque range.
ScrewTightening torque range
Connector screw (M2.6)0.20 to 0.29N⋅m
• Use copper wires having temperature rating of 75 or more for the connectors.
• Use UL listed connectors if necessary for UL compliance.
Applicable connectors
Prepare connectors for external devices to be used with the flexible high-speed I/O control module by users.
The following table lists the applicable connectors, and the reference product of a crimping tool.
■40-pin connector
TypeModelApplicable wire size
Soldering type connector (Straight type)A6CON1
Crimping type connector (Straight type)A6CON20.088 to 0.24mm
Soldering type connector (Dual purpose (straight/oblique) type)A6CON4
*1 When using 40 connectors, use wires whose sheath outside diameter is 1.3mm or less.
Select the wire applicable to the current value to be used.
*1
*1
0.088 to 0.3mm2 (28 to 22 AWG) (Stranded wire)
2
(28 to 24 AWG) (Stranded wire)
0.088 to 0.3mm2 (28 to 22 AWG) (Stranded wire)
6
The A6CON3 (IDC type connector (Straight type)) cannot be used.
The error history can be cleared with one of the following methods.
• Turning off the power
• Resetting the CPU module
• Setting Clear setting of error history (Un\G8002) to Clear the history (1) and turning on and off Error clear request (YF)
*1
58
7 FUNCTIONS
7.1 Hardware Logic Control Function
Checking the error history
Ex.
8010
8020
8030
8160
The start address of the error history
where the latest error is stored is stored.
Error history No.1
Error history No.2
Error history No.3
Error history No.16
(Empty)
(Empty)
Latest
Address
1st error
2nd error
3rd error
An error history consists of the following data.
Details of error history
Error code
Error time
First two digits of the year Last two digits of the year
Month
Hour
Second
Day
Minute
Day of the week
Latest address of error history
(Un\G8000)
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.3) is stored in Latest address of error history (Un\G8000).
7
7 FUNCTIONS
7.2 Error History Function
59
Ex.
The following shows the case in which the 17th error has occurred. The 17th error is stored in Error history No. 1 and 8010
8010
8020
8030
8160
Error history No.1
Error history No.2
Error history No.3
Error history No.16
Latest
The 17th error is stored in Error history No.1
and the 1st error history will be erased.
Address
1st error
2nd error
3rd error
16th error
17th error
Latest address of error history
(Un\G8000)
(start address of Error history No. 1) is overwritten to Latest address of error history (Un\G8000).
If the storage areas of the error history become full, the value in Error history No. 1 (Un\G8010 to Un\G8019)
is overwritten and sequentially thereafter to keep registering errors. (The errors before the overwriting are
deleted.)
60
7 FUNCTIONS
7.2 Error History Function
7.3Module Error Collection Function
Error history (CPU module including built-in I/O and built-in
CC-Link) and error log (intelligent function module) are
displayed on one screen.
Errors that occurred in the entire system can be
monitored in reverse chronological order.
Programming tool
[Example of screen display]
Error history display
19:29
19:33
19:34
19:36
Module A
CPU
Module B
Module A
Error A1
Error C1
Error B1
Error A2
Time
Module in error
Error code
Error history
(CPU module)
Module error log
Time
Module in error
Error code
19:29
19:34
19:36
Module A
Module B
Module A
Error A1
Error B1
Error A2
19:33 Error C1
CPU
Module A
Module B
19:33 Error C1 occurred!
19:29 Error A1 occurred!
19:36 Error A2 occurred!
19:34 Error B1 occurred!
The errors that occurred in the flexible high-speed I/O control module are collected in the CPU module.
To hold errors even after the power is turned off or the CPU module is reset, save the errors in the memory that can hold data
during power failure in the CPU module.
7
For details on the module error collection function, refer to the following.
MELSEC-L CPU Module User's Manual (Function Explanation, Program Fundamentals)
7 FUNCTIONS
7.3 Module Error Collection Function
61
7.4Error Clear Function
When an error has occurred, the error can be cleared from "System Monitor".
Clicking the [Error Clear] button in "System Monitor" clears the latest error code stored in Latest error code (Un\G100) and
turns off the ERR. LED. This action is the same action as the one to be taken when errors are cleared with Error clear request
(YF) or the display unit.
When Clear setting of error history (Un\G8002) has been set to Clear the history. (1), the error history is also cleared.
For how to clear errors with Error clear request (YF) or the display unit, refer to the following.
This chapter describes the configuration tool for creating the hardware logic and writing it into the flexible high-speed I/O
control module.
For how to get the configuration tool, refer to the following.
Page 251 How to Get the Configuration Tool
8.1How to Install and Uninstall the Configuration Tool
For the procedures of installing and uninstalling the configuration tool, refer to the following.
Flexible High-Speed I/O Control Module Configuration Tool Installation Instructions
8
8 FUNCTIONS OF THE CONFIGURATION TOOL
8.1 How to Install and Uninstall the Configuration Tool
63
8.2Starting and Exiting the Configuration Tool
This section describes how to start and exit the configuration tool.
Start
Before starting the configuration tool, add the module with GX Works2. The following describes the operation method.
1. Add the flexible high-speed I/O control module on GX Works2.
[Project window] of GX Works2 [Intelligent Function Module] Right-click [New Module]
[Debug] [Simulation]Page 95 Simulation function
[Help] menu
MenuReference
[Help] [Version Information]Page 102 Checking the version of the configuration tool
8 FUNCTIONS OF THE CONFIGURATION TOOL
8.5 List of Menus of the Configuration Tool
71
8.6Project 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,
and other operations can be easily executed with Windows
Creating a new project
Create a new project.
[Project] [New]
Opening a project
Read a project saved in a hard disk or other areas in a personal computer.
1. Open the "Open" window.
[Project] [Open]
Explorer.
2. Select a project to open and click the [Open] button.
72
8 FUNCTIONS OF THE CONFIGURATION TOOL
8.6 Project Management
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.
[Project] [Save]
8
8 FUNCTIONS OF THE CONFIGURATION TOOL
8.6 Project Management
73
Security
LD40PD01
Write to Module
(Execution memory + Flash ROM)
Password registration
Hardware logic + Password
Password matched
Hardware logic
Password not matched
Password input
Hardware logic + Password
Read from Module (Flash ROM)
LD40PD01
Hardware logic
Hardware logic
Read from Module (Flash ROM)
Write to Module (Execution memory + Flash ROM)
When the hardware logic is written into a flash ROM, add a password to prevent inappropriate access to read the data.
After the security is set to "Enable" and [Write to Module (execution + flash ROM)] in [Online] is executed, the password input
window is displayed. After a password is input and writing data into the module is completed, the security becomes valid.
To read the hardware logic to which the security has been enabled from a flash ROM to the module, input the set password.
• When the security is enabled
• When the security is disabled
Setting method
[Project] [Security] [Enable] or [Invalid]
When a new project is created, the security has been set to "Enable".
Operation details and restrictions
The security setting is saved in a project.
The security of the project created with the configuration tool of version 1.000A is set to "Invalid".
■Actions to be taken when "Write to Module (execution + flash ROM)" is executed
Security settingDescription
Enable• The password registration window is displayed.
*1
Invalid
*1 When "Write to Module (execution memory)" is executed, the action same as the one to be taken when the security setting is "Invalid" is
executed.
74
8 FUNCTIONS OF THE CONFIGURATION TOOL
8.6 Project Management
• The hardware logic is written with a password.
• The password registration window is not displayed.
• The hardware logic is written without a password.
■Actions to be taken when "Read from Module (flash ROM)" is executed
Hardware logic in the
module
With a password• The password input window is displayed.
Without a password• The password input window is not displayed.
Description
• Only when the input password matches the password in the module, the hardware logic can be read.
• The hardware logic can be always read.
■Operations that change the security setting
When one of the following operations is performed, the security setting is changed.
OperationSecurity setting
Creating a new project"Enable" is set.
Opening a projectThe project setting is reflected.
Reading data from the moduleThe setting stored in the flash ROM of the flexible high-speed I/O control module is reflected.
8
8 FUNCTIONS OF THE CONFIGURATION TOOL
8.6 Project Management
75
8.7Windows for Creating the Hardware Logic
Hardware logic outline window
Multi function counter block detail window
Double click
Double
click
Click
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.
WindowDescription
Hardware logic outline windowThis window is for creating the outline of the hardware logic in the flexible
Multi function counter block detail windowThis window is for configuring the detail settings of the multi function counter
high-speed I/O control module. Multi function counter blocks are arranged,
external I/O terminals are linked, and settings are configured in this window.
blocks arranged in the hardware logic outline window.
Switch multi function counter block detail windows (up to eight windows) and
edit each multi function counter block.
76
8 FUNCTIONS OF THE CONFIGURATION TOOL
8.7 Windows for Creating the Hardware Logic
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 wiring of each block to create the hardware logic with various functions.
SectionDescriptionBlocks and terminals
that can be arranged
First sectionThe blocks corresponding to inputs to the hardware logic have been arranged in this section.
All the blocks in the first section are arranged when a project is started, and any blocks cannot
be deleted or newly added from the Element Selection window.
Second sectionBlocks corresponding to encoder inputs are arranged in this section.• Parallel encoder block
Third sectionBlocks that execute count with external input signals and the internal clock are arranged in
this section.
Fourth sectionBlocks that calculate logical operations to input signals and outputs of multi function counter
blocks are arranged in this section.
Fifth sectionThe blocks corresponding to outputs of the hardware logic have been arranged in this section.
All the blocks in the fifth section are arranged when a project is started, and any blocks cannot
be deleted or newly added from the Element Selection window.
*1 For details on each block and terminal, refer to the following.
Page 103 CREATING A HARDWARE LOGIC
• External input block
• Y device terminal
• OUT terminal
• SSI encoder block
Multi function counter block
Logical operation block
• External output block
• SI device terminal
*1
8
8 FUNCTIONS OF THE CONFIGURATION TOOL
8.7 Windows for Creating the Hardware Logic
77
Multi function counter block detail window
A multi function counter block detail window is composed of the following six sections.
Change the setting and wiring of each block to create various count operations.
SectionDescriptionBlock and terminals
First sectionThe terminals corresponding to inputs to a multi function counter block have been
arranged in this section.
An input to a multi function counter block in the hardware logic outline window is handled
as an input in the multi function counter block detail window.
Second sectionSelect a signal detection condition for each input signal.
Desired conditions can be detected with the combinations of High/Low and rise/fall.
Third sectionCounter timers that function depending on each event have been arranged.
Switching of 16-bit signed counter/16-bit unsigned counter and 32-bit signed counter/32-bit
unsigned counter is determined depending on the blocks arranged in the hardware logic
outline window and cannot be changed in the multi function counter block detail window.
Fourth sectionAn operation to compare a count value and a setting value of a counter timer is executed.
Coincidence detections of count values can be executed with the comparison operation.
Fifth sectionBased on results of the comparison operation and event detections, the signals to be
externally output are controlled.
Sixth sectionThe terminals corresponding to outputs of a multi function counter block have been
arranged in this section.
Outputs from the multi function counter block detail window are handled as outputs from
the multi function counter block in the hardware logic outline window.
*1 For details on each block and terminal, refer to the following.
Page 127 Multi Function Counter Block
*2 A cam switch block is arranged across the fourth and fifth sections.
that have been
arranged
• Input terminal
• Latch input terminal
• Event input terminal
• Input signal event
• Latch event detection block
• Counter timer block
• Counter timer block
• Counter timer block
• Counter timer block
• Compare block
• Cam switch block
• Set/reset block
• Cam switch block
• Output terminal
• Event output terminal
• Cam switch output terminal
*1
detection block
(16bit_Unsigned)
(16bit_Signed)
(32bit_Unsigned)
(32bit_Signed)
*2
*2
78
8 FUNCTIONS OF THE CONFIGURATION TOOL
8.7 Windows for Creating the Hardware Logic
How to use blocks
Arranging blocks
The following describes how to arrange a block.
1. 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.
2. When the selected block is dropped into the work window, the block is automatically arranged in the highlighted area.
When three or more blocks have been arranged in the same section and blocks arranged between the top
and bottom ones are deleted, that area becomes vacant. When a new block is arranged under this situation,
the vacant area is highlighted and the block is arranged there.
Counter_0Counter_0Counter_0
Delete Counter_1
Counter_1Counter_1
Counter_2
Counter_3Counter_3Counter_3
and Counter_2.
Place a new
counter.
Deleting a block
The following describes how to delete a block.
Only the blocks arranged from the Element Selection window can be deleted. The blocks that have been arranged by default
cannot be deleted.
When a block is deleted, the link of the block is also deleted.
1. Click the block to be deleted.
The block is highlighted (displayed in yellow) and selected.
8
2. Right-click the block and select "Block Delete" from the context menu. Or press the key.
When a block is deleted, the link of the block is also deleted.
• Users can also delete multi function counter blocks by right-clicking a multi function counter block name
(Counter_) in the tree of the Navigation window and selecting "Block Delete" from the context menu.
• Select [Edit] [Block Delete] to perform the same operation as selecting "Block Delete" from the context
menu.
8 FUNCTIONS OF THE CONFIGURATION TOOL
8.7 Windows for Creating the Hardware Logic
79
Block setting
(1)
(3)
(2)
Configure block settings by changing values in the drop-down lists and text boxes of each block.
No.Item nameDescription
(1)Drop-down listSelect a setting value from the drop-down list.
(2)Text boxInput a one-byte numerical value (decimal).
(3)User Address• By assigning buffer memory addresses to "User Address", input terminal status and parameter setting
values can be changed with programs and values of a hardware logic can be monitored during the
hardware logic control. For details, refer to the following ( Page 133 Assignment of "User Address").
• Input decimal values in the setting.
• The range of settable buffer memory addresses is 1000 to 1099 (High speed area: 1000 to 1029, low
speed area: 1030 to 1099). For details, refer to the following ( Page 80 Input range of User Address).
■Input range of User Address
Input rangeDescription
1000 to 1029• The monitor items and setting items assigned in this area are read or written at a high speed (100μs). These items are also read or
written when the flexible high-speed I/O control module sends an interrupt signal to the CPU module.
• Assign even addresses to the parameters of two words (32 bits). Odd addresses cannot be assigned.
1030 to 1099• The monitor items and setting items assigned in this area are read or written at a low speed (1ms).
• Assign even addresses to the parameters of two words (32 bits). Odd addresses cannot be assigned.
A single buffer memory address cannot be specified in several "User Address".
For example, when the buffer memory address 1000 has been specified in "Count Value" and 1000 is
specified in "Latch Value", the value in User Address is returned to the initial value.
80
8 FUNCTIONS OF THE CONFIGURATION TOOL
8.7 Windows for Creating the Hardware Logic
Linking blocks
Link blocks so that an output terminal of the left block in the window is handled as a start point and the input terminal of the
right block in the window is handled as an end point.
The following describes how to link blocks.
1. Click the terminal to be a start point.
The outer frame of the selected terminal is highlighted.
2. 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.
Handle an Event terminal at the output side (right side of a multi function counter block) as a start point and an
Event terminal at the input side (left side of a multi function counter block) as an end point, and link these
terminals.
8
8 FUNCTIONS OF THE CONFIGURATION TOOL
8.7 Windows for Creating the Hardware Logic
81
■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 103 Main Blocks in the Hardware Logic Outline Window
■Link type
The two link colors, blue and gray, are provided.
• A connection line between a linked output terminal and input terminal is blue.
• Gray connection lines indicate that the terminals have been automatically connected. Users cannot link the terminals.
■Deleting links
The following describes how to delete a link.
Only blue connection lines can be deleted. Gray connection lines cannot be deleted.
1. Click the link to be deleted.
The link is highlighted (displayed in green) and selected.
2. Right-click the link and select "Wiring Delete" from the context menu. Or press the key.
82
8 FUNCTIONS OF THE CONFIGURATION TOOL
8.7 Windows for Creating the Hardware Logic
Copying a block
A block arranged in the hardware logic outline window can be copied by block unit. The setting values can be changed by
block in a batch and an arranged block can be copied.
■Procedure of copying a block
The following describes the procedure of copying a block.
1. Click the block to be copied.
The block is highlighted (displayed in yellow) and selected.
2. Right-click the block and select "Copy" from the context menu.
• Users can also copy multi function counter blocks by right-clicking a multi function counter block name
(Counter_) in the tree of the Navigation window and selecting "Copy" from the context menu.
• Select [Edit] [Copy] to perform the same operation as selecting "Copy" from the context menu.
■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.
• The following table shows which main blocks can be copied.
Section*1Tar g e t blockCopyingItem to be copied
1External input blockPossibleSetting values of the block
• Y device terminal
• OUT terminal
2• Parallel encoder block
• SSI encoder block
3Multi function counter blockPossible• Setting values in the multi function counter block detail window (the setting
Impossible
PossibleSetting values of the block
value of User Address is not included) and links
• Link between Event terminals of a multi function counter block in the hardware
logic outline window (the links across blocks cannot be copied.)
8
4Logical operation blockPossibleThe setting value of the block
5External output blockPossibleSetting values of the block
SI device terminalImpossible
*1 This indicates a section in the hardware logic outline window.
8 FUNCTIONS OF THE CONFIGURATION TOOL
8.7 Windows for Creating the Hardware Logic
83
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.
■Procedure of [Paste]
The following describes the procedure of [Paste].
1. Click the block on which the copy is to be pasted.
The block is highlighted (displayed in yellow) and selected.
2. Right-click the block and select "Paste" from the context menu.
3. The setting values of the block are overwritten with the ones of the copy.
• Users can also paste multi function counter blocks by right-clicking a multi function counter block name
(Counter_) in the tree of the Navigation window and selecting "Paste" from the context menu.
• Select [Edit] [Paste] to perform the same operation as selecting "Paste" from the context menu.
■Procedure of [Insert and Paste]
The following describes the procedure of [Insert and Paste].
1. Select the following item.
[Edit] [Insert and Paste]
2. The copy of a block is added as a new block in the hardware logic outline window.
■Operation details and restrictions
• Selecting the block on which the copy of a block is to be pasted and selecting [Edit] [Paste] overwrites the setting values
of the target block with the ones of the copy at a time.
• Selecting [Edit] [Insert and Paste] adds the copy of a block as a new block in the hardware logic outline window.
• Only a block with the same type as the copy of a block can be specified as a "Paste" target. If a block whose type is
different from the one of the copy has been selected, the copy cannot be pasted. The setting values of a multi function
counter block cannot be overwritten unless the data type of sign/unsigned and 16 bits/32 bits matches between the paste
target and the copy.
84
8 FUNCTIONS OF THE CONFIGURATION TOOL
8.7 Windows for Creating the Hardware Logic
8.8Library Function
A library is a block in which the types and setting values of main blocks have been combined. Libraries can be shared
between multiple projects by registering them in the configuration tool.
There are the following two types of library.
Library typeDescription
Library provided by the manufacturerThe setting to enable specific functions has been applied to main blocks. Users can save time to create the hardware
logic by using a library for a desired function.
User libraryThe blocks set by users can be exported as a user library.
Export
The blocks arranged in the hardware logic outline window can be exported as a library file (.fiolib).
By exporting the blocks whose operations have been checked as library files and registering them as libraries, users can
utilize them and save time to create the hardware logic.
Users can name library files when exporting blocks as libraries.
Export procedure
The following describes the export procedure.
1. Click the block to be exported.
The block is highlighted (displayed in yellow) and selected.
By exporting the blocks as a library, users can utilize the blocks that are frequently used for other projects and save
time to create the hardware logic.
2. Right-click the block and select "Export block" from the context menu.
3. Store the library file.
8
Users can also export multi function counter blocks by right-clicking a multi function counter block name
(Counter_) in the tree of the Navigation window and selecting "Export block" from the context menu.
8 FUNCTIONS OF THE CONFIGURATION TOOL
8.8 Library Function
85
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.
• The following table shows which main block can be exported.
Section*1Tar g e t blockExportItem to be exported
1• External input block
• Y device terminal
• OUT terminal
2• Parallel encoder block
• SSI encoder block
3Multi function counter blockPossible• Setting values in the multi function counter block detail window (the setting
Impossible
PossibleSetting values of the block
value of User Address is not included) and links
• Link between Event terminals of a multi function counter block in the hardware
logic outline window (the links across blocks cannot be exported.)
4Logical operation blockImpossible
5• External output block
• SI device terminal
*1 This indicates a section in the hardware logic outline window.
Impossible
86
8 FUNCTIONS OF THE CONFIGURATION TOOL
8.8 Library Function
Library operation
The following describes the library.
No library exists immediately after the installation of the configuration tool. 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" tab in the Element Selection window.
1. Select the following item.
[Edit] [Library Registration]
2. Open a library file to be registered in the configuration tool.
3. The registered library is added in the "Library" tab in the Element Selection window.
How to use a library
Registered libraries can be selected from the Element Selection window and dragged and dropped into the work window to
arrange them in the same way as main blocks.
1. 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.
2. When the selected block is dropped into the work window, the block is automatically arranged in the highlighted area.
The block name of the arranged library is the same as the main block. For example, when a registered block as a library is a
16-bit unsigned counter, the name of the block arranged in the work window is "Counter_(16bit_Unsigned)".
How to delete a library
Libraries that are no longer required can be deleted from the configuration tool.
1. Click the library to be deleted in the Element Selection window.
8
2. Right-click the library and select "Eliminate Registration of Library" from the context menu.
Even though the library is deleted, the library file is not deleted from the storage folder. To use the library again, register the
library again.
Select [Edit] [Library Delete] to perform the same operation as selecting "Eliminate Registration of Library"
from the context menu.
8 FUNCTIONS OF THE CONFIGURATION TOOL
8.8 Library Function
87
8.9Online Functions
Connect the computer in which the configuration tool 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.
FunctionDescriptionReference
Write to Module (Execution
memory)
Write to Module (Execution
memory + Flash ROM)
Read from Module (Flash ROM)Reads the hardware logic saved in the flash ROM to the configuration tool.Page 90 Reading data
Verify with Module (Flash ROM)Verifies the hardware logic in the configuration tool and the setting data written in the flash
Module operationStarts/stops the hardware logic control.Page 92 Module
MonitorMonitors the on/off states of I/O terminals and count values.
*1 The statuses of I/O signals in the hardware logic are described as High and Low. For details, refer to the following.
Page 104 Signal status name
Writes the hardware logic to only the execution memory.Page 89 Writing data to
Writes the hardware logic to both the execution memory and the flash ROM.
ROM.
The following lists the items that can be monitored.
• High/Low states of output terminals in an external input block (hardware logic outline
window)
• High/Low states of input terminals in an external output block (hardware logic outline
window)
• Internal action states of input terminals and count values in a counter timer block (multi
function counter block detail window)
*1
the module
from the module
Page 91 Verifying with
the module
operation
Page 93 Monitor
If a communication error occurs while an online function is being executed, 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.
• A communication error has occurred during online access.
• Cable error
88
8 FUNCTIONS OF THE CONFIGURATION TOOL
8.9 Online Functions
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 can be selected 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.
Because the hardware logic written into the flash ROM is read to the execution memory at power-on, a control can be started
without re-setting. However, the number of writable times to a flash ROM is 10000 times. Thus, using different write
destinations as shown in the following examples is recommended.
• When the adjustment is repeated with changing the settings, select "Write to Module (execution memory)".
• After the adjustment is completed, select "Write to Module (execution + flash ROM)".
Users can set a password for the hardware logic by setting "Enable" in the [Security] menu of [Project]. For the hardware logic
with a password, users are required to input the password for reading the hardware logic from the module.
Writing data
The following describes how to write data.
1. Select a writing method depending on a selected write destination.
[Online] [Write to Module (execution memory)] or [Write to Module (execution + flash ROM)]
When "Write to Module (execution + flash ROM)" has been selected and the number of writes to flash ROM exceeds 10000
times, the error window is displayed. Data can be written to the module even in such situation. However, the data written in the
flash ROM is not guaranteed.
2. When the following conditions are satisfied, set a password.
• "Enable" has been set in the [Security] menu of [Project].
• [Write to Module (execution + flash ROM)] has been selected.
8
• If data writing is executed while the hardware logic control is operating, the hardware logic control will stop
and the data will be written to the module. After the data writing is completed, the hardware logic control
restarts.
• If data writing is executed while the hardware logic control has stopped, the stop status of the hardware
logic control will continue.
8 FUNCTIONS OF THE CONFIGURATION TOOL
8.9 Online Functions
89
Reading data from the module
Read the hardware logic saved in the flash ROM of the flexible high-speed I/O control module to the configuration tool.
The hardware logic being edited is overwritten by the read data. Save the hardware logic before the data reading as
necessary.
Reading data
The following describes how to read data.
1. Select the following item.
[Online] [Read from Module (flash ROM)]
2. To read the hardware logic with a password, input the password set when the data was written to the module.
90
8 FUNCTIONS OF THE CONFIGURATION TOOL
8.9 Online Functions
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.
1. Select the following item.
[Online] [Verify with Module (Flash ROM)]
2. Verification results are displayed.
In the verification result window, the match/mismatch status (the links to the input terminals of each block, setting values of the
block, and User Address) are displayed.
3. Double-click a mismatch to jump to the corresponding section in the work window. When the links are mismatched, the
corresponding link in the work window is selected.
8
8 FUNCTIONS OF THE CONFIGURATION TOOL
8.9 Online Functions
91
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.
OperationSituation
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.
• Use this operation after the completion of the simulation. The hardware logic control is stopped after the completion
of the simulation. Select [Hardware logic control start] to start the control again.
Stopping the hardware logic controlUse this operation to check the module and system status. Select [Hardware logic control stop] to stop the control.
When checking the module and system status, stop the hardware logic control for safety.
How to start or stop the hardware logic control
The following describes how to start or stop the hardware logic control.
[Online] [Module operation] [Hardware logic control start] or [Hardware logic control stop]
This operation can be performed during monitor execution. For details on the monitor, refer to the following.
Page 93 Monitor
When the hardware logic control is stopped, the count value of the counter timer block is reset. To stop the
count operation without resetting the count value, turn off the count enable of the counter timer block.
Checking the operating status of the hardware logic control
The operating status of the hardware logic control can be checked in the toolbar during monitor execution.
Hardware logic control statusButton statusRemarks
During hardware logic controlThe "Hardware logic control stop" button can be
pressed during the hardware logic control.
During hardware logic control stopThe "Hardware logic control start" button can be
pressed during the hardware logic control stop.
When the hardware logic control is started or stopped from the configuration tool, Hardware logic control flag (X4) turns on or
off. Thus, users can check the operating status of the hardware logic control by monitoring the status of Hardware logic
control flag (X4) in GX Works2.
For details on Hardware logic control flag (X4), refer to the following.
Page 241 Hardware logic control flag (X4)
Relations of operations with output signals and window operations
The hardware logic control can be started or stopped with the configuration tool or output signals (Y4, Y5). The (start or stop)
status of the hardware logic control changes depending on the last operation performed.
• When [Hardware logic control start] is selected with Hardware logic control stop request (Y5) on, the hardware logic control
is started.
• When [Hardware logic control stop] is selected with Hardware logic control start request (Y4) on, the hardware logic control
is stopped.
For details on Hardware logic control start request (Y4) and Hardware logic control stop request (Y5), refer to the following.
Page 244 Hardware logic control start request (Y4)
Page 244 Hardware logic control stop request (Y5)
92
8 FUNCTIONS OF THE CONFIGURATION TOOL
8.9 Online Functions
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.
WindowBlockItem
Hardware logic outline windowExternal input blockON/OFF state of the corresponding external input terminal
High/Low state of the output terminal
Multi function counter blockHigh/Low state of the Output 0 terminal
External output blockHigh/Low state of the input terminal
ON/OFF state of the corresponding external output terminal
Multi function counter block detail window Counter timer block• Internal action state of the input terminal
How to use
The following shows how to start, stop, and end the monitoring.
The monitoring can be started, stopped, or ended under the following conditions.
OperationCondition
[Start Monitoring]Can be used when the window mode*1 is "Edit Mode" or "Monitor Mode".
*1
[Stop Monitoring]Can be used when the window mode
[End Monitoring]Can be used when the window mode
is "Monitor Mode".
*1
is "Monitor Mode".
• Count value
*1 The current window mode can be checked on the status bar.
Although switching of the window between the hardware logic outline window and multi function counter block
detail windows and changing of the display position by the map display window are allowed even during
monitoring, operations other than them cannot be executed.
8
8 FUNCTIONS OF THE CONFIGURATION TOOL
8.9 Online Functions
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 nameBlock nameTerm inalItem to be monitored
Hardware logic outline
window
Multi function counter block
detail window
External input blockIN 0 to IN BON/OFF state of the input
Output terminalHigh/Low state of a terminal
Multi function counter blockCounter_0 to Counter_7Output 0 terminalHigh/Low state of a terminal
External output blockOUT 0 to OUT 7Input terminalHigh/Low state of a terminal
ON/OFF state of the output
OUT 0_DIF to OUT 5_DIFInput terminalHigh/Low state of a terminal
ON/OFF state of the output
Counter timer blockCounter_Timer_0 to
Counter_Timer_7
RUN terminalInternal action state of the
STOP terminal
UP terminal
DOWN terminal
PRESET terminal
Count Value terminalCount value
terminal (external terminal)
terminal (external terminal)
terminal (external terminal)
counter timer block to an
input terminal
*1
*1 When a buffer memory address is assigned to User Address of each terminal and a control is executed, the input state from the buffer
memory cannot be monitored.
When checking the input state from the buffer memory, monitor the corresponding buffer memory area with "Device/Buffer Memory
Batch" of GX Works2.
*2 For the input terminal (external terminal) of an external input block and the output terminal (external terminal) of an external output block,
the latest ON/OFF state of each terminal is displayed even while the hardware logic is stopped.
For other items, monitor values are not updated while the hardware logic control is stopped.
*2
■Item to be monitored
Monitor values are displayed at the upper section of the terminal or block. The ON/OFF state or Low/High state is displayed
as follows.
• Off: Off state or Low state
• On: On state or High state
When the monitoring has stopped, the values immediately before the monitoring stop are displayed.
94
8 FUNCTIONS OF THE CONFIGURATION TOOL
8.9 Online Functions
8.10Debug Function
External input signal
data setting area
Simulation can be executed as the debug function.
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.
Simulation results can be saved in CSV files. Saved results can be visually checked with GX LogViewer.
• During simulation, external outputs are actually turned on or off. Thus, execute the simulation under the
situation in which the module has not be connected with external devices or paying adequate attention not
to affect the system.
• Even though the simulation is executed with the hardware logic where an SI device terminal is linked, an
interrupt request to the CPU module is not output.
• Even though the simulation is executed with the hardware logic where an SSI encoder block has been
arranged, the communication with an SSI encoder will not be performed. Thus, position data of the SSI
encoder is not reflected to simulation execution results.
Window layout
The following describes the configurations of the "Simulation Settings" window. In this window, "simulation input data" can be
created and written into the flexible high-speed I/O control module or simulation is executed.
(Simulation input data is composed of external input signal data and "Simulation step unit time setting" in this window.)
[Debug] [Simulation]
8
8 FUNCTIONS OF THE CONFIGURATION TOOL
8.10 Debug Function
95
The following table lists the items to be displayed in the "Simulation Settings" window.
ItemDescription
External input signal data setting areaTo verify the hardware logic, set the status of data to be imported as external
"Simulation step unit time setting"Set the cycle to switch external input signal data to the next step.
"Open from the file" buttonReads the simulation input data saved in a CSV file to the "Simulation
"Save to File" buttonSaves the simulation input data in the "Simulation Settings" window into a
"Writing to Module" buttonWrites the simulation input data set in the "Simulation Settings" window into
"Simulation run" buttonExecutes the simulation with the simulation input data and hardware logic
"Close" buttonCloses the "Simulation Settings" window.
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.
Click a cell and switch the value between 0 (OFF) to 1 (ON).
Columns in the area indicate the 12 points of the external input signals (IN 0 to
IN B) and rows indicate 2048 steps (0 to 2047).
In the simulation, the hardware logic is executed one step by one step at
every cycle which is set in "Simulation step unit time setting".
Sampling of simulation results is also executed at this set cycle.
Settings" window.
CSV file.
the module. The written data is held until the flexible high-speed I/O control
module is powered off.
To execute the simulation, write simulation input data into the module in
advance.
written into the module.
After the completion of the simulation, the "A simulation execution result is
saved." dialog box is displayed. Save the simulation execution result.
Data that can be acquired as simulation execution results
Users can acquire the following data by executing simulation. The execution result data acquired after simulation can be
saved in a CSV format file. The file can be visually checked with GX LogViewer.
Window nameBlock nameTerm inalData to be acquired
Hardware logic outline
window
Multi function counter block
detail window
*1
*1 Simulation results of the blocks arranged in the hardware logic outline window are acquired.
External input blockIN 0 to IN BOutput terminalHigh/Low state of a terminal
External output blockOUT 0 to OUT 7Input terminal
OUT 0_DIF to OUT 5_DIFInput terminal
Counter timer blockCounter_Timer_0 to
Counter_Timer_7
RUN terminalInternal action state of the
STOP terminal
UP terminal
DOWN terminal
PRESET terminal
Count Value terminalCount value
counter timer block to an
input terminal
96
8 FUNCTIONS OF THE CONFIGURATION TOOL
8.10 Debug Function
How to use
The following describes how to use the simulation function.
1. Open the "Simulation Settings" window.
[Debug] [Simulation]
2. Click each cell in the external input signal data setting area and switch "0: External input signal OFF" and "1: External
input signal ON". By default, "0: External input signal OFF" have been set in all cells.
8
8 FUNCTIONS OF THE CONFIGURATION TOOL
8.10 Debug Function
97
3. 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.)
• Acquisition interval of execution result data (An execution result for one step is acquired at the set unit time.)
Users can save the set simulation input data with the "Save to File" button (Data is saved only in CSV format).
The following shows the CSV file format specifications. When creating a CSV file with any method other than the one using
the "Simulation Settings" window, create the file in the same format.
Item nameCharacter
DelimiterComma (,)
Return codeCRLF (0x0D, 0x0A)
RowDescription
1st rowThe simulation step unit time setting is output.
Simulation step unit time settingValue output into a CSV file
1ms8
100μs7
10μs6
1μs5
0.1μs4
50ns3
25ns2
2nd to 2049th rowOne row indicates one step, and external input signal data is output as "0: OFF" or "1: ON" in order of IN 0, IN 1 to IN B starting
from the left row.
Users can open a saved CSV file from "Open from the file" of "Open/Save the simulation input data from a file".
• The "Writing to Module" button only writes simulation input data into the module. Write the hardware logic
into the module in advance.
• The simulation input data written into the module is cleared when the module is powered off.
• When the external input signal data in the CSV file selected from "Open from the file" has less than 2048
steps or 12 rows, the data is not reflected in the "Simulation Settings" window. When the data has 2048
steps or more or 12 rows or more, the external input signal data of 2048 steps or 12 rows is read. The data
that is not the read target is discarded.
98
8 FUNCTIONS OF THE CONFIGURATION TOOL
8.10 Debug Function
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.