From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d4db,4bac1c0ff5d4ee0a,start X-Google-Attributes: gid10d4db,public X-Google-ArrivalTime: 2003-09-05 18:40:28 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.alt.net!cola.stump.algebra.com!robomod!not-for-mail From: a-steinhoff@web.de (Armin Steinhoff) Newsgroups: comp.os.linux.announce Subject: [ANN] PROFIBUS-DP Master for RTAI Linux and standard Linux Date: 6 Sep 2003 01:40:28 GMT Organization: http://groups.google.com/ Message-ID: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Return-Path: X-COLA-Policy: http://stump.algebra.com/~cola X-COLA-Info-1: Send submissions to cola@stump.algebra.com X-COLA-Info-2: Send complaints to cola-admin@stump.algebra.com X-Comment: moderators do not necessarily agree or disagree with this article. X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov) X-Trace: posting.google.com 1062448479 8330 127.0.0.1 (1 Sep 2003 20:34:39 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 1 Sep 2003 20:34:39 GMT X-Auth: PGPMoose V1.1 PGP comp.os.linux.announce iQBVAwUAP1k60yFvAtx2nXvNAQG2GgH/Q6UwWAGGY4/xho0uIZIRvKeon+rx0lu8 VZW1sFrDSNQbuAw64Y1gXH491UduMsgohVK3+HFKFhQVUL+SP5OGkA== =1jjc X-Spam-Status: No, hits=-6.6 required=10.0 tests=BAYES_01 version=2.53 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53 (1.174.2.15-2003-03-30-exp) Xref: archiver1.google.com comp.os.linux.announce:3636 Steinhoff Automation and Fieldbus systems offers now an implementation of a PROFIBUS-DP-Master for RTAI Linux and standard Linux for the controller boards of Softing. The DP master can be configured by a Linux based configurator, so it is possible to work completely under Linux. The API offers a fast and convenient interface (pointer) to the IO data of the IO modules. These IO data are mapped into the Linux memory. Time resolution for standard Linux goes down to 2ms, but has a remarkable jitter. RTAI Linux provides a time resultion of e.g. 1ms with a jitter < 10us. PROFIBUS is a fast serial fieldbus (12Mb/s) with a broad range of different remote IO modules (digital and analog IOs, motion control, modular RTUs a.s.o) ( see also: http://www.profibus.com/technology/docu.html ) With a PROFIBUS-DP master it is now possible to turn a Linux system into a professionel process computer or DCS system. STEINHOFF Automation and Fieldbus Systems http://www.steinhoff-automation.com PS: short RTAI example below ... // ****** RTAI-Linux example ****** #include // assembly language wrappers. #include // RTAI header #include #include #include #define HWIRQ_STACK_SIZE 10000 #define HWIRQ_PRIORITY 2 #define TICK_PERIOD 100000 //0. 1ms #define STACK_SIZE 1000 // RTAI declaration static RT_TASK user_task; //-------- DP related procs extern void GetInputData(void); extern void SetOutputData(void); // IO pointers static unsigned char * ShmPtr; static unsigned char * ShmPAA; // input static unsigned char * ShmPAE; // output static unsigned char * ShmStat; // ** cyclic RTAI thread ** static void user_thread(int arg) { while(1) { GetInputData(); (*(ShmPAA+144))++; // update first byte of slave 11 SetOutputData(); rt_task_wait_period(); } } // Initialize the module int init_module() { RTIME tick_period; rt_mount_rtai(); tick_period = start_rt_timer(nano2count(TICK_PERIOD)); // .1ms rt_task_init(&user_task, user_thread, 0, STACK_SIZE, 0, 0, 0); MAP_IO_ptr(); // cyclic start every 1ms rt_task_make_periodic(&user_task, rt_get_time() + 20*tick_period, 10*tick_period); printk ("user: start OK ...\n"); return 0; } // Cleanup void cleanup_module() { stop_rt_timer(); rt_task_delete (&user_task); rtai_kfree(0xAAAA); rt_umount_rtai(); } ########################################################################## # Send submissions for comp.os.linux.announce to: cola@stump.algebra.com # # PLEASE remember a short description of the software and the LOCATION. # # This group is archived at http://stump.algebra.com/~cola/ # ##########################################################################