Commit 7db49cf6 authored by Claes Sjofors's avatar Claes Sjofors

IoConnect, common IO module objects for different busses

parent 31379b26
This diff is collapsed.
This diff is collapsed.
......@@ -281,15 +281,15 @@ Volume OtherManufacturer $ClassVolume 0.0.250.1
Body RtBody 18-MAR-2008 17:06:08.88
Attr Super.Specification = "Danfoss Frequency converter FC300 with Profibus PPO3 protocol"
Attr Super.StatusWordSW.Description = "Status Word, from converter"
Attr Super.StatusWordSW.SigChanCon = "$IoConnect:BaseComponent-Class-BaseFcPPO3PbModule.I_SW"
Attr Super.StatusWordSW.SigChanCon = "$IoConnect:BaseComponent-Class-BaseFcPPO3IoModule.I_SW"
Attr Super.ActSpeed.Description = "Actual Value, from converter"
Attr Super.ActSpeed.SigChanCon = "$IoConnect:BaseComponent-Class-BaseFcPPO3PbModule.I_ACT"
Attr Super.ActSpeed.SigChanCon = "$IoConnect:BaseComponent-Class-BaseFcPPO3IoModule.I_ACT"
Attr Super.ActSpeed.PresMinLimit = 1.000000e+02
Attr Super.ActSpeed.DefTrend = "_O0.0.0.0:0"
Attr Super.ControlWordCW.Description = "Control Word, to converter"
Attr Super.ControlWordCW.SigChanCon = "$IoConnect:BaseComponent-Class-BaseFcPPO3PbModule.O_CW"
Attr Super.ControlWordCW.SigChanCon = "$IoConnect:BaseComponent-Class-BaseFcPPO3IoModule.O_CW"
Attr Super.RefSpeed.Description = "Reference Value, to converter"
Attr Super.RefSpeed.SigChanCon = "$IoConnect:BaseComponent-Class-BaseFcPPO3PbModule.O_REF"
Attr Super.RefSpeed.SigChanCon = "$IoConnect:BaseComponent-Class-BaseFcPPO3IoModule.O_REF"
Attr Super.RefSpeed.PresMinLimit = 1.000000e+02
Attr Super.RefSpeed.DefTrend = "_O0.0.0.0:0"
Attr Super.PowerUpTime = 1.500000e+01
......@@ -352,58 +352,58 @@ Volume OtherManufacturer $ClassVolume 0.0.250.1
Body RtBody 18-MAR-2008 17:04:31.24
Attr Super.Specification = "Frequency converter Danfoss FC300 with Profibus PPO5 protocol"
Attr Super.InIdPar.Description = "Parameter Identification, from converter"
Attr Super.InIdPar.SigChanCon = "$IoConnect:BaseComponent-Class-BaseFcPPO5PbModule.I_ID"
Attr Super.InIdPar.SigChanCon = "$IoConnect:BaseComponent-Class-BaseFcPPO5IoModule.I_ID"
Attr Super.InIndPar.Description = "Array Index, from converter"
Attr Super.InIndPar.SigChanCon = "$IoConnect:BaseComponent-Class-BaseFcPPO5PbModule.I_IND"
Attr Super.InIndPar.SigChanCon = "$IoConnect:BaseComponent-Class-BaseFcPPO5IoModule.I_IND"
Attr Super.InValuePar.Description = "Parameter Value, from converter"
Attr Super.InValuePar.SigChanCon = "$IoConnect:BaseComponent-Class-BaseFcPPO5PbModule.I_VALUE"
Attr Super.InValuePar.SigChanCon = "$IoConnect:BaseComponent-Class-BaseFcPPO5IoModule.I_VALUE"
Attr Super.StatusWordSW.Description = "Status Word, from converter"
Attr Super.StatusWordSW.SigChanCon = "$IoConnect:BaseComponent-Class-BaseFcPPO5PbModule.I_SW"
Attr Super.StatusWordSW.SigChanCon = "$IoConnect:BaseComponent-Class-BaseFcPPO5IoModule.I_SW"
Attr Super.ActSpeed.Description = "Actual Value, from converter"
Attr Super.ActSpeed.SigChanCon = "$IoConnect:BaseComponent-Class-BaseFcPPO5PbModule.I_ACT"
Attr Super.ActSpeed.SigChanCon = "$IoConnect:BaseComponent-Class-BaseFcPPO5IoModule.I_ACT"
Attr Super.ActSpeed.PresMaxLimit = 1.000000e+02
Attr Super.ActSpeed.DefTrend = "_O0.0.0.0:0"
Attr Super.ActTorque.Description = "Torque, Process Data 4 from converter"
Attr Super.ActTorque.SigChanCon = "$IoConnect:BaseComponent-Class-BaseFcPPO5PbModule.I_PZD4"
Attr Super.ActTorque.SigChanCon = "$IoConnect:BaseComponent-Class-BaseFcPPO5IoModule.I_PZD4"
Attr Super.ActTorque.PresMaxLimit = 1.000000e+02
Attr Super.ActTorque.DefTrend = "_O0.0.0.0:0"
Attr Super.ActCurrent.Description = "Current, Process Data 3 from converter"
Attr Super.ActCurrent.SigChanCon = "$IoConnect:BaseComponent-Class-BaseFcPPO5PbModule.I_PZD3"
Attr Super.ActCurrent.SigChanCon = "$IoConnect:BaseComponent-Class-BaseFcPPO5IoModule.I_PZD3"
Attr Super.ActCurrent.PresMaxLimit = 1.000000e+02
Attr Super.ActCurrent.DefTrend = "_O0.0.0.0:0"
Attr Super.PZD5.Description = "Process Data 5 from converter"
Attr Super.PZD5.SigChanCon = "$IoConnect:BaseComponent-Class-BaseFcPPO5PbModule.I_PZD5"
Attr Super.PZD5.SigChanCon = "$IoConnect:BaseComponent-Class-BaseFcPPO5IoModule.I_PZD5"
Attr Super.PZD6.Description = "Process Data 6 from converter"
Attr Super.PZD6.SigChanCon = "$IoConnect:BaseComponent-Class-BaseFcPPO5PbModule.I_PZD6"
Attr Super.PZD6.SigChanCon = "$IoConnect:BaseComponent-Class-BaseFcPPO5IoModule.I_PZD6"
Attr Super.PZD7.Description = "Process Data 7 from converter"
Attr Super.PZD7.SigChanCon = "$IoConnect:BaseComponent-Class-BaseFcPPO5PbModule.I_PZD7"
Attr Super.PZD7.SigChanCon = "$IoConnect:BaseComponent-Class-BaseFcPPO5IoModule.I_PZD7"
Attr Super.PZD8.Description = "Process Data 8 from converter"
Attr Super.PZD8.SigChanCon = "$IoConnect:BaseComponent-Class-BaseFcPPO5PbModule.I_PZD8"
Attr Super.PZD8.SigChanCon = "$IoConnect:BaseComponent-Class-BaseFcPPO5IoModule.I_PZD8"
Attr Super.PZD9.Description = "Process Data 9 from converter"
Attr Super.PZD9.SigChanCon = "$IoConnect:BaseComponent-Class-BaseFcPPO5PbModule.I_PZD9"
Attr Super.PZD9.SigChanCon = "$IoConnect:BaseComponent-Class-BaseFcPPO5IoModule.I_PZD9"
Attr Super.OutIdPar.Description = "Parameter Identification, to converter"
Attr Super.OutIdPar.SigChanCon = "$IoConnect:BaseComponent-Class-BaseFcPPO5PbModule.O_ID"
Attr Super.OutIdPar.SigChanCon = "$IoConnect:BaseComponent-Class-BaseFcPPO5IoModule.O_ID"
Attr Super.OutIndPar.Description = "Array Index, to converter"
Attr Super.OutIndPar.SigChanCon = "$IoConnect:BaseComponent-Class-BaseFcPPO5PbModule.O_IND"
Attr Super.OutIndPar.SigChanCon = "$IoConnect:BaseComponent-Class-BaseFcPPO5IoModule.O_IND"
Attr Super.OutValuePar.Description = "Parmeter Value, to converter"
Attr Super.OutValuePar.SigChanCon = "$IoConnect:BaseComponent-Class-BaseFcPPO5PbModule.O_VALUE"
Attr Super.OutValuePar.SigChanCon = "$IoConnect:BaseComponent-Class-BaseFcPPO5IoModule.O_VALUE"
Attr Super.ControlWordCW.Description = "Control Word, to converter"
Attr Super.ControlWordCW.SigChanCon = "$IoConnect:BaseComponent-Class-BaseFcPPO5PbModule.O_CW"
Attr Super.ControlWordCW.SigChanCon = "$IoConnect:BaseComponent-Class-BaseFcPPO5IoModule.O_CW"
Attr Super.RefSpeed.Description = "Reference Value, to converter"
Attr Super.RefSpeed.SigChanCon = "$IoConnect:BaseComponent-Class-BaseFcPPO5PbModule.O_REF"
Attr Super.RefSpeed.SigChanCon = "$IoConnect:BaseComponent-Class-BaseFcPPO5IoModule.O_REF"
Attr Super.RefSpeed.PresMaxLimit = 1.000000e+02
Attr Super.RefSpeed.DefTrend = "_O0.0.0.0:0"
Attr Super.OPZD3.Description = "Process Data 3 to converter"
Attr Super.OPZD3.SigChanCon = "$IoConnect:BaseComponent-Class-BaseFcPPO5PbModule.O_PZD3"
Attr Super.OPZD3.SigChanCon = "$IoConnect:BaseComponent-Class-BaseFcPPO5IoModule.O_PZD3"
Attr Super.OPZD3.PresMaxLimit = 1.000000e+02
Attr Super.OPZD4.Description = "Process Data 4 to converter"
Attr Super.OPZD4.SigChanCon = "$IoConnect:BaseComponent-Class-BaseFcPPO5PbModule.O_PZD4"
Attr Super.OPZD4.SigChanCon = "$IoConnect:BaseComponent-Class-BaseFcPPO5IoModule.O_PZD4"
Attr Super.OPZD4.PresMaxLimit = 1.000000e+02
Attr Super.OPZD5.Description = "Process Data 5 to converter"
Attr Super.OPZD5.SigChanCon = "$IoConnect:BaseComponent-Class-BaseFcPPO5PbModule.O_PZD5"
Attr Super.OPZD5.SigChanCon = "$IoConnect:BaseComponent-Class-BaseFcPPO5IoModule.O_PZD5"
Attr Super.OPZD5.PresMaxLimit = 1.000000e+02
Attr Super.OPZD6.Description = "Process Data 6 to converter"
Attr Super.OPZD6.SigChanCon = "$IoConnect:BaseComponent-Class-BaseFcPPO5PbModule.O_PZD6"
Attr Super.OPZD6.SigChanCon = "$IoConnect:BaseComponent-Class-BaseFcPPO5IoModule.O_PZD6"
Attr Super.PowerUpTime = 1.500000e+01
Attr Super.AlarmLocalMod = "Frequency converter is in local mode"
Attr Super.AlarmTripped = "Frequency converter tripped, reset is required"
......@@ -176,10 +176,21 @@ int io_connect_status( pwr_sAttrRef *sig_aref, pwr_sAttrRef *chan_aref)
sts = gdh_AttrrefToName( &card_aref, sname, sizeof(sname),
cdh_mName_volumeStrict);
if ( EVEN(sts)) return 0;
s = strrchr( sname, '.');
strcat( sname, ".Status");
sts = gdh_NameToAttrref( pwr_cNObjid, sname, &status_aref);
if ( EVEN(sts)) {
/* Try parent level */
if ( !s)
return 0;
*s = 0;
strcat( sname, ".Status");
sts = gdh_NameToAttrref( pwr_cNObjid, sname, &status_aref);
if ( EVEN(sts)) return 0;
}
/* Store status pointer in IoStatus */
sts = gdh_AttrRefToPointer( &iostatus_aref, (void **)&iostatus_p);
......
This diff is collapsed.
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