Home
sigmadue CPU CU-02 Quick Guide
Contents
1. Sigmadue sigmaPAC CU 02 Quick Guide 8 3 Ascon I O Function Blocks An undemanding and yet less efficient method of managing the CANopen network is to do things manually and having all the network in mind edit a DCF file with the rules and formats stated by CiA in the document Cia DS306 The task is made more friendly by using the Ascon I O Function Blocks FBs directly from OpenPCS programming tool Ascon I O FBs have two main purposes e Make accesses to I O modules both for read write field values and parameters configuration data e Mask the CANopen communication protocol structures and controls Ascon I O FBs are based on the standard FBs included in the communication library as described in CANopen Extension for IEC61131 3 User manual Edition March 2005 Systec Electronic most of which are compliant with the CiA specification CiA Draft Standard 405 CANopen Interface and Device Profile for IEC61131 3 Programmable Devices version 2 0 The I O accesses are made by CANopen Master agent that is resident on the CPU To make it easy the CANopen master uses a series of basic Function Blocks such as Send Receive SDOs PDOs etc By the way these FBs are also used by the more structured ASCON I O FBs Nev ertheless the User may want to use the basic FBs The user can find it in the standard OpenPCS libraries of FBs We recommend however the use of ASCON I O library of Function Blocks 1
2. sigmadue CPU CU 02 Quick Guide 012 S E R ES Quick Guide Q G Sigmadue CU 02 1a 09 12 Cod J30 478 1ACQGS2E Copyright 2007 2008 ASCON spa All rights reserved No part of this document may be stored in a retrieval system or transmitted in any form electronic or mechanical without prior written permission of ASCON Spa ASCON has exercised care in preparing this book and believes the information contained within to be accurate The ASCON Products are subjected to continuous improvement in the pursuit the technological leadership These improvements could require changes to the information contained within this book ASCON reserves the right to change such information without notice ASCON makes no warranty of any kind expressed or implied with regard to the documentation contained in this book ASCON shall not be liable for any incidental and consequential damages in connection with or arising out of the use of this book sigmadue gammadue and deltadue are trademarks of ASCON spa All the other tradenames or product name are trademark or registered trademarks ASCON spa Via Falzarego 9 11 20021 Baranzate Milano Italy Fax 39 02 3504243 http www ascon it support ascon it Prerequisites Using this manual Current Documentation on the Internet Chapter 1 Hardware Installation Mechanical installation 1 1 1
3. also included See Licence Editor for how to insert a licence key If you did not receive a hardware driver nor a licence key OpenPCS is still fully functional but restricted to SIMULATION Installations to substitute drives are not supported by Windows XP Starting OpenPCS With Windows started choose Start gt Programs gt infoteam OpenPCS 2008 gt infoteam OpenPCS 2008 this will open the Framework Chapter 4 ASCON target cab file Installation 4 1 Configuring OpenPCS In order to work with the Ascon CPU target you must install in OpenPCS a cab file The file Ascon sigmadue Lxx Hyy zzzz cab contains all the files describing Ascon sigmadue Hardware drivers examples and utilities xx yy and zzzz are digits to identify the software version In the OpenPCS Extras menu select tools Driver install Select the desired cabinet e g Ascon sigmadue L13 H7 2009 cab then Install OpenPCS Add Driver Utility Show target drivers From directory C Programmi infoteam Software OpenPC52006 Openpcs 520 0EMCAB fal Available target drivers Iv Show details OEM Name Description version Fiepath ASCON Sigma Driver for Ascon PAC 5 2 IC PROGRAMMININFC Please select a driver cabinet File you wish to install Figure 4 1 OpenPCS OEM Driver Installation Chapter 5 PC Ethernet port configuration In order to communicate with the ASCON CPU you have to set the IP address and subnet m
4. era di Sie tag ADAM ee nee ead Appendix A Reference documents 17 17 18 19 Prerequisites The products described in this manual should be installed operated and maintained only by qualified application programmers and software engineers who are almost familiar with EN 61131 3 concepts of PLC programming automation safety topics and applicable national standards This quick guide gives the first principles of use for the ASCON sigmaPAC system To start programming you need this guide a PC the OpenPCS programming suite and at least the sigmadue CPU module There can be three possibilities about your hardware and software 1 2 Use the sigmaPAC demo box In this case you have all the things you need Just install OpenPCS on your PC and connect it to the demo box Use sigmadue CPU alone In this case you should provide A power supply of adequate characteristics An Ethernet CAT 5 cross cable e g ASCON part AP S2 CABLECUPROG The service port serial cable e g ASCON part AP S2 CANBLECUCONF Use sigmadue CPU with some I O modules in this case you should provide A power supply of adequate characteristics and power An Ethernet CAT 5 cross cable e g ASCON part AP S2 CABLECUPROG The service port serial cable e g ASCON part AP S2 CANBLECUCONF A CANopen cable for each connected I O module e g ASCON part AP S2 LOCAL BUS152 A CANopen terminat
5. 2 3 4 5 6 7 8 9 Appendix A Reference documents OpenPCS 5 4 4 User Manual IEC 61131 3 Programming Industrial Automation Systems Karl Heinz John Michael Tiegelkamp Springer CANopen Extension for IEC61 131 3 User manual Edition March 2005 Systec Electronic CiA DS 405 V2 0 CANopen Interface and Device Profile for IEC61131 3 Programmable Devices CiA 301 DSP V4 1 CANopen application layer and communication pro file CU 02 Installation manual code J30 658 1ACU 02 E CU 02 User manual code J30 478 1ACU02 E sigmadue 1 0 modules Installation Manuals DI 16LV DI 32LV DO 04RL DO 04TX DO 08RL DO 16TS DO 16TP DO 32TS Al 02UI AI O8HL AO 08HL DM 08TS DM 16TS sigmadue I O modules User Manuals DI 16LV DI 32LV DO 04RL DO 04TX DO 08RL DO 16TS DO 16TP DO 32TS Al 02U1 Al 08HL AO 08HL DM 08TS DM 16TS 10 Ascon Firmware Function Block Library 11 IEC 61131 3 Function Block Library 12 O Function Block Library Sigmadue sigmaPAC CU 02 Quick Guide 20
6. I switch to E all the module service LEDs should flash Sigmadue sigmaPAC CU 02 Quick Guide 5 Turn the Power OFF Now configure Node ID 6 Set the HI and LO switches to the desired valid Node ID following the table 7 Turn the Power ON To configure the Node ID only just start from step 6 Note The default Node ID for the CPU module is 32d Chapter 3 OpenPCS Programming Suite Installation The OpenPCS programming suite from Infoteam is provided on CD ROM It is also available online at www infoteam de 3 1 Installing OpenPCS 3 1 1 3 1 2 3 1 3 Hardware and Software Requirements OpenPCS requires a PC with at least Pentium Il 1GHz 512 MB RAM 16 GB of free disk space CD ROM and 1024 768 resolution Windows 2003 Server Windows XP SPII or Windows Vista 32bit Installation OpenPCS is provided on CD ROM The CD auto starts a screen where you can select the software you want to install If auto start is not activated or does not work please start the lastdistributed OenPCS programming tool version e g OpenPCS Ver 631e exe file available in Xx SETUP folder X is the letter assigned to the CD ROM drive in your PC At the end of the installation you will be asked if you want to install hardware drivers If drivers were provided with your PLC enter the path to the hardware driver otherwise click Exit If drivers were received for your PLC a license key for OpenPCS was
7. Installing and Removing modules ElSCIIGAMMSTANALON paa Re AI AN RS NANG ng BP c 1 2 1 Connect the communication cables 1 2 2 Connector A connections 1 1 1 2 Chapter 2 Node ID and Baud Rate Configuration Chapter 3 OpenPCS Programming Suite Installation Installing OpenPCS mga paaa kt bA dde encres das 3 1 1 Hardware and Software Requirements 3 1 2 Installation anG dorer en Le ans 3 1 3 Starting OpenPCS 4 issu Seaver ns den haaha 3 1 Chapter 4 ASCON target cab file Installation Configuring OpenPCS Lise sate anaana Ne nee Re ee Beat 4 1 Chapter 5 PC Ethernet port configuration Chapter 6 OpenPCS Set up 6 1 OpenPCS Setup vi vi D NN ooo A Index continued Chapter 7 Getting started the first project 7 1 Creating a New project aaa Am die emits Naa test ana ees 7 2 Writing Code oes ae Cae nad Naa sean eave dia BA a Ura DA 7 3 Executing Code kua na kaka Nama nka ah a a eee be bad pn 7 4 Monitoring Code seats Bom panaman Pg DL Di BA NILA eae sees Tie ONIAS AA can Chapter 8 Working with remote I O Modules 8 1 Introduction ma hrs KAI BK Rs AGANG beak eel ed eg ed 8 2 Insert a DCF file into OpenPCS 8 3 Ascon N O F nction Blocks sisate
8. ad Symbol Table TCP Ascon Default Optimization Figure 6 2 TCP Settings The Port number and IP address must be the same as those configured at the initial CPU configuration session See the Ethernet setup menu items 7 and 2 OpenPCS environment is now ready to communicate with the Ascon target The project must be set up in order to use the CPU Setup Communication Timeout Chapter 6 OpenPCS Set up Select the Resource Properties item in the PLC menu select Ascon in the Hardware Module field then select the newly created TCP connection in the Network Connection field TCP Settings Port 1200 IP address C Computer name 192 168 5 11 J PLC uses Motorola format big endian coca Figure 6 3 OpenPCS resource Specifications The code Optimization menu allows for three choices of compilation Normal and Speed only refers to the NCC Native Code Compilation while Size only refers to the standard code Please note that the use of NCC does not permit the user to insert break points in debugging projects There are several conditions that could make it necessary to set the Ethernet Port communication timeout to a value higher than the default value This timeout checks the dialogue between OpenPCS and the target CPU When dealing with large programs it may be necessary to set a longer driver timeout The default value of 20000ms can be increased by
9. ails In a normal cabinet layout the first slot on the left is usually reserved to the CPU This comes from the fact that the CPU has just one CANopen outlet on the right end Up to 127 I O modules can be connected in chain to each CPU This value is the theoretical limit Ascon spa reccomends to never exceed the number of 32 units 1 11 Installing and Removing modules A complete description on how the modules can be mounted on or removed from a DIN Rail can be found in the CU 02 Installation Manual 6 Serial Connector X1 RS232 or USB CAN Connector X0 CANopen ai 9 s ka N S Diagnostics LEDs e DI DI ERR RUN CAN PWR e ERR O sigmaPAC e eee E e RUN Re e a a Ml ee _ am m m me m a a a a a a e CAN A PWR RX LNK ACT A Connector x come o A SE o TX RX 4 Ch TA 7h KIS Ny Power Supply Terminals co Gares aa run 6 7 A IC NO S ma cu 02 OV 8 9 wa et 24 Vac de 10 11 Optional Ethernet Wake UP Ka A Digital Communications 10 BaseT output terminals Input expansion port port X2 terminals 1 2 3 4 terminal 5 Figure 1 1 CPU I O and Communication Ports For pin outs and electrical characteristics see the Installation Manual Sigmadue sigmaPAC CU 02 Quick Guide 1 2 Electrical installation Referring to Figure 1 1 CPU I O and Communication Ports 1 2 1 Connect the communication cables CANopen For CANopen I O modu
10. and 2 Alarm Relay type digital output SPST NO 24V 1A terminals 3 and 4 DI 24Vdc digital Input terminal 6 The return path can be linked to termi nal M terminal 8 or 9 or to Wake Up terminal teminal 1 Chapter 2 Node ID and Baud Rate Configuration In the case the User wish to install I O modules the first to do is Node ID and Baud Rate settings All 1 O modules come with default values for Node ID and speed It goes without saying that the Node ID must be different for each node and the speed must be the same Therefore for the purposes of this Quick Guide the User may want to set IDs only and keep the speed at default value 500kbps Two rotary switches HI and LO hexadecimal switches are used to set the module s Bit Rate and CAN Node ID LO Bit Rate Bus Lenght switch kbps m 1 20 2500 2 50 1000 3 100 500 4 125 500 5 250 250 e 500 100 7 800 50 a 1000 25 HI LO Valid Node Bae switch switch ID Ga 0 1 Oth 1d 0 2 02h 2d Value 4 7 2d 7 F 7Fh 1270 Note that Bit Rate is used as synonymous of Baud Rate The Bus Lengths are given for reference only The default values are Bit Rate 500kbps e Node ID 127d The complete procedure is as follows 1 Turn the Power OFF 2 Set the HI switch to F Note Select the desired Bit Rate value by setting the HI switch following the table e g 8 for 1 Mbps 3 Turn the Power ON 4 Shift the H
11. application the display will be automatically refreshed If you need to analyse the logic of your code value display alone may not be enough Move the cursor to a line of your program that contains code and single click the mouse Now press F9 to set a breakpoint to that line You will see a red dot immediately marking the breakpoint Shortly after that you will notice a yellow arrow identifying the current instruction pointer OpenPCS will display Breakpoint reached in the output window button AT 10 0 BOOL input blinker AT 00 0 BOOL output timer TON 7 timer function block END VAR Sy gt call 2s timer timer in button pt T 2s if 2s are over if timer q then 7 toggle blinker blinker not blinker and reset timer timer in FALSE end if blinker blinker AND button v an gt startup htm ST binker sts You may still move the mouse cursor around to examine variable values while the controller is stopped at the breakpoint Press F10 to single step through your code or press F5 to continue execution Within a line that contains a breakpoint press F9 again to delete the breakpoint OpenPCS supports Online Edit for further information see Online Edit in the user manual Note If SmartSIM does not stop when you set a breakpoint you probably did not set optimisation settings properly Be sure your resource is config
12. ask of your PC To do this go to the Start gt Control Panel 3 Network Connection gt LAN Right click it with your mouse to show the context menu and select Properties In the General sheet select Internet Protocol and chose Properties In the General sheet now you can set IP address 192 168 5 xx xx all except 11 Chapter 6 OpenPCS Set up 6 1 OpenPCS Setup To connect the OpenPCS development system to the Ascon target a new connection must be defined Select Connections item in the PLC menu In the window of OpenPCS Connection Setup select New Now in the window Edit connection it is possible to set the new connection In the field Name you can name the new connection By pushing the Se ecf button you can pick the driver that manages the communication with the target for Ascon CPU is TCP52 Connection Setup Available Connections Name Driver Settings Code Repository Path Simulation IPC SmartSim exe single C PROGRAMMIINFO Edit Connection Remove me TCP_Ascon_Default Driver ia setings Comment Figure 6 1 OpenPCS Connection Setup By clicking the Settings button you can set set the communication parameters Edit Resource Specifications Ascon mPAC 4 0 1 0 x Name Resource Options Hardware Module T Enable Upload Ascon mPAC 4 0 1 0 x I Include Library Blocks Network Connection D Downlo
13. ble entries grey boxes with 0 1 shown and see the corresponding variables added to the watch list in the Test4Commissioning 4 Persistency file creation disabled due to online linking Executing Post Build Steps Total 0 error s O warning s The PLC reports the following loaded resource Project MYFIRST Resource RESOURCE Build date 11 11 2008 11 11 12 Load date 11 11 2008 11 11 13 Online changes successfully applied AL Go back to SmartSIM and modify the inputs to see the effect in the watch list The ST Editor will also be in monitor mode You should see a different cursor once you move the mouse onto the ST Editor 14 Chapter 7 Getting started the first project Move the mouse cursor to a variable in your code and after a short period you will see a tooltip like display of online value display button AT 510 0 BOOL 7 input 2 blinker AT 00 0 BOOL output timer TON 7 timer function block END VAR v ae a call 2s timer timer in button pt T 2s if 2s are over if timer q then 7 toggle blinker a blinker not blinker and reset timer z timer in FALSE BOOL AT Q0 0 blinker FALSE end_if blinker blinker AND button v gt lt startup htm ST blinker SS Move the mouse around and point at different variables to examine their values If the variables are modified by the
14. ing device e g ASCON part AP S2 TERM CAN A CANopen network configurator for advanced users Sigmadue sigmaPAC CU 02 Quick Guide Using this manual Specifications within the text of this manual are given in the International System of Units SI with non SI equivalents in parentheses Fully Capitalized words within the text indicate markings found on the equipment Words in bold style within the text indicate markings found in the Configuration Tools Warnings Cautions and Notes are used to emphasize critical instructions DANGER Indicates an imminently hazardous situation which if not avoided will result in death or serious injury WARNING Indicates a potentially hazardous situation which if not avoided could result in death or serious injury Caution Indicates a potentially hazardous situation which if not avoided may result in minor or moderate injury or property damage Note Highlights important information about an operating procedure or the equipment Current Documentation on the Internet Make sure you are always working with the latest version of this document ASCON spa reserves the right to make changes to its products in the name of technological advancement New manual revisions when published and can be found online at http www ascon it vi Chapter I Hardware Installation 1 1 Mechanical installation The sigmadue CPU and the I O modules are installed on standard DIN r
15. ith remote I O Modules 8 1 Introduction The Ascon sigmadue system is based on the remote I O modules of sigmadue I O series The modules communicate with CU 02 CPU through the well known CANopen protocol In order to establish the link with infoteam OpenPCS develop ment system a configuration session of the CANopen network should be performed Configurators support project managers in all project phases such as planning development startup and service in conjunction with CANopen networks The CANopen Configurator or Configuration Tool is a special software tool that enables design and management of CANopen networks interconnection of inputs and outputs on various devices as well as configuration of network parameters Furthermore the CANopen Configurator is used to connect network variables of a PLC program to the corresponding inputs and outputs on the CANopen I O module The CANopen Configurator is right now a separate software tool and not included in the delivery contents of the OpenPCS IEC61 131 programming system 8 2 Insert a DCF file into OpenPCS If your hardware supports CANOpen you can insert a DCF file into your Open PCS project with the dialog Edit resource Edit Resource Specifications infoteam SmartSIM Name Resource Options P Hardware Module IV Enable Upload Ascon PAC 3 0 3 0 z M include library blocks aaa MN Download Symbol Table TCP Ascon Default Optimization speedony xl Cancel
16. lares a variable of name button of data type BOOL to be mapped to hard ware address 9610 0 i e this variable shall denote the lowest bit of the first input byte Almost everywhere in IEC61131 you can use comments to describe your programs The instruction part of the program starts with a call of a functionblock As you will notice most instructions are assignments and function block calls Chapter 7 Getting started the first project In this sample program we have a functionblock TON output is true after expiration of time control strucure IF code of this block is only executed if its expression is satisfied assignments result of the right is assigned to variable on the left and the operator AND and connect operand to current result Please note which hardware addresses are valid is strongly dependent on the PLC you are using 7 1 Creating a New project For our first OpenPCS code we will set up a new project Start OpenPCS and select File gt Project gt New A dialog box will prompt for the name and location of the new project Create a new file File Type Template 02 Ascon spa ne BA infoteam Software Gmb pa SmartSim Project Project for target SmartSIM Name Location C Projects as OK Cancel Enter a name of your choice e g MyFirst Note The name of an OpenPCS project should not contain blank space characters or special characters Plus for eas
17. les connection X0 I O modules are connected with the remote I O Port included cables in a daisy chain fashion The RJ45 type connectors have the pinout Pin 1 2 3 4 5 6 7 8 Signal CANH CANL CAN GND NG NG CAN SHLD CAN GND CAN V Serial Port RS232 service port X1 The connector X1 on the CPU module is an RJ45 type with the following pinout Pin 1 2 3 4 5 6 7 8 Signal NC NC NC GND RX TX NC NC USB service port X1 When installed the connector X1 on the Contro Unit is a B type USB standard con nector The pinout of this cable is meaningless as the connection is standard Ethernet For OpenPCS development station X2 The connector on the CPU module is an 10baseT RJ45 type with the following pinout Pin 1 2 3 4 5 6 7 8 Signal TX TX RX NC NC RX NC NC 1 2 2 Connector A connections Power supply Use the 6 poles on the right of the A connector and respect the polarity Each of these terminals is doubled in order to allow the user to power using an additional terminal block other devices or sensors Pin Name Function WAKE UP POWER SUPPLY Signal 424V 424V Power Supply Auxiliary ports The 5 poles on the left of the A connector are auxiliary ports Pin 10 Name M L Function POWER SUPPLY Signal OV 24V Auxiliary ports Wake up Software activated Digital Output 24Vdc 0 2A high side power switch terminals 1
18. pened another of its tools the Test and Commissioning This is proof that OpenPCS is online ba Instancepath Name Value Type Address Force Comment 5 2 _OPC Variables Watchlist Resource WL In this introduction we are not using a real hardware controller Instead we are using the Windows Simulation too that comes with OpenPCS named SmartSIM Use PLC Coldstart or press the red arrow in the toolbar NAB DPE B fu t to start execution of your code Go to SmartSIM and activate the first input button This should activate the first output blinker After an expiration of three seconds it should go inactive switching back after another three seconds De activate the first input button and the first output blinker should be inactive Sigmadue sigmaPAC CU 02 Quick Guide RESOURCE SmartSIM32 infoteam i infoteam i infoteam output power supply power off af 7 4 Monitoring Code Now that your application is running go back to the Browser and find the Resource in your project Click all the small plus signs to open the entire tree under the resource entry This will reveal the instance tree showing all instances of programs and function blocks and all variables that you used in your program Project ax A Configuration B Resource BLINKER_ST e BLINKER BUTTON TIMER TON ET e in Double click some of the varia
19. selected by default If you use a sample project from your PLC manufacturer other optimization settings can be set WARNING For using breakpoints optimization must be set to Size only Writing Code To create a new program choose File New A dialog box will appear where you must choose the programming language a filename and the location where the file will be stored As you can see there are plenty of programming languages that can be chosen but we will only use ST in this introduction Enter blinker st as the name and ST as language and press OK Do not change the file location Now you are asked if you want to link the new program to the active resource Click Yes and a new task named blinker st will appear in the resource pane under the active resource The Editor Pane will open displaying two different windows At the top is the declaration window for your first program at the bottom is the instruction window of your program Enter the sample program like shown below VAR button AT 10 0 BOOL input blinker AT 00 0 BOOL output timer TON timer function block END VAR Eatin iv call 2s timer timer in button pt T 2s if 2s are over if timer q then f toggle blinker blinker not blinker 7 and reset timer timer in FALSE end_if blinker blinker AND button ST blinker_st Chapter 7 Get
20. ting started the first project Press File CheckSyntax to invoke a syntax check In the diagnostic output window you should read 0 errors 0 warnings If not carefully check what you have entered 7 3 Executing Code Note To execute your small application we need to compile it and transfer the code to the controller first To build the code for the controller select PLC Build Active Resource from the menu bar In the output window you will see the compilation proceed The end of the output should look similar to the following x code size in bytes 5004 Number of segments 23 O error s O warning s C PROJECTS MYFIRST GEN Resource Resource PCD a Persistency file creation disabled due to online linking Executing Post Build Steps Total 0 error s O warning s N4 lt 3 a gt jm Output After compilation finished successfully your code needs to be transferred to your controller Now select PLC Online to Connect to the resource OpenPCS will detetct that your application needs to be downloaded and will prompt your permission to do so E OpenPCS Online Server 32 9 The Resource on the PLC is not up to date Would you like to download the current Resource _ Accept that with yes You will see a progress bar while the code is being transferred but for this small example it should be finished very quickly When download has finished you will see that OpenPCS automatically o
21. ured for size only 15 Sigmadue sigmaPAC CU 02 Quick Guide 7 5 Online Edit Online Edit or Online Change is a feature whereby program changes are applied to the PLC without the need to restart it The following Stepps need to be done in order to run Online Edit The program must be compiled and running on the PLC The source is opened in an editor window The Editor can be switched from Monitor Mode green colored symbol to Edit Mode red colored symbol and back via PLC Online Edit or the corresponding button of the toolbar a Implement the desired changes and close the Edit Mode via PLC Online Edit again OpenPCS prints a dialogue to accept and download the changes infoteam OpenPCS The file was changed Do you want to apply the changes to the PLC aasa panay If the changes are accepted OpenPCS recompiles the necessary unit and downloads them to the PLC without stoppig the running cycle The changes have bearing on the next cycle OpenPCS prompts a message in the output window if the update is finished Persistency file creation disabled due to online linking Executing Post Build Steps Total 0 error s O warning s The PLC reports the following loaded resource Project MYFIRST Resource RESOURCE Build date 11 11 2008 11 11 12 Load date 11 11 2008 11 11 13 Online changes successfully applied Ci Output Ka m A Chapter 8 Working w
22. using the following register key HKEY LOCAL MACHINE SOFTWARE infoteam Software GmbH OpenPCS 6 x x Online TcpDriverTimeout_ms Value 20000 means a timeout of 20 seconds Chapter 7 Getting started the first project To introduce you to OpenPCS we will use a simple example shown below The rest of this chapter will then implement the solution with OpenPCS Problem A blinker shall blink when a button button is pressed with an interval of 2 seconds If the button is released the blinker should immediately turn off Solution might look like this PROGRAM blinker st VAR button AT 310 0 BOOL input blinker AT 300 0 BOOL output timer TON timer functionblock END_VAR call 2s timer timer in button pt T 2s if 2s are over Ul if timer q then toggle blinker blinker not blinker and reset timer timer in false end_if blinker blinker AND button END PROGRAM The program starts with the keyword PROGRAM and ends with the other keyword END PROGRAM When working with OpenPCS you will not type in these keywords but rather the editor will create them automatically for you OpenPCS will prompt you for the name of the program when you create a new program In contrast to traditional PLC programming languages IEC61131 requires that you declare all variables that you use This line dec
23. y updates it is recommended that you store your application separate from OpenPCS To give an example C PROJECTS is a good location to store your projects Now the Browser contains the new project Project ax Project MYFIRST E USERTYPE TYP A Lib Hep There are different views on your project 1 The Files Pane shows all files of the project 2 The Resource Pane displays the current configuration with all defined Resources and their tasks 3 The Library Pane contains all installed libraries 4 The Help Pane shows the help topics Sigmadue sigmaPAC CU 02 Quick Guide 7 2 OpenPCS has already created one empty file to contain your type definitions named usertype typ and a default resource named resource Typically the default resource will need to be configured properly for your controller We are not using any controller here so the resource is quite ok but to demonstrate breakpoints later we will need to set optimisation low enough to allow that Find the resource entry in the Resource Pane right click it with your mouse to show the context menu and select Properties Edit Resource Specifications infoteam SmartSIM Name Resource QE Hardware Module I Enable Upload infoteam SmartSIM v 7 anade ean Boa Network Connection V Download Symbol Table Simulation Optimization size only gt nal 3 6 Under Optimization Size only should be
Download Pdf Manuals
Related Search
Related Contents
「KAT」全姿勢走行キャリッジ MODELS PCD Express Mobile Hotspot (Sprint) User Guide SERVICE MANUAL Power Wheelchair SF55992-AU PARTS SERVICE MANUAL FujiFilm 16112544 Camcorder User Manual 77kV以下電力用コンデンサ[PDF:362KB] Fichier joint - Sepem industries Home Automation 62A05-1 User's Manual MICRÓTOMOS MICROTOMES MICROTOMES Modelo Copyright © All rights reserved.
Failed to retrieve file