background image

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)

Summary of Contents for MELSEC-L Series LD40PD01

Page 1: ...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 ...

Page 2: ......

Page 3: ...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 exte...

Page 4: ...ule 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 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 mod...

Page 5: ...function 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 o...

Page 6: ... 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...

Page 7: ...e 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 Medic...

Page 8: ... 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 measu...

Page 9: ...7 MEMO ...

Page 10: ...TION AND EXTERNAL WIRING 36 6 1 Installation Environment and Installation Position 36 6 2 External Wiring 37 External wiring precautions 37 Connector for external devices 41 Interface with external devices 43 Connectable encoders 50 6 3 Examples of Wiring Between a Controller and External Input Terminals 51 Example of external wiring with a controller Sync load type 51 Example of external wiring w...

Page 11: ...e 73 Security 74 8 7 Windows for Creating the Hardware Logic 76 Hardware logic outline window 77 Multi function counter block detail window 78 How to use blocks 79 8 8 Library Function 85 Export 85 Library operation 87 8 9 Online Functions 88 Writing data to the module 89 Reading data from the module 90 Verifying with the module 91 Module operation 92 Monitor 93 8 10 Debug Function 95 Simulation f...

Page 12: ... 204 11 1 Adding the Module 204 11 2 Switch Setting 205 11 3 Auto Refresh 206 CHAPTER 12 DISPLAY UNIT 207 12 1 Features 207 12 2 Checking and Clearing Errors 208 CHAPTER 13 PROGRAMMING 210 13 1 Programming Procedure 210 13 2 When the Module Is Used with the Standard System Configuration 211 13 3 When the Module Is Connected to a Head Module 217 Operations of the flexible high speed I O control mod...

Page 13: ... 237 14 6 List of Error Codes 238 14 7 Checking the Status of the Flexible High speed I O Control Module with System Monitor 239 APPENDICES 240 Appendix 1 Details of I O Signals 240 Input signal 240 Output signal 244 Appendix 2 Details of Buffer Memory Areas 247 Appendix 3 How to Get the Configuration Tool 251 Appendix 4 Checking Serial Number and Function Version 252 Appendix 5 Added and Changed ...

Page 14: ...nual name Manual number Description MELSEC L CC Link IE Field Network Head Module User s Manual SH 080919ENG Specifications procedures before operation system configuration installation wiring settings and troubleshooting of the head module MELSEC L SSCNET H Head Module User s Manual SH 081152ENG Specifications procedures before operation system configuration installation wiring settings and troub...

Page 15: ... documentation The meaning of each icon is as follows Icon Description 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 An icon displayed here indicates the window where the terminal or block is used Outline Multi function ...

Page 16: ...OM A 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 The abbreviation for the MELSEC L series flexible high speed I O control module LD40PD01 GX LogViewer The software for visually dis...

Page 17: ...dules 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 By using this module instead of a microcomputer board or an FPGA board which cannot be supplied steadily and constantly due to...

Page 18: ...ble high speed I O control module The output variation depending on input can be reduced Existing programmable controller Flexible high speed I O control module High speed operation processing of hardware Transmission via bus CPU module operation Input Output Input Output Input Output Input Output Input 1 Input 2 Input 3 Input 4 Input 5 Output 1 Output 2 Output 3 Output 4 Output 5 Control 1 Contro...

Page 19: ...mulation function The operation of a created hardware logic can be checked using simulation data instead of external input signals 100ns 1us 10us 100us 1ms Selecting Debugging Setting parameters Connecting Simulation data Execute the simulation with the module Check the result with GX LogViewer Step unit time Step Input 1 Input 1 Input 1 Input 2 Input 2 Input 2 Input 3 Input 3 Input 3 ...

Page 20: ...s 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 The timing variation due to electronic components can be adjusted Ou...

Page 21: ...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 Coincidence output The coincidence output enables a desired fixed feed control comparing a preset compare value and an input count value Light sensor Pulse Example Filling process contai...

Page 22: ... 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 ON OFF ON OFF ON OFF 1000 2000 3000 4000 5000 6000 7000 8000 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 cyc...

Page 23: ...O terminals LED0 Upper section 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 LED1 Lower section This LED indicates the output status of each external output terminal 1 On A signal output is on Off A signal output is off 0 to D indicate the following external out...

Page 24: ...22 2 PART NAMES MEMO ...

Page 25: ...es general specifications performance specifications functions I O signals and buffer memory areas 3 1 General 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 ...

Page 26: ...Length 1 bit to 32 bits Multi function counter block Terminal Input terminal latch input terminal event input terminal output terminal event output terminal cam switch output terminal Input signal event detection block Combination of rise fall Low and High Latch event detection block Rise fall Counter timer block Type Addition subtraction linear counter mode ring counter mode addition mode preset ...

Page 27: ... switch Number of steps Up to 16 steps 1 block Highly accurate pulse output The ON OFF timing can be adjusted in increments of 25ns at a minimum using trigger input as the starting point PWM output Output frequency range Max 2MHz Max 200kHz Duty ratio Any value Can be set in increments of 25ns at a minimum Ratio setting Ratio setting range Number of output pulses 1 to 2147483647 1 to 2147483647 Nu...

Page 28: ...S 3 2 Performance Specifications 1 The basic blocks supplied by the configuration tool Number of occupied modules 2 External dimensions Height 90mm Width 45mm Depth 95mm Weight 0 18kg Item Specifications Differential DC ...

Page 29: ... s Manual Number of parameters for the flexible high speed I O control module The following table lists the number of parameters that can be set per flexible high speed I O control module Check method The number of parameter settings that are set for the intelligent function module and the maximum number of parameter settings can be checked with the following operation Project window Intelligent F...

Page 30: ...DWARE LOGIC Error history function The errors that occurred in the flexible high speed I O control module are stored in the buffer memory as error history Up to 16 errors can be stored Page 58 Error History Function Module error collection function The errors that occurred in the flexible high speed I O control module are collected in the CPU module Page 61 Module Error Collection Function Error c...

Page 31: ...erating condition settings batch reset command X4 Hardware logic control flag Y4 Hardware logic control start request X5 Use prohibited Y5 Hardware logic control stop request X6 Use prohibited Y6 Hardware logic control stop signal at disconnection X7 Hardware logic control stop flag at disconnection Y7 Hardware logic control stop flag clear request at disconnection X8 Use prohibited Y8 Use prohibi...

Page 32: ...ory 0 R W 8003 to 8009 1F43H to 1F49H System area 8010 1F4AH Error history No 1 Error code 0 R 8011 1F4BH Error time First two digits of the year Last two digits of the year 8012 1F4CH Month Day 8013 1F4DH Hour Minute 8014 1F4EH Second Day of the week 8015 to 8019 1F4FH to 1F53H System area 8020 to 8024 1F54H to 1F58H Error history No 2 Same with error history No 1 0 R 8025 to 8029 1F59H to 1F5DH ...

Page 33: ... 1FBDH to 1FC1H System area 8130 to 8134 1FC2H to 1FC6H Error history No 13 Same with error history No 1 0 R 8135 to 8139 1FC7H to 1FCBH System area 8140 to 8144 1FCCH to 1FD0H Error history No 14 Same with error history No 1 0 R 8145 to 8149 1FD1H to 1FD5H System area 8150 to 8154 1FD6H to 1FDAH Error history No 15 Same with error history No 1 0 R 8155 to 8159 1FDBH to 1FDFH System area 8160 to 8...

Page 34: ...ntrol 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 ...

Page 35: ...4 PROCEDURES BEFORE OPERATION 33 4 MEMO ...

Page 36: ...guration 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 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 module Head module I O module or intelligent funct...

Page 37: ... Manual Compatible software version The following table lists compatible software versions 5 3 Restrictions 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 Software Version GX Works2 Version ...

Page 38: ...lation and external wiring of the flexible high speed I O control module 6 1 Installation 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 ...

Page 39: ...nstall 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 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 ext...

Page 40: ...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 ...

Page 41: ...llector 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 For details on the AD75CK refer to the following AD75CK type Cable Clamping Instruction Manual ...

Page 42: ...e 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 1 Cover the cables on which a conductive tape has been applied with a heat sh...

Page 43: ...e applicable to the current value to be used The A6CON3 IDC type connector Straight type cannot be used 40 pin connector crimping tool For how to wire connectors and how to use the crimping tool contact FUJITSU COMPONENT LIMITED Wiring method For the wiring method refer to the following MELSEC L CPU Module User s Manual Hardware Design Maintenance and Inspection Screw Tightening torque range Conne...

Page 44: ...ring Connection procedure Removal procedure 1 Plug the connector into a slot on the flexible high speed I O control module 2 Tighten the two connector screws M2 6 1 Loosen the two connector screws and pull out the connector from the module Connector screw ...

Page 45: ...e flexible high speed I O control module Signal name Operation Input voltage Guaranteed value Operating current Response time 1 24VDC input On 21 6 to 26 4V 4 to 6mA 1μs Off 5V or less 1 0mA or less 5VDC input On 4 5 to 5 5V 4 to 8mA 1μs Off 2V or less 1 0mA or less Differential input Equivalent to AM26C32 1μs Signal name Item Description DC output Operating load voltage 4 75 to 30VDC Maximum load...

Page 46: ...IF IN 2_COM IN 8_DIF IN 8_COM 13 IN 3_24V IN 3_5V IN 9_24V IN 9_5V 12 IN 3_DIF IN 3_COM IN 9_DIF IN 9_COM 11 IN 4_24V IN 4_5V IN A_24V IN A_5V 10 IN 4_DIF IN 4_COM IN A_DIF IN A_COM 9 IN 5_24V IN 5_5V IN B_24V IN B_5V 8 IN 5_DIF IN 5_COM IN B_DIF IN B_COM 7 OUT 0 OUT 1 OUT 4 OUT 5 6 OUT 2 OUT 3 OUT 6 OUT 7 5 OUT 0 3_COM OUT_DIF_GND OUT 4 7_COM OUT_DIF_GND 4 OUT 0_DIF OUT 0_DIF OUT 3_DIF OUT 3_DIF ...

Page 47: ... 2_5V High speed input 2 5VDC IN 8_5V High speed input 8 5VDC B14 IN 2_DIF High speed input 2 differential IN 8_DIF High speed input 8 differential A14 IN 2_COM High speed input 2 common IN 8_COM High speed input 8 common Inputs the minus side B13 IN 3_24V High speed input 3 24VDC IN 9_24V High speed input 9 24VDC Inputs the plus side common for 5VDC 24VDC differential A13 IN 3_5V High speed input...

Page 48: ...igh speed output differential ground B4 OUT 0_DIF High speed output 0 differential OUT 3_DIF High speed output 3 differential Outputs the differential output plus side A4 OUT 0_DIF High speed output 0 differential OUT 3_DIF High speed output 3 differential Outputs the differential output minus sides B3 OUT 1_DIF High speed output 1 differential OUT 4_DIF High speed output 4 differential Outputs th...

Page 49: ... input 8 differential A14 A14 High speed input 2 common High speed input 8 common B13 B13 High speed input 3 24VDC High speed input 9 24VDC A13 A13 High speed input 3 5VDC High speed input 9 5VDC B12 B12 High speed input 3 differential High speed input 9 differential A12 A12 High speed input 3 common High speed input 9 common B11 B11 High speed input 4 24VDC High speed input A 24VDC A11 A11 High s...

Page 50: ...l High speed output 3 differential A4 A4 High speed output 0 differential High speed output 3 differential B3 B3 High speed output 1 differential High speed output 4 differential A3 A3 High speed output 1 differential High speed output 4 differential B2 B2 High speed output 2 differential High speed output 5 differential A2 A2 High speed output 2 differential High speed output 5 differential I O c...

Page 51: ... selection 1 Set the logic selection with the parameters of the external output block For details refer to the following Page 123 External output block 2 The output signal status in the hardware logic is described as High and Low For details refer to the following Page 104 Signal status name Logic selection 1 External wiring High Low state of the external input signal IN 0 observed from the flexib...

Page 52: ...ncremental method Absolute method Encoders with the following specifications can be connected Parallel interface Resolution 1 to 12 bits The absolute code is in pure binary Gray code or BCD Encoders with the following specifications can be connected SSI Synchronous Serial Interface Resolution 1 to 32 bits The absolute code is in pure binary or Gray code Output type Condition Open collector output ...

Page 53: ... 270Ω 240Ω 820Ω 4 1kΩ 270Ω 240Ω 820Ω B18 A19 B19 A18 B16 A17 B17 A16 24V OUT E 0V 5V OUT E 0V Flexible high speed I O control module IN 0 24V input IN 1 5V input Shielded twisted pair cable Controller A External power supply 24VDC Shielded twisted pair cable Controller B External power supply 5VDC IN 0_5V IN 0_DIF IN 0_24V IN 0_COM IN 1_DIF IN 1_5V IN 1_24V IN 1_COM 4 1kΩ 270Ω 240Ω 820Ω 4 1kΩ 270Ω...

Page 54: ... an encoder Example of external wiring with an open collector output type encoder 24VDC 4 1kΩ 270Ω 240Ω 820Ω IN 0_DIF IN 0_5V IN 0_24V IN 0_COM B18 A19 B19 A18 4 1kΩ 270Ω 240Ω 820Ω IN 1_DIF IN 1_5V IN 1_24V IN 1_COM B16 A17 B17 A16 4 1kΩ 270Ω 240Ω 820Ω IN 2_DIF IN 2_5V IN 2_24V IN 2_COM B14 A15 B15 A14 External power supply Flexible high speed I O control module IN 0 Phase A input IN 1 Phase B inp...

Page 55: ... encoder as shown in the figure below Because a current flows through a shielded twisted pair cable in a single direction and the canceling effect disappears the module is easy to be affected by electromagnetic induction 24V COM 0V OUT 24V 0V E Shielded twisted pair cable Pulse input Flexible high speed I O control module External power supply 24VDC Encoder 24V COM 0V OUT 24V 0V E Shielded twisted...

Page 56: ...oder IN 0_DIF 4 1kΩ 270Ω 240Ω 820Ω 4 1kΩ 270Ω 240Ω 820Ω 4 1kΩ 270Ω 240Ω 820Ω IN 0_5V IN 0_24V IN 0_COM IN 1_DIF IN 1_5V IN 1_24V IN 1_COM IN 2_DIF IN 2_5V IN 2_24V IN 2_COM B18 A19 B19 A18 B16 A17 B17 A16 B14 A15 B15 A14 A A B B Z Z E Flexible high speed I O control module IN 0 Phase A input IN 1 Phase B input IN 2 Phase Z input Shielded twisted pair cable Encoder Phase A input Phase B input Phase...

Page 57: ...ce of the SSI encoder to be connected the maximum cable length may become shorter than the above description because a response delay occurs Therefore check the operation using an actual encoder to be connected and use the module If the cable longer than the maximum length described above is used the module becomes following states An encoder value is fixed to an incorrect value and the module doe...

Page 58: ...xternal wiring with output terminals Sink output type When connecting an inductive load connect a diode in parallel with the load to prevent back EMF from being generated to protect output elements OUT 0 3_COM OUT 4 7_COM OUT 0 OUT 4 OUT 1 OUT 5 OUT 2 OUT 6 OUT 3 OUT 7 IO 5V 680Ω 680Ω 680Ω 680Ω 4 7kΩ 4 7kΩ 4 7kΩ 4 7kΩ B5 B7 A7 B6 A6 Load Load Load Load External power supply 24VDC 0V Flexible high ...

Page 59: ...ifferential receivers of the drive unit When the high speed output common terminals are not connected the potential difference will be generated between the high speed output common OUT_DIF_GND and the common terminals of the differential receivers of the drive unit damaging the module or causing a malfunction OUT 0_DIF OUT 3_DIF OUT 0_DIF OUT 3_DIF B4 A4 OUT 1_DIF OUT 4_DIF OUT 1_DIF OUT 4_DIF B3...

Page 60: ...er The error time is stored as shown below Ex The following shows the case of Error history No 1 1 Value of when an error occurred at 10 35 40 on Friday April 24th 2015 Clearing the error history 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 ...

Page 61: ...s of Error history No 3 is stored in Latest address of error history Un G8000 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 Er...

Page 62: ...e 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 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...

Page 63: ...mentals 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 Mo...

Page 64: ...de 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 Page 246 Error clear reques...

Page 65: ... 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 1 How 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 Ins...

Page 66: ...l 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 2 Write the set parameters into the CPU module 3 Start the configuration tool Start All Programs MELSOFT FlexIo Configurator FlexIo_Configurator 4 Input the start I O number of the f...

Page 67: ... speed I O control module and the monitor display through the CPU module However do not change the I O assignment on GX Works2 after the configuration tool is started If the I O assignment is changed on GX Works2 and data writing to the module the monitor display or simulation is executed after the configuration tool has been started a communication error will occur Exit Select Project and Exit in...

Page 68: ... configuration tool supports multiple languages Users can switch the language to be displayed in the menu on a personal computer How to switch the language View Switching display language When a selected language is different from the one set to the OS character strings may not be properly displayed ...

Page 69: ... 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 103 CREATING A HARDWARE LOGIC Title bar Menu bar Toolbar...

Page 70: ... 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 Library tab Select the Library tab to display the libraries provided by the manufacturer and the user libraries registered in the configuration tool For the regi...

Page 71: ...dware 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 Double clicking the item to display in the Navigation window Double clicking a multi function counter block in the hardware logic outline window Clicking a tab at the upper section of the work window ...

Page 72: ...play 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 ...

Page 73: ...Edit Insert and Paste Edit Block Delete Page 79 Deleting a block Edit Export block Page 85 Library Function Edit Library Registration Edit Library Delete Menu Reference Online Write to Module execution memory Page 89 Writing data to the module Online Write to Module execution flash ROM Online Read from Module flash ROM Page 90 Reading data from the module Online Verify with Module Flash ROM Page 9...

Page 74: ...pening 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 Explorer 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 ...

Page 75: ...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 ...

Page 76: ...s 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 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 Security setting Descript...

Page 77: ...tion 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 The password input window is not displayed The hardware logic can be always read Operation Security setting Creating a new project Enable is set Opening a project The project setting is reflected Reading data from the module T...

Page 78: ...ating the outline of the hardware logic in the flexible 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 Multi function counter block detail window This window is for configuring the detail settings of the multi function counter blocks arranged in the hardware logic outline window Switch multi func...

Page 79: ... started and any blocks cannot be deleted or newly added from the Element Selection window External input block Y device terminal OUT terminal Second section Blocks corresponding to encoder inputs are arranged in this section Parallel encoder block SSI encoder block Third section Blocks that execute count with external input signals and the internal clock are arranged in this section Multi functio...

Page 80: ...ock Latch event detection block Third section Counter 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 Counter timer blo...

Page 81: ...ck is arranged there 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 2 Right click the block an...

Page 82: ...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 ...

Page 83: ... 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 coun...

Page 84: ...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...

Page 85: ...e 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 1 This indicates a section in the hardware logic outline window Section 1 Target block Co...

Page 86: ...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 blo...

Page 87: ... The following describes the export procedure 1 Click the block to be exported The block is highlighted displayed in yellow and selected 2 Right click the block and select Export block from the context menu 3 Store the library file 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 Ex...

Page 88: ... The following table shows which main block can be exported 1 This indicates a section in the hardware logic outline window Section 1 Target block Export Item to be exported 1 External input block Y device terminal OUT terminal Impossible 2 Parallel encoder block SSI encoder block Possible Setting values of the block 3 Multi function counter block Possible Setting values in the multi function coun...

Page 89: ...ment 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 exa...

Page 90: ... the hardware logic to only the execution memory Page 89 Writing data to the module Write to Module Execution memory Flash ROM Writes the hardware logic to both the execution memory and the flash ROM Read from Module Flash ROM Reads the hardware logic saved in the flash ROM to the configuration tool Page 90 Reading data from the module Verify with Module Flash ROM Verifies the hardware logic in th...

Page 91: ...ity 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 s...

Page 92: ...odule 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 ...

Page 93: ...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 corres...

Page 94: ...rted 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...

Page 95: ...etail windows and changing of the display position by the map display window are allowed even during monitoring operations other than them cannot be executed Window Block Item Hardware logic outline window External input block ON OFF state of the corresponding external input terminal High Low state of the output terminal Multi function counter block High Low state of the Output 0 terminal External...

Page 96: ... 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 Window name Block name Terminal Item to be monitored 2 Hardware logic outline window External input block IN 0 to IN B ON OFF state of the input ...

Page 97: ...he 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 e...

Page 98: ...ext step Sampling of simulation results is also executed at this set cycle Open from the file button Reads the simulation input data saved in a CSV file to the Simulation Settings window Save to File button Saves the simulation input data in the Simulation Settings window into a CSV file Writing to Module button Writes the simulation input data set in the Simulation Settings window into the module...

Page 99: ...ibes 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 ...

Page 100: ...m 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 Set...

Page 101: ...ule button to write the data into the module in advance If the simulation is started during a hardware logic control the hardware logic control will stop After the completion of the simulation the stop status of the hardware logic control will continue To start the hardware logic control after the simulation turn on Hardware logic control start request Y4 If Hardware logic control start request Y4...

Page 102: ...rminal Name to be output Input terminal in the hardware logic outline window Output terminal in the hardware logic outline window Block name terminal name Input terminal in a multi function counter block detail window Output terminal in a multi function counter block detail window Multi function counter block name block name terminal name Window name Block name Terminal Data type Data to be acquir...

Page 103: ...e setting is 25ns it takes time of 2 steps When Simulation step unit time setting is other than 25ns it takes time of 1 step Ex When simulation is executed with the simulation step unit time of 25ns and the external input block filter time of 0μs the simulation result of an external input block is reflected as follows When the filter time has been set the simulation result is reflected after the t...

Page 104: ...ion 8 11 Help Function As the help function the software version of the configuration tool can be checked Checking the version of the configuration tool Information including the software version of the configuration tool is displayed Help Version Information ...

Page 105: ...I O control module The following table shows sections where each main block can be arranged and the number of blocks that can be arranged in each section in the hardware logic outline window 1 The number in indicates the number of blocks that are arranged by default and no additional blocks can be arranged Section Item name Number of blocks that can be arranged 1 Remarks First section External inp...

Page 106: ...l OUT 0 External output block IN 0 External input block OUT 1 External output block OUT 1 OUT terminal OUT 2 External output block Signal status Name Status of input signals from external devices ON OFF Status of internal signals terminals of the hardware logic High Low Status of DC output signals to external devices ON OFF Status of differential output signals to external devices High Low IN 0 OU...

Page 107: ...input block Output Parallel encoder block Input Coral Multi function counter block Input Butterfly yellow Latch Logical operation block Input SSI encoder block Data Coral Y device terminal Y Multi function counter block Input Pale orange Latch Logical operation block Input OUT terminal OUT OUT_DIF Multi function counter block Input Butterfly yellow Latch Logical operation block Input Parallel enco...

Page 108: ...nversion inverted signals are output The digital filter reduces the effect of external noise The signal selected as an initial state is output when hardware logic control stops Parameter The following table shows the parameters of the external input block Variable name Data type Valid range Default value Description Logic Select Bit Inversion Non Inversion Non Inversion Set Non Inversion or Invers...

Page 109: ...er list box 2 Select an item in the lower list box When General Input has been selected in the upper list box select an input response time When an item other than General Input has been selected in the upper list box select a counting speed If the item in the upper list box is changed to another one after an item is selected in the lower list box the selection status of the lower list box returns...

Page 110: ...ically changed according to the new value When the link between the external input block and the Data terminal of the SSI encoder block is deleted the Filter Time of the external input block returns to the default value Initial State When ON signals are constantly input from external devices during a hardware logic control stop a rise is detected in an input signal event detection block at a hardw...

Page 111: ...peration block The timing of when signals output from Y device terminals are input to the link destination input terminal may delay due to the scan time or other causes To input the signals to multiple connection destinations at the same time using an external input block to which an external input signal is assigned is recommended For details on the external input block refer to the following Pag...

Page 112: ...t block Output The following table shows the output of the OUT terminal 1 Any of OUT 0 to OUT 7 or OUT 0_DIF to OUT 5_DIF can be linked to a logical operation block when a Y device terminal is not linked to the logical operation block When Logic Select of an external output block is set to Inversion signals input to the external output block are inverted and output from the OUT terminal For detail...

Page 113: ... into word data Input The following table shows the inputs of the parallel encoder block Variable name Data type Linkable block Valid range Description Input 0 Bit External input 0 1 These are input terminals of the parallel encoder When the data length is changed the number of displayed Input terminals is changed according to the data length Then the Input terminals are automatically linked to ex...

Page 114: ...f two counter timer blocks in the multi function counter block detail window is updated Make sure to link the parallel encoder block to the PRESET terminal of Counter_Timer_0 For details on the multi function counter block refer to Page 127 Multi Function Counter Block When the parallel encoder block is linked to the Absolute Encoder terminal of a 32 bit multi function counter block do not change ...

Page 115: ... bits or less Link the terminal outputting the transfer timing signal to the PRESET terminal of the counter timer block Output The following table shows the output of the parallel encoder block Link diagram of the hardware logic outline window Link diagram of the multi function counter block detail window Variable name Data type Linkable block Output value Description Output Word Multi function co...

Page 116: ... the SSI encoder block DATA signal wire reverse error error code 109 H or the SSI encoder block DATA signal error error code 10A H is output When Parity of Data Frame Setting is set to Even or Odd a parity check is performed If an error is detected by the parity check the SSI encoder block parity error error code 10B H is output If any of the above errors error code 109 H to 10B H is output during...

Page 117: ...onoflop time according to the specifications of the SSI encoder to be connected For details on the monoflop time refer to the following Page 120 Monoflop time Signal Error Detection Word Disable Enable Disable Set whether to detect an error disconnection short circuit of the data signal wire externally connected to the SSI encoder Error detection disabled Disable Error detection enabled Enable For...

Page 118: ...setting is enabled When this setting is disabled a default value is set Multi Turn Start Bit Word 0 to 31 bit 0 bit Specify the start bit position of multi turn data When Encoder Type is set to Multi Turn this setting is enabled When this setting is disabled a default value is set Encoder Resolution Word 0 to 4294967295 0 Set the encoder resolution to use the encoder with its resolution of single ...

Page 119: ... 100kHz 1 100000s 10μs Note that if an SI device terminal is used up to 200μs may be added to the refreshing cycle above as a delay time of the refreshing Variable name Data type Linkable block Output value Description Clock Bit 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 out...

Page 120: ...t a position data from the SSI encoder in the forward direction Set Reverse to reverse the counting direction Encoder specifications 2 SSI encoder block setting Remarks Item Setting value Data type Gray Input Data Type Gray code Data frame length 28 bits Data Frame Length 28 The parity bit is not included Multi turn data length 13 bits Multi Turn Data Length 13 Multi turn data start bit position 0...

Page 121: ...reverse the counting direction Encoder specifications 2 SSI encoder block setting Remarks Item Setting value Data type Pure binary Input Data Type Pure binary Data frame length 27 bits Data Frame Length 27 Multi turn data length Multi Turn Data Length 0 Setting is not required Multi turn data start bit position Multi Turn Start Bit 0 Setting is not required Encoder resolution 16777216 Encoder Reso...

Page 122: ...evious receive frame is sent from the encoder and received in the flexible high speed I O control module In other words if CLK transmission resumes before the monoflop time elapsed the latest position data is not latched in the encoder and thus the latest position data cannot be received in the flexible high speed I O control module Counting direction setting Set the counting direction of received...

Page 123: ...ation is used Data frame length 28 bits Multi turn data 14 bits Single turn data 13 bits Status 1 bit Parity bit 1 bit Signal error detection An error of the external wiring to the SSI encoder can be detected When Signal Error Detection is set to Enable a signal error detection processing is performed If an error occurs on the external wiring to the SSI encoder the SSI encoder block DATA signal wi...

Page 124: ...owing table shows the input of the logical operation block 1 When a logical operation block is linked with an OUT terminal any of OUT 0 to OUT 7 or OUT 0_DIF to OUT 5_DIF can be used 2 Either of an OUT terminal or Y device terminal can be linked with a logical operation block Parameter The following table shows the parameter of the logical operation block Output The following table shows the outpu...

Page 125: ...e external output block has the following functions When Logic Select is set to Inversion inverted signals are output A delay between signals caused by different external interface circuits can be adjusted by setting a delay time When an error occurs in the CPU module signals are output according to the output setting specified with Error time Output Mode Input The following shows the input of the...

Page 126: ...of Delay Time Unit and Delay Time Step Error time Output Mode Word OFF ON HOLD OFF Set output signals at occurrence of an error in the CPU module to OFF fixed ON fixed or holding output status This setting is also applied to output signals at a hardware logic control stop User Address Setting Set the buffer memory addresses used in the external output block Click the Detail button to open the User...

Page 127: ...et for the setting value of the external output block automatically linked and the value cannot be changed High Low states of external output signals The following table lists the High Low states of external output signals in each setting combination of input signals to external output blocks and Logic Select When an error occurs in the CPU module a signal is output according to the output setting...

Page 128: ...evice terminal 1 An SI device terminal can be linked to any of the Output terminals of the multi function counter block Counter_0 to Counter_7 When multiple SI device terminals are turned to High at the same time the interrupt programs are started in order from the program corresponding to the terminal with a smaller number When multiple SI device terminals are linked link the terminals so that te...

Page 129: ...etail window double click the corresponding block in the hardware logic outline window Type There are the following four types of multi function counter blocks Name Block diagram Specifications Available count value Number of Latch terminals Number of Event terminals Availability of Cam Output terminal Counter_ 16bit_Signed 16 bit signed multi function counter block 16 bit signed value 2 4 Counter...

Page 130: ... used in 16 bit multi function counter blocks only Latch 1 Event 0 Bit Multi function counter 1 0 1 The input terminals are for events The terminal executes OR processing for all signals input to the Event terminal The Event 2 and Event 3 terminals can be used in 16 bit multi function counter blocks only Event 1 Event 2 Event 3 Absolute Encoder Word Parallel encoder 0 to 4095 Inputs the encoder va...

Page 131: ...ese two counter timer blocks because a multi function counter block has only one output terminal Variable name Data type Linkable block Output value Description Output 0 Bit External output SI device 2 0 1 The output terminal is for external output signals and interruption Event 0 Bit Multi function counter 1 0 1 The output terminals are for events The Event 2 and Event 3 terminals can be used in ...

Page 132: ... sections Section Block name Number of arranged items Reference 16 bit counter 32 bit counter First section Input terminal 2 2 Page 134 Input terminal Latch input terminal 2 1 Page 134 Latch input terminal Event input terminal 4 2 Page 135 Event input terminal Second section Input signal event detection block 1 1 Page 136 Input signal event detection block Latch event detection block 1 1 Page 143 ...

Page 133: ...ut for all the input terminals Output side Input side Color Block name Terminal name Block name Terminal name Input terminal Input Input signal event detection block Input 1 Coral Latch input terminal Latch Latch event detection block Input 1 Pale orange Event input terminal Event Counter timer block RUN Butterfly yellow STOP UP DOWN PRESET Latch Input signal event detection block Output Counter t...

Page 134: ...tput 0 Event output terminal Event 0 Event 1 Output 1 Event output terminal Event 2 Event 3 Comparison block output side Set reset block input side Block name Terminal Block name Terminal name Compare_0 Upper terminal Set Reset_0 Set Reset Lower terminal Set Reset_0 Set Reset Compare_1 Upper terminal Set Reset_1 Set Reset Lower terminal Set Reset_1 Set Reset Comparison block output side Event outp...

Page 135: ...he hardware logic in a high speed 100μs or a low speed 1ms period Note that the input terminal status is not read to buffer memory areas Follow the instructions below Even if the input terminal status changes due to signals in the hardware logic the values in the buffer memory areas do not change and they are written in a high speed 100μs or a low speed 1ms period Thus do not assign User Address t...

Page 136: ...nals Latch 0 Latch 1 are arranged For a 32 bit counter one latch input terminal Latch 0 is arranged They are used to use latch signals input to a multi function counter block in the hardware logic outline window Latch 0 Latch 1 as latch signals in the multi function counter block detail window Output The following table shows the output of the latch input terminal 1 The latch input terminals and t...

Page 137: ...re used to use signals input to a multi function counter block in the hardware logic outline window Event 0 to Event 3 as event signals in the multi function counter block detail window Output The following table shows the output of the event input terminal 1 The event input terminal can link with all the terminals of a counter timer block Variable name Data type Linkable block Valid range Descrip...

Page 138: ...nctions of the counter timer block Input The following table shows the inputs of the input signal event detection block 1 The input terminals and the input signal event detection blocks are automatically linked in the following combinations and the links cannot be deleted Input 0 terminal input terminal and Input A terminal input signal event detection block Input 1 terminal input terminal and Inp...

Page 139: ... this item the following 16 settings are changed If any of the following 16 settings is changed after this item has been set User Setting is set to this item A Rise Bit OFF ON OFF When the rise of Input A has been detected Output turns to High only for one clock cycle The status of Input B does not affect the status of Output A Fall Bit OFF ON OFF When the fall of Input A has been detected Output ...

Page 140: ...f Input B have been detected Output turns to High only for one clock cycle A Rise B High Bit OFF ON OFF When the rise of Input A and the High state of Input B have been detected Output turns to High only for one clock cycle A Fall B Low Bit OFF ON OFF When the fall of Input A and the Low state of Input B have been detected Output turns to High only for one clock cycle A Fall B High Bit OFF ON OFF ...

Page 141: ...en detected Output turns to High only for one clock cycle A Low B Fall Bit OFF ON OFF When the Low state of Input A and the fall of Input B have been detected Output turns to High only for one clock cycle A High B Fall Bit OFF ON OFF When the High state of Input A and the fall of Input B have been detected Output turns to High only for one clock cycle Variable name Data type Valid range Default va...

Page 142: ...s Low the value is counted up at the rise of ΦA At down count When ΦB is Low the value is counted down at the fall of ΦA 2 phase multiple of 2 2 Phase Multiple of 2 2 Phase Multiple of 2 At up count When ΦB is Low the value is counted up at the rise of ΦA When ΦB is High the value is counted up at the fall of ΦA At down count When ΦB is High the value is counted down at the rise of ΦA When ΦB is L...

Page 143: ...P terminal of a counter timer block Link the Output terminal where Pulse Input Mode is set Down count to the DOWN terminal of a counter timer block Otherwise values are not correctly counted Pulse input mode Pulse Input Mode Detection condition 1 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 phase multiple of 1 Up count 1 Phase Multiple of 1 Down count 1 Phase Multiple of 1 1 phase multiple of 2 Up cou...

Page 144: ... event detection block with the following procedure 1 Click the Detector Select button to open Select Box 2 Set Pulse Input Mode according to the pulse input mode of external devices 3 Change the settings in A Rise to A High B Fall as necessary If any of the settings has been changed Pulse Input Mode is set to User Setting When the items of A Rise to A High B Fall have been set with Pulse Input Mo...

Page 145: ...nter block Input The following table shows the inputs of the latch event detection block 1 The latch input terminals and the latch event detection blocks are automatically linked in the following combinations and the links cannot be deleted Latch 0 terminal latch input terminal and Input A terminal latch event detection block Latch 1 terminal latch input terminal and Input B terminal latch event d...

Page 146: ...e 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 window The Detector Select on the upper side is for detecting signals of Input A The Detector Select on the lower side is for detecting signals of Input B Variable name Data type Valid range Default value Description A Rise B Rise f...

Page 147: ...er 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 The counter operates according to the signals of the event input terminals the input signal event detection block and the latch event detection block and the count values are output 16 bit...

Page 148: ...ses are counted Input pulses are counted per 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 Count values can be preset and latched Addition values can be set addition mode For 32 bit counter timer blocks an overflow and an underflow can be detected ...

Page 149: ...the count value per preset clock cycle 2 Multiple signals can be input to the terminal OR processing is executed for all input signals STOP 1 6 Bit Event input Input signal event detection 0 1 Stops the counter Multiple signals can be input to the terminal OR processing is executed for all input signals UP 3 6 Bit Event input Input signal event detection 0 1 Adds an addition value to the count val...

Page 150: ...e terminals so that multiple signals are not input at the same time Creating a hardware logic where the input to the STOP terminal is detected during the High state is recommended The following shows the priority of the terminals 1 PRESET terminal 2 STOP terminal 3 RUN terminal 4 UP terminal 5 DOWN terminal The RUN terminal holds an event Thus when the High states of the PRESET terminal and the RU...

Page 151: ...value of the counter timer 16 bit unsigned counter 1 0 to 65535 0 32 bit signed counter 1 2147483648 to 2147483647 2147483648 32 bit unsigned counter 1 0 to 4294967295 0 Clock Word 25ns 50ns 0 1μs 1μs 10μs 100μs 1ms 25ns Set the clock cycle To count input pulses set 25ns for Clock Setting a value other than 25ns may not count the input pulses correctly Add Mode Bit OFF ON OFF Set the addition mode...

Page 152: ...leted Count Value terminal of Counter_Timer_0 and Input terminal of Compare_0 Count Value terminal of Counter_Timer_1 and Input terminal of Compare_1 This combination cannot be used for 32 bit multi function counter blocks The count value is cleared to 0 when the hardware logic control is stopped To stop the count operation without clearing the count value set Count Enable to OFF To switch the on ...

Page 153: ...wing table shows User Address used for the monitors 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 address specified with User Address 1 ...

Page 154: ...f the DOWN terminal is ignored While input pulses are counted the count operation can be stopped externally because the STOP terminal has higher priority than the UP terminal and the DOWN terminal Operation of when counting is performed based on the clock cycle inside the module The count operation is performed as a timer When the High state of the RUN terminal is detected counting up the count va...

Page 155: ...H occurs Count Value does not change until the preset function is performed even if up count is performed Ex The following figure shows how the counting range and the count value change in a 32 bit signed counter timer block when the preset function is performed with the following settings the upper limit value is 2147483647 the lower limit value is 2147483648 and Preset Value is 500 Multi functio...

Page 156: ...is performed These errors can be cleared by performing the preset function Performing the preset function stores a preset value in Count Value and restarts the count The value stored in Latest error code Un G100 is held until the error is reset Clear the error using Error clear request YF In the linear counter mode set the values as follows Set the upper limit value and the lower limit value so th...

Page 157: ...hows how the counting range and the count value change when the preset function is performed with the following settings Lower Limit is 0 Upper Limit is 2000 and Preset Value is 500 When the same values are set for Upper Limit and Lower Limit the ring counter operation can be performed with the maximum valid range The following show examples for a 32 bit signed counter timer block When up count is...

Page 158: ...he values as follows Make sure that the count value is within the count range set with the upper limit value and lower limit value If the count value exceeds the count range set the preset value within the count range and perform the preset function If the count operation is continued with the count value out of the count range the operation cannot be guaranteed Set the preset value within the cou...

Page 159: ...erflow occurs When the addition mode is on in the ring counter mode When the addition mode is on in the ring counter mode and up count is performed in the status in which the total of Count Value and Add Value exceeds Upper Limit the count value is as follows Count value after addition Lower Limit Add Value Upper Limit Current count value Ex When Add Value is 5 Upper Limit is 1000 Lower Limit is 0...

Page 160: ...ulti function counter block arranged in the hardware logic outline window Automatic link Counter timer blocks and comparison blocks are linked automatically in the following combinations and the links cannot be deleted Variable name Data type Linkable block Valid range Description Input Word Counter timer 32768 to 32767 16 bit signed counter 1 0 to 65535 16 bit unsigned counter 1 2147483648 to 214...

Page 161: ... Mode B Word Blank Blank Select a mode for comparing the count value and the compare value When Condition is set to Range this setting is disabled Compare Value A Compare Value B Word 32768 to 32767 16 bit signed counter 1 0 to 65535 16 bit unsigned counter 1 2147483648 to 2147483647 32 bit signed counter 1 0 to 4294967295 32 bit unsigned counter 1 0 Set the value to be compared with the count val...

Page 162: ...put as follows Output of Value A Input Value B is always Low Output of Input Value A Value B Input is always High Variable name Data type Linkable block Output value Description Input Value A 1 Bit Set reset Event output 0 1 Outputs the comparison result between Count Value and Compare Value A Input Value B 1 Bit Set reset Event output 0 1 Outputs the comparison result between Count Value and Comp...

Page 163: ... the counter timer block and the cam switch block is linked automatically and the link cannot be deleted 2 The valid range is determined by the type of the multi function counter block arranged in the hardware logic outline window 3 When User Address is used variability of 100ns or less occurs when the output turns to High or Low Variable name Data type Linkable block Valid range Description Input...

Page 164: ...et the initial state of output When Count Value of the counter timer block is less than the input value of Step No 0 the output status turns to the initial state The output status of Step No 0 or later inverts to the High state or the Low state for every step No Step No 0 Word 2147483648 to 2147483647 32 bit signed counter 1 0 to 4294967295 32 bit unsigned counter 1 0 Compares the values of step n...

Page 165: ...ut terminal can be linked to the Output terminal Item Setting value Number of Step 6 Lower Limit 1 2147483648 Lower Limit Output State Low Step No 0 100 Step No 1 250 Step No 2 400 Step No 3 550 Step No 4 700 Step No 5 850 Upper Limit 1 2147483647 No Description 1 For Lower Limit Count value Step No 0 the output status set with Lower Limit Output State is applied When the count value is equal to o...

Page 166: ...re arranged in ascending order When the setting values in Lower Limit Step No 0 to Step No 15 and Upper Limit are not arranged in ascending order the control for the cam switch block is not normally performed Item Setting value Number of Step 2 Lower Limit 1 2147483648 Lower Limit Output State Low 2 Step No 0 1000 Step No 1 2000 Upper Limit 1 2147483647 No Description 1 For Lower Limit Count value...

Page 167: ...to High at the same time the Reset terminal becomes valid Link of the set reset block The set reset block in a 16 bit counter can be linked to the following comparison blocks Output The following table shows the output of the set reset block Variable name Data type Linkable block Valid range Description Set Bit Input signal event detection Comparison 0 1 Outputs the High fixed signal when an input...

Page 168: ...on counter block arranged in the hardware logic outline window Output The following table shows the output of the output terminal Variable name Data type Linkable block Valid range Description Output Bit Input signal event detection Set reset 0 1 Outputs the High Low states of the Output 0 terminal of a multi function counter block in the hardware logic outline window This terminal is used for lin...

Page 169: ... in a 16 bit counter can be linked to the following comparison blocks For event output terminals in a 16 bit counter linkable Output terminals of the input signal event detection block are different as shown below Event output terminals are not linkable in a 32 bit counter Variable name Data type Linkable block Valid range Description Event Bit Input signal event detection Comparison 0 1 Outputs t...

Page 170: ...ignals input to the cam switch output terminal can be output from the Cam Output terminal in the multi function counter block arranged in the hardware logic outline window Output The following table shows the output of the cam switch output terminal 1 The cam switch block and the cam switch output terminal are linked automatically and the link cannot be deleted Variable name Data type Linkable blo...

Page 171: ... corresponding to the SI device terminal to which the signal has been input is executed Setting method To use the intelligent function module interrupt intelligent function module interrupt pointers and a hardware logic are required to be set in advance Setting intelligent function module interrupt pointers Set interrupt factors SI and interrupt pointers of the CPU module in the intelligent functi...

Page 172: ...C 9 3 Intelligent Function Module Interrupt Setting the hardware logic The following figure shows link examples of the hardware logic Hardware logic outline window Multi function counter block detail window Counter_0 16bit_Unsigned ...

Page 173: ...k example in the hardware logic outline window and the multi function counter block detail window For the linking of the multi function counter block detail window Counter_0 16bit_Unsigned a value other than 0 is recommended for Compare Value If 0 is set in Compare Value an interrupt request is output to the CPU module when the operation of the hardware logic starts when the count value starts to ...

Page 174: ... external input signal as an event signal The output signal can be linked as an event signal of other multi function counter blocks Page 182 Event Generation Cam switch Turns on or off the output when a count value within the upper and lower limit value range becomes equal to or larger than the setting value of the corresponding steps Page 184 Cam Switch PWM output Outputs a PWM wave with the spec...

Page 175: ...count value becomes 1000 and an interrupt request is sent to the CPU module Note that this link example is for when a 32 bit unsigned multi function counter block is used 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 High Low ...

Page 176: ... Count Enable ON Set this parameter to ON Count Mode Ring Set this parameter according to the control Upper Limit 2000 Set this parameter according to the control Lower Limit 0 Set this parameter according to the control Clock 25ns Set this parameter to 25ns to prevent input pulses from missing Add Mode OFF Set this parameter to OFF because the addition mode is not used in this link example Add Va...

Page 177: ...e detection value the cam switch output terminal turns to High 3 Through the OUT 0 block in the hardware logic outline window Input 0 of the multi function counter block_1 turns to High The input signal event detection block detects the rise of the signal from Input 0 Output 0 turns to High and to Low and an interrupt request is sent to the CPU module 1 999 1000 1001 High Low 1 0 High Low High Low...

Page 178: ...Hardware logic outline window Multi function counter block _0 detail window coincidence detection The multi function counter block_0 counts external input signals When the count value becomes equal to the compare value an event signal is output to the multi function counter block_1 IN 0 IN 1 Input 0 Input 1 Event 0 Event 0 Multi function counter block_0 coincidence detection Multi function counter...

Page 179: ...nd multi function counter block detail window Hardware logic outline window Multi function counter block _0 detail window coincidence detection Create the hardware logic by using compare blocks and a set reset block as shown in the dotted line frame IN 0 IN 1 OUT 0 Input 0 Input 1 Output 0 SI 0 Multi function counter block_0 coincidence detection Input 0 Count Value Output 0 Input 1 UP DOWN Compar...

Page 180: ...ned on for 100ms using an external input signal as a trigger Note that this link example is for when a 32 bit unsigned multi function counter block is used 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 100ms ON OFF ON OFF Inpu...

Page 181: ...tting ON only in A Rise Counter_Timer_0 Count Enable ON Set this parameter to ON Count Mode Linear Set this parameter according to the control Upper Limit 4294967295 Set this parameter according to the control Lower Limit 0 Set this parameter according to the control Clock 1ms Set this parameter according to the control 1 Add Mode OFF Set this parameter according to the control 2 Add Value 0 STOP ...

Page 182: ...ing per clock cycle starts after the preset 2 When the count value becomes 100 the Output terminal of the compare block turns to High The event output terminal 0 event input terminal 0 and the STOP terminal of the counter timer block turn to High in the described order In addition outputs from the output terminal 0 stop 3 When the STOP terminal of the counter timer block turns to High counting per...

Page 183: ... of the hardware logic outline window and multi function counter block_1 detail window Hardware logic outline window Multi function counter block_1 detail window one shot timer IN 0 IN 1 Out 0 Input 0 Input 1 Cam Output Output 0 Event 0 Input 0 Event 0 OUT 0 OUT 1 Multi function counter block_0 coincidence detection Multi function counter block_1 one shot timer Input 0 Event 0 RUN STOP Count Value...

Page 184: ... counter block as an event signal A signal output from the Event 0 terminal of the multi function counter block _0 Rise of the phase A input A signal output from the Event 2 terminal of the multi function counter block _0 High of the phase B input Note that this link example is for when a 16 bit unsigned multi function counter block is used Event generation is supported only by 16 bit multi functi...

Page 185: ...enerate an event signal Detector Select User Setting ON only in B High Event 0 Event 2 No Description 1 When a rise of the input terminal 0 is detected the event output terminal 0 turns to High and to Low 2 When a rise of the input terminal 1 is detected the event output terminal 2 turns to High 3 When a fall of the input terminal 1 is detected the event output terminal 2 turns to Low High Low 3 H...

Page 186: ...ot supported by 16 bit multi function counter blocks 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 Step No Count value Output 0 lower limit value to 999 Low 0 1000 to 1999 High 1 2000 to 2999 Low 2 3000 to 3999 High 3 4000 to ...

Page 187: ...parameter according to the control Upper Limit 10000 Set this parameter according to the control Lower Limit 0 Set this parameter according to the control Clock 25ns Set this parameter to 25ns to prevent input pulses from missing Add Mode OFF Set this parameter according to the control Add Value 0 Cam Switch Number of Step 7 Set 7 which is the number of steps of the cam switch to enable the step N...

Page 188: ...High 2 When the count value reaches the setting value of the step No 0 an external output is inversed Also every time the count value reaches each setting value of the step No 1 or later an external output is inversed High Low High Low 1 2 1 999 1000 1999 2000 2999 3000 3999 4000 4999 5000 5999 0 0 1 2 3 4 5 6000 6999 7000 6 Controlled by the flexible high speed I O control module Cam switch outpu...

Page 189: ...wave starts and when a rise of the input signal 1 is detected the output stops Note that this link example is for when a 32 bit unsigned multi function counter block is used 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 7ms 3m...

Page 190: ...l Detector Select User Setting ON only in B Rise Set conditions to detect a PWM output stop signal Counter_Timer_0 Count Enable ON Set this parameter to ON Count Mode Ring Set this parameter to Ring Upper Limit 10 Set this parameter according to the control 1 Lower Limit 0 Set this parameter according to the control 1 Clock 1ms Set this parameter according to the control 1 2 Add Mode OFF Set this ...

Page 191: ...ignal input terminal 1 is input No Description 1 When a signal is input to the input terminal 0 output of the PWM wave starts 2 When a signal is input to the input terminal 1 the output of the PWM wave stops 1 High Low 7ms 3ms High Low High Low 2 3ms 7ms Cycle time ON time Output terminal Input terminal 1 Input terminal 0 Controlled by the flexible high speed I O control module ...

Page 192: ...le pulse starts and when a rise of the input signal 1 is detected the output stops Note that this link example is for when a 32 bit unsigned multi function counter block is used 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 10...

Page 193: ... 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 Counter_Timer_0 Count Enable ON Set this parameter to ON Count Mode Ring Set this parameter to Ring Upper Limit 1000 Set this parameter according to the control 1 Lower Limit 0 Set this parameter according to the control 1 Clock 1ms Se...

Page 194: ...t stop signal input terminal 1 is input No Description 1 When a signal is input to the input terminal 0 pulse output starts One pulse is output per cycle 2 When a signal is input to the input terminal 1 the pulse output stops 1000ms 1ms 1 2 High Low High Low High Low Output terminal Input terminal 1 Input terminal 0 Cycle time ON time Controlled by the flexible high speed I O control module ...

Page 195: ... of the latch input signal is detected the current value is latched Note that this link example is for when a 32 bit unsigned multi function counter block is used 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 pul...

Page 196: ...traction pulse LatchEvent Detector Select A Rise Set conditions to detect a latch signal Counter_Timer_0 Count Enable ON Set this parameter to ON Count Mode Ring Set this parameter according to the control Upper Limit 20000 Set this parameter according to the control Lower Limit 0 Set this parameter according to the control Clock 25ns Set this parameter to 25ns to prevent input pulses from missing...

Page 197: ...ption 1 When a signal is input to the latch input terminal the current count value is stored in the latch value 2 When a signal is input to the latch input terminal again the latch value is updated High Low 10 40 60 0 10 40 60 1 2 Controlled by the flexible high speed I O control module Latch value Latch input terminal Count value ...

Page 198: ...es for example a printer can be controlled The ratio x y used in ratio conversion must be y x when a signal multiplied by x y is output to an input signal Conversions with the ratio exceeding one time cannot be performed The following describes a link and parameter example of a ratio conversion With the example setting when a 1ms input signal is output for 1ms after multiplied with 3 10 Note that ...

Page 199: ...er 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 One shot timer ...

Page 200: ...elect This parameter is not used in this link example Counter_Timer_0 Count Enable ON Set this parameter to ON Count Mode Ring Set this parameter to Ring Upper Limit 20 Set this parameter according to the control 1 Lower Limit 0 Set 0 Clock 25ns Set this parameter to 25ns to prevent input pulses from missing Add Mode ON Set this parameter to ON Add Value 3 Set this parameter according to the contr...

Page 201: ...nly in A Rise Counter_Timer_0 Count Enable ON Set this parameter to ON Count Mode Linear Set this parameter according to the control Upper Limit 4294967295 Set this parameter according to the control Lower Limit 0 Set this parameter according to the control Clock 25ns Set this parameter according to the control 2 Add Mode OFF Set this parameter according to the control 3 Add Value 0 STOP PRESET ON...

Page 202: ...Counter_0 falls below the setting value of the step No 0 the cam switch output terminal Counter_0 is turns to Low 4 When the count value Counter_0 becomes equal to or larger than the setting value of the step No 0 again the cam switch output terminal Counter_0 turns to High The operations 1 to 3 above are repeated and signals of 3 pulses are output for inputs of 10 pulses High Low High Low High Lo...

Page 203: ...e setting the ON width latch value 25ns of the input signal is measured Note that this link example is for when a 32 bit unsigned multi function counter block is used 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 ON OFF Input ...

Page 204: ...only in A Rise 1 Set Only A Rise is on Detector Select User Setting ON only in A Fall 1 Set ON only in A Fall Latch_Event Detector Select User Setting ON only in A Fall 1 Set ON only in A Fall Counter_Timer_0 Count Enable ON Set this parameter to ON Count Mode Linear Set this parameter to Linear Upper Limit 4294967295 Set 4294967295 to widen the pulse measurement width Lower Limit 0 Set 0 Clock 25...

Page 205: ...When the input signal is turned off the following two operations are simultaneously performed The Latch terminal turns to High and the current count value is latched The STOP terminal turns to High counting per clock cycle stops and preset is performed 0 10 0 10 1 2 OFF ON Low High Low High Low High Controlled by the flexible high speed I O control module Latch terminal STOP terminal Input signal ...

Page 206: ...off and on the power 11 1 Adding the Module Add the model name of the flexible high speed I O control module used in the project Addition method Add the model name in New Module Project window Intelligent Function Module Right click New Module Item Description Module Selection Module Type Set Counter Module Module Name Set the module model name to be connected Mount Position Mounted Slot No Set a ...

Page 207: ... at disconnection Project window Intelligent Function Module Module model name Switch Setting Item Description Setting value Hardware logic control valid invalid during disconnecting Set the hardware logic control status of when the own station is disconnected during hardware logic control Invalid default value Valid ...

Page 208: ... in Auto Refresh 1 Open the Auto Refresh window Project window Intelligent Function Module Module model name Auto Refresh 2 Click the item to be set to enter the auto refresh target device The usable devices are X Y M L B T C ST D W R and ZR When the bit device X Y M L or B is used set a number that is divisible by 16 points such as X10 Y120 and M16 Buffer memory data of 16 points is stored from t...

Page 209: ...the display unit refer to the following MELSEC L CPU Module User s Manual Function Explanation Program Fundamentals 12 1 Features The display unit is a liquid crystal display that can be connected to the CPU module Connecting it to the CPU module allows checking the system status without using software packages When a trouble occurs the display unit displays error information and a cause of the tr...

Page 210: ... MON TES For details on the error codes refer to the following Page 238 List of Error Codes Ex When an error has occurred in the flexible high speed I O control module with the start I O number 10 BUF MEM MON TES window 1 Press the button BUFF MEM ADDR INPUT FORMAT window 2 Set the buffer memory address input type to DEC with the and buttons and press the button BUFF MEM ADDR window 3 Move the cur...

Page 211: ...ith the start I O number 10 CPU MON TES window 1 Select DEV MON TEST with the and buttons and press the button Device selection window 2 Select Y as a target device with the and buttons and press the button DEVICE No SET window 3 Set the target device to Error clear request Y1F and press the button Device monitor window 4 Press the button DEVICE TEST window 5 Turn on the device with the and button...

Page 212: ...Create programs for executing the flexible high speed I O control module with the following procedure 1 Set the hardware logic with the configuration tool 2 Create programs with GX Works2 Program creation start Outline window setting Hardware logic start stop program Module addition with GX Works2 Program creation end Error reset program Program 2 Multi function counter block setting Hardware logi...

Page 213: ...nput to the flexible high speed I O control module with the multi function counter block Adding the module Add the flexible high speed I O control module on GX Works2 For details on adding the module refer to the following Page 204 Adding the Module Use the default values for the switch setting and auto refresh setting in these program examples Starting the configuration tool Start the configurati...

Page 214: ...o external input blocks To perform external outputs according to the counting result link the multi function counter block to an external output block To start an interrupt program according to the counting result link the multi function counter block to an SI device terminal Page 216 Interrupt program example 2 Set the external input blocks according to the specifications of external input signal...

Page 215: ...nk and settings in the multi function counter block detail window 1 Link blocks in the multi function counter block detail window as shown below 2 Set the setting values of the input signal event detection blocks as shown below 3 Set the setting values of the counter timer block as shown below ...

Page 216: ...ard System Configuration 4 Set the setting values of the comparison block as shown below Writing data to the module Write a project to the CPU module with GX Works2 Write the hardware logic to the flexible high speed I O control module with the configuration tool ...

Page 217: ...ntrol flag X3F Error flag Y33 Operating condition settings batch reset command Y34 Hardware logic control start request Y35 Hardware logic control stop request Y3F Error clear request Store a value of Clear setting of error history Turn on Error clear request Turn off Error clear request Turn on Hardware logic control start request Turn off Hardware logic control start request Turn on Hardware log...

Page 218: ... is enabled and all other interrupt programs are disabled To execute any interrupt program other than the I50 interrupt program set the bit that corresponds to the target interrupt pointer to 1 enabled For details on the IMASK instruction refer to the following MELSEC Q L Programming Manual Common Instruction Device Description D100 to D115 Interrupt enable flag storage for IMASK instruction Inter...

Page 219: ...nts pulses 2 phase multiple of 4 input to the flexible high speed I O control module with the multi function counter block Network No 1 Ethernet cable 1000BASE T X Y1000 to X Y101F Masster station Station No 0 Intelligent device station Station No 1 Power supply module Q62P CPU module Q10UDHCPU Master local module QJ71GF11 T2 Input module QX10 Output module QY40P Power supply module L61P Head modu...

Page 220: ...ead complete flag 1 M220 M221 Read complete flag 2 M300 Count value reading flag M310 Number of writes to a flash ROM reading flag M1000 Communication ready flag station number 1 M1001 Setting request at a startup M1002 Setting request signal M1003 Setting complete flag at a startup D100 W1010 Storing the latest error code D200 D201 Storing the cumulative number of write accesses to a flash ROM D1...

Page 221: ...ies and select Q10UDH in Type Project New 2 Display the setting window for the network parameters and set the values as follows Project window Parameter Network Parameter Ethernet CC IE MELSECNET 3 Display the setting window for the network configuration settings and set the values as follows Project window Parameter Network Parameter Ethernet CC IE MELSECNET button ...

Page 222: ... refresh parameters and set the values as follows Project window Parameter Network Parameter Ethernet CC IE MELSECNET button 5 Write the set parameters to the CPU module on the master station Then reset the CPU module or power off and on the programmable controller Online Write to PLC RESET or Power OFF ON ...

Page 223: ...t LCPU in Series and select LJ72GF15 T2 in Type Project New 2 Display the setting window for the PLC parameters and set the values as follows Project window Parameter PLC Parameter Communication Head Setting 3 Add the flexible high speed I O control module LD40PD01 to the project of GX Works2 Project window Intelligent Function Module Right click New Module ...

Page 224: ...ons of the flexible high speed I O control module differ depending on the setting of Hardware logic control valid invalid during disconnecting in the switch setting or that of Error Time Output Mode in the intelligent function module detailed setting For details refer to the following Page 229 Operations of the flexible high speed I O control module when the head module is connected 6 Display the ...

Page 225: ...function counter block in the hardware logic outline window and link it to external input blocks To perform external outputs according to the counting result link the multi function counter block to an external output block 2 Set the external input blocks according to the specifications of external input signals 3 To use the external output block set it according to the specifications of external ...

Page 226: ...tings in the multi function counter block detail window 1 Link blocks in the multi function counter block detail window as shown below 2 Set the setting values of the input signal event detection blocks as shown below 3 Set the setting values of the counter timer block as shown below ...

Page 227: ...odule Is Connected to a Head Module 225 13 4 Set the setting values of the comparison block as shown below Writing data to the module Write the hardware logic to the flexible high speed I O control module with the configuration tool ...

Page 228: ...on number 1 Add the MCR instruction shown below to the last of the program Program example 1 A program example to turn on Hardware logic control stop signal at disconnection Y1006 Program example 2 A program example to configure the clear setting of error history 1 Check the data link status of the head module station number 1 1 Turn on Hardware logic control stop signal at disconnection Y1006 1 S...

Page 229: ...alue Program example 6 A program example to reset the operating condition settings in a batch 1 Turn on Hardware logic control start request Y1004 2 Turn off Hardware logic control start request Y1004 1 Turn on Hardware logic control stop request Y1005 2 Turn off Hardware logic control stop request Y1005 1 Read the count value 1 Turn on Operating condition settings batch reset command Y1003 2 Turn...

Page 230: ... X1007 Program example 8 A program example to read the latest error code and reset the error 1 Turn on Hardware logic control stop flag clear request at disconnection Y1007 2 Turn off Hardware logic control stop flag clear request at disconnection Y1007 1 Read Latest error code Un G100 2 Turn on Error clear request Y100F 3 Turn off Error clear request Y100F 1 2 1 2 3 ...

Page 231: ...cting is Invalid When Invalid is set for Hardware logic control valid invalid during disconnecting the operation differs depending on the setting of Error Time Output Mode as follows To continue the hardware logic control when the head module is disconnected set Invalid for Hardware logic control valid invalid during disconnecting If Hardware logic control valid invalid during disconnecting is set...

Page 232: ...e logic control valid invalid during disconnecting Error Time Output Mode Operation of the flexible high speed I O control module Y signal status Hardware logic operation External output status Valid Hold Held Continued Output according to the operation result by the hardware logic control Clear Turned off Stop Output set in Error time Output Mode of the external output block Invalid Hold Held Con...

Page 233: ...ecking Error Codes in the Module s Detailed Information Window of GX Works2 Page 232 Checking Error Codes with Latest Error Code Un G100 Page 233 Checking Error Codes with the Module Error Collection Function of GX Works2 Page 208 Checking and Clearing Errors 14 1 Checking Error Codes in the Module s Detailed Information Window of GX Works2 This section describes how to check errors in the Module ...

Page 234: ...Un G100 14 2 Checking Error Codes with Latest Error Code Un G100 This section describes how to check errors with Latest error code Un G100 Online Monitor Device Buffer Memory Batch If multiple errors have occurred the latest error code is stored in Latest error code Un G100 ...

Page 235: ...module error collection function of GX Works2 Even after the power of the module is turned off or the CPU module is reset the error codes are held Checking error codes with the module error collection function Check the error history of the flexible high speed I O control module that the CPU module have collected in the Error History window Diagnostics System Monitor Error History Detail button Er...

Page 236: ...ply module sufficient Calculate the total current consumption of the connected modules including the CPU module input output modules and intelligent function module to check if the power capacity is sufficient Has the module been properly connected Check if the module has been properly connected Other than the above Reset the CPU module and check if the RUN LED turns on If the RUN LED still does n...

Page 237: ...re from the power cables in the control panel Is the module affected by noise through the grounding area Separate the grounding cable of the flexible high speed I O control module from the grounding area Are the power cables and I O cables bundled together Do not bundle the power cables and I O cables together Is the external wiring connected to unused terminals Do not connect the external wiring ...

Page 238: ...t range and perform the preset function again Is the filter time setting of external input blocks correct Check the filter time setting and make necessary corrections When the same pulse is input to the multi function counter blocks that have the same links is the same value counted If the count values are different the possible cause is a failure of the module Please consult your local Mitsubishi...

Page 239: ...y dummy resistors of 680Ω 2W across pulse input terminals in this case Interrupt requests are not properly sent to the CPU module Target Calculation method Resistance constant of a dummy resistor at 24VDC input Calculate a resistance constant R as follows R V I 24V 35mA 680Ω Rated power of a dummy resistor at 24VDC input Calculate the power P1 as follows P1 V I 24V 35mA 0 84W Approx 1W Calculate t...

Page 240: ...nction counter block Perform the preset function to the corresponding multi function counter block 101 H Multi function counter block underflow error A count value has fallen below the lower limit value when 32 bit multi function counter block is set to linear counter mode The count operation stops for the corresponding multi function counter block Perform the preset function to the corresponding ...

Page 241: ...ormation The LED on off status is displayed H W SW Information The setting status of the switch setting is displayed When Invalid is set for Hardware logic control valid invalid during disconnecting 0000 is displayed in HWL CTRL When Valid is set for Hardware logic control valid invalid during disconnecting 0001 is displayed in HWL CTRL No LED name On off status 1 RUN LED 0000H The LED is off 0001...

Page 242: ... setting of the execution memory is reset with the value stored in the flash ROM in the flexible high speed I O control module this signal is used as an interlock to turn on or off Operating condition settings batch reset command Y3 When Operating condition settings batch reset command Y3 is turned on this signal turns on When the reset of the hardware logic setting is completed with an error this...

Page 243: ...ogic control stop request Y5 are turned on at the same time Hardware logic control stop request Y5 takes priority and Hardware logic control flag X4 does not turn on When the hardware logic control stop request is issued with the configuration tool From when the Write to Module execution memory or Write to Module execution flash ROM is executed with the configuration tool until the hardware logic ...

Page 244: ...lag clear request at disconnection Y7 is turned on this signal turns off When Hardware logic control start request Y4 is turned on while this signal is on the request is ignored Turn off this signal by turning on Hardware logic control stop flag clear request at disconnection Y7 Then turn on Hardware logic control start request Y4 Performed in the flexible high speed I O control module Performed i...

Page 245: ... code are cleared Error flag XF Latest error code Un G100 When Clear setting of error history Un G8002 has been set to Clear the history 1 Error history No Un G8010 to Un G8169 is also cleared IN 0 to IN B X10 to X1B Set input values to external input blocks IN 0 to IN B Performed in the flexible high speed I O control module Performed in the program OFF OFF OFF OFF ON 0 0 ON Error Error flag XF L...

Page 246: ...set and the operation of the hardware logic continues When no data has been written to the flash ROM and this signal is turned on the reset error without any data writes to a flash ROM error code 1040H occurs Hardware logic control start request Y4 This signal is used to start the operation of the hardware logic Because the operation of the hardware logic is stopped when the power supply is turned...

Page 247: ...ardware logic control When any of the following conditions is satisfied the hardware logic control is stopped When this signal is turned off When Hardware logic control stop request Y5 is turned off while this signal is on Hardware logic control stop flag clear request at disconnection Y7 This signal is enabled when Valid is set for Hardware logic control valid invalid during disconnecting in Swit...

Page 248: ...off this signal refer to the following Page 243 Error flag XF General command 0 to General command F Y10 to Y1F Signals in the hardware logic can be controlled from a program Turning on or off General command 0 to General command F Y10 to Y1F outputs the internal signals of the hardware logic in High or Low state from Y device terminals For details on the Y device terminals refer to the following ...

Page 249: ...mes the written hardware logic data cannot be assured To decrease the number of writes to the flash ROM write hardware logics to the execution memory for adjustment After the adjustment is completed write the hardware logic to the flash ROM SSI receive data monitor 0 Un G110 Un G111 Out of the data frames received from SSI encoder 0 the information for the number of bits specified with Data Frame ...

Page 250: ... are read in a low speed period 1ms Block Type Variable name R W 1 Setting value Stored value Description Counter timer block Input terminal RUN STOP R W 0 Both the RUN and STOP terminals turn to Low 1 The RUN terminal turns to High and the STOP terminal turns to Low 2 The RUN terminal turns to Low and the STOP terminal turns to High 3 Both the RUN and STOP terminals turn to High PRESET R W 0 The ...

Page 251: ...t 10 35 40 on Friday April 24th 2015 RUN LED status monitor Un G8170 This area stores the current status of the RUN LED For details on the RUN LED refer to the following Page 21 PART NAMES Clear setting of error history Setting value Do not clear the history 0 Clear the history 1 Item Description Storage example 1 First two digits of the year last two digits of the year Stored as a BCD code 2015H ...

Page 252: ... Areas ERR LED status monitor Un G8171 This area stores the current status of the ERR LED For details on the ERR LED refer to the following Page 21 PART NAMES ERR LED status Stored value Description Off 0 The ERR LED turns off On 1 The ERR LED turns on ...

Page 253: ...APPENDICES Appendix 3 How to Get the Configuration Tool 251 A Appendix 3 How to Get the Configuration Tool For the configuration tool please consult your local Mitsubishi representative ...

Page 254: ...Front surface of the module System monitor of the programming tool Checking on the rating plate The rating plate is on the side surface of the module Checking on the front surface of the module The following figure shows the serial number printed on the rating plate on the front surface bottom part of the module 170510000000000 A Serial number Function version Relevant regulation standards 1705100...

Page 255: ... number product number without visually checking the module There are some cases in which the serial number printed on the rating plate and the front surface of the module and the one displayed in the Product Information List window of the programming tool are different The serial number printed on the rating plate and the front surface of the module indicates the management information of the pro...

Page 256: ... block Changes of a comparison block Coincidence or Range can be selected for Condition Compare values can be changed Page 158 Comparison block An event input terminal can be linked with a Latch terminal of a counter timer block Page 135 Event input terminal Switching the language Page 66 Switching the Language Copying a block Page 83 Copying a block Pasting a block Page 84 Pasting a block Library...

Page 257: ...endix 6 External Dimensions 255 A Appendix 6 External Dimensions The following figures show the external dimensions of the flexible high speed I O control module LD40PD01 45 95 4 4 90 45 45 4 Unit mm DIN rail center ...

Page 258: ... start request Y4 244 Hardware logic control stop flag at disconnection X7 242 Hardware logic control stop flag clear request at disconnection Y7 245 Hardware logic control stop request Y5 244 Hardware logic control stop signal at disconnection Y6 245 Hardware logic outline window 77 I IN 0 to IN B X10 to X1B 243 Indicator LED 21 Input signal event detection block 136 Input terminal 134 Intelligen...

Page 259: ...lation function 95 SSI encoder block 114 SSI receive data monitor 0 Un G110 Un G111 247 SSI receive data monitor 1 Un G114 Un G115 247 Switch setting 205 V Verifying with the module 91 W Work window 69 Writing data to the module 89 Y Y device terminal 109 ...

Page 260: ... COMPLIANCE WITH EMC AND LOW VOLTAGE DIRECTIVES RELEVANT MANUALS MANUAL PAGE ORGANIZATION TERMS Chapter 2 Section 3 1 to 3 4 5 1 5 2 6 1 6 2 6 5 8 2 8 9 8 10 9 1 to 9 3 Chapter 11 Section 13 1 to 13 3 14 4 14 5 14 7 Appendix 1 2 5 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...

Page 261: ...been avoided if functions or structures judged as necessary in the legal safety measures the user s device is subject to or as necessary by industry standards had been provided 4 Failure that could have been avoided if consumable parts battery backlight fuse etc designated in the instruction manual had been correctly serviced or replaced 5 Failure caused by external irresistible forces such as fir...

Page 262: ...mes system names and product names mentioned in this manual are either registered trademarks or trademarks of their respective companies In some cases trademark symbols such as or are not specified in this manual SH NA 081532ENG B ...

Page 263: ......

Page 264: ...without notice When exported from Japan this manual does not require application to the Ministry of Economy Trade and Industry for service transaction permission HEAD OFFICE TOKYO BUILDING 2 7 3 MARUNOUCHI CHIYODA KU TOKYO 100 8310 JAPAN NAGOYA WORKS 1 14 YADA MINAMI 5 CHOME HIGASHI KU NAGOYA JAPAN ...

Reviews: