Home
Section 1 Creating a New Project
Contents
1. Mannie Scope EE f Local Global Usage Local Yarable Groups var F RETAN Dea O a Data type TIME Global arable Groups Initial value o Physical Hardware g CS Address Comment Show all variables of worksheet No variable is connected to the ET terminal timer current value The above circuit is a pulse output circuit in which the time out signal itself turns OFF the timer activation input so that the time out signal TOUT outputs one pulse each cycle of the timer set value 2 5 Section 2 Inserting a POU 2 2 Creating a Flicker Circuit Next create a flip flop circuit By using TOUT for the input signal of the flip flop a flicker circuit that outputs ON OFF signals at one second intervals can be created O01 TOT P_OUT_is a E TJT P_OJT_1s H Variable P_OUT_1s to become the output of the flicker must be a global variable lt Variable type gt There are two types of variables local variables and global variables Local variables can be used only in a POU in which the variable is defined whereas global variables can be used in any POU in the same project The worksheet of POU flick_1s is as shown below El a Project baszic0523 Libraries Data Types lt Local variable worksheet gt E y Logical POs E OON E LADDER ete ee L dse eeen o E Bk a lick 1s Pee Sl Demut z i fick_tsT E E E l AE is or p00 va O O iS Fons eoo eea A E E Physical Hardwar
2. Error s 0 Warning s The SX simulator appears on the task bar Click Project Control Dialog button to display the R_SIM dialog When the SX simulator is running Power On is displayed in the state field Stop Initial start Program aean Start Hot start Download Upload Error Info Close Help State Stap Initial start Program aean Start Hot start Download Upload Error Into cose Hae FLEE When the SX simulator is not running Timeout is displayed in the state field 1 30 Section 1 Creating a New Project 1 7 Downloading a Project Click the Download button on the R_SIM dialog to display the Download dialog Clicking the Download button in the Project box starts downloading Click here Bootproject Project T Include Bootproject eee Include Sources Download Zip File Eear T Include User Libraries T Include Pagelayouts Include Backend Code ear ip File on Target When downloading is completed the R_SIM dialog becomes as shown below Clicking the Start button activates the project downloaded to the SX simulator lt When simulator stops gt lt When simulator is running gt State Stop State Run Initial start Hot start Stop Program clear Download Stop Initial start Prograrn clear Start Hot start Upload Error Info Close Help Upload Error Info Close Help PEELE
3. The module is registered 1 8 Section 1 Creating a New Project 1 2 System Configuration Definition In the same manner register a 16 point transistor sink type output module type NP1Y16TO9P6 File Edit View Tool Help meme pmm E System structure System properties lf iislots Base NPIBS 11 ol Power AC PowerfS5 NP15 22 CPU CPU O R_SIM NP1PS 32 ii Direct Tf S station Mo 1 are Input 16points WPisl60e y iiDirect 1 0 Sx station No 2 Sink Output 16points NP1 16TOSP6 Next change the properties of the base board An 11 slot base board is registered by default Change it to a 6 slot base board so as to match the system configuration shown on page 1 6 Right click the baseboard and then execute the Properties command File Edit View Tool Help AmE Emm E Node expansion E Power AC E CPUS CPUC Delete Del FA Direct 1O imsert Ins Click here w f Direct 10 Properties Alt Enter Mo equipment Space No equipment batch setting No equipment batch release Separate GlE Ins Gombine AlE Grel Select 6slots Base from the Outline specification The Module properties dialog is displayed 5 list box and click the OK button Module properties si ee 3 x fireunt Hio Hame OK 0 F Eslots Base Cancel Outline specification Outline specication HPIBS 03 aslots Base NPIBS
4. Creating data templates Processing code Processing data Creating task info Creating initialization code af 0 Exroris 0 Warningis Wire E PS SAC When an error is found as a result of compilation you need to correct it and compile the project until no error is found SSS WEQIFLALLIIQ SPpPECLLLC LUE LUL Po Creating data templates Processing code Processing data Creating task info Creating initialization code x Error s 0 Varningisi 4 A Build A Errors A Warnings A Infos APLC Errors Clicking the Errors tab displays the details of the error AS Illegal data type of operand ccu data type TIME Operand data typ Double clicking error contents shows the error location in the main window Al gt yh Build A Errors A Warnings A Infos A PLC Errors Multi User 1 29 Section 1 Creating a New Project 1 7 Downloading a Project Download the project to the SX simulator after compilation completes lt Operational procedure gt Start the SX simulator first Click the SX simulator in the D300win program menu to start the SX simulator EF Backup Utility ay File Divide amp Merge Motes on use lt a Static analysis ey S7 Control Utility Wio Sx simulator E Se Programmer Expert DS00win F S Programmer Expert DS00win Help cai System Software Utility ti Ti AMp Property Vine
5. ANA Pi User FBs are displayed in green default color In the same manner paste the FB flick_1s on the code worksheet and create the following circuit AWA P11 z l _LAMPUOL flick_1s_1 The circuit above is created by changing the flicker and annunciator circuits created in the Section 2 to FBs Therefore it operates in the same manner naturally The circuit above shows you which variables are input or output at a glance The MICREX SX enables you to make frequently used circuits into FBs and reuse them with ease Section 3 Creating a User FB 3 4 Compiling and Checking an FB The local variable worksheet and global variable worksheet of POU LADDER are as shown below lt Local variable worksheet gt Variable Datatype Usage Comment Ares amp Default fons STON p me P Cjineut or Sowo cout O feon _ OUTPUT BOOL ON OFF _circuit OK20 0 Ti cy TIME VAR Timer current value y O PNAP O ANAP sensorn Boo vareae S sto saor Boo varter SSS cew Boo vareae m poo eena O Pamen oo vereen OO lt Global variable worksheet gt The variables connected to the terminals of the FB are changed into global variables o Variable Datatype Usage Comment Ares E Global_ Variables Jsensornot BOOLVARGLOBAL LJstop_swot BOOL sVARGLOBAL S osm poo warea OOOO S o Demm oo Wara OOO O O O o o SSS Peen eoo warea OOO O O O O o Compile and downloa
6. Create Global Variables From Externals Update External Variables From Globals Properties The confirmation window shown below appears Clicking the OK button deletes PROG2 flick_1s from the default task X Programmer Expert D300win E X la Physical Hardware TON El a C58 MICREXS i fala System Detinition c 1 1 J Remove program PROG_2 from task i a ARSIM SX SIM 5j al Tasks cancel Beg Oe AUCT Deru l Beene o PROG i LADDER S O PROG_3 ANA F1 id Ee Global Varables ST O_ Configuration Brae A System_Definitioni Local In the same manner delete PROG_3 ANA_P1 as well eee Physical Hardware EI a C_S MICREXS beeen Eli System Definition eal RASIM 5x _ SIM a a Tasks Sas mE PROG 1 LADDER Kaa E Global_Yarnables Bt ST IO_Configuration Besa A System Detinition Locall 3 Section 3 Creating a User FB 3 4 Compiling and Checking an FB After you change the POUs to FBs and delete them from the task compile the project When compilation is completed assign the created FBs to the POU LADDER and check the operation lt Operational procedure gt Execute the Make command in the Build menu to compile the project AlE FS g Compile Worksheet Shift F9 Rebuild Project Chrl F9 Stop Compile Go to Next Error Chi FizZ a0 to Previous Error Shiht tF lz Build Cross References Fiz When compilation is compl
7. Insert te Append T Exclude from compilation After setting all necessary items on the Insert dialog click the OK button The POU ANA _P1 is assigned to the task as shown below i ga Physical Hardware Egy C Sx MICREXSX vee fal System Definition i ag ASIM Sx SiM Bea Tasks Sy DEFAULT DEFAULT O PROG_1 LADDER Assigned ANA_P1 CC eae olf Global Variables E IO Configuration an FA System Definition Local Next compile the project with the Make or Rebuild Project command in the Build menu After compilation is completed download the project to the SX simulator After the project is downloaded display the code worksheet and click the Debug on off button to monitor the operation 2 12 Section 2 Inserting a POU 2 6 Checking Operation lt Operation of annunciator circuit gt 1 If CHK is turned ON SEN_IN eal BZ and LAMP turn ON O03 SEM _ IM POUT 1s LAMP 2 If CHK is turned OFF and SET_IN is turned ON SENIN STOP Bz BZ remains ON LAMP blinks 003 SEN IN pouT i 2 13 section 2 Inserting a POU 2 6 Checking Operation 3 If STOP_B2Z is turned ON from the state of 2 SEM _ IM STOP BZ BZ turns OFF LAMP stops blinking and turns ON 003 SEN_IN P OUT 1s By turning ON and OFF each input element on the online dialog check the operation of the circuit
8. Cancel Usage Local Variable Groupe Select BOOL var I RETAN Default Help for a contact Data type JBOOL Global Variable Groups Initial value El Physical Hardware H a CO Address 2041 0 0 Comment Show all variables of worksheet Contact Coil Contact C Coj Type E For the address assigne bit 0 of the input module After setting all necessary items click the OK button The variable INPUT is assigned to the contact agi IMPIT COOL lt I O Address assignment gt Sy il L 1X1 0 0 to 1X1 0 15 QX2 0 0 to QX2 0 15 For more information about I O address assignment refer to MICREX SX User s Manual Instructions FEH200 In the same manner assign a variable OUTPUT and address QX2 0 0 to the coil agi INPIJT DIJTPUT 1 20 Section 1 Creating a New Project 1 4 ON OFF Circuit and Timer Circuit Next connect a variable real address and constant set value of timer to each terminal of the timer FB For function blocks and functions terminals on the left are inout and the ones on the right are output Connect the following to each terminal of the timer FB Timer activation input BOOL type TON 1 Timer output Up bit BOOL type For more information about the timer FB refer to MICREX SX User s Manual Instructions FEH200 Timer set value Timer set value TIME type TIME type D
9. Outline specification list box Module insert ei E E i x Ses bus station Mo fireunt Ho DC AC Input 16points Cancel Module attribute type Outline specification Baseboard unit type module Outline specification NPT BOB Me DC AC Input 1 6points NPT BOF DC Input 1 6points DC4e f Block type module NPT S206 y DC Input 32points NPTAE4DE DC Input 64 points Board type module NPIM3206 4 High Speed DIC Input 32 NP10810 AC100 Input 8paints NP11610 AC100 Input 1 a Type MP7 606 4 No equipment Parameter Individual ype module TRE Help Insert position Inser Addition Module group type CFU Function Processor link C Communication Direct 1 0 Power 10 master Baseboard f Slave Optical link C Remote 1 0 Other Consumed curent n4 35 On the Module insert dialog register a module and its SX bus station No The SX bus station numbers are usually assigned in order of 1 2 3 from the right side of the CPU module Select a module group type from the Module group type box and a module from the Outline specification list box After selecting a module and checking the SX bus station No click the OK button 15 x File Edit View Tool Help mm E El AR System structure fave System properties S A tislots Base NPIBS 11 bus Power AC PowerlS5w NP15 22
10. flick_1s gt FB flick_1s has no input terminal Only an output terminal that outputs ON OFF at one second intervals is contained Variable Datatype Usage Comment Adress int RETAIN Defautt Ros NAR TT four acon var A A S A oms poo ara T Note P_OUT_1s to become an output terminal is a global variable on the source project The output terminal is not a variable therefore delete the declaration of the global variable Variable Bata ype TATA Comment O Global Variables ah VERIGLOBAL __ P_OUT_1s AAIE Variable Datatype Usage Comment Address int RETAIN 2 Defautt Oe re tout aoa a Mors a han cor A CT Select VAR_OUTPUT for the usage 3 5 Section 3 Creating a User FB 3 2 Changing a POU lt Variable worksheet of FB ANA_P1 gt In FB ANA_P1 variables that were assigned to input addresses and used as global variables are changed into input terminals and variables assigned to output addresses are changed into output variables lt Variable worksheet of the source project gt Taste Tate Spar pa Na o faus Boo O WARO O O O OUT 1 OL VaR EXTERRASL Men e e E en eoo we o fa O l Input terminals ses poo var ten l es E E E T E Jax e a A E me o var azn l 7 Output terminals C cc A These address have already been deleted lt Variable worksheet of the current project LIB01 gt vaatie Dataype Usage 7 oommen
11. 06 Bslots Base Module attribute type Baseboard unit type module Parameter Individual ype module Help FLEE NPIBS 08 slots Base HPITBS 085 dslots Base with Sta NPIBS 11 11slots Base f Block type module Board type module NPIBS 115 NPIBS 13 T1slots Basefwith Sta 13slots Base Module group type CPU Function Processor link Communication Type Direct v0 C Power NPIBS O6 Ho equipment C 0 master O Beede Consumed curent n4 f Slave i Opticallink Consumed Supplied curent C is Remate i ther a7 460 1 9 Section 1 Creating a New Project 1 2 System Configuration Definition 1 2 2 I O group setting In this process it is set which task of which CPU controls the I O modules modules that have input output memory registered in System_ Definition Without this setting it is not possible to use addresses of I O modules in application programs lt Setting procedure gt Right click the CPU on the system configuration definition screen and then execute the Properties command File Edit View Tool Help meme Emm a FA System structure System properties 6 H slots Base NP1BS 06 CPL CPL O FA Direct 1 0 5X fl Direct O S Delete Insert Hode expansion Click here Properties Ho equipment No equipment batch setting No equipment batch release Separate Alk Ins Gombine
12. 244 Section 3 Creating a User FB This section explains how to make the POU flick_1s and ANA_P1 created in Section 2 into function blocks 3 1 Creating a Library Project Prepare a library project a project in which user FBs are collected from the current project created in Section 2 by using the Save Project As Zip Project As command lt Operational procedure gt Open the project created in Section 2 CN i S4 Programmer Expert D300win basicO523 o X NAE EEE A eo File Edit wiew Project Build Online Extras Help Osna Belo cleo lmaNleBeles e ean ef iis Ma ts es Seo om ae e om ce Ee fae fee S pe eo a oh p aA et Project Tree Window E J Project basicO523 E Libraries E Data Types B E Logical POUs E E LADDER fl B fick_1s E E ANAFI ay Physical Hardware CSX MICREXSH H System_Definition E ga ASIM SX SIM f g Tasks oof Global variables IO Configuration i FA System Definition Locall Variable lina tre AA No properties available Property wi HA Samp For Help press Fl F gt 26B 4 Execute the Save Project As Zip Project As command to display the Save Zip project as dialog Enter a file name project name and click the Save button Save Zip project as x Save ir Projects de fe c Ez Sample esw demont ae Sample mwt basicOs23 O Sampleoi OP demol427 mut csv
13. Alt Eel Object properties Module properties CPU Ho Circuit o Name Resource name c F_SIM Cancel Outline specification Outline specication MP1 PM 256E SPH2000 256E NPT PM 48F SPH2000 48F NP PM 48E SPH2000 48E HPIPS 245 High Performance CPU HPIPS 117 High Performance CPU MPIPS 4 High Performance CPU HPIPS 32 High Performance NFP1FS 32 T No equipment Module attribute type Click here Baseboard unit type module Individual ype module f Block type module Board type module Module group type f CPU Function Processor link Communication Direct 1 0 Power C VO master C Baseboard f Slave i Opticalllink C Remote i Other Type Consumed curent n4 200 Click the Parameter button on the Module properties dialog The CPU parameter dialog is displayed shown on the following page Section 1 Creating a New Project 1 2 System Configuration Definition Register the I O modules to each task of the CPU In this example the Standard setting function is used All the I O modules are assigned to the DEFAULT task Click the Standard setting button CPU parameter 40 group setting Fail goft operation setting Click here Level Standard setting 10 List Input select Input for referring output value pe Direct
14. E LADDER Physical Hardware y CSX MICREXS FA System _ Definition o ga R_SIM SX_SIM f g Tasks oof Global Variables IO Configuration A Sustem_Detinition Local properties available PLC Errors For Help press F1 F s2ce 4 Click the Save Project As Zip Project As command in the File menu on the menu bar of D300win to display the Save Zip project as dialog Save Zip project as x Save ir Projects d E re Er aie01 EB amagd2 7 mat S LIBO mvt basico427 Projecto eM hasico427 mwt S Project met basic 0518 O Sample eM basic18 mwt eR S ampleni mwt cs _dema O Sampleoi ER esy demo mwt ER sampled2 mut demo O Sampleoz ER demal427 mwt eR sample mut demol427 work eR demo mut File name ca Save as type Project Files mvyt z Cancel Zip Option i I ip User Libraries Enter a project name here and click the Save button Zip Pagelayouts zip Backenddiode 1 3 Section 1 Creating a New Project 1 1 Project Name The project name is set The project name is changed to basic0523 i 54 Programmer Expert D300win basicO523 File Edit iew Project Build Online Extras Help oska te e aa BER ect basic0523 ef Libraries z 5 Data Types ES Logical POUs E E LADDER eee Physical Hardware H S CSx MICREXS 2 System Detinition a ASIM SSIM H E Tasks Global_Variables fe
15. Operational procedure gt First delete addresses AT specification assigned to variables in the POU that is to be made into FB Open the variable worksheet of POU ANA _P1 and delete the addresses O ve Datayre _Usege o iome OOOO p e RETAIN ET e pa pe O O e Jauxor soo va A S A A routs isco pee OOO r 7 store poo vag tt Delete these addresses jee e e A e i e T E a jie ER E E ae E E E Mo Variable Datatype Usage Comment Address Init RETAIN ii Dja poo pee S O O S 0 e A A A A pons oo papa OOOO Csen poo p A A Osos oo a S S e E C e e E S A A CS Dez poo p S O O e WSC Cewe po pe S O S r Then change the properties of the POU Right click the POU in the project tree and then execute the Properties command The Properties dialog is displayed in this example POU flick_1s El a Project LIBOT J Libraries H Data Types I Logical POU E a LADDER Insert Delete Cur Click here ne Global Yarables Ad O_ Configuration io A System_Definition Local 3 3 Section 3 Creating a User FB 3 2 Changing a POU By clicking a corresponding tab you can change the active tab window lt Name tab window gt A POU name entered here becomes the FB name as is lt Type tab window gt Select Function block for Type Name Type PLC CPU Attributes Security Reserve Use Reser
16. SSC dtSCSCess _ RETAIN BE en Wea poo Pa OOOO TOO OOO O CC e e a a E A YS fenn oo ve S y o _ storez oo wan S y o Dja oo wea S S o Cd SJPouis poo wan o y o SC De o vron S S o E a e S S sad When ANA_P1 is regarded as an FB P_OUT_1s is not a suitable name for the input terminal Change it to P_IN in this example o Variable Datatype Usage Comment Addess int RETAIN _ i Wea poo Pa OOOO CT e e e a A E A A E A E A E soz oo wane S S o a o v S S o Pn po wen oo S oo Ce o vron S S o Ys E seksi A S A A AS lt Code worksheet of the current project LIB01 gt Change the code worksheet as well LAMP 003 3 6 Section 3 Creating a User FB 3 3 Changing the Task The POUs created as programs have already been made into FBs Then delete POU flick_1s and POU ANA_P1 assigned to the task as programs lt Operational procedure gt Delete the POUs flick_1s and ANA_P1 assigned to the task First delete the program instance of POU flick_1s Seer Physical Hardware El a C_S MICREXS Boe fala System Definition Ey a RASIM Se SIM BS Tasks Eb a DEFAULT DEFAULT Bee o PROG_1 LADDER GEE PROG 2 flic Right click PROG2 flick_1s and execute the Delete command oe o PROG_3 AN ae A Global Varnables Bie id O_ Configuration oes AA System_Definition Laci Insert Delete CUE Copy Paste
17. flip flop circuit In this section create a circuit shown below TON 1 TOT TJT T 1 O01 TOT POLIT _ 1s POUT 1s i TOUT POUT 1s A lt Operational procedure gt Create a timer FB on the code worksheet of POU flick _1s Click an arbitrary point on the code worksheet to place the pointer there and paste a timer FB RTC Real time clock TOF Timer Off Delay JETON Timer On Delay HIP Pulse Double click the on delay timer FB TON Variable Properties Click the OK button Mame Scope Ok TOM 1 f Local f Global Cancel Usage Local Varnable Groups ae z RETAIN Defaut Help Data tupe TON z Global ariable Groups UEDA Physical Hardware HE CS Address Comment Show all variables of worksheet 2 2 Section 2 Inserting a POU 2 2 Creating a Flicker Circuit V A timer FB is pasted on the code worksheet Connect necessary objects variable or timer set value to the terminals of the timer FB Double click the IN terminal of the timer FB to display the Variable Properties dialog TON 1 Double click here Function Function Block Properties a Eo x TON_1 f Local f Global Cancel Usage Local Yarable Groups var E RETAIN Defaut Help Data type TON F Show all variables of worksheet Comment Function Function Block Height f2 Formal Parameters Set this checkbox to ON Nene Datatype e 1 and click the OK butt
18. i p PHE EH 1 31 Section 1 Creating a New Project 1 8 Monitoring and Checking Operation Monitor the operating status of the project downloaded to the SX simulator 1 8 1 Monitoring and checking operation on the code worksheet lt Operational procedure gt Display the code worksheet and click the i Debug on off button to enter monitor mode Program Practicet1 TUB Or I circuit 00t BOOL type data is shown in blue when it is ON and in red when OFF TRIN 1 Data other than BOOL type such as a current timer value is shown in green Turn ON the variable INPUT to check the operation of the circuit Right click the variable INPUT and execute the Online Dialog command The Debug dialog is displayed Program Practice01 TPONFOFF circuit OO1 OLITPLIT Open Object Click here Online Dialog Control dialog Open Watch Window 4dd to Watch Window onl Open Sampling trace Window 4dd to Sampling trace THU Gop w Debug Open instance Build Cross References Online Layout The target variable is indicated here Debug dialog Debug R_SIM fe x Breakpoint Setting Program clear Heset all Valuedisplay Standard Force Overnarite INPUT Value i TRUE FALSE Force Reset force Overnyrite Decimal Reset force list Hexadecimal Binary REAL values Width Precision 1 32 Section 1 Creat
19. insert a contact on the right of contact C005 Click er button and the pointer for LD branch edit mode is added to the cursor Click the left of contact C005 the starting point of OR contact and then a point where you want to paste a new object contact LOO 00 c00 Starting point EA l _ _________ lt 3 cigg Section 1 Creating a New Project 1 3 Practice Inserting a Contact or a Coil Move the cursor and click an arbitrary junction point For more information about the operation refer to Section 4 of User s Manual D300win Reference FEH257 1 15 Section 1 Creating a New Project 1 3 Practice Inserting a Contact or a Coil Tip When you click jx button a circuit consisting of a pair of one contact and one coil is created If a part of the circuit lies offscreen the size of the circuit displayed by clicking 4 button can be changed i 54 Programmer Expert D300win basicO523 LADDER LADDER File Edit View Project Build Objects Layout Online Extras Window Help JO eR amp S see l oe QQlREX bsle leanas Sml mm 85 4 A A QL 63 Se oo HE am am em ct SHY foc fee fest te to a DT Fe aA 9 g Project Tree window Project basic0523 H E Libraries 9 Data Types Ey Logical POUs ERD LADDER i LADDERT bese LADDERY ne E LADDER Se Physical Hardware H A CSK MICREXS e FA System _ Definition E ga R_S
20. system reliability Self study guide for high level language ST language used for FA User s manuals listed above can be downloaded from the following Fuji Electric FA Components amp Systems Co Ltd site In addition to them Fuji site offers various manuals and technical documents associated with MICREX SX URL http www fujielectric co jp fcs eng 1 The contents of this manual including specifications are subject to change without prior notice 2 If you find any ambiguous or incorrect descriptions in this manual please write them down along with the manual No shown on the cover and contact FUJI Revision The manual No is printed at the bottom right of the cover of this manual May 2006 FEH253 1 First edition Contents Preface Revision Contents Page Section 1 Creating a New Project c cccceseeeeseeceneeceneeeensecenseneneeeenees 1 1 FE PROC IN ANG cscs ceceec tcieesesomrec ecten E 1 1 1 2 System Configuration Definition ccccecssesseeeeceeeseeeceesseeeecceseeeseonseeeeeoanseessoeesseeseeesseseesees 1 6 12 1 Registering MoOdU lES oes erst oe cecseccecececeantegsee secs cece dayndeeueecoesacesecoosdseasecesouasioeenseeeeseemteoevesaseesace 1 6 122 VO group Setge e cat ys seuss E ower se E e S eeraa 1 10 1 2 9 Taci Ume Seli ei E E TEE EENE EE aE 1 12 1 3 Practice Inserting a Contact or a Coil asssssnnunnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn nn
21. F gt e Front runners MICREX 5X series Guide to MICREX SX Using simulator function of D300winV3 FEH253 1 Preface Thank you for purchasing Fuji Electric Programmable Controller MICREX SX Series This document is a guide to MICREX SX series conforming to IEC61131 3 international standards of programmable controllers This guide is designed to help you acquire the basic knowledge about MICREX SX series and master the basic operations of loader software D300winV3 by actually using the simulator function of D300winV3 In addition to this guide please read the corresponding user s manuals listed below which will deepen your understanding User s Manual Instructions MICREX SX series Explains the memory language and system definitions of the MICREX SX series User s Manual Hardware MICREX SX series SPH Explains the system configuration thehardware specifications and operations of modules in the MICREX SX series User s Manual D300win lt Reference gt MICREX SX series User s Manual FEH257 1 Explains the operating instruction of the LD FBD editor which is D300win lt LD FBD Editor Operations gt added to D300winV3 as new function MICREX SX series Guide to Constructing a Redundant MICREX SX System MICREX SX series Guide to ST Language MICREX SX series Explains the menu and icon of D300winV3 and all of the operations of D300winV3 Explains the method of MICREX SX redundancy system to improve
22. IM SX_SIM 22 Tasks ool Global variables O_ Configuration ke FA System Detinition Local A coil of the circuit lies offscreen 0z LADDERY 9k LADDER LA Variable properties available PLC Errors For Help press F1 40 11 F Seb 2 lt Operational procedure gt Click the Options command in the Extras menu to display the Options dialog Pagelayout Editor File Divide Merge 5 Control Utility Backup Utility Import labels Export labels Memory Card Utility 54 support setting Export variable names Import variable names Convert IL to LD FBD Static analysis shortcuts Click here Section 1 Creating a New Project 1 3 Practice Inserting a Contact or a Coil Click the Graphical editor tab and change the value of LD network width in the Default box Default value is 8 Although there is no particular unit such as mm set an appropriate value with reference to 8 For example if you change it to 4 the circuit will be displayed in half the size of default Backup Cross References Sampling trace Colors Varables Table Toolbars Commands General Build Directories Pagelayouts Debug Test editor Test colors Graphical editor Graphical editor colors Default worksheet Height 375 width fas LD network width E Contact width ji Change this value Object overlap warning time a SEC Grid wid
23. LO S station No 1 DC AC Ing ie Direct 140 5 station No 2 Sink Outpi For the tasks refer to User s Manual Instructions FEH200 A lt FAl Output select Detail gt gt lt h E All cancel Cancel Help CPU parameter 70 group setting Fail soft operation setting Levet DEFAULT z 10 List Input select Input for referring output value p Direct LO Se station No 1 DC AC Inpo f e Dyect i0 S station Mo 1 DC AC Input i Direct 170 S8 station Ho 2 Sink Outp sA lt lt F i gt Output select Detail s Dyect 10 S station Ho 2 Sink Output 1 gt M lt lt N 4 gt All cancel ow a OF Cancel Help Input modules are registered to the Input select and output modules to the Output select After determining the setting click the OK button Section 1 Creating a New Project 1 2 System Configuration Definition 1 2 3 Tact time setting In one configuration of MICREX SxX I O refresh and activation of tasks program execution are performed in synchronization with the tact time Default is 1ms however it is necessary to calculate a tact time according to the system configuration The example system in this section is a single CPU system configured with one 16 point input module and one 16 point output module Therefore the tact time can be set from 0 5ms lt Setting procedure gt Right click system proper
24. U flick_1s is assigned to the task as shown below Physical Hardware ee C Ss MICRESS an 6 System Definition 4 aq ASIM SX SIM Ela Tasks jel a DEFAULT DEFAULT E o aie de edna gg ernie pa Program instance a p eee y a eae ree BEE ROG 2 fick 1s Do ee eee lee ie Mea eens F ra Global Watiables box in which POUs are stored named PROG_2 bas ST O_ Configuration ie A System _ Definition Locall lt Order of POU execution gt POUs assigned to the same task are executed in order in which they are assigned For the example above PROG_1 LADDER is assigned first and then PROG_2 flick_1s Therefore POU LADDER is executed first and then POU flick_1s When assigning a POU to a task be aware of the assigning position order 2 7 Section 2 Inserting a POU 2 4 Checking Operation of the Created POU Check the operation of the created POU flick_1s After compiling the project and downloading it to the SX simulator check its operation by using the monitoring function lt Operational procedure gt Compile the project by executing the Make or Rebuild Project command in the Build menu a File Edit View Project Build Objects Layout Online Extras Window Help oe AIFS a2 compile Worksheet Shift F9 C ca es Shop om pile aoto Next Error abrt F lz Go to Previous Error SHIFE FEL Build Cross References Fiz Make and Rebuild Project The Make comma
25. art below Error snesor SEN_IN Operation check CHK Buzzer stop STOP_BZ Lamp output LAMP Buzzer output BZ Alphanumerics in parentheses are variable names The code worksheet and variable worksheet become as shown below lt Code work sheet gt STOP_B AUZOL mccc P OUT 1s lt Variable worksheet gt O ve Datayre Usage Comment OOOO p e RETAIN _ ta Jaume poo pr O O T e e e a S A A A omis soo papa E E e e A e T soes oo pe o a S r E e E e a T A A jee E e A e A A E e e a T A A Section 2 Inserting a POU 2 6 Checking Operation After POU ANA_P1 is created assign the POU to a task compile and download it to the SX simulator Then monitor and check the operation on D300win lt Operational procedure gt Select PROG_2 under the DEFAULT task in the project tree and press the lt Insert gt key of the personal computer The Insert dialog is displayed Physical Hardware t g C58 MICRESSA 2 BA Erstem Definition Ey RASIM Se SIM Tasks Ea DEFAULT DEFAULT gt E PROG_1 LADDER 0 eRe oof Global Variables ce O_ Configuration Les fali Systerm Detinition Local Press the lt Insert gt key with this item selected Enter an arbitrary program instance name Type Configuration ae f Resource Program type cd Task fick_Ts 0 Program instance Help Description f variables Select POU ANA_P1 Mode
26. asnetetcesadeceutitressesnaetieensouinteseckdnesaedecssiusvadessuetweweasannceituneniestceuienn 2 7 2 4 Checking Operation of the Created POU ccccsscceesceesseeeeseneeeeeceeneeeeceeseeeseeenseeseeessseessoeeneees 2 8 2 5 Creating an Annunciator Circuit sasssanansssnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn nnmnnn mnnn nnmnnn 2 10 2 5 Checking Operation ere vciecadinscccensaseasiuuitentesueseetecet dan ancsbecenvameecdanctuvenostetiy castinctevsenavwcsnenansendoenmincaneans 2 12 Section 3 Creating a User FB iissiicscccsssaveutsvevnsnccneinssestessnesssswenawesssnconsnwucwnn 3 1 ST Cieatng a Library Proj tt coers E Oa E 3 1 32 Changing a POU sseisinessonni nc ew atte ao a e a aa ai 3 3 S3 Changin th Task sissa A aE 3 7 3 4 Compiling and Checking an FB assssnannnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn nennum nnnm mnnn nenne 3 8 Section 1 Creating a New Project 1 1 Project Name When you newly create an application program using D300win give a project name to it first Name a new project with the Save Project As Zip Project As command As the first step in creating a new project or changing the project form a habit of naming a project A project name can be up to 24 characters FYI By prefixing the name of a project under development with a you can open it with ease When multiple projects exist in the Open Unzip project dialog as shown below a project given th
27. cation Module attribute type f Baseboard unit type module Outline specification Parameter MP1 PM 48E SPH2000 48E NPIPS 245 High Performance CPU Help HPIPS 117 High Performance CPU NP1PS 74 High Performance CPU NPIPS 32 High Performance CPUS Individual wpe module FTE f Block type module Board type module Standard CPUI6 Standard CPUOS Module group type f CPU i Function Processor link Communication Type f Direct VO f Power NPIPS 32 Ho equipment 1 0 master eead Consumed curent r4 ieei sa es ed t Slave i Opticalllink Remote I O f Other File Edit View Tool Help meme Emm E AA System structure fe System properties lf iislots Base NPIBS 11 i Power AC PowerfS5i NP1S ae CPL CPU O R_SIM NPIPS 32 F1 Help Tee Section 1 Creating a New Project 1 2 System Configuration Definition Modules must be registered in their mounted order Register the 16 point DC input module type NP1X1606 W so as to match the system configuration on page 1 6 Select the CPU and then click the Insert button or press the lt Insert gt key of the personal computer The Module insert dialog is displayed oi C_ SH File Edit View Tool Help meme Emm Ja E System structure a System properties iff tislots Base NP1BS 11 2 Power AC Power 3Si MPL Sone CPL i SX bus station No
28. codes can be freely laid out 1 5 1 Inserting a comment on the code worksheet Insert a comment on the code worksheet as shown below lt Operational procedure gt Place the pointer at an arbitrary point on the code worksheet where you want to insert a comment You can move inserted comments later 1 25 Section 1 Creating a New Project 1 5 Inserting a Comment Click a button to display the Comment dialog On this dialog box enter a comment Program_Practicedl Click here to change the font or size of the comment After entering a comment click the OK button The comment is inserted at the position where the pointer was placed Inserted comment Next add a comment to the ON OFF circuit Right click the left power rail and then execute the Object Properties command The Comment dialog is displayed Clink here F Object Properties 1 26 Section 1 Creating a New Project 1 5 Inserting a Comment After entering a comment click the OK button Comment x ONOFF circuit ON OFF_circuit is a comment that is added to the ON OFF circuit Therefore if the circuit is moved the comment is also moved 1 27 Section 1 Creating a New Project 1 5 Inserting a Comment 1 5 2 Inserting a comment on the variable worksheet Double click the LADDER variable worksheet in the project tree to display the variable worksheet Then enter a comment in the c
29. d the project to the SX simulator to check the operation on it ANA P11 1 _LAMPOL flick_1s_1 a If you double click the FB you can monitor the circuit in it SEW_IW TON_1 TOUT TOIT ALIKOL P_OUT_1is TOUT POT _is SEN_INM AL OL LAMP 3 10 Fuji Electric FA Components amp Systems Co Ltd Mitsui Sumitomo Bank Ningyo cho Bldg 5 7 Nihonbashi Odemma cho Chuo ku Tokyo 103 0011 Japan Phone 81 3 5847 801 1 Fax 81 3 5847 8172 URL _http www fujielectric co jp fes eng Information in this manual is subject to change without notice
30. demo O Sampleoz eR demo mut demo O work oP projectOt Tre demol427 SH amagd27 mut ESample01 mvt EF basicdS23 mwt oF sampled2 mut 2 File name LEO Save as type Project Files rovvt Cancel zip Options Zip UserLibraries zip Frontend Tode zip Pagelayouts zip Backend Tode Enter a project name here In this example LIBO1 is entered Section 3 Creating a User FB 3 1 Creating a Library Project The currently opened project is changed to LIBO1 The source project remains as is The new project has exactly the same contents as the source project A i 54 Programmer Expert D300win LIBOI See File Edit iew Project Build Online Extras Help oska mte e laa n E annae ect LIBOT H E Libraries E Data Types H E Logical POUs E E LADDER E E flick_1s E E ANA PI Se Physical Hardware CSX MICREXS System Definition i ga ASIM S_SIM f g Tasks Global_ ariables E 10_Configuration AA System Definition Locall Variable ling tr A A No properties available Property wi HA c T ra For Help press F1 Fi s266 4 How to change this project and make POU flick_1s and ANA_P1 into FBs is explained below They are still programs here Section 3 Creating a User FB 3 2 Changing a POU Change a POU currently created as a program to an FB function block lt
31. e E a C_Se MICREXSH lt Global variable worksheet gt ia AA System_Definition 5 R_SIM SX SIM EE s E eee AEN E Gtobalvaribies porns poo vao O A T E 2 ie Global Variables bed ic O_ Configuration Sie AA System Detinition Local Declare the variable type in the Usage box 2 6 Section 2 Inserting a POU 2 3 Assigning a POU to a Task Assign the created POU flick_1s to a task The created POU needs to be assigned to a task and compiled lt Operational procedure gt Select PROG_1 under the DEFAULT task in the project tree and press the lt Insert gt key of the personal computer The Insert dialog is displayed ae enone 0 8 Physical Hardware ee a C 5 MICREXS bees B System Definition Ep gay ASIM S SIM 5i va Tasks B ea DEFAULT DEFAULT Press the lt Insert gt key with this item selected oe E Global _ vances oo A O_ Configuration AR system _Detinition Local Enter an arbitrary program instance name Type Configuration ad f Resource Program type Task LADDER es f Program instance Hep Description f variables Select POU flick_1s Mode 0 Inser 0 Append T Exclude from compilation ia Check the position to insert the program instance If you select Append it will be inserted below PROG_1 After setting all necessary items on the Insert dialog click the OK button The PO
32. e Configuration ee System _ Detinition Locall 7 properties available Errors A Warnings Infos A PLC Errors Fi 32GB 4 For Help press F1 Section 1 Creating a New Project 1 1 Project Name lt Structure of project tree SPH gt The project tree that is displayed on the D300win screen is structured as follows Individual folder name or worksheet name is restricted as shown below Data type worksheet Maximum 24 characters Project Sample aT Hunne fea Libraries Maximum 24 characters Description worksheet i datal Maximum 24 characters E Logical POUs T 3 El LADDER Maximum 24 characters i LADDERT Code worksheet 3 ai LADDER Maximum 24 characters hann ar LADDER nn E ga Physical Hardware EAE CE MICRE SoA Resource 3 ids FR System Detinition Maximum 24 characters i e Task Maximum 7 characters E Global arnables Program instance Maximum 24 characters Global variable worksheet Maximum 24 characters Note The project tree for the SX simulator is slightly different from the figure shown above However you can create a program in much the same manner oject basic 523 HE Librarie E Data Types Fl Logical POUs E E LADDER li LADDERT LADDER Ey Physical Hardware t ga C Ss MICRESS H Erstem Definition t ga RASIM Se 51M Tasks Se DEFAULT DEFAULT PROG_1 LADDER a Variables exi
33. e prefix a is displayed at the top of the list of projects Open Unzip project LIB01 A MADE met Sal demo zwt basicO427 O Projecto ar DaSsic42 Te CP LEO Trak _jbasicO518 3 Sample eM basic18 Pritt oP projectOt mwt D csr demo 3 Sampleot oP esy demo mk eR sampledt wt L demo O Sampled OF demal427 mwt CB sampledZ muwt demot427 work 2 derma mwt ae Sample rw File name Files of type Project Files ruwt zw Cancel A Projects are sorted in the order of numbers gt alphabets Naturally project names beginning with a number are displayed at the top of the list However it is advised not to prefix project names with a number because there are some restrictions variable names cannot begin with a number for example Section 1 Creating a New Project 1 1 Project Name lt Operational procedure gt Click SX Programmer Expert D300win in the SX Programmer Expert D300win menu in the Windows Start menu to start up D300win EF Backup Utility E File Divide amp Merge Motes on use lt Q Static analysis Click here to start up D300win ey Ss Control Utility Ss simulator B Sa4 Programmer Expert DS00win Note If there is a project that was opened last time F S Programmer Expert DS00win Help D300win is activated with the project opened cai System Software Utility After D300win is started up create a new project first Click the New Project command i
34. ee Insert a new project in the current project tree lt Operational procedure gt Click the POU LADDER and press the lt Insert gt key The Insert dialog is displayed Enter a POU name Max 24 characters Select Program Program Function Function Block fFRD compatible f Action Iepe Use Reserve Transition t variable Mode f Worksheet Data Types Insert Description Append Datatype of retum value PLC type CPU type MICREXSX When Append is selected a new POU is added After setting all necessary items click the in the rear of the POU LADDER when Insert is OK button A POU flick_1s is inserted as selected in the front of the POU LADDER shown below Ela Project basic0523 n Libraries jia CI Data Types a Logical POUs i i LADDERS In this example a flicker circuit which turns i 0 ick 1 on and off at one second intervals is created flick 1sT Therefore the POU is named flick_1s pe flick_13 sofa flick_13 Baa Physical Hardware i ga CSX MICREXS HH Srstem_Definition 4 RASIM S SIM H B Tasks oof Global Variables 2 ID_Configuratiori Bad H System_Definition Local 2 1 Section 2 Inserting a POU 2 2 Creating a Flicker Circuit Create a flicker circuit which turns on and off at one second intervals As a general manner the circuit is created by combining a timer circuit and
35. eted try to use the created FBs on POU LADDER of program type Open the code worksheet of POU LADDER and paste the FBs Place the pointer at an arbitrary point and execute the Edit wizard command in the View menu to display the Edit wizard window Program Practicet1 ONOFF rietwork 00t INPUT gt OUTPUT TON_1 61K i0 1 oO 0 1 T 10s T1 cv Pointer Double click the FB to be pasted on the Edit wizard window to display the Variable Properties dialog When you select the created library project LIBO1 FBs created in it are displayed Yariable Properties a x Edit Wizard Group lt LIBO1 gt RANMA PTO OO F flick_1s Scope t Local t Global Cancel ANA_P1 and flick_1s Usage Local Variable Groups have been made into FBs var 7 RETAIN De o Data type ANA PT Global Variable Groups Initial value A a Physical Hardware Hga CSX Address a n OOO fll Global Variables Comment Show all variables of worksheet Section 3 Creating a User FB 3 4 Compiling and Checking an FB After selecting the FB to be used and click the OK button The FB is pasted on the worksheet as shown below Program Practice01 ONOFF circuit O01 INPUT gt QUTPLT FBs provided as system FBs timer FB of the MICREX SX series are displayed in red default color TON 1
36. he LADDER code worksheet in the project tree to display the code worksheet El a akae basicl42 a Logical POs Eb a LADDER a a LADDERT Double click here 4 pr Physical Hardware ea C58 MICREX Se Bi AR System_Detinition oe a ASIM S SIM B Ea Tasks ban ie Global Varables a id O_ Configuration bese A Spstem_Definitioni Local The code worksheet of POU LADDER is displayed Click an arbitrary point on the worksheet to place the pointer where you want to paste a circuit Click x button on the tool bar A circuit consisting of a pair of one contact and one coil is created Note Symbols above contacts and coils are variable names that are temporarily given On an actual program rename them meaningfully Select contact C000 and click tH button A contact is inserted on the right of contact C000 Select contact C000 and click ur button A contact is inserted below contact C000 Section 1 Creating a New Project 1 3 Practice Inserting a Contact or a Coil Select contact C000 and click button A contact is inserted above contact C000 coor k To create a next circuit click an arbitrary point on the worksheet to place the pointer 00i amp l LOU OO coo4 l Pointer Click x button A circuit consisting of a pair of one contact and one coil is created LOU og M ee Click 4H button to
37. ing a New Project 1 8 Monitoring and Checking Operation Check to see that TRUE is selected for the Value on the Debug dialog and then click the Overwrite button The variable INPUT is turned ON and the monitor screen becomes as shown below If INPUT is turned ON FALSE gt TRUE the symbols of the contacts o e ty are shown in red and OUTPUT is also turned ON shown in red ONOFF circuit DOL INPUT OLITPLIT TN _1 TOM 1 1 8 2 Monitoring on the variable worksheet If you display the variable worksheet in monitor mode double click the variable worksheet in the project tree you can monitor operations on it o variable Online vale Data ype RETAIN geta o Ton VaR e E reor SNIFF network woo re orror ONIOFF network oi E Erme 10 000 TME var Timer suret vas r Note You cannot monitor IN terminal timer activation input and Q timer output terminal of the timer circuit on the variable worksheet because addresses are directly specified for them 1 33 Section 2 Inserting a POU This section explains how to insert a POU into the project tree and create a program One of the features of MICREX SxX is that programs are structured so that efficiency of programming and debug can be improved To program one control dividing each function into units of POUs Program Organization Unit is the first step toward structured programming 2 1 Inserting a POU in the Project Tr
38. mnnn nnmnnn nnmnnn nennen 1 13 1 4 ON OFF Circuit and Timer Circuit cccceceeeeseeeeneeeceneeeenseeeaseeeenseeeseseeneesensesoaseecensesoneesseaas 1 18 t5 insening a Comment sesionin aa aa R E E aAA 1 25 1 5 1 Inserting a comment on the code worksheet ccccccccccsssseeceeecceeeseceeeceueueeeceeeseaeueeeeeesseseeeeeeeaeas 1 25 1 5 2 Inserting a comment on the variable worksheet ccccccsssseecccecceesseceeeceeeueeeceeeeeueeeeeeesseaeeeeeeeaas 1 28 16 Compiling a ProjeCi sirsiran ge sewed ce es at een cee aA aaa a aAA 1 29 1 7 Downloading a Project sssansnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn mnnn nnnnnn nnmnnn mnnn 1 30 1 8 Monitoring and Checking Operation sseeccsensseeeecensseeeceenseeeecenssseeeeenaseeseenasseeeeennseeeeses 1 32 1 8 1 Monitoring and checking operation on the Code worksheet c cseccceeeeceeeeeeeeeeeceeeeseeeeeseeeeees 1 32 1 8 2 Monitoring on the variable worksheet c ccccccccsssseececeeceeeseeceecauaaseeeeeesseaseeeeesseaeesesseeaeeeeseeeaaas 1 33 Section 2 Inserting a POU esssusnsnunennnennnunnnnnnnnunnnnnonnnennnennnnnnennnennnennnnnnnnan 2 1 2 1 Inserting a POU in the Project Tree cccccccesseecescenseeeeceeneeeeeeeaneeeeseaasseeseonsseeseenenseeseoenneenees 2 1 2 2 Creating a Flicker Circuit ssussusoionunonnnnnann aaa aaa a a e aa a aaa aa aa iaa aaa 2 2 2 3 Assigning a POU to a Task coast cecet
39. n the File menu on the menu bar to display the New Project dialog Eie Edit wiew Project Build Online Extras Help CP Ctrl M Open Project Unzip Project Chrl 0 Save Project 4s l dip Project 4s El Close Project ei Delete Project Save os Template Delete Template Export Import Enter password Log on Log off Save Chrl 5 Ge Save All lose E Print Ct P Ei Print Preview Frink Setup Print Project LFADS00wint Wbasic0427 mwt 2 Fs DS00win Wdemo0427 mwt Exit New Project i x MICREs S MICRES 5 MICREA 5e Training Cancel P532 PH16 PHOS MICRES 5 0 MICRES 5 0 MICRES S8 MICRES 5a Hw BOC NWO Hw 40C Nag MICRES 5 MICRESSs MICRES S4 MICRES 5 Nw 30 N20 Hw16 42C NW Oe 410 S4 simulator Select SX simulator Note For using the SX simulator it is necessary to select the SX simulator by Custom setup when installing D300win When you select Typical setup the SX simulator is not installed 1 2 Section 1 Creating a New Project 1 1 Project Name On the New Project dialog select SX simulator and click the OK button A new project Untitled is displayed The project name is still Untitled here no project name i S4 Programmer Expert D300win Untitled File Edit iew Project Build Online Extras Help Data Types ES Logical POUs E
40. nd does not compile for a POU that has already been complied and not changed Therefore the time for compilation can be shortened The Rebuild Project command compiles the whole project again Although it takes time compared with Make messages such as warning are always displayed You are recommended tocompile the project again with the Rebuild Project command when you complete creating it Try to create a project that contains no warning When compilation is completed download the project to the SX simulator Click the Project Control Dialog button to display the R_SIM dialog When the PLC is running click the Stop button to stop the PLC Hot start Download Upload Error Info T Frogram clear Start Hat start Download Upload Errar Info Close Help Bootoroject Download Achy ate lear T Include Bootproject Include Sources Download ip File Include User Libraries Include Pagelayouts T Include Backend Code lear ip File on Target 2 8 Section 2 Inserting a POU 2 4 Checking Operation of the Created POU Clicking the Download button downloads the project to the SX simulator and displays the R_SIM dialog Click the Start button to activate the program Prograrn clear Start Hot start Download Upload Display the code worksheet and click the Debug on off button to monitor the operation TON 1 TOJT TJT THI F_OUT_1
41. omment box on the variable worksheet El Project basicl42 ef Libraries Beene Data Types S Logical POWs ier F LADDER Double click here ooo A LADDER eal Physical Hardware ci D Ss MECRES A AR System_Definition o E RS5IM SA col he i E A Global Variables La ST 10 Configuration A System_DefinitioniLocal Enter comments here o Variable Datatype Usage Comment Z Address int RETAIN EE T TE Cpo po pa mesme o e a E a e SSCs omn poo va fowo ron oeoo O E e a S Timer_ourertvaue S A A eooo 1 28 Section 1 Creating a New Project 1 6 Compiling a Project When you complete a project compile it By compilation only data necessary for program execution are encoded lt Operational procedure gt Execute the Rebuild Project command in the Build menu on the D300win menu bar 2 File Edit wiew Project Build Online Extras Help H Make F9 ify Patch POU AlE HFS Click here Shift Fo Ctrl F9 ge Compile Worksheet Rebuild Project Stop Compile 50 bo Next Error Chri Flz aa bo Previous Error ShiFE F 12 Fl Build Cross References Compilation of the project starts Results of compilation are displayed in the Message window Building instance tree for RESOURCE R_SIM 5 5 Generating specific Code for CONFIGURATION C_5X SSS Generating specific Code for RESOURCE R_SIM
42. on IN BOOL IE Delete PT TIME C O ae BOOL m E Duplicate ET TIME O O The IN terminal is changed into a negated terminal 2 3 Section 2 Inserting a POU 2 2 Creating a Flicker Circuit Connect variable TOUT to IN and Q terminals of the timer Double clicking the IN terminal of the timer FB the outside of the FB displays the Variable Properties dialog Enter TOUT in the name box select BOOL for the data type and then click the OK button Yariable Properties es Mame Scope JTOUT f Local Global Usage Local Variable Groups VAR RETAIN Defa 0 Data type JBOOL Global Yarnable Groups Initial value o Physical Hardware g CS Address Comment Show all variables of worksheet Variable TOUT is connected to the IN terminal of the timer as shown below TOM 1 TOUT Select variable TOUT connected to the IN terminal drag it while pressing the lt Ctrl gt key and connect it to the Q terminal TOR_1 TOM_1 ms gt nl Drag variable TOUT while pressing the lt Ctrl gt key Section 2 Inserting a POU 2 2 Creating a Flicker Circuit Enter a timer set value into the PT terminal Double click the PT terminal and directly enter a constant in the name box on the Variable Properties dialog After entering it click the OK button TOR _1 Double click here Yariable Properties eX
43. ouble click the IN terminal of the timer FB to display the Variable Properties dialog Double click here TOM 1 IN To directly specify an address enter a real address here Yariable Properties Hame Scope 11 0 1 it Local i Global Cancel Usage Local Variable Groupes var z F RETAIN Deiat H g Help Data type BOOL Global Yanable Groups Initial value lg Physical Hardware Fg CSx Address Comment Show all variables of worksheet Directly enter an address IX1 0 1 in the Name box and click the OK button The address is connected to the terminal as shown below TON 1 Connected real address VolX 1 0 1 1 21 Section 1 Creating a New Project 1 4 ON OFF Circuit and Timer Circuit Note If you click other positions on the terminal a different dialog is displayed TON _1 If you click around here Lb The Function Function Block Properties dialog is displayed Function Function Block Properties TON 1 f Local e Global Cancel Usage Local Yarable Groups var RETAIN Delai Help Data tupe TON ha D Show all variables of worksheet Comment Function Functon Block Height i 2 Formal Parameters 3 BOOL Delete TIME EDOL Duplicate TIME In the same manner assign a real address QX2 0 2 to the OUT terminal of the timer FB TOM 1 wali 0 1 og 1 1 22 Section 1 Creating a Ne
44. s P_OUT_1s TOUT PoOUT_1s Check to see that variable P_OUT_1s turns ON and OFF at one second intervals 2 9 Section 2 Inserting a POU 2 5 Creating an Annunciator Circuit In the same manner as in POU flick_1s create a POU of annunciator warning operation lt Operational procedure gt Click POU flick_1s in the project tree and press the lt Insert gt key to display the Insert dialog Cancel Language Help Program oll Function ae SFC 5 Function Block LO FBD 2 compatible LD FED f Action Use Reserve Transition Mode Insert i variable O Data Types f Worksheet Description Append Datatype of retum value PLC type CPU type MICREXSX Sx_SIM After setting as shown above click the OK button El a Project basicQh23 C Libraries E Data Types S Logical POs fff LADDER H D flick_1s POU ANA P1 is inserted on i ANA PIT ha oS ANA PTY ooo GA ANA PI Physical Hardware ee a CoS MICREX SS an AA System_Definition a a ASIM Se SIM n a Tasks R ZE Global Yarnables ba H O_ Configuration Sosa A System _ Definition Locall 2 10 Section 2 Inserting a POU 2 5 Creating an Annunciator Circuit lt Operation of annunciator gt The annunciator circuit has various operation patterns In this example create a circuit that operates in a pattern shown in the time ch
45. st under the global variable worksheet 0 Confiauraton however they are not actually used lIO_Configuration and System_Definition Local cia p System Detfinition Local Section 1 Creating a New Project 1 2 System Configuration Definition For MICREX SX series it is necessary to register a base board and modules such as power supply CPU and I O to be used so as to match the actual hardware configuration This paragraph explains how to define system configuration using the system configuration shown below as an example lt System configuration gt 6 slot base board CPU module Transistor sink type output 16 points Type NP1BS 06 Type NP1PS 32 Type NP1Y16TO9P6 C T i Vacant slot al Power supply module Input 24V DC 16 points Type NP1S 22 Type NP1X1606 W lt Setting items necessary for system configuration definition gt Registration of modules to be used gt See Section 1 2 1 I O group setting gt See Section 1 2 2 Tact time setting in the system properties gt See Section 1 2 3 1 2 1 Registering modules Register modules so as to match the system configuration above lt Registration procedure gt Double click System_Definition in the project tree to display the system configuration definition screen loxi a E Data Types File Edit Yiew Tool Help Fly Logical POUs mm me E B LADDER Double click here Kja pakad oe Ph
46. th Use contact size User defined Height a Create FBAFUs with Pictures No Pictures Centered Optimized W Mark LD line junctions Bold Font I IEC comments I Functions with EN ENO Ladder editor Network block height Column Width Frefis Contact Coil E Start value fo Prefix M ariable p Start value jo Cancel Apply Help After determining the setting click the OK button The change will take effect from the next programming lt Set value and circuit size gt l ie LD network width 8 ii LD network width 4 i CIANI on a LD network width 2 Section 1 Creating a New Project 1 4 ON OFF Circuit and Timer Circuit This paragraph explains how to create an ON OFF circuit and timer circuit on the POU LADDER code worksheet lt A circuit to be created gt oo1 INPUT OUTPUT ON OFF circuit TON 1 l Timer circuit IX1 0 1 QXD 1 T 105 Tes lt Operational procedure gt Create an ON OFF circuit Move the cursor and click an arbitrary point on the worksheet to specify the starting point of the circuit Then click fe button An ON OFF circuit is created agi c i ae On the graphical editor objects such as contacts and coils can be freely laid out they can be moved to any position When you select coil C001 and the right power rail and drag them to the left the circuit can be smaller as shown below odi COO0 Then insert a
47. ties on the system configuration definition screen and then execute the Properties command File Edit View Tool Help AmE ocala i La System structure System progai lots Mode expansion me ae Delete CPU E Insert a Properties io equipirent Wo equipment batch setting Wo equipment Gatch release Separate Alet Ins ombine Ale The System properties dialog is displayed Set SX bus tact on the System Running Definition tab window System properties System Running Definition Redundancy setting Fail soft operation setting Ses bus tack Default value 1 Ome Waiting time for structure check all Click here and select the tact time rm Select initialization method Execute memory diagnosis C Onnit memory diagnosis Start up system without CPU O ie OFF ON In this example select 1ms Clicking the OK button displays the confirmation window shown below Click the Yes button to complete the tact time setting Tack time is changed es The cyclic time of FIXED CYCLE task might not be integer twice tact time Yes Mo Exit anyway Note The SX simulator operates at 20ms fixed even if 1ms is selected here Section 1 Creating a New Project 1 3 Practice Inserting a Contact or a Coil Let s master the operation of D300win so that you can create an LD circuit shown below with ease lt Operational procedure gt Double click t
48. timer circuit Place the pointer at an arbitrary point and execute the Edit Wizard command in the View menu The Edit Wizard window is displayed a2 File Edit View Project Build Objects Layout Online Extras Window Help Project Tree Window Shift ES Message Window Ctrl F Click here Edit Wizard Shift F2 fad Cross References Window Alk F2 Watch Window Alt F10 l Sampling trace Alt F1 1 nmo A Property Window Chri ov Status Bar Open Variables Worksheets JI ATC Real time clock TOF Timer Off Delay ETON Timer On Delay IF Pulse When you select Timer FB from the Group list box only FBs related to the timer are displayed 1 18 Section 1 Creating a New Project 1 4 ON OFF Circuit and Timer Circuit Double click an FB to be pasted to display the Variable Properties dialog Clicking the OK button pastes a timer FB on the code worksheet Yariable Properties t Local P Global Dit ooo Timer FB On delay timer Assign variables to the contact and coil of the ON OFF circuit First double click contact C000 to display the Contact Coil Properties dialog Double click here 1 19 Section 1 Creating a New Project 1 4 ON OFF Circuit and Timer Circuit On the Contact Coil Properties dialog enter a variable name and specify a real address assigned to the variable Enter a variable name Contact Coil Properties es i Local Global
49. uctions FEH200 Basic data type elementary ANY_NUM number type ANY_REAL real type gt REAL ANY_INT integer type gt INT DINT UINT UDINT ANY_BIT bit type gt BOOL WORD DWORD Character string type gt STRING ANY_DATE date type gt DT DATE TOD Time type gt TIME 1 23 Section 1 Creating a New Project 1 4 ON OFF Circuit and Timer Circuit Connect a variable T1_CV to the timer current value terminal ET Double click ET terminal to display the Variable Properties dialog Enter a variable name T1_CV in the name box and select TIME for the data type TOM 1 wlx 1 0 1 Q20 1 T 10s ET 0 Variable Properties x Hame Usage VaR E C RETAN Data type Mme o Global Variable Groups Initial value l a Physical Hardware Hga C_S3 Address _ Comment D Show all variables of worksheet After setting all necessary items click the OK button The variable is connected to the terminal The code worksheet and variable worksheet become as shown below lt Code worksheet gt lt Variable worksheet gt 001 INPUT OUTPUT pa o ee NPT Booka ot 00 46009 0 0 TOM 1 wT 10 1 OK2 0 1 T 105 Ti cy 1 24 Section 1 Creating a New Project 1 5 Inserting a Comment This paragraph explains how to insert a comment on the created code worksheet and variable worksheet On the graphical editor code worksheet of LD language comments and program
50. ve POU types Program Function f Function Block Return Datatype ha Cancel Apply Help lt PLC CPU tab window gt Select lt independent gt for CPU Type Name Type PLC CPU Attributes Security FLC Type MICREXS Cancel Apply Help lt lt FYI gt gt About FB name Since the POU name becomes the FB name as is you need to give a name with care FB names should be determined such that the user can imagine how the FB works from the name Section 3 Creating a User FB 3 2 Changing a POU After setting all necessary items click the OK button The POU is changed into FB type Icons for the FB type is as shown below lt Program type POU gt Bea Project LIED i Libraries Look at the shapes of the icons gt ad H ANA P1 2 Hardware CS MICRESSH on AP System Definition cy 2 ASIM Sx SIM m g 83 T A Global Variables ts Ad O_ Configuration as A System_Definitioni Local lt FB type POU gt E a Project LIBO1 Bees a Libraries Penes Data Types a Logical POs oe E ANA F1 hga Physical Hardware ea Cos MICREXS amp ili Sustern Definition E 33 P_SIM SX_SIM off Global Variables ic O_ Configuration bose AA System Definition Local Next to determine terminals of the FB change the variable worksheet lt Variable worksheet of FB
51. w Project 1 4 ON OFF Circuit and Timer Circuit Connect a timer set value constant to the timer set value terminal PT Double click PT terminal and directly enter a timer value in the Name box on the Variable Properties dialog TOM 1 wlx 1 0 1 Vole nE i Yariable Properties Oog x Mame SCOPE TH Os f Local f Global Usage Local Warnable Groups var RETAIN Peat e Data type TIME z Global Variable Groups Initial value o Physical Hardware Hg CSN Address Comment Show all variables of worksheet A TIME type variable or constant can be connected to the timer set value terminal In this example enter T 10s Set value 10 seconds For more information about how to describe constants of each data type refer to User s Manual Instructions FEH200 After determining the setting click the OK button The set value is connected as shown below TON_1 w101 Vole OL T 105 lt Data types of variables and constants dealt with in MICREX SX gt As you know MICREX SX series of programmable controllers conform to 1EC161131 3 Under IEC it is necessary to specify data types for all data dealt with in applications For example the data type of timer set values and current values must be TIME type MICREX SX supports the following 13 indicated in red of basic data types defined in IEC For more information refer to User s Manual Instr
52. ysical Hardware A E a C Ss MICRESSA FA 2 System Cetinition Siiil Lislots Base NP1B5 11 ea ALSIM s SIM Power AC PowerlS5w WP15 22 H A Tasks CPU CPU O R_SIM NPIPS 117 z Global Variables O_ Configuration baie A System Detfinition Local F1 Help Initially an 11 slot base board AC input power supply module 35W and NP1PS 117 the target CPU for CPU simulator are registered Section 1 Creating a New Project 1 2 System Configuration Definition First change the target CPU A high performance CPU of 117K steps type NP1PS 117 is registered by default In this example change it to a high performance CPU of 32K steps type NP1PS 32 Right click the CPU and then execute the Properties command The Module properties dialog is displayed File Edit View Tool Help meme Emm E AA System structure System properties El ffff 1tslots Base NP165 11 p PE CPL CPU O F paia E EA EF Hode Expansion Delete Del Insert Ins Alt Enter Click here Properties Ho eguipnmemt Space No equipment batch setting No equipment batch release Separate Alk Ins ombine Altel Select NP1PS 32 High performance CPU32 from the Outline specification list box on the Module properties dialog Module properties ee a x CPU Ho Eircuit Ho Name FResource name oK O F_SIM Cancel Outline specifi
Download Pdf Manuals
Related Search
Related Contents
1.開催日程 2.大会スケジュール(予定) Nokia 6700 Cell Phone User Manual SITESEED - Departamento de Engenharia Informática TABLE DES MATIRES Consulter le Manuel - Lacrosse Technology Omni 848 Manuale di Installazione Personal Mixer Hub User Guide 3 - Services Manual - Nexen Europe 「ヒートポンプの性能表示に関する公開質問状 Copyright © All rights reserved.
Failed to retrieve file