Commit 8e542743 authored by claes's avatar claes

Ssab_RemoteRack added

parent a451af5f
/*
* Proview $Id: rt_io_m_ssab_remoterack.c,v 1.1 2006-02-10 14:32:36 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 2 of
* the License, or (at your option) any later version.
*
* This program 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.
*
* You should have received a copy of the GNU General Public License
* along with the program, if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/* rt_io_m_ssab_remoterack.c -- io methods for ssab remote rack objects. */
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
#include <fcntl.h>
#include "pwr.h"
#include "pwr_baseclasses.h"
#include "pwr_basecomponentclasses.h"
#include "pwr_ssaboxclasses.h"
#include "rt_io_base.h"
#include "rt_errh.h"
#include "rt_io_rack_init.h"
#include "rt_io_msg.h"
typedef struct {
int xxx;
} io_sRackLocal;
/*----------------------------------------------------------------------------*\
\*----------------------------------------------------------------------------*/
static pwr_tStatus IoRackInit (
io_tCtx ctx,
io_sAgent *ap,
io_sRack *rp
)
{
errh_Info( "Init of IO remote rack %s", rp->Name);
return 1;
}
static pwr_tStatus IoRackClose (
io_tCtx ctx,
io_sAgent *ap,
io_sRack *rp
)
{
return 1;
}
static pwr_tStatus IoRackRead (
io_tCtx ctx,
io_sAgent *ap,
io_sRack *rp
)
{
return 1;
}
static pwr_tStatus IoRackWrite (
io_tCtx ctx,
io_sAgent *ap,
io_sRack *rp
)
{
return 1;
}
/*----------------------------------------------------------------------------*\
\*----------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*\
Every method to be exported to the workbench should be registred here.
\*----------------------------------------------------------------------------*/
pwr_dExport pwr_BindIoMethods(Ssab_RemoteRack) = {
pwr_BindIoMethod(IoRackInit),
pwr_BindIoMethod(IoRackClose),
pwr_BindIoMethod(IoRackRead),
pwr_BindIoMethod(IoRackWrite),
pwr_NullMethod
};
......@@ -4,6 +4,7 @@ Ssab_AouP
Ssab_Di
Ssab_Do
Ssab_Co
Ssab_RemoteRack
Di_DIX2
Do_HVDO32
Ao_HVAO4
......
Volume SsabOx $ClassVolume 0.0.250.5
Body SysBody 01-JAN-1970 01:00:00.00
Attr NextOix = "_X151"
Attr NextCix = "_X29"
Attr NextOix = "_X157"
Attr NextCix = "_X30"
Attr NextTix[0] = "_X4"
EndBody
Object Type $TypeHier 138 30-DEC-2005 14:28:03.99
......@@ -7617,8 +7617,8 @@ Volume SsabOx $ClassVolume 0.0.250.5
Attr graphname = "ServoReg"
EndBody
EndObject
Object Template Ssab_ServoReg
Body RtBody
Object Template Ssab_ServoReg 2155053056 26-JAN-2006 13:34:01.00
Body RtBody 01-JAN-1970 01:00:00.00
Attr umaxP = 2.000000e+00
Attr umaxN = -2.000000e+00
Attr amaxS = 3.800000e-01
......@@ -7630,7 +7630,78 @@ Volume SsabOx $ClassVolume 0.0.250.5
Attr TimerDeadZone = 5.000000e-02
Attr TDZTime = 5.000000e+00
EndBody
Body DevBody
Body DevBody 01-JAN-1970 01:00:00.00
EndBody
EndObject
EndObject
Object Ssab_RemoteRack $ClassDef 29 10-FEB-2006 15:50:27.32
Body SysBody 10-FEB-2006 15:49:38.85
Attr Editor = 0
Attr Method = 1
Attr Flags = 2128
EndBody
Object RtBody $ObjBodyDef 1 10-FEB-2006 15:49:38.87
Body SysBody 10-FEB-2006 15:49:38.87
Attr StructName = "RemoteRack_SSAB"
Attr NextAix = "_X7"
EndBody
Object Description $Attribute 1 10-FEB-2006 15:49:38.87
Body SysBody 10-FEB-2006 15:49:38.87
Attr PgmName = "Description"
Attr TypeRef = "pwrs:Type-$String80"
EndBody
EndObject
Object Address $Attribute 3 10-FEB-2006 15:52:17.37
Body SysBody 10-FEB-2006 15:52:18.34
Attr PgmName = "Address"
Attr TypeRef = "pwrs:Type-$String80"
EndBody
EndObject
Object Port $Attribute 4 10-FEB-2006 15:52:23.44
Body SysBody 10-FEB-2006 15:52:24.23
Attr PgmName = "Port"
Attr TypeRef = "pwrs:Type-$UInt16"
EndBody
EndObject
Object Process $Attribute 5 10-FEB-2006 15:59:53.79
Body SysBody 10-FEB-2006 15:59:53.79
Attr PgmName = "Process"
Attr TypeRef = "pwrs:Type-$UInt32"
EndBody
EndObject
Object ThreadObject $Intern 6 10-FEB-2006 15:59:53.79
Body SysBody 10-FEB-2006 15:59:53.79
Attr PgmName = "ThreadObject"
Attr TypeRef = "pwrs:Type-$Objid"
EndBody
EndObject
EndObject
Object IoMethods $RtMethod 153 10-FEB-2006 16:02:06.68
Object IoRackInit $Method 154 10-FEB-2006 16:02:06.68
Body SysBody 10-FEB-2006 16:02:28.88
Attr MethodName = "Ssab_RemoteRack-IoRackInit"
EndBody
EndObject
Object IoRackClose $Method 155 10-FEB-2006 16:02:06.68
Body SysBody 10-FEB-2006 16:03:47.40
Attr MethodName = "Ssab_RemoteRack-IoRackClose"
EndBody
EndObject
Object IoRackRead $Method 157 10-FEB-2006 16:04:09.57
Body SysBody 10-FEB-2006 16:04:16.52
Attr MethodName = "Ssab_RemoteRack-IoRackRead"
EndBody
EndObject
Object IoRackWrite $Method 156 10-FEB-2006 16:04:41.17
Body SysBody 10-FEB-2006 16:04:47.63
Attr MethodName = "Ssab_RemoteRack-IoRackWrite"
EndBody
EndObject
EndObject
Object Template Ssab_RemoteRack 2155315200 01-JAN-1970 01:00:00.00
Body RtBody 10-FEB-2006 16:02:52.70
Attr Port = 9000
Attr Process = 2
EndBody
EndObject
EndObject
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment