background image

Ethernet Communications

Setting up a HMI of the E1000 series

Training Manual GX IEC Developer

18 - 15

Select the PLC

Select the operator terminal.

Click

OK

to confirm the selection.

Содержание FX2N-32CAN

Страница 1: ...MITSUBISHI ELECTRIC FACTORY AUTOMATION Programmable Logic Controllers GX IEC Developer ...

Страница 2: ......

Страница 3: ...programmable logic controllers mentioned in this manual please contact your dealer or one of our distributors see back cover Up to date information and answers to frequently asked questions can be found on the Mitsubishi website at www mitsubishi automation com MITSUBISHI ELECTRIC EUROPE B V reserves the right to make changes to this manual or the technical specifications of its products at any ti...

Страница 4: ......

Страница 5: ...and FX3UC series and of new modules for the FX3U series FX3U 2HC FX3U 4LC and FX3U 3A ADP Chapter 8 has been deleted The numbering of the following chapters has been shifted accordingly Corrections in the sections 3 2 1 3 2 2 3 4 1 4 4 1 and 6 2 Changes in the chapters 5 Program example and 18 Ethernet communica tions former chapter 19 and in the sections 12 3 2 and 12 3 3 Libraries A new section ...

Страница 6: ......

Страница 7: ...roperty Only accessories and peripherals specifically approved by MITSUBISHI ELECTRIC may be used Any other use or application of the products is deemed to be improper Relevant safety regulations All safety and accident prevention regulations relevant to your specific application must be observed in the system design installation setup maintenance servicing and testing of these products The regula...

Страница 8: ...fied as follows P DANGER Personnel health and injury warnings Failure to observe the precautions described here can result in serious health and injury hazards E CAUTION Equipment and property damage warnings Failure to observe the precautions described here can result in serious damage to the equipment or other property II MITSUBISHI ELECTRIC ...

Страница 9: ...and insulation damage If cable damage is found immediately disconnect the equipment and the cables from the power supply and replace the defective cabling 쎲 Before using the equipment for the first time check that the power supply rating matches that of the local mains power 쎲 Residual current protective devices pursuant to DIN VDE Standard 0641 Parts 1 3 are not adequate on their own as protectio...

Страница 10: ...IV MITSUBISHI ELECTRIC ...

Страница 11: ... units 2 9 2 6 3 Layout of the MELSEC FX1N base units 2 10 2 6 4 Layout of the MELSEC FX2N base units 2 10 2 6 5 Layout of the MELSEC FX2NC base units 2 11 2 6 6 Layout of the MELSEC FX3G base units 2 11 2 6 7 Layout of the MELSEC FX3U base units 2 12 2 6 8 Layout of the MELSEC FX3UC base units 2 12 2 7 Wiring 2 13 2 7 1 Power Supply 2 13 2 7 2 Wiring of Inputs 2 14 2 7 3 Wiring of Outputs 2 15 2 ...

Страница 12: ... function module address 2 42 3 Programming 3 1 Concepts of the IEC61131 3 Standard 3 1 3 2 Software Structure and Definition of Terms 3 2 3 2 1 Definition of Terms in IEC61131 3 3 2 3 2 2 System Variables 3 9 3 2 3 System Labels 3 10 3 3 Programming Languages 3 11 3 3 1 Text Editors 3 11 3 3 2 Graphic Editors 3 12 3 4 Data Types 3 15 3 4 1 Simple Types 3 15 3 4 2 Complex Data Types 3 15 3 4 3 MEL...

Страница 13: ... System 5 1 5 1 1 Method 5 2 5 1 2 Checking the Example Program Alarm_System 5 4 6 Functions and Function Blocks 6 1 Functions 6 1 6 1 1 Example Creating a Function 6 1 6 1 2 Processing Real Floating Point Numbers 6 10 6 2 Creating a Function Block 6 14 6 3 Execution Options of Function Blocks 6 21 6 3 1 Macrocode execution 6 21 6 3 2 Enable EnableOutput EN ENO 6 22 7 Advanced Monitoring Functions...

Страница 14: ...11 3 12 Working with Libraries 12 1 User Defined Libraries 12 1 12 1 1 Example Creating a new Library 12 1 12 1 2 Opening the Library 12 3 12 1 3 Moving a POU Function Block to an open Library 12 4 12 2 Special Note about Libraries 12 7 12 3 Importing Libraries into Projects 12 8 12 3 1 Import of an User Library 12 8 12 3 2 Importing a Mitsubishi Library Function Block 12 11 12 3 3 Library Functio...

Страница 15: ...l tips 15 1 15 2 Mixing IEC IL and Melsec IL in POUs 15 2 16 IEC Structured Text 16 1 Structured Text Operators 16 1 16 2 Structured Text Program Example 16 2 17 PROFIBUS DP Communication 17 1 Configuring the PROFIBUS DP Network 17 1 18 Ethernet Communications 18 1 Configuring the PC on the Ethernet 18 2 18 2 Configuring the FX3U ENET by FX Configurator EN 18 3 18 3 Configuring GX IEC Developer to...

Страница 16: ...can Information and Real Time Clock D8010 to D8019 A 7 A 2 3 PLC Operation Mode D8030 to D8039 A 7 A 2 4 Error Codes D8060 to D8069 A 8 A 2 5 Extension Boards Dedicated to FX1S and FX1N A 8 A 2 6 Analog Special Adapter and Adapter Boards for FX3G A 9 A 3 Error Code List A 10 A 3 1 Error codes 6101 to 6409 A 10 A 3 2 Error codes 6501 to 6510 A 11 A 3 3 Error codes 6610 to 6632 A 12 A 3 4 Error code...

Страница 17: ...r ating environment 1 1 Modular PLC Training Hardware There are various models of training rigs for Mitsubishis FX family Most exercises within this training manual are based around use of the facilities offered in these training systems The examples used in these course notes assume the following configuration 쎲 6 Digital input simulator switches X0 X5 쎲 Variable clock input 1 to 100 Hz and 0 1 t...

Страница 18: ...Modular PLC Training Hardware Course Overview and Requirements 1 2 MITSUBISHI ELECTRIC ...

Страница 19: ...equirements of the PLC have expanded to providing control data processing and management functionality 2 1 2 The initial specification for the PLC 쎲 Easily programmed and reprogrammed in plant to enable its sequence of operations to be altered 쎲 Easily maintained and repaired preferably using plug in cards or modules 쎲 Able to withstand the rigorous Environmental Mechanical and Electrical conditio...

Страница 20: ...ered in detail later in this document This enables IEC compliant coding to be adopted 2 1 5 Human Machine Interfaces The early programmable logic controllers interfaced with the operator in much the same way as the relay control panel via push buttons and switches for control and lamps for indication The introduction of the Personal Computer PC in the 1980 s allowed for the development of a comput...

Страница 21: ...onents are generated as part of the control process and are fed to the inputs as logical states The input stage passes them on to the processing stage in a pre pro cessed format The processing stage In the processing stage the pre processed signals from the input stage are processed and com bined with the help of logical operations and other functions The program memory of the pro cessing stage is...

Страница 22: ...one program repetition is referred to as the program cycle time or period Process image processing The program in the PLC is not executed directly on the inputs and outputs but on a process image of the inputs and outputs Input process image At the beginning of each program cycle the system polls the signal states of the inputs and stores them in a buffer creating a process image of the inputs How...

Страница 23: ... to the outputs the program cycle is repeated Differences between signal processing in the PLC and in hard wired controllers In hard wired controllers the program is defined by the functional elements and their connec tions the wiring All control operations are performed simultaneously parallel execution Every change in an input signal state causes an instantaneous change in the corresponding out ...

Страница 24: ... can also build multi drop and peer to peer networks with the controllers of the MELSEC FX family The FX1N FX2N FX3G FX3UC and FX3U have modular expansion capabilities making them the right choice for complex applications and tasks requiring special functions like analog digital and digital analog conversion and network capabilities All the controllers in the series are part of the larger MELSEC F...

Страница 25: ...or relay 24 FX1N 24 M쏔 쏔쏔 14 10 40 FX1N 40 M쏔 쏔쏔 24 16 60 FX1N 60 M쏔 쏔쏔 36 24 FX2N 16 FX2N 16 M쏔 쏔쏔 8 8 24 V DC or 100 240 V AC Transistor or relay 32 FX2N 32 M쏔 쏔쏔 16 16 48 FX2N 48 M쏔 쏔쏔 24 24 64 FX2N 64 M쏔 쏔쏔 32 32 80 FX2N 80 M쏔 쏔쏔 40 40 128 FX2N 128 M쏔 쏔쏔 64 64 FX2NC 16 FX2NC 16 M쏔 쏔쏔 8 8 24 V DC Transistor or relay 32 FX2NC 32 M쏔 쏔쏔 16 16 64 FX2NC 64 M쏔 쏔쏔 32 32 96 FX2NC 96 M쏔 쏔쏔 48 48 FX3G 14...

Страница 26: ...sensors do you need to input What types of functions do you need to switch and how many of them are there How high are the loads that the outputs need to switch Choose relay outputs for switching high loads and transistor outputs for switching fast trigger free switching operations 쎲 Special Function Modules Number of modules in system External power supply requirements Selecting the Right Control...

Страница 27: ...lue e g 24 V DC then the input will not be processed The maximum output currents are 2 A on 250 V three phase AC and non reactive loads with relay outputs and 0 5 A on 24 V DC and non reactive loads 2 6 2 Layout of the MELSEC FX1S base units The Hardware Controller Design Training Manual GX IEC Developer 2 9 0 1 2 3 4 5 6 7 0 1 2 3 4 5 IN OUT POWER FX 14MR 1S RUN ERROR X7 X5 X3 X1 S S X6 X4 X2 X0 ...

Страница 28: ...ower supply Mounting hole Terminal cover Protective cover Protective cover Terminals for digital outputs Connection for the service power supply Connection for programming units Mounting hole Terminal cover RUN STOP switch Slotformemorycassettes adapters and displays 2 analog potentiometers 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 0 1 2 3 4 5 6 7 10 11 IN OUT POWER FX 24MR 1N RUN ERROR 100 240 VAC X7...

Страница 29: ...s Protective cover POWER RUN BATT ERROR X0 1 2 3 X4 5 6 7 Y0 1 2 3 Y4 5 6 7 RUN STOP MITSUBISHI FX 16MR T DS 2NC MELSEC COM X7 X6 X5 X4 COM X3 X2 X1 X0 Y4 COM1 Y3 Y2 Y1 Y0 Connectors für memory cassette display module and expansion board Option battery holder Flip cover for programming port potentiometer and Run Stop switch Cover for the left expansion connector 2 analog potentiometers RUN STOP sw...

Страница 30: ...EDs for indicating the input status Top cover used if FX3U 7DM is not installed Memory battery Protective cover Output terminals Terminal cover Protective cover Terminals for digital inputs Terminal cover Battery Installation place for memory cassette Memory cassette optional Battery cover RUN STOP switch LEDs for indicating the operating status Special adapter connector Expansion bus lateral LEDs...

Страница 31: ...ould be at least 2 mm2 The Hardware Wiring Training Manual GX IEC Developer 2 13 Specification Units for DC Power Supply Units for AC Power Supply Rated voltage 12 to 24 V DC 24 V DC 100 to 240 V AC Voltage range 10 2 to 26 4 V DC 20 4 to 26 4 V DC 85 to 264 V AC Allowable momentary power failure time 5 ms 20 ms 24 V DC FX base unit Connection of units with DC power supply L N 100 to 240 V AC 50 6...

Страница 32: ...n the case of the sink input type the S S terminal is connected to the 24V terminal of the service power supply or when a DC pow ered base unit is used to the positive pole of the power supply Sink input means that a contact wired to the input X or a sensor with NPN open collector transistor output connects the input of the PLC with the negative pole of a power supply FX base unit 24V N L X S S 0V...

Страница 33: ... can switch several voltages with different potentials base units with relay outputs can even switch AC and DC voltages The selection of sink and source output type is done by the selection of a correspondent base unit Both types are available with DC or AC power supply The output type is given in the model designation code base units with the code MT 첸S provide transistor sink type outputs e g FX...

Страница 34: ...Examples of output wiring Relay output Transistor output sink Transistor output source Wiring The Hardware 2 16 MITSUBISHI ELECTRIC Y COM Fuse Load PLC COM Y Fuse Load PLC Y V Fuse Load PLC ...

Страница 35: ... do not require any additional instal lation space The state of the additional input and outputs is reflected in special relays in the PLC see section A 1 5 In the program these relays are used instead of X and Y devices FX1N 2EYT BD with two digital outputs Connector side Designation Number of I O Output type Power supply FX1S FX1N FX2N FX2NC FX3G FX3U FX3UC Total No of inputs No of outputs FX1N ...

Страница 36: ...elay FX2N 48ET ESS UL 48 24 24 Transistor FX2N 48ER DS 48 24 24 Relay 24 V DC FX2N 48ET DSS 48 24 24 Transistor IN 2 Modular extension blocks have no build in power supply but very compact dimensions The FX2N series modular extension blocks are available with 8 or 16 input output points It is possible to choose between relay and transistor source output type The FX2NC series extension blocks are a...

Страница 37: ...em The output value for the analog output adapter is written by the program also to a special register and then converted by the adapter and sent to the output You can install one analog special adapter to a FX3G base unit with 14 or 24 inputs and outputs Up to two analog spe cial adapter can be mounted to a FX3G base unit with 40 or 60 inputs and outputs To a FX3U or FX3UC base unit up to four an...

Страница 38: ... 10 µA 11 Bit Special Function Modules FX2N 2AD 2 Voltage 0 V to 5 V DC 0 V to 10 V DC 2 5 mV 12 Bit 쑗 쎲 쎲 쎲 쎲 Current 4 mA to 20 mA DC 4 µA 12 Bit FX2N 4AD 4 Voltage 10 V to 10 V DC 5 mV with sign 12 bits 쑗 쎲 쎲 쎲 쎲 Current 4 mA to 20 mA DC 20 mA to 20 mA DC 10 µA with sign 11 bits FX2N 8AD햲 8 Voltage 10 V to 10 V DC 0 63 mV with sign 15 bits 쑗 쎲 쎲 쎲 쎲 Current 4 mA to 20 mA DC 20 mA to 20 mA DC 2 ...

Страница 39: ...C 40 mV 8 Bit Current 4 mA to 20 mA DC 64 µA 8 Bit FX2N 5A 4 inputs Voltage 100 mV to 100 mV DC 10 V to 10 V DC 50 µV with sign 12 bits 0 312 mV with sign 16 bits 쑗 쎲 쎲 쎲 쎲 Current 4 mA to 20 mA DC 20 mA to 20 mA DC 10 µA 1 25 µA with sign 15 bits 1 output Voltage 10 V to 10 V DC 5 mV with sign 12 bits Current 0 mA to 20 mA DC 20 µA 10 Bit Special Adapter FX3U 3A ADP 2 inputs Voltage 0 V to 10 V D...

Страница 40: ...n FX1S FX1N FX2N FX2NC FX3G FX3U FX3UC Special Function Modules FX2N 8AD햲 8 Thermocouple type K 100 쎷C to 1200 쎷C 0 1 쎷C 쑗 쎲 쎲 쎲 쎲 Thermocouple type J 100 쎷C to 600 쎷C 0 1 쎷C Thermocouple type T 100 쎷C to 350 쎷C 0 1 쎷C FX2N 4AD PT 4 Pt100 resistance thermometer 100 쎷C to 600 쎷C 0 2 쎷C to 0 3 쎷C 쑗 쎲 쎲 쎲 쎲 FX2N 4AD TC 4 Thermocouple type K 100 쎷C to 1200 쎷C 0 4 쎷C 쑗 쎲 쎲 쎲 쎲 Thermocouple type J 100 쎷...

Страница 41: ...ependently of one another by means of internal compar ison functions Hence simple positioning tasks can also be realized economically In addition the high speed coun ter modules can be used as ring counters X1 4 X6 7 X2 5 X0 3 POWER FX3U 2HSX ADP SG SG X6 7 X2 5 X1 4 X0 3 SGB Y5 7 Y1 3 Y4 6 Y0 2 Y4 6 Y5 7 Y1 3 Y0 2 POWER FX3U 2HSY ADP FP RP PLS DIR SGA The FX3U 4HSX ADP far left provides four high...

Страница 42: ...CTRIC 2N 10PG FX START POWER DOG ERROR X0 PGO X1 FP øA RP øB CLR They are very suitable for achieving accurate positioning in combination with the MELSEC FX series The configu ration and allocation of the position data are carried out directly via the PLC program The FX2N 1PG E provides an 100 kHz open collector out put while the FX2N 10PG is equipped with a 1 MHz differential line driver output A...

Страница 43: ...1N PLC the communications adapter FX1N CNV BD is required When connecting this adapter to a FX2N PLC the communications adapter FX2N CNV BD is required FX3U ENET Overview of Network Modules for ETHERNET The Hardware Extending for Special Functions Training Manual GX IEC Developer 2 25 POWER LINK ACT FX ENET ADP 2NC SD RD PCs with GX IEC Developer or MX Component and the vir tual COM port driver in...

Страница 44: ...xchange data with the PROFIBUS DP master To help reduce costs PROFIBUS DP uses RS485 technology with shielded 2 wire cabling FX0N 32NT DP FX3U 32DP Extending for Special Functions The Hardware 2 26 MITSUBISHI ELECTRIC 0N FX 32NT DP POWER BF DIA DC RUN The FX0N 32NT DP PROFIBUS DP slave module enables the attached FX base unit to be a slave station on a PROFIBUS DP network Transfer of up to 40 byte...

Страница 45: ...WER RUN STOP RUN BF DIA ON OFF 64 32 16 8 4 2 1 It is not necessary to install an FX base unit to a remote I O station The FX2N 32DP IF connects the connected I O modules or special function modules to the master station of a PROFIBUS DP network Used in combination with a FX3U or FX3UC base unit and a FX3U 64DP M master station the creation of a high per formance remote I O system consisting entir...

Страница 46: ... base unit or expansion unit of this series 쑗 The special function module cannot be used with this series Extending for Special Functions The Hardware 2 28 MITSUBISHI ELECTRIC FX 16CCL M 2n CC LINK RUN ERR MST TEST 1 TEST 2 L RUN L ERR SW M S PRM TIME LINE SD RD The setting of all modules within the network is handled directly via the master module Up to 15 remote stations 7 remote I O sta tions a...

Страница 47: ... IEC Developer 2 29 2N FX 64DNET POWER TO MS NS The DeviceNet slave module FX2N 64DNET can be used to connect FX2N FX2NC and FX3U programmable control lers to a DeviceNet network The FX2N 64DNET can communicate to the master by the master slave communication using the master slave I O connection and to other nodes supporting the UCMM connection by client server communication The communication betw...

Страница 48: ...function module cannot be used with this series Extending for Special Functions The Hardware 2 30 MITSUBISHI ELECTRIC FX 32ASI M 2N CONFIG ERR FROM TO PRG ENABLE ASI ACTIVE PRJ MODE ADRESS ERROR POWER U ASI The FX2N 32ASI M serves as master module for the con nection of the FX1N FX2N and FX3U FX3UC PLC to the AS Interface system Up to 31 slave units with up to 4 inputs and 4 outputs can be control...

Страница 49: ...r serial data communications with the MELSEC FX2N FX2NC FX3U and FX3UC Communication with PCs printers modems barcode readers etc is handled by the PLC program The send and receive data are stored in the FX2N 232IF s own buffer memory Module type Designation Description FX1S FX1N FX2N FX2NC FX3G FX3U FX3UC Adapter boards FX1N 232 BD RS232C inter faces 쎲 쎲 쑗 쑗 쑗 쑗 FX2N 232 BD 쑗 쑗 쎲 쑗 쑗 쑗 FX3G 232 B...

Страница 50: ...ial Functions The Hardware 2 32 MITSUBISHI ELECTRIC FX CNV BD 2N JY331B89201B FX2N CNV BD Connector side FX CNV IF 2N MITSUBISHI The FX2N CNV IF interface allows special function mod ules of the old FX series to be connected to the base units of the FX family Module type Designation Description FX1S FX1N FX2N FX2NC FX3G FX3U FX3UC Adapter boards FX1N CNV BD Communication adapters for con nection o...

Страница 51: ... position of an rotary switch is read using the VRSC instruction The analog setpoint adapters are installed in the expansion slot of the base unit No additional power supply is required for operation 쎲 The adapter board can be used with a base unit or expansion unit of this series 쑗 The adapter board cannot be used with this series The Hardware Extending for Special Functions Training Manual GX IE...

Страница 52: ...tional RS232 or RS485 interfaces Extension I O Modules With the exception of the FX1S series unpowered modular extension blocks and powered com pact extension units modules can be added to all base units of the FX family For modular exten sion blocks powered by the base unit the power consumption has to be calculated as the 5 V DC bus can only support a limited number of expansion I O Special Func...

Страница 53: ...nit Number of modules on the right side of base unit FX1S The modules FX0N 485ADP and FX0N 232ADP can be mounted in combination with a communi cation adapter FX1N CNV BD 1 product code FX첸첸 첸첸첸 BD FX1N Up to 2 special function mod ules of the FX2N series FX2N Up to 8 special function mod ules of the FX2N series FX2NC The modules FX0N 485ADP and FX0N 232ADP can be mounted on the left side directly ...

Страница 54: ...dapters can be used without a communication or interface adapter board installed in the base unit Combination of analog and communication special adapters Analog and communication special adapters must be used with a communication adapter board or an interface adapter board installed in the base unit System Configuration The Hardware 2 36 MITSUBISHI ELECTRIC Possible configuration Communication sp...

Страница 55: ...gal configuration This adapter does not work Communication adapter board FX3U CNV BD interface adapter board Communication special adapter Communication special adapter Communication special adapter Communication special adapter Base unit Base unit Communication special adapter Possible configuration High speed input special adapter High speed output special adapter Base unit Interchangeable Analo...

Страница 56: ...ts The following table shows the capacities of the built in power supplies When only input output extension blocks are added a quick reference matrix can be used When also special function modules are added calculate the current consumption to ensure that the total current to be consumed by the additional modules can be supplied by the built in power supply For details of the power consumption ple...

Страница 57: ...nnected to an AC powered base unit with 48 64 80 or 128 I Os the 24 V DC service power supply can still deliver a maximum current of 250 mA to other devices Confirm the current capacity of 24 V DC service power supply from the value shown in the quick reference matrix This remaining power supply capacity current can be used as a power supply to external loads sensors or the like by the user When s...

Страница 58: ...ble For FX3U 48MR DS FX3U 48MT DS FX3U 48MT DSS FX3U 64MR DS FX3U 64MT DS FX3U 64MT DSS FX3U 80MR DS FX3U 80MT DS or FX3U 80MT DSS 쎲 Example When adding 32 inputs to a DC powered base unit with 48 64 or 80 I Os a maximum of 40 outputs are expandable But when adding 32 inputs under the supply voltage 16 8 V to 19 2 V a maximum of 24 outputs are expandable System Configuration The Hardware 2 40 MITS...

Страница 59: ...ts 0 to 7 The following table shows a comparison between some decimal and some octal numbers Octal numbers are assigned as input output numbers X Y as shown below X000 to X007 X010 to X017 X020 to X027 X070 to X077 X100 to X107 Y000 to Y007 Y010 to Y017 Y020 to Y027 Y070 to Y077 Y100 to Y107 Numbers for added input output unit block To an added input output powered extension unit block input numbe...

Страница 60: ...ts Input output powered extension units e g FX2N 32ER ES UL or FX2N 48ET ESS UL Input output extension blocks e g FX2N 16EX ES UL or FX2N 16EYR ES UL Communication adapter e g FX3U CNV BD Interface adapter e g FX3U 232 BD Special adapter e g FX3U 232ADP Extension power supply unit FX3U 1PSU 5V I O Assignment The Hardware 2 42 MITSUBISHI ELECTRIC X000 to X017 Y000 to Y017 Base unit FX3U 32MR ES Inp...

Страница 61: ...maceutical and Petrochemical industries where some processes can be considered safety criti cal It is considered in some quarters that the IEC method of programming requires excessive work to create the final code However it is generally accepted that the advantages a structured approach has to offer over un structured and open programming techniques makes IEC61131 3 a worthwhile advantage PLCopen...

Страница 62: ...ms in IEC61131 3 Projects A Project contains the programs documentation and parameters needed for an application POU Program Organisation unit The structured programming approach replaces the former unwieldy collection of individual instructions with a clear arrangement of the program into program modules These modules are referred to as Program Organisation Units POU s which form the basis of the...

Страница 63: ...his process is han dled by the task management in the Task Pool Program POU s are put together in groups referred to as Tasks Tasks Most PLC programs consist of areas of code which perform specific tasks They may form part of one large program or be written in sub routines with program control instructions to select the current routine i e CALL CJ etc Programming Software Structure and Definition ...

Страница 64: ...held in a POU Pool Each POU could be written in any of the IEC editors Therefore in any given project the best language for the required function can be chosen The compiler will assemble the pro ject into code the PLC can understand but the user interface remains as written In this way perhaps complicated interlocking routines could be written in a ladder POU whilst complex calculations or algorit...

Страница 65: ...Above an example of the GX Developer display is shown illustrating an example POU Pool Composition of a POU Programming Software Structure and Definition of Terms Training Manual GX IEC Developer 3 5 ...

Страница 66: ...bishi addresses X0 M0 etc assigned to the program elements The use of symbolic declarations complies with IEC 61131 3 If symbolic declarations are used then the tag names must be cross referenced to real PLC addresses Local Variable List For a particular POU to access a Global Variable it must be declared in its Local Variable List LVL in the POU Header The LVL can be made up of both Global Variab...

Страница 67: ...denotes this These tag names would be declared as Global Variables and assigned to PLC bit devices they could be addresses i e X0 Consider our original control program Conditional Jump CJ instructions could be used to iso late either routines 1 or 2 when not in use The Heating control routine is always required to run If these routines are considered as tasks then routines 1 2 are driven by event ...

Страница 68: ...roject NOTE Any POU s not assigned to Tasks ARE NOT SENT TO THE PLC during program transfer Don t forget this applies to the default download Tasks can be prioritised either on a time or interrupt basis The Task Pool contains all the assigned tasks in the project The Task Pool allows the user to efficiently manage the PLC scan ensuring that only the rou tines that require scanning are executed It ...

Страница 69: ...nges that GX IEC Developer allocated to system variables can be edited here This feature is displayed using the Options command under the Extras menu Systen variable ranges for the actual project 쎲 Word range D D devices are used as word system variables R R devices are used as word system variables W W devices are used as word system variables From to PLC type dependant as defined in the paramete...

Страница 70: ...GX IEC Developer for internal management of the project GX IEC Developer allocates system labels for the following 쎲 Network Labels 쎲 Event Driven Task not EVENT TRUE 쎲 User Defined Function blocks one per function block unless macro code 쎲 System Timers These are used by the Task Manager for interval triggered tasks and local Timers Software Structure and Definition of Terms Programming 3 10 MITS...

Страница 71: ...onal Labels Modifiers and comments to each instruction Two different types of Instruction List are used 쎲 IEC Instruction List IEC Instruction Lists are entered and edited in exactly the same way as MELSEC Instruc tion Lists The following programming differences need to be observed however MELSEC networks in IEC IL You can include MELSEC networks in IEC Instruction Lists thus providing access to t...

Страница 72: ...sists of input contacts makers and breakers output coils function blocks and functions These elements are connected with horizontal and vertical lines to create circuits The circuits always begins at the bus bar power bar on the left Functions and function blocks are displayed as blocks in the diagram In addition to the normal input and output parameters some blocks also have a Boolean input EN EN...

Страница 73: ...nnecting elements There are no power bars In addition to the normal input and output parameters some blocks also have a Boolean input EN ENable and output ENO ENable Out The status of the input always corresponds to the output status Example for Function Block Diagram Programming Programming Languages Training Manual GX IEC Developer 3 13 ...

Страница 74: ...ation unit in SFC is the program Sequential Function Chart has two basic elements Steps and Transitions A sequence consists of a series of steps each step separated from the next by a transition Only one step in the sequence can be active at any one time The next step is not activated before the previous step has been completed and the transition is satisfied Programming Languages Programming 3 14...

Страница 75: ...e in the second Arrays can provide a convenient way of indexing tag names i e one declaration in the Local or Global Variable Table can access many elements The following diagrams illustrate graphical representation of the three array types Single Dimensional Array Programming Data Types Training Manual GX IEC Developer 3 15 Data type Value range Size Applicable Devices PLCs BOOL Boolean Bit Devic...

Страница 76: ... Array Three Dimensional Array Data Types Programming 3 16 MITSUBISHI ELECTRIC Identifier Motor_Volt Type ARRAY 0 3 0 3 OF INT Motor_Volt 2 3 Identifier Motor_Current Type ARRAY 0 3 0 2 0 2 OF INT Motor_Current 1 2 1 ...

Страница 77: ...gn time and allowing re use of the DUT Example use of a DUT The following example shows the creation of a data type called Silo The variable collection of Silo contains two variables of the INT and one variable of the type BOOL How to declare the DUT Double click on Global_Vars in the Project Navigator window and enter the following lines in the global variables declaration table The variables are...

Страница 78: ...Boolean input to the elements of the DUTs Two separate instances Silo_01 and Silo_02 of this function blocks were then created for two silos The GVL has been extended to define addresses for all elements of data unit types Not defined addresses are handled by the system Data Types Programming 3 18 MITSUBISHI ELECTRIC ...

Страница 79: ...ew all definitions at once if more than one definition is available DUT entries in the GVL can be expanded by double clicking the row number field Programming Data Types Training Manual GX IEC Developer 3 19 ...

Страница 80: ...er Counter Value is programmed TNn CNn In the following example T0 becomes TC0 and TS0 In this case Mitsubishi addresses have been used it is therefore vital to check the System Variable default T C usage In the following example the counter has been programmed using identifiers which would have to be declared in the Global and Local Variable tables Data Types Programming 3 20 MITSUBISHI ELECTRIC ...

Страница 81: ...opics covered 쎲 Using the Project Navigator 쎲 Using the GVL with identifiers 쎲 Declaring variables in the Program Header 쎲 Creating programs with the IEC ladder editor 쎲 Programming IEC Timers Counters 쎲 Commenting and Documentation 쎲 Downloading and Monitoring Building a Project Training Manual GX IEC Developer 4 1 ...

Страница 82: ...IEC Developer menu structure is context sensitive changing depending on what you are currently doing in the program Commands displayed in light grey are currently unavail able 쐋 Tool Bar The Tool Bar icons give you direct access to the most used commands with a single mouse click The Tool Bar is context sensitive displaying a different collection of icons depending on what you are currently doing ...

Страница 83: ...ontains the code ele ments and syntax of the actual program function block or function 쐂 Status Bar This bar displayed at the bottom of the screen gives you useful information on the current status of your project Status Bar display can be enabled or disabled and you can also con figure the individual display options to suit your needs Building a Project Starting GX IEC Developer Training Manual G...

Страница 84: ...oot switch may be operated at random Once activated it may be possible for the operator to forget to release the switch which may cause the table to continue to rotate past its index position 쎲 Once In Position X1 operates it remains on thus the table is prevented from re indexing The design must therefore contain interlocks to prevent miss operation as described above An alternative approach to t...

Страница 85: ...n the table begins rotating the In position sensor turns OFF a little later The motor contin ues to drive the carousel conveyer until the rising edge of the In Position sensor is detected this turns the motor OFF Note that the foot switch continues to be held on The Motor can only start rotation when the foot switch is released and subsequently reactivated Hence the motor starts again on the risin...

Страница 86: ... 햳 Choose the appropriate PLC type from the selection 햴 Provide a name for the project in the project path field In this case use GXIEC DATA CAROUSEL and click on Create as in the following illustration Application Program Building a Project 4 6 MITSUBISHI ELECTRIC ...

Страница 87: ...t and click OK This effectively inhibits the Wizard from creating any project elements Of course the Wizard may be used if desired but in order to fully explore the primary functions of GX IEC Developer for training purposes we will use manual operations to create a program The project display screen is shown as illustrated below Building a Project Application Program Training Manual GX IEC Develo...

Страница 88: ...n POU Pool on the tool bar The new POU specifications are to be entered as follows The name of the POU will be MAIN and it should be specified as a Ladder Diagram of type PRG Program 햳 Click OK and note the addition to the POU Pool in the Project navigation window 햴 Double click on MAIN program icon or click the symbol on the POU Pool in order to expand the directory branch and display the Header ...

Страница 89: ...les are the link to the physical PLC devices As discussed previously if IEC conventions are to be applied then symbolic identifiers names must be used instead of discreet addresses in our program These addresses must therefore be declared in the Global Variable List GVL The identifier must be filled in using its PLC address either using Mitsubishi or IEC notation and its type for example whether i...

Страница 90: ...Spaces and mathematical op erator characters e g are not permitted 쎲 MIT Addr This is the absolute address referenced in the PLC 쎲 IEC Addr The IEC syntax of the address 쎲 Type Referrers to the data type i e BOOL INT REAL WORD etc 쎲 Initial The initial values are set automatically by the system and cannot be changed by the user 쎲 Comment Comments up to 64 characters may be added for each variable ...

Страница 91: ... These are the Global Variables specified for the project Find unused variables NOTE Finding unused variables can only be performed if the project has been built and was not changed since then Otherwise a warning message will be displayed Building a Project Application Program Training Manual GX IEC Developer 4 11 By using the function Extra Find Unused Variables you can find and delete all unused...

Страница 92: ...t If this is not required it can disabled via the Extras menu Extras Options Editing to be described later All or selected POU s can be selected and all or selected variables can be deleted When invoked all unused Global Variables in POU s are deleted This feature will be explored later when appropriate For all FX2N FX3G FX3U FX3UC System Q and AnA S type CPU s IEC Type REAL Float ing Point values...

Страница 93: ... From the Project Navigation window double click on the Header on the POU MAIN The following screen will be displayed Close this POU Header display Building a Project Application Program Training Manual GX IEC Developer 4 13 ...

Страница 94: ... Body 햲 To open the Ladder diagram editor double click on the Body selection under the POU pool in the project navigation window The following window is displayed Application Program Building a Project 4 14 MITSUBISHI ELECTRIC ...

Страница 95: ...e network Using the Toolbar Ladder Symbol Selection 햴 With the editor in Selection Mode select the Normally Open contact from the toolbar 햵 Move the mouse pointer over the work area and click to fix the drop position on the window Building a Project Application Program Training Manual GX IEC Developer 4 15 ...

Страница 96: ...up the variables selection window and the display will be as shown below Note that the current Header should be selected under the Scope dialogue area 햳 Click Foot_Switch to highlight that variable and click the Apply button Then close the Variable Selection box Application Program Building a Project 4 16 MITSUBISHI ELECTRIC ...

Страница 97: ...ssible by opening both the header and the ladder and selecting Tile Horizontally Continue editing Project Carousel Enter the normally open contact of the In_Position_Sensor in the position shown on the current screen in the same manner as shown below Building a Project Application Program Training Manual GX IEC Developer 4 17 ...

Страница 98: ...s facility is found under the Extras menu using the Options selection and selecting Editing as shown below The MELSEC Function Block command PLS_M will be added to the program as the output function 햲 Click on the Function Function block selection button on the tool bar On the Opera tor type click Functions and type PLS_M into the Operators prompt box thus Application Program Building a Project 4 ...

Страница 99: ...mpty box The following prompt is displayed if the variable does not exist in the Local Variable List LVL Local Header or the Global Variable List GVL 햵 Click on Define Local to define a new Local Variable LVL The Variable Selection win dow is displayed prompting a new variable to be defined 햶 Click Define to enter the new variable into the LVL Local Header Building a Project Application Program Tr...

Страница 100: ...pencil icon 햹 On the Ladder diagram click on the left point on the ladder diagram and Click Drag across the diagram and release on the EN input on the PLS_M function as shown below The circuit is now complete Application Program Building a Project 4 20 MITSUBISHI ELECTRIC 햷 Right click the mouse anywhere in the edit window area and de select the Auto connect function 햸 In the same manner click to ...

Страница 101: ...With Auto Connect on the only way to connect these contacts is to connect between each individual pair The pen can then strike through all contacts from the bus bar to the coil In the Ladder Editor the suggestion is to invoke the Auto Connect feature when dropping elements onto the POU body or connecting parallel elements It should however be disabled when connecting a row of con tacts as shown in...

Страница 102: ...k below the current one click the insert after button A blank net work space will appear 햳 Enter the second network in the same format as previously described with the following attributes Application Program Building a Project 4 22 MITSUBISHI ELECTRIC ...

Страница 103: ...ber of operations Product Batch Counter Create an additional POU to provide a batch counting function Task An additional POU will now be added to the project in order to count the number of times the motor is activated i e product batch counter When ten products have been counted the PLC will flash an output at a 1 Second time base until a button is operated to reset the batch counter Enter the fo...

Страница 104: ...pointer to the lower boundary of the network header and click hold dragging downward to increase the vertical size Application Program Building a Project 4 24 MITSUBISHI ELECTRIC 햳 Select the Body of the new POU by opening the newly created entry in the Project Navi gation Window ...

Страница 105: ...stance is given a name It is possible to declare multiple instances with different names from one and the same function block within the same POU The instances are then called in the body of the POU and the Actual parameters are passed to the Formal parameters Each instance can be used more than once Entering IEC Function Block CTU 햲 To create a new name for this instance of the CTU Function Block...

Страница 106: ...e buttons respectively Adding entries to the GVL Note in particular Reset_In Global is a new Input mapped from the MELSEC boolean address X02 or IEC IX2 This requires a new entry into the GVL as follows Application Program Building a Project 4 26 MITSUBISHI ELECTRIC 햳 Click on Apply then Update and the variable name will change as shown on the left ...

Страница 107: ...nction Create the following Ladder Networks below the batch counting routine in the Batch_Count POU as shown When the editing task has been completed the GVL should appear thus The header LVL for the above program Batch_Count should now appear as shown Building a Project Application Program Training Manual GX IEC Developer 4 27 ...

Страница 108: ...es are complete click the check button then the Rebuild All button to check and assemble the project For the POU Batch_Count header For the POU MAIN header Application Program Building a Project 4 28 MITSUBISHI ELECTRIC ...

Страница 109: ...ely Right Click the task pool icon in the Project navigation window and select the New Task option from the menu 햴 Enter the name of the new task Control1 in the prompt window 햵 Click OK and the Project Navigation window now shows the newly created task called Control1 Building a Project Application Program Training Manual GX IEC Developer 4 29 햲 Click once to highlight the TASK_Pool icon in the P...

Страница 110: ...k icon in the Project Navigation Window the task event list window will be displayed 햳 Click on the centre choice browse ellipsis as shown above The following prompt dialogue is displayed 햴 Choose MAIN and click OK to complete the assignment operation Application Program Building a Project 4 30 MITSUBISHI ELECTRIC ...

Страница 111: ...idea to SAVE the project click on the Save Button Creation of a new task for the POU Batch Count The POU Batch Count needs also to be referenced called by a task in the Task Pool 햲 To create a new task Right Click on the Task_Pool icon on the Project Navigation Window PNW and select New Task from the presented menu Alternatively follow the previous procedure clicking once on the Task_PooI Icon to ...

Страница 112: ...the PNW 햵 Assign the remaining POU to this task When complete click the check button then the Rebuild All button to check and assemble the project Save the project using the save button The project is now complete and must therefore be transferred to the PLC Application Program Building a Project 4 32 MITSUBISHI ELECTRIC ...

Страница 113: ...will be displayed on the left hand side of the screen Note that the title may require pre formatting Padding with spaces depending on the screen resolution set to read correctly as the text auto wraps to fit into the horizontal space available 22 characters max Network Comments Comments enable virtually freehand text descriptors to be added anywhere inside the ladder network area This is vital to ...

Страница 114: ...ss the Delete key on the keyboard Cutting Copying a comment Duplication of comments is achieved by clicking on the left hand end of the source comment to highlight it Use windows cut copy paste procedure and click the mouse once again to set posi tion of destination comment in another network 4 2 8 Checking and Building the Project Code 햲 When the Ladder Diagram is complete and task has been speci...

Страница 115: ...d button or the Rebuild All button on the toolbar and if all is well the following compiler messages are reported 햴 Click Close to exit this display Building a Project Application Program Training Manual GX IEC Developer 4 35 ...

Страница 116: ...Monitor mode by pressing the button on the tool bar The following matrix is placed into the edit area 햳 Use the following buttons on the toolbar to select the ladder symbols The corresponding number may be pressed to select the appropriate symbol from the keyboard thus eliminat ing the need to use the mouse 햴 Select the Normally Open Contact symbol 1 and the following will be displayed The program...

Страница 117: ... and from the computer to the RS 422 serial differential format required by the PLC 4 3 2 Communications Port Setup Before the project can be downloaded into the PLC CPU for the first time the communication and download settings must be configured 햲 From the Online menu select Transfer Setup and then Ports The Connection Setup window shown on the next page will be displayed Building a Project Proj...

Страница 118: ...k the mouse on the yellow PC side I F Serial button and the following dia logue window is displayed 햴 Select RS232C as shown above and click OK Project Download Procedures Building a Project 4 38 MITSUBISHI ELECTRIC ...

Страница 119: ...mmunications are ok 햶 The following message should be displayed 햷 Click OK to close this message If an error message is displayed check connections and settings with the PLC Building a Project Project Download Procedures Training Manual GX IEC Developer 4 39 ...

Страница 120: ...evice is already connected to the selected COM n interface for example a serial mouse Select another free serial port 햴 Select OK to close the System image display and return to the Connection setup dis play Than click the OK button to close the Connection Setup window If you leave the Connection Setup window using the Close button the settings are not saved Project Download Procedures Building a ...

Страница 121: ...Download Project icon on the toolbar Transfer Setup 햳 Click the Configure button to setup the Transfer parameters for the project 햴 Click on OK to confirm the selection Building a Project Project Download Procedures Training Manual GX IEC Developer 4 41 햳 Click on PLC Parameter and Program ...

Страница 122: ...햵 To send the project to the PLC click the OK button to execute the transfer Project Download Procedures Building a Project 4 42 MITSUBISHI ELECTRIC ...

Страница 123: ...itor Mode Icon on the toolbar and observe the ladder display NOTE Depending on the colour attributes set monitored variables will be displayed with a coloured surround Default Yellow Values of any analogue variable will be displayed on the moni tored networks as appropriate Building a Project Monitoring the Project Training Manual GX IEC Developer 4 43 ...

Страница 124: ... unneeded communication traffic occurring from other screens that have been opened but are not necessarily in the focus i e opened but behind To begin monitoring the content of additional windows click inside that window and select Start Monitoring from the Online Menu NOTE Due to the serial communications handshake be prepared to wait a few seconds for the monitor information to be registered bet...

Страница 125: ...EC Developer to the PLC may be increased by adjusting the poll rate setting Select Monitor Mode from the Extras Options menu and enter a new value for the Poll rate Building a Project Monitoring the Project Training Manual GX IEC Developer 4 45 ...

Страница 126: ...lity of the monitor mode select Extras Options Monitor Indication and a flashing message can be enabled to appear where chosen The blink rate of the Monitoring banner can be set by the User Monitoring the Project Building a Project 4 46 MITSUBISHI ELECTRIC ...

Страница 127: ...n the Extras Options Menu and select Cross Reference 햳 Check both options shown and re compile the project Building a Project Cross Reference List Training Manual GX IEC Developer 4 47 햴 Then select Make Cross Reference from the Project Menu and the list is generated ...

Страница 128: ...tc can be searched by using the query selection boxes Individual details of the highlighted entry are then shown on the right hand side of the window Cross Reference List Building a Project 4 48 MITSUBISHI ELECTRIC 햵 Open the Browser either from the Project menu or via the toolbar icon ...

Страница 129: ...f the highlighted right hand list element for example or The Cross Reference List may be printed out using the print facility within GX IEC Developer Building a Project Cross Reference List Training Manual GX IEC Developer 4 49 Object highlighted ...

Страница 130: ...rror data registers of the PLC are evaluated with clear text and respective help texts The most important hardware errors such as Fuse blown are displayed in a window and evalu ated User errors can be determined These user errors are stored with a self created text file USER_ERR TXT and allow a quick error correction The last eight user errors are stored into a FIFO register and only be removed wh...

Страница 131: ...hange Configuration dialogue box can then be seen Previous project profiles can be retrieved here or work with the default profile Either select the Project Tree for all elements or Selected Items for specific highlighted items open Properties Building a Project Project Documentation Training Manual GX IEC Developer 4 51 ...

Страница 132: ...ired In this example only the COUNTER_FB_CE will be printed as the Selected Items option was chosen User defined logos and information can be assigned in the Cover Page tab for the front sheet and for the frame from the Frame Logos tab Project Documentation Building a Project 4 52 MITSUBISHI ELECTRIC ...

Страница 133: ...the Left Footer dialogue can be renamed by clicking on the name buttons as required Specification for POU appearance and general project specifications are available from the POUs and General Project Tree tabs Building a Project Project Documentation Training Manual GX IEC Developer 4 53 ...

Страница 134: ...le from the SFC and Cross Reference tabs The configured profile can be saved by simply naming the Current Profile field and then click ing the Save button It can then be recalled at any time using the selection box Project Documentation Building a Project 4 54 MITSUBISHI ELECTRIC ...

Страница 135: ...so be used to deactivate the alarm system I O List The following table contains an overview of the used inputs outputs and timer The inputs are used to read the status of the alarm circuits The siren and a blinking alarm lamp are connected to outputs The timer are used for the required delays Program Example An Alarm System Training Manual GX IEC Developer 5 1 Function Adress Remarks Input Arm sys...

Страница 136: ...m 햳 Enter the following data into the Global Variables List 햴 Create a new POU of Class PRG Program Type and Language Ladder Diagram 햵 Enter the following code into the POU An Alarm System Program Example 5 2 MITSUBISHI ELECTRIC To be continued on the next page ...

Страница 137: ...The finalised header of the Main_PRG_LD POU should read as follows Program Example An Alarm System Training Manual GX IEC Developer 5 3 ...

Страница 138: ...d and save the project 햳 Download the project to the FX series PLC 햴 Activate the monitor mode to observe the function of the program 햵 Ensure the project is working correctly by monitoring the operation while operating the inputs according to the I O list shown at the start of this section An Alarm System Program Example 5 4 MITSUBISHI ELECTRIC ...

Страница 139: ... user specific 6 1 Functions Most control programs have some form of maths within them i e for analogue signal condition ing displaying engineering units etc These are frequently reused within the program structure By using user defined functions program design time can be dramatically reduced 6 1 1 Example Creating a Function Objective Build a Function to change Fahrenheit to Centigrade Formula i...

Страница 140: ...on the POU tree 햳 Double click on the FBD body icon to open the body network Functions Functions and Function Blocks 6 2 MITSUBISHI ELECTRIC This time click the FUN option instead of PRG Select Function Block Diagram as the editor The Result Type of FUN should be left as INT Integer type ...

Страница 141: ...e toolbar and select SUB from the operators list 햳 Using Apply or double clicking on the selection object place it on the screen 햴 Repeat the above process so that the following is visible Functions and Function Blocks Functions Training Manual GX IEC Developer 6 3 ...

Страница 142: ... place input and output variable tags onto the FBD as shown below Alternatively click on the toolbar button 햴 Fill out the properties of the variable thus Class VAR_INPUT Type INT as shown below Functions Functions and Function Blocks 6 4 MITSUBISHI ELECTRIC 햳 Declare the variable Fahrenheit by simply typing it into the variable area Because this variable name has not yet been defined in the heade...

Страница 143: ...lick Define and the variable will be written to the header of the Function CENTIGRADE You can check it by opening the header Declaring Constants 햲 Declare constant 32 by simply typing the number into the variable box 햳 Complete the circuit of the Function CENTIGRADE as follows 햴 In the Variable Selection window Double click on CENTIGRADE or click to select and press Apply Functions and Function Bl...

Страница 144: ...Variable Fahrenheit may be entered directly into the Header as above and selected F2 or right click on variable box at point of entry in the body Checking Network Integrity 햲 Check the Network you should have no errors and no warnings 햳 Close down all work windows and any dialogues that may be open Creating a New Program POU 햲 Create a new POU called Process of Class PRG with a language of Functio...

Страница 145: ... into the operators list 햳 Select CENTIGRADE and click Apply NOTE Depending on preference it is possible to minimise the Function Block selection window following Apply by ticking the selection box as above The following will be displayed Functions and Function Blocks Functions Training Manual GX IEC Developer 6 7 햳 Open up Double Click the body of Ladder POU Process in the project POU pool ...

Страница 146: ...es in the Global Variable List as shown The Body of the POU Process should read 햴 Bind the POU Process to the Task Main Compiling the Program Compile the project using the Rebuild All operation from the tool bar Functions Functions and Function Blocks 6 8 MITSUBISHI ELECTRIC 햳 Create a new task in the Task Pool named Main ...

Страница 147: ... monitor this network using the Monitor button on the toolbar 햳 Using the on screen variable forcing feature input numbers into the Deg_F variable as fol lows Double Click on the input variable and enter a value into the Modify variable value dia logue as shown For reference 100 deg F 37 deg C actual 37 7 deg C Functions and Function Blocks Functions Training Manual GX IEC Developer 6 9 ...

Страница 148: ... REAL floating point values Only valid on base units supporting this feature Duplicating a Function Make a duplicate copy of the function CENTIGRADE and rename it CENTIGRADE1 as fol lows 햲 Right Click on the CENTIGRADE Icon in the POU Pool of the project and select Copy 햳 Right Click on the POU pool icon of the project and select Paste The system will automatically paste a duplicate copy of CENTIG...

Страница 149: ...erties 햳 On displaying the Function Information window set the result type to REAL The type should now displayed as Real in the Project Navigation Window 햴 Modify the Header of CENTIGRADE1 so that the Fahrenheit variable is of type REAL Training Manual GX IEC Developer 6 11 Functions Functions and Function Blocks ...

Страница 150: ...ave all changes Placing the REAL number Function CENTIGRADE1 onto the working POU Process 햲 In the GVL editor create two new variables thus 햳 Open the Body of POU Process and place the Function CENTIGRADE1 into it as shown below NOTE REAL numbers use 2 consecutive Registers 32 Bits and are stored in a special portable IEE format hence the allocation in the above GVL example 6 12 MITSUBISHI ELECTRI...

Страница 151: ... Transfer the project to the PLC and monitor this network using the Monitor button on the toolbar Modify the value of the input variable Deg_F_Real and observe the output result on the dis play Note the 7 Digit floating point accuracy Training Manual GX IEC Developer 6 13 Functions Functions and Function Blocks ...

Страница 152: ...ock STAR_DELTA Procedure 햲 Start a new Empty project in GX IEC Developer called Motor Control with no POU s STAR_DELTA will now have appeared on the POU tree 햴 Click once to open the Header and Body branches 햵 Double click to open the Header Declaring Local Variables 햲 Declare variables as shown below 햳 Check save and then close the Header window 6 14 MITSUBISHI ELECTRIC Functions and Function Blo...

Страница 153: ... the body and build the ladder networks as shown below 햵 Check the Body there should be no errors and no warnings Training Manual GX IEC Developer 6 15 Creating a Function Block Functions and Function Blocks ...

Страница 154: ...details Assigning Instance Names 햲 Open the Body of MOTOR_CONTROL and enter create two networks Place a Instance of the Function Block STAR_DELTA into each network as shown in the following figure 6 16 MITSUBISHI ELECTRIC Functions and Function Blocks Creating a Function Block 햳 Create a new POU MOTOR_CONTROL of Class PRG and FBD Function Block Diagram as the language of the body ...

Страница 155: ...as Type STAR_DELTA The Instances must be declared in the POU Header As can be seen from the previous figures Instance names are added in the same way as adding any other new variable from the POU body Training Manual GX IEC Developer 6 17 Creating a Function Block Functions and Function Blocks 햳 Assign instance names to both instances of the Function Block STAR_DELTA by typing MCC1 and MCC2 into t...

Страница 156: ...ram will no longer adhere to the IEC con ventions Designating the variable TRUE as above automatically assigns a normally on contact Special relay M8000 in MELSEC FX series which is neater and conforms to IEC conventions The STAR_DELTA FB can be used many times in the project and must use different Instance names Creating a New Task 햲 Create a new Task MAIN in the task pool 6 18 MITSUBISHI ELECTRI...

Страница 157: ...sponding POU for local variables Only those containers are listed where unused variables exist For example if there is no global variable the Global Variable List location will not be enlisted Containers are written in bold text and appear at a higher level than their contained items Training Manual GX IEC Developer 6 19 Creating a Function Block Functions and Function Blocks By using the function...

Страница 158: ...POU and monitor the program for correct operation 6 20 MITSUBISHI ELECTRIC Functions and Function Blocks Creating a Function Block This can produce large reductions in the size of the source code This is important particularly if the option to send all Symbolic Source Code to the PLC has been selected for download ...

Страница 159: ...ue box by right clicking and select Properties 햴 Activate the check box The use of MC MCR option can only be activated when the other two options have already been activated This does not make any changes to instantiation and the programming of instances in the vari ous programming languages 6 3 1 Macrocode execution 쎲 Standard execution The function block is called via a system label 쎲 Macrocode ...

Страница 160: ...e conditions at the beginning Function Definitions 쎲 All devices suffixed _E have EN ENO lines otherwise they do not 쎲 All devices suffixed _M are manufacturers instructions i e in this case from the relevant Mitsubishi instruction set Exercise Gated Operation Edit the Function Block STAR_DELTA to have an EN ENO input output feature Drive the EN enable input with external MELSEC X07 contact 6 22 M...

Страница 161: ...he STAR_DELTA project and its relevant devices with the following procedures 7 1 Entry Data Monitoring The following table will be displayed Advanced Monitoring Functions Entry Data Monitoring Training Manual GX IEC Developer 7 1 햲 Whilst in Monitor Mode select Entry Data Monitor from the Online Menu ...

Страница 162: ...the head of the table move the cursor over the left border of the column you want to alter Then press the left mouse button and move the border to the left or right Release the left mouse button at the desired position 7 1 1 Customising the EDM 햲 Right Clicking the mouse button displays the following window Select Setup Entry Data Monitoring Advanced Monitoring Functions 7 2 MITSUBISHI ELECTRIC ...

Страница 163: ...wing options for this row select Value hex Value bin Repeat for Address IEC and Type 햴 Double click on the empty field or press F2 and select Address IEC from the list as shown The Setup window allows the EDM to be user configurable clicking the right mouse button dis plays the configurator window In this procedure Columns will be added to the EDM table for IEC Address and Hex Value Monitor ...

Страница 164: ...value of D100 may be altered by entering a number into the respective field 7 1 2 Monitor Limitations NOTE Remember the behaviour of the monitor facility is dependant on the code being run in the PLC if the PLC code is writing a constant to this address the value entered will be overwrit ten by the program This situation is prevalent here as the values of D0 and D1 are being con tinuously written ...

Страница 165: ... input to the PLC is not active it is possible to toggle the input image in the CPU on and off by double clicking on the value field for that Boolean addresses as shown Advanced Monitoring Functions Entry Data Monitoring Training Manual GX IEC Developer 7 5 ...

Страница 166: ...at the Boolean variables in the EDM are shown highlighted when monitoring Monitoring Headers Advanced Monitoring Functions 7 6 MITSUBISHI ELECTRIC Another facility available whilst in Monitor Mode and with the POU body highlighted is the Monitor Header function in the Online menu It is also available from the Online Toolbar ...

Страница 167: ...simul taneously even if they are open but not in view This would have the effect of potentially sig nificantly increasing the communications traffic between the PLC and the Computer This would ultimately result in very slow monitor response times on the GX IEC Developer dis plays particularly on FX PLC s Advanced Monitoring Functions Monitor Mode Essentials Training Manual GX IEC Developer 7 7 Fur...

Страница 168: ...Simultaneous Monitoring of Header and Body Here is an example of Monitoring a POU and its header simultaneously Monitor Mode Essentials Advanced Monitoring Functions 7 8 MITSUBISHI ELECTRIC ...

Страница 169: ...r EDM for example M0 the system automatically searches the GVL for the identifier This can take a long time in large projects By checking the box as shown this automatic search is disabled Monitor only Visible Objects in Window generally all elements in the EDM are monitored even if they are not visible By checking the box as shown only objects in the active window are monitored This speeds up res...

Страница 170: ...dure i e double click on the variable name whilst in monitor mode The new value can be entered either as decimal or as a hexadecimal value Again if there is PLC code writing to this variable then this will overwrite this action NOTE Both operations also operate on direct MELSEC addresses For further illustrations see previous section Functions IMPORTANT TIP When using the Ladder editor hold down t...

Страница 171: ...en the POU Body and click on the Monitor mode button The following dialogue choice window will be displayed 햳 Select the instance of the Function Block MOTOR_CONTROL MCC1 and observe the monitored page In this manner every instance of any Function Block may be monitored autonomously Advanced Monitoring Functions Monitoring Instances of Function Blocks Training Manual GX IEC Developer 7 11 ...

Страница 172: ...Monitoring Instances of Function Blocks Advanced Monitoring Functions 7 12 MITSUBISHI ELECTRIC ...

Страница 173: ...ction is used to edit batch devices 햲 Select Device Edit from the Debug menu 햳 Highlight the cell in the top left hand corner Click the right mouse button and then select Insert Devices Device Edit Training Manual GX IEC Developer 8 1 ...

Страница 174: ...elow The right mouse button supports many editing functions find and replace copy paste etc Device Edit 8 2 MITSUBISHI ELECTRIC 햴 Select a device type from the Device selection box If you want all devices of this type then just click OK It s more likely though you will want to enter a range by clicking on the address field and entering your range then click OK ...

Страница 175: ...he display format to be changed try HEX It should be noticed that the selected row now displays values in hexadecimal the other values remain unchanged In fact individual cells can have different display formats making this fea ture extremely flexible Device Edit Training Manual GX IEC Developer 8 3 ...

Страница 176: ...Device Edit 8 4 MITSUBISHI ELECTRIC ...

Страница 177: ...rrent project Rename the Copy to Motor_Control_Mod The following operations will apply to this modified program Rebuild the project and download it to the PLC 9 1 Online Change Mode 햲 Open the body of the MOTOR_CONTROL POU and select Online change mode 햳 Add an additional network as shown below Online Mode Online Change Mode Training Manual GX IEC Developer 9 1 ...

Страница 178: ...led and sent to the PLC automatically following a prompt to carry out or abort the action NOTE Online editing is only allowed if the code is identical in the resident project and PLC 햵 Enter Monitor mode and observe the operation of the modified block Online Change Mode Online Mode 9 2 MITSUBISHI ELECTRIC ...

Страница 179: ... network is to be removed from the program carry out the following procedure Remember the PLC and GX IEC Developer programs must be identical before proceeding 햲 Highlight network 3 on the POU body MOTOR_CONTROL and press Delete on the key board Online Mode Online Program Change Training Manual GX IEC Developer 9 3 햳 Invoke the Online Program Change feature from the Project Menu GX IEC Developer w...

Страница 180: ...or abort the process at this point 햴 Click Yes and wait for the download synchronisation process to complete 햵 Confirm correct operation by entering Monitor mode in the active POU Online Program Change Online Mode 9 4 MITSUBISHI ELECTRIC ...

Страница 181: ...ed This means that the predefined group called SD can be used with the elements defined as required for each Motor Control thus reducing design time and allowing re use of the DUT together with Function Blocks If an element called START exists in type SD then it can be reused for each Star Delta Motor Control instance when declared in the GVL STAR_DELTA1 START STAR_DELTA2 START etc This means for ...

Страница 182: ...nd the Program MOTOR_CONTROL to it 햵 Create a new Function Block STAR_DELTA and re enter the following program code Alternatively Copy Paste the original function block Body and Header from the project Motor Control as follows Body STAR_DELTA Header STAR_DELTA The Header contains the definitions Mask of the data types that will be used when creating the DUT SD Example use of a DUT Data Unit Types ...

Страница 183: ... Data Unit Types DUT Example use of a DUT Training Manual GX IEC Developer 10 3 햷 Enter the new DUT name as SD at the prompt The new DUT will now be displayed under the DUT Pool in the project 햶 Create a new DUT by right clicking on the DUT Pool icon in the Program navigation window or from the DUT icon on the toolbar ...

Страница 184: ...STAR_DELTA2 햽 Click the ellipsis to specify the Type as Data Unit Types SD for both entries 햾 Next click on the MIT Addr cell for STAR_DELTA1 to enter the variable data for the selected DUT entry Resulting window Example use of a DUT Data Unit Types DUT 10 4 MITSUBISHI ELECTRIC Click to select ...

Страница 185: ...tion for the variable DELTA The system will try to sequentially Auto Fill the variables of type BOOL Although in many situa tions this is recommended in this case it is only partially successful 햴 Therefore overtype START and STOP variables with X00 and X01 thus Data Unit Types DUT Automatic Filling Variables Training Manual GX IEC Developer 10 5 ...

Страница 186: ...g the Auto Fill feature 햶 Click OK to save the current configuration 햷 Repeat this series of operations for STAR_DELTA2 entering the next sequential head address for each variable TYPE 햸 Examine the GVL it should read as follows Automatic Filling Variables Data Unit Types DUT 10 6 MITSUBISHI ELECTRIC ...

Страница 187: ...Open the MOTOR_CONTROL program POU and place 2 instances of the user created Func tion Block STAR_DELTA as shown Data Unit Types DUT Automatic Filling Variables Training Manual GX IEC Developer 10 7 ...

Страница 188: ... variable or F2 The following variable selection window appears 햳 Set the Scope to Header Type Class to Data Unit Types and Type to ANY_DUT 햴 Double Click on STAR_DELTA1 and the following expanded DUT variable list appears Assigning DUT Variables to Function Blocks Data Unit Types DUT 10 8 MITSUBISHI ELECTRIC ...

Страница 189: ...erate it is necessary to write values into the TIMEBASE inputs STAR_DELTA1 TB and STAR_DELTA2 TB This is carried out by using the online variable modification technique described in an earlier section Simulate the operation of both Function Blocks as shown on the next page in order to confirm that everything functions as expected Data Unit Types DUT Assigning DUT Variables to Function Blocks Train...

Страница 190: ...Assigning DUT Variables to Function Blocks Data Unit Types DUT 10 10 MITSUBISHI ELECTRIC ...

Страница 191: ... as declarations which in this example mean that D1 and D2 are addressed Arrays can have up to three dimensions for example ARRAY 0 2 0 4 has three elements in the first dimension and five in the second Arrays can provide a convenient way of indexing tag names i e one declaration in the Local or Global Variable Table can access many elements The following diagrams illustrate graphical representati...

Страница 192: ...Three Dimensional Array Overview Arrays 11 2 MITSUBISHI ELECTRIC Identifier Motor_Current Type ARRAY 0 3 0 2 0 2 OF INT Motor_Current 1 2 1 ...

Страница 193: ...nctions and Function Blocks 햲 Create a new project and define one new POU of class Program using a body of lan guage FBD and named Data_Lookup1 햳 Create a new Task in the task pool named Main and bind the program POU Data_Lookup1 to it 햴 Open the Global Variables list and create the following entries NOTE The variable type Array in entered as follows Arrays Array Example Single Dimension Array Tra...

Страница 194: ... 햵 Open the Program POU Data_Lookup1 and enter the following Function Block Diagram NOTE Define the R_Trig Function block with instance name Trigger 햶 Check the Header reads as shown below 햷 Save the program and use Rebuild All to compile the program 햸 Transfer the program to the PLC 햹 Monitor the POU body see next page Array Example Single Dimension Array Arrays 11 4 MITSUBISHI ELECTRIC ...

Страница 195: ...re from the Debug menu as previously described using Insert Devices in the range D100 to D109 and enter any 10 random integer values between 32768 to 32767 and write them to the PLC 쎲 Open the Entry Data Monitor feature from the Online menu Right Click on the Address or Name column headers and select Insert Objects from the menu list as shown Arrays Array Example Single Dimension Array Training Ma...

Страница 196: ...esents the entry with a prefix Clicking on the variable name expands the array details into the table as shown Clicking on the Prefix collapses the array details While monitoring the variable values enter any 10 random integer values between 32768 to 32767 as shown below Array Example Single Dimension Array Arrays 11 6 MITSUBISHI ELECTRIC ...

Страница 197: ... the value alters on the output variable Data_Lookup as the data pointer increases 쎲 The program is designed to reset the pointer to zero on the 10th element and thus will repeat scan the table with an upward increment Index 0 9 Arrays Array Example Single Dimension Array Training Manual GX IEC Developer 11 7 ...

Страница 198: ...Array Example Single Dimension Array Arrays 11 8 MITSUBISHI ELECTRIC ...

Страница 199: ... have access to common libraries of standard circuit parts As already seen when called program functions the Standard Library contains IEC functions The Manufacturer Library contains Mitsubishi functions denoted by _M M meaning manu facturer not Mitsubishi Any user defined libraries will also appear on this list 12 1 1 Example Creating a new Library 햲 Assign the function block STAR_DELTA to a new ...

Страница 200: ... changed if desired In this case it is suggested that the default path is used This being C MELSEC GX IEC DEVELOPER 7 00 Userlib 햵 Click Open when done Notice the new Library MCC_Programs that is now present in the project Library Pool User Defined Libraries Working with Libraries 12 2 MITSUBISHI ELECTRIC ...

Страница 201: ...Open the Library by right clicking on the icon MCC_Programs and click on Open from the menu The Library is now open and may be accessed and edited Working with Libraries User Defined Libraries Training Manual GX IEC Developer 12 3 ...

Страница 202: ...k STAR_DELTA will now be moved into the Library MCC_Programs The following dialogue will be displayed 햳 Select Yes User Defined Libraries Working with Libraries 12 4 MITSUBISHI ELECTRIC 햲 Right click on the STAR_DELTA icon in the Project navigation window and click on Cut ...

Страница 203: ...ol to expand the STAR_DELTA Function Block The Function Block POU STAR_DELTA is now present in the Library MCC_Programs and no longer in the Project POU Pool Any POU Function Function Block PRG or DUT can be added to the library in this way Working with Libraries User Defined Libraries Training Manual GX IEC Developer 12 5 ...

Страница 204: ...ed The library is now stored in the default location of C MELSEC GX IEC DEVELOPER 7 00 Userlib as set when creating the library User Defined Libraries Working with Libraries 12 6 MITSUBISHI ELECTRIC 햶 When editing of the library is complete click Update Library This will update and close the library ...

Страница 205: ...12 2 Special Note about Libraries Working with Libraries Special Note about Libraries Training Manual GX IEC Developer 12 7 ...

Страница 206: ...ese Function Blocks are available free on many of the Mitsubishi web sites and some are provided on the GX IEC Developer Master Disk The following two examples describe the methods used to import libraries into working applica tions 12 3 1 Import of an User Library The previously saved library MCC_Programs will be imported into the current project and the Function Block contained therein will be r...

Страница 207: ... clicking Browse Help in the same manner as the Library Name selection illus trated above The new imported library is now installed into the application and can now be used within the project as shown Items stored in libraries can be easily recalled and selected into a project as shown in the follow ing illustrations 햲 Create a new POU type FBD and named Test Working with Libraries Importing Libra...

Страница 208: ... new POU and select the Function Block as shown As can be seen the new library appears in the domain and may be selected as shown Importing Libraries into Projects Working with Libraries 12 10 MITSUBISHI ELECTRIC ...

Страница 209: ...utomation com After the installation the library can be accessed from the Userlib directory 햲 Create a new empty project with no POU s called Analogue_Demo 햳 Create a new POU Type FBD Class PRG and name it Analogue_Input 햴 Right click on the Library_Pool icon and then on Install Create User Library This opens a new dialogue window Select Browse Lib Select the AnalogFX_V310 SUL library file and cli...

Страница 210: ...t Navigation Window 햶 Create a new task in the task pool MAIN and bind the POU Analogue_Input to it 햷 Place the FX3U_4AD_ADP function block into the POU as shown below Importing Libraries into Projects Working with Libraries 12 12 MITSUBISHI ELECTRIC ...

Страница 211: ...tance name ReadAverageValues was assigned and defined as local variable 햻 Compile and download the program to the PLC 햽 Monitor and test for correct operation Observe the behaviour of the analogue outputs due to the average settings Working with Libraries Importing Libraries into Projects Training Manual GX IEC Developer 12 13 ...

Страница 212: ...cks click to highlight the function block and press the F1 key For example the help screen for the FX3U_4AD_ADP function block looks as follows The help files cover every aspect from the setup of the FX family analogue hardware modules to use of the library function blocks Importing Libraries into Projects Working with Libraries 12 14 MITSUBISHI ELECTRIC ...

Страница 213: ...ined function blocks In addition the PLC password Keyword is also available 13 1 1 Setting the Password Security Password Training Manual GX IEC Developer 13 1 Passwords can be entered and security levels can be changed using these windows via the Project menu To illustrate the operation of passwords select Security Level 7 and enter a new password for this level For simplicity here press 7 Re ent...

Страница 214: ...word for Level 7 and if accepted the user will be logged on at this level Once logged on the security attributes for many items may be altered For example one of the most common security options is to change access to POU s i e User Functions and Function Blocks Password Security 13 2 MITSUBISHI ELECTRIC ...

Страница 215: ...ess to User POU s the security attributes may be adjusted whilst being logged into the security current level as follows Setting Security Level 햲 Open the project Motor Control and open the header of the Function Block STAR_DELTA Security Password Training Manual GX IEC Developer 13 3 ...

Страница 216: ...ble 햵 Log in again to Level 7 and alter the security attributes of the Function Block STAR_DELTA so that read access is NOT allowed for lower levels 햶 Change the security level to 0 and try to access the body of the Function Block STAR_DELTA The Header and Body of the POU will be greyed out with access to the POU completely blocked Access attributes for any individual object or complete folder in ...

Страница 217: ...rectly switched bit operands 쎲 Transitions always contain one link network which activates the progression instruction name of the transition It is also possible to use a discrete address instead of a name 쎲 Actions can be created in every editor except SFC 쎲 Transitions can be created in every editor except SFC 쎲 The SFC code resides in the Micro computer area of the plc so allocate memory space ...

Страница 218: ...itor 쎲 Except in SFC 쎲 It is also possible to use a bit directly instead of the name READY 14 2 2 Initial Step SFC programs begin with an Initial Step function which indicates the start of a sequence 14 2 3 Termination Step All Sequences finish with a Termination Step SFC Elements Sequential Function Chart SFC 14 2 MITSUBISHI ELECTRIC ...

Страница 219: ...Sequential Function Chart SFC SFC Elements Training Manual GX IEC Developer 14 3 ...

Страница 220: ...14 3 SFC configuration examples SFC configuration examples Sequential Function Chart SFC 14 4 MITSUBISHI ELECTRIC ...

Страница 221: ...gram as for a POU Each action has associated logic written in either IEC LD IL FBD or ST New Actions are created by clicking on the ACT button on the toolbar Select the required editor as for POUs Sequential Function Chart SFC SFC Actions Training Manual GX IEC Developer 14 5 ...

Страница 222: ...cking routine consisting of many networks Each Transition can be a simple device i e Mitsubishi address X0 or an identifier name or more complex as a single network program written in either IEC IL LD Structured Text or FBD SFC Actions Sequential Function Chart SFC 14 6 MITSUBISHI ELECTRIC ...

Страница 223: ... input a Transition name and hit the enter key Choose the required editor as for Actions The transition could be a complex expression but it only consists of one network Sequential Function Chart SFC Complex Transitions Training Manual GX IEC Developer 14 7 ...

Страница 224: ...stem Q supports SFC s in the program area Also for FX range SFC s actually compile to STL code in the program area One popular feature of SFC s is that in monitor mode the current step is highlighted This means for fault finding purposes engineers can see exactly how far the sequence has pro gressed and can investigate accordingly Complex Transitions Sequential Function Chart SFC 14 8 MITSUBISHI E...

Страница 225: ...ction List IL LD X4 Interrogation X4 ANDN M5 ANDN M5 ST Y20 Assignment OUT to Y20 LD TEST Load TEST into accu BCD_TO_INT Convert accu ST RESULT Write accu to RESULT 15 1 1 Some useful tips To Perform D0 D1 D2 in IEC IL becomes LD D0 ADD D1 ST D2 To Perform D0 D1 D2 and then D2 K50 D3 becomes LD D0 ADD D1 D2 50 ST D3 Use of an _E function can simplify still further To Perform D0 D1 D2 and then D2 K...

Страница 226: ...IL networks can be incorporated into the same POU This is achieved by highlighting the current network selecting from the Edit Menu New Network then Melsec Before from the Options list Mixing IEC IL and Melsec IL in POUs IEC Instruction List 15 2 MITSUBISHI ELECTRIC ...

Страница 227: ...x mathematical expressions can be realised using these operators in a few lines of text 16 1 Structured Text Operators Training Manual GX IEC Developer 16 1 IEC Structured Text Structured Text Operators Operator Description Precedence Parenthesised expression Highest Function Parameter list of a function function evaluation Exponentiation ie raising to a power Negation NOT Boolean compliment Multi...

Страница 228: ...s floating point calculation is only possible with the main units of the FX2N FX2NC FX3G FX3U and FX3UC series 햲 Create a new project called Structured_Text 햳 Create a new POU named Fahrenheit of Class FUN Result Type REAL with a lan guage of ST Structured Text 햴 Create an entry in the header LVL of the Function Fahrenheit 햵 Open the Body of the Function Fahrenheit and enter the following simple S...

Страница 229: ... the PLC 햺 Monitor the program body of Temp_Conv and observe the values on screen 햻 Force new values into the input variable DegC of the equation by double clicking on the variable Tag Name NOTE In this example Local Variables are used to directly enter values via the GX IEC Developer programming monitoring interface normally values are entered via Global Variables Training Manual GX IEC Developer...

Страница 230: ...Structured Text Program Example IEC Structured Text 16 4 MITSUBISHI ELECTRIC ...

Страница 231: ...abling 17 1 Configuring the PROFIBUS DP Network In combination with the software GX Configurator DP the FX3U 64DP M master unit as well as master modules from the A series or the MELSEC System Q give you user friendly plug and play technology The configuration software is self explanatory using a graphical model for setting up the network You simply select the slave unit assign the station numbers...

Страница 232: ...Network Setup select FX As MELSEC Device FX3U 64DP M is automati cally entered 햴 Insert DP Slave in empty project Configuring the PROFIBUS DP Network PROFIBUS DP Communication 17 2 MITSUBISHI ELECTRIC Right mouse click ...

Страница 233: ...unication Configuring the PROFIBUS DP Network Training Manual GX IEC Developer 17 3 Enter the head address of the PROFIBUS DP master module in this field In this example the module is the 2nd special function module Therefore it has the adress 1 First select the PROFIBUS address of the slave station Then select the mounted modules of the ST system see next page ...

Страница 234: ...햷 Select modules 햸 Make PLC settings for input and output devices Configuring the PROFIBUS DP Network PROFIBUS DP Communication 17 4 MITSUBISHI ELECTRIC Select Slave Specific Transfer ...

Страница 235: ...햹 Slave Specific Transfer 햺 I O mapping PROFIBUS DP Communication Configuring the PROFIBUS DP Network Training Manual GX IEC Developer 17 5 ...

Страница 236: ...햻 Before download please select Transfer Setup 햽 Transfer configuration to PROFIBUS DP master module Configuring the PROFIBUS DP Network PROFIBUS DP Communication 17 6 MITSUBISHI ELECTRIC ...

Страница 237: ...his POU will initialize the PROFIBUS DP master module in the PLC program 햿 Import of the POU in the GX IEC Developer project A new project with the correct CPU has already been created and saved PROFIBUS DP Communication Configuring the PROFIBUS DP Network Training Manual GX IEC Developer 17 7 ...

Страница 238: ...nd transfer it to the FX3U After restarting the PLC the PROFIBUS communication will start Configuring the PROFIBUS DP Network PROFIBUS DP Communication 17 8 MITSUBISHI ELECTRIC The POUs Copy_Pou and Profibus_init were generated automatically ...

Страница 239: ...attention is given to the set up of the PLC than the PC or HMI as the user may require more specific settings than this section covers For the case that a HMI of the E1000 series is used instead of a GOT the settings in the software E Designer are shown in section 18 5 Ethernet Communications Training Manual GX IEC Developer 18 1 POWER USB RS232 RS422 IP address 192 168 1 101 IP address 192 168 1 ...

Страница 240: ...d assign an IP address and subnet mask in the TCP IP properties dialogue for the Ethernet network adapter to be used in the PC Please note that after changing IP address the PC may require a restart Configuring the PC on the Ethernet Ethernet Communications 18 2 MITSUBISHI ELECTRIC ...

Страница 241: ...w select the special function module address of the FX3U ENET Special function mod ules connected to the right side of the base unit are counted from left to right If the FX3U ENET is the first special function module select Module 0 Ethernet Communications Configuring the FX3U ENET by FX Configurator EN Training Manual GX IEC Developer 18 3 ...

Страница 242: ... IP address 192 168 1 101 of the FX3U ENET corresponds to the requirements of your net work if your network IP is 192 168 1 1 햵 Next open the Open Settings and take over the following settings Configuring the FX3U ENET by FX Configurator EN Ethernet Communications 18 4 MITSUBISHI ELECTRIC ...

Страница 243: ...Ethernet Module settings As you see the transfer speed for COM1 is set to 115 2 Kbps In the dialogue window Write to Ethernet Module click on Write and transfer your settings to the PLC Confirm displayed messages with YES resp OK Ethernet Communications Configuring the FX3U ENET by FX Configurator EN Training Manual GX IEC Developer 18 5 ...

Страница 244: ...8 6 MITSUBISHI ELECTRIC C ping 192 0 1 254 Remark Execute the ping command Pinging 192 168 1 101 with 32 bytes of data Reply from 192 168 1 101 bytes 32 time 1ms TTL 250 Reply from 192 168 1 101 bytes 32 time 1ms TTL 250 Reply from 192 168 1 101 bytes 32 time 1ms TTL 250 Reply from 192 168 1 101 bytes 32 time 1ms TTL 250 Ping statistics for 192 168 1 101 Packets Sent 4 Received 4 Lost 0 0 loss App...

Страница 245: ...nsfer Setup and then Ports 햳 The default connection is for the PC Side I F to use serial connection to the PLC CPU mod ule Change the PC Side I F to Ethernet board by clicking on it as shown above and say ing Yes to the question about present setting will be lost i e the setting of serial to CPU Ethernet Communications Configuring GX IEC Developer to access the PLC on Ethernet Training Manual GX I...

Страница 246: ...ow the settings for the Ethernet interface module used NOTE There is no need to specify a port number as the programming software will use a MELSOFT Protocol dedicated port by default 햵 Click OK when done Configuring GX IEC Developer to access the PLC on Ethernet Ethernet Communications 18 8 MITSUBISHI ELECTRIC ...

Страница 247: ...to confirm the settings are correct Then click OK when finished NOTE The IP address can be entered also in hexadecimal format This option is shown in the fol lowing two figures Ethernet Communications Configuring GX IEC Developer to access the PLC on Ethernet Training Manual GX IEC Developer 18 9 ...

Страница 248: ...Configuring GX IEC Developer to access the PLC on Ethernet Ethernet Communications 18 10 MITSUBISHI ELECTRIC ...

Страница 249: ...ble click on System Settings and make the settings shown below 햳 In the System Enviroment double click on Communication Settings and make the set tings shown below 햴 Then in the Communication Settings window click on Detail Setting Ethernet Communications Setting up a HMI of the GOT1000 Series GT12 GT15 or GT16 Training Manual GX IEC Developer 18 11 ...

Страница 250: ...hernet Communications 18 12 MITSUBISHI ELECTRIC 햵 As shown on the right enter the details of the net work in use and the IP address of the GOT 햶 In the Project Navigator select Common Settings Ethernet to set up the connected PLC and the asso ciated IP address ...

Страница 251: ...ng the PLC certain settings e g the Port No are taken over as defaults Please make the remaining settings Ethernet Communications Setting up a HMI of the GOT1000 Series GT12 GT15 or GT16 Training Manual GX IEC Developer 18 13 햸 Click on the Type column and select the type of PLC ...

Страница 252: ... HMI of the E1000 series is con nected to the network instead of a GOT series HMI 햲 Please open a new E Designer project 햳 Next a dialogue window allowing the settings for the HMI used and the connected PLC is opened Setting up a HMI of the E1000 series Ethernet Communications 18 14 MITSUBISHI ELECTRIC ...

Страница 253: ...Ethernet Communications Setting up a HMI of the E1000 series Training Manual GX IEC Developer 18 15 햵 Select the PLC 햴 Select the operator terminal 햶 Click OK to confirm the selection ...

Страница 254: ...roperties of the peripherals Right click on peripherals than click on properties 햸 Open the properties of the TCP IP connection Setting up a HMI of the E1000 series Ethernet Communications 18 16 MITSUBISHI ELECTRIC ...

Страница 255: ...ing setting is required for the FX3U ENET refer to section 18 2 step 햵 Ethernet Communications Setting up a HMI of the E1000 series Training Manual GX IEC Developer 18 17 햹 Please enter a name for the connection and the IP address of the FX3U ENET used for the connection ...

Страница 256: ...t make it very easy to connect your Mitsubishi PLC with the PC world MX Component supports serial CPU port connection serial computer links RS232C RS422 and networks Ethernet CC Link MELSEC The following figures show the easy way for creating of communication between a PC and a PLC via MX Component 햲 Start the Communication Setting Utility and select the Wizard Communication via MX Component Ether...

Страница 257: ...st define the Logical station number 햴 Next configure the Communication Settings on the PC side Select the Ethernet board Ethernet Communications Communication via MX Component Training Manual GX IEC Developer 18 19 ...

Страница 258: ...햵 Select the FX ENET ADP 햶 Enter the IP address of the Ethernet interface module Communication via MX Component Ethernet Communications 18 20 MITSUBISHI ELECTRIC ...

Страница 259: ...elect the correct CPU type 햸 For the conclusion of the configuration define a name and press the Finish button Ethernet Communications Communication via MX Component Training Manual GX IEC Developer 18 21 ...

Страница 260: ...sage Communication test is successful indicates that your configuration is correct After configuring the communication paths you can access all controller devices read write with Microsoft programming languages like MS Visual Basic MS C etc Communication via MX Component Ethernet Communications 18 22 MITSUBISHI ELECTRIC ...

Страница 261: ...l the CPU Represented here are some of the most commonly used devices Special relays can be divided in two groups Special relays whose signal state can only be read by the program for instance using a LD or LDI instruction Special relays whose signal state can be read and written set or reset by the program The following tables feature a Read and a Write column If the symbol 쎲 is shown in one of t...

Страница 262: ... failure M8008 쏹 Power failure detected M8009 쏹 FX2N FX2NC FX3G FX3U FX3UC 24V DC down service power supply Special Relay Read Write CPU Function M8010 Not used M8011 쏹 FX1S FX1N FX2N FX2NC FX3G FX3U FX3UC 10 ms clock pulse ON and OFF in 10 ms cycle ON 5 ms OFF 5 ms M8012 쏹 100 ms clock pulse ON and OFF in 100 ms cycle ON 50 ms OFF 50 ms M8013 쏹 1 s clock pulse ON and OFF in 1 s cycle ON 500 ms OF...

Страница 263: ...egisters D in program memory and extension file registers ER in the memory cas sette are not cleared M8032 쏹 쏹 Latch memory all clear M8033 쏹 쏹 Memory hold STOP When PLC is switched from RUN to STOP image memory and data memory are retained M8034 쏹 쏹 All outputs disable All external output contacts of the PLC are turned OFF The program however is still executed M8035 쏹 쏹 Forced RUN mode M8036 쏹 쏹 ...

Страница 264: ...on error M8061 쏹 FX1S FX1N FX2N FX2NC FX3G FX3U FX3UC PLC hardware error M8062 쏹 FX2N FX2NC PLC Programming device communication error FX3G Serial communication error ch0 M8063 햲 쏹 FX1S FX1N FX2N FX2NC FX3G FX3U FX3UC Serial communication error 1 ch1 M8064 쏹 Parameter error M8065 쏹 Syntax error M8066 쏹 Ladder error M8067 햳 쏹 Operation error M8068 쏹 Operation error latch M8069 쏹 FX2N FX2NC FX3G FX3...

Страница 265: ...Appendix Special Relays Training Manual GX IEC Developer A 5 Special relay Read Write CPU Function M8260 to M8269 쏹 FX3U FX3UC 햵 Special relays for the 1st analog special adapter 햲 쏹 FX3G 햶 Special relays for the 1st analog adapter board 햳 M8270 to M8279 쏹 FX3U FX3UC 햵 Special relays for the 2nd analog special adapter 햲 쏹 FX3G 햶 Special relays for the 2nd analog adapter board 햴 M8280 to M8289 쏹 FX...

Страница 266: ... at power ON Value overwritten by program is valid after END or WDT instruction execution The setting must be larger than the maximum scan time stored in D8012 Default value is 200 ms D8001 쏹 PLC type and system version FX1S 22VVV FX1N FX3G 26VVV FX2N FX2NC FX3U FX3UC 24VVV e g FX1N Version 1 00 26100 D8002 쏹 Memory capacity 0002 2k steps FX1S only 0004 4k steps FX2N FX2NC only 0008 8k steps or mo...

Страница 267: ...ion Default 0 ms in 1 ms steps Writes from system ROM at power ON Can be overwritten by program Special Register Read Write CPU Function D8010 쏹 FX1S FX1N FX2N FX2NC FX3G FX3U FX3UC Present scan time in units of 0 1 ms D8011 쏹 Minimum value of scan time in units of 0 1 ms D8012 쏹 Maximum value of scan time in units of 0 1 ms D8013 쏹 쏹 FX1S FX1N FX2N FX2NC FX3G FX3U FX3UC Real time clock Seconds 0 ...

Страница 268: ...ock is written to D8060 Meaning of the four digit code 1st digit 0 Output 1 Input 2nd to 4th digit First device number of the erroneous block D8061 쏹 FX1S FX1N FX2N FX2NC FX3G FX3U FX3UC Error code for PLC hardware error D8062 쏹 FX2N FX2NC FX3G FX3U FX3UC Error code for PLC PP communication error FX3G Error code for serial communication error ch0 D8063 쏹 FX1S FX1N FX2N FX2NC FX3G FX3U FX3UC Error ...

Страница 269: ...l Registers Training Manual GX IEC Developer A 9 Special Register Read Write CPU Function D8260 to D8269 쏹 FX3U FX3UC 햵 Special registers for the 1st analog special adapter 햲 쏹 FX3G 햶 Special registers for the 1st analog adapter board 햳 D8270 to D8279 쏹 FX3U FX3UC 햵 Special registers for the 2nd analog special adapter 햲 쏹 FX3G 햶 Special registers for the 2nd analog adapter board 햴 D8280 to D8289 쏹...

Страница 270: ... A few special function units blocks are lim ited the number to connect Communication error between PLC and program ming device FX2N and FX2NC only D8062 0000 No error 6201 Parity overrun or framing error Check the cable connection between the programming device and the PLC This error may occur when a cable is disconnected and reconnected during PLC monitoring 6202 Communication character error 62...

Страница 271: ...on setting error 6409 Other setting error Error Special Register Error Code Description Corrective Action Syntax error D8065 0000 Kein Fehler During programming each instruction is checked If a syntax error is detected modify the instruction correctly 6501 Incorrect combination of instruction device symbol and device number 6502 No OUT T or OUT C before setting value 6503 앥 No OUT T or OUT C befor...

Страница 272: ...PP or incorrect combination 6617 Instruction below is not connected to bus line STL RET MCR P I DI EI FOR NEXT SRET IRET FEND or END 6618 STL MC or MCR can be used only in main program but it is used elsewhere e g in interrupt routine or subroutine 6619 Invalid instruction is used in FOR NEXT loop STL RET MC MCR I interrupt pointer or IRET 6620 FOR NEXT instruction nesting level exceeded 6621 Numb...

Страница 273: ...rands used in the applied instructions 6702 CALL instruction nesting level is 6 or more 6703 Interrupt nesting level is 3 or more 6704 FOR NEXT instruction nesting level is 6 or more 6705 Operand of applied instruction is inap plicable device 6706 Device number range or data value for operand of applied instruction exceeds limit 6707 File register is accessed without para meter setting of file reg...

Страница 274: ...er supply for the internal 24V DC Some special function modules need external 24 V DC Include this current in the calcu lation of current consumption when the current is supplied by the 24V DC service power supply When the current is supplied by an external power supply the current is not in cluded in the calculation of current consumption A 4 1 Interface Adapter Boards and Communication Adapter B...

Страница 275: ...220 F920GOT BBD5 K E 220 Type Number of occupied I O points Current consumption mA 5 V DC 24 V DC internal 24 V DC external At start up FX3U 4HSX ADP 30 30 0 30 FX3U 2HSY ADP 30 60 0 120 FX3U 4AD ADP 15 0 40 FX3U 4DA ADP 15 0 150 FX3U 4AD PNK ADP 15 0 50 FX3U 4AD PT ADP 15 0 50 FX3U 4AD PTW ADP 15 0 50 FX3U 4AD TC ADP 15 0 45 FX3U 3A ADP 20 0 90 FX2NC 232ADP 100 0 0 FX3U 232ADP 30 0 0 FX3U 485ADP ...

Страница 276: ...A FX2N 32ASI M cannot be used together with a FX2N 16CCL M Only one unit can be added to the whole sys tem The following number of points is added according to the products connected to the network Number of active slaves x 8 points NOTE When applying a DC power type base unit calculate the current consumption at startup Number of Occupied Input Output Points and Current Consumption Appendix A 16 ...

Страница 277: ...y source for the input signals and the sensors The capacity of this power supply depends on the controller model e g FX1S FX1N and FX3G 400mA FX2N 16M쏔 쏔쏔 through FX2N 32M쏔 쏔쏔 250 mA FX2N 48M쏔 쏔쏔 through FX2N 64M쏔 쏔쏔 460 mA Digital inputs The digital inputs are used for inputting control signals from the connected switches but tons or sensors These inputs can read the values ON power signal on and...

Страница 278: ...PLC Components Glossary Appendix A 18 MITSUBISHI ELECTRIC ...

Страница 279: ... 4 47 D DUT 3 17 Data Unit Types Description 3 17 Example 10 1 Data types 3 15 Debug Menu Device Edit 8 1 Device Edit function in Debug menu 8 1 DeviceNet Network modules 2 29 Display Mode 8 3 Documentation Network Comments 4 33 Network Header 4 33 Print options 4 51 Download of programs 4 41 E E Designer 18 14 EEPROM A 17 EN Input 6 22 ENO Output 6 22 ETHERNET Configuration 18 1 FX Configurator E...

Страница 280: ...riables 6 18 comparison with Funktion 6 1 creation 6 14 entering into Ladder program 4 18 execution options 6 21 monitoring instances 7 11 Function Block Diagram 3 13 G GT Designer2 18 11 GVL see Global Variable List GX Configurator DP 17 1 Global Variables Definition 3 6 List 3 6 assigning 4 9 Global Variables List adding entries 4 26 assigning of variables 4 9 checking 4 12 Glossary A 17 Groundi...

Страница 281: ...gramming 4 14 POU Pool Definition 3 4 PROFIBUS DP Network module 2 26 configuration 17 1 Positioning modules 2 24 Process image processing 2 4 Program check 4 23 cross reference 4 47 download to PLC 4 37 monitoring 4 44 Programmable Logic Controller see PLC Project I O Assignment 2 41 Project Menu Change Passwords 13 1 Change Security Level 13 2 Online Programm Change 9 3 Properties of a Task 4 31...

Страница 282: ...ed Text 3 12 System Image 4 40 T Task Attributes 4 31 Definition 3 3 Pool 3 7 Properties 4 31 assigning a POU 4 30 create new 4 29 Task Pool Definition 3 7 Temperature acquisition modules 2 21 control modules 2 22 Timer Device addresses 3 20 programming 4 27 Trouble shooting Error codes A 10 Special registers A 8 Special relays A 4 V Variables Global Definition 3 6 see also Global Variables Local ...

Страница 283: ......

Страница 284: ...Phone 358 0 207 463 500 Fax 358 0 207 463 501 GREECE UTECO A B E E 5 Mavrogenous Str GR 18542 Piraeus Phone 30 211 1206 900 Fax 30 211 1206 999 HUNGARY MELTRADE Ltd Fertő utca 14 HU 1107 Budapest Phone 36 0 1 431 9726 Fax 36 0 1 431 9727 LATVIA Beijer Electronics SIA Vestienas iela 2 LV 1035 Riga Phone 371 0 784 2280 Fax 371 0 784 2281 LITHUANIA Beijer Electronics UAB Savanoriu Pr 187 LT 02300 Vil...

Отзывы: