From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,38d01316d66d8f95 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.205.123.6 with SMTP id gi6mr1215291bkc.5.1332179717334; Mon, 19 Mar 2012 10:55:17 -0700 (PDT) Path: h15ni25715bkw.0!nntp.google.com!news2.google.com!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Ada and linux real time Date: Mon, 19 Mar 2012 18:55:14 +0100 Organization: cbb software GmbH Message-ID: <6w174t3ncpcf.145utdbreekt1.dlg@40tude.net> References: <8kb66jddm0qb.1piup0wfaho1$.dlg@40tude.net> <3a01f684-b544-4051-985d-58aab98e832c@v2g2000vbx.googlegroups.com> <13z45jd9irz9x.1j2hj7ayxwkyj.dlg@40tude.net> <5777a4dc-67ef-4a35-b929-653a4d498aac@q11g2000vbu.googlegroups.com> <4f67187d$0$7625$9b4e6d93@newsspool1.arcor-online.net> <1lnilcgari5ww.na1uw3ic1xt8.dlg@40tude.net> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: /bBpnkeEm9kG1v1C1CjDFw.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: 2012-03-19T18:55:14+01:00 List-Id: On Mon, 19 Mar 2012 09:11:16 -0700 (PDT), slos wrote: > As I am learning Ada after some procrastination, I thought I could > implement a simple PLC like control framework that could run on a RT > Linux context, allowing very simple to quite complex control > applications. > > The user would benefit the overall structure and components from the > framework and program his application logic in some Ada procedures. > Even if only knowing IEC 61131-3 languages, a PLC programmer could > learn by doing since Ada basics are quite easy to learn. > One can compare with Structured Text, one of the languages defined in > IEC 61131-3. > > Although Ada looks to me appealing for control application > development, I think no one will give a try to this framework if it is > not available to anybody and GPLed on one hand and performing well on > the other. Distributed control applications is what we are using Ada for. > What do you think about my light sabre ? ;-) You don't need an RT OS for most PLCs. Even Windows is real time enough to deliver 5ms cycles. Of course, it depends on the physical process. The things we control are very fast (burning processes). This is why our cycles are quite short 0.2-0.1ms. But that is rather an exception. For mechanical systems 1ms should be enough. And more mass you have to move, longer can be the cycle and less should you worry about the jitter. So, if the sabre is not of light, you could just use Windows or normal Linux. The superiority of Ada is that what you write is truly portable. Our engineers test their models right under Windows and only when these work they actually try VxWorks. The code is exactly same, no modifications needed. The sensors/actuators and networking communication is decoupled by a middleware, which is also written in Ada. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de