SOES v1.0.0
|
ここを見よtutorial.txt
SOESはC言語で記載されたEtherCATスレーブのスタックで、学習と使用の両方を目的としたものです。 このソースを勉強することで、どのようにEtherCATスレーブが動いているのが分かるででしょう。
バージョン1.0.01の概要は以下の通りです。
SOES Simple Open EtherCAT Slave
Copyright (C) 2007-2013 Arthur Ketels
Copyright (C) 2012-2013 rt-labs
SOES is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.
SOES is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
As a special exception, if other files instantiate templates or use macros or inline functions from this file, or you compile this file and link it with other works to produce a work based on this file, this file does not by itself cause the resulting work to be covered by the GNU General Public License. However the source code for this file must still be made available in accordance with section (3) of the GNU General Public License.
This exception does not invalidate any other reasons why a work based on this file might be covered by the GNU General Public License.
The EtherCAT Technology, the trade name and logo "EtherCAT" are the intellectual property of, and protected by Beckhoff Automation GmbH.
[前処理] numbers_at_station テーブルの作成 ■テーブルを削除する ↓ drop table numbers_at_station; ■テーブルを作成する ↓ create table numbers_at_station ( the_time time, numbers integer[] ); ■データの入力方法(例) ↓ INSERT INTO numbers_at_station(the_time, numbers) VALUES('12:34:56', '{10,20,30,40}'); INSERT INTO numbers_at_station(the_time, numbers) VALUES('11:23:45', '{10,20,30}'); ■データの検索方法(例) ↓ ca_db=# select the_time, numbers[1] from numbers_at_station ; the_time | numbers ----------+--------- 12:34:56 | 10 11:23:45 | 10 (2 行) (number[0]は、値が入らないので注意)