Commit c7aad57a authored by claes's avatar claes

New interpretation of Mask and Enum type

parent 57e6388c
......@@ -191,6 +191,14 @@ int ClassRead::read( char *filename)
nr > 2 &&
strcmp( low( line_part[2]), "$buffer") == 0)
linetype = cread_eLine_Buffer;
else if ( strcmp( low( line_part[0]), "object") == 0 &&
nr > 2 &&
strcmp( low( line_part[2]), "$bit") == 0)
linetype = cread_eLine_Bit;
else if ( strcmp( low( line_part[0]), "object") == 0 &&
nr > 2 &&
strcmp( low( line_part[2]), "$value") == 0)
linetype = cread_eLine_Value;
else if ( strcmp( low( line_part[0]), "object") == 0)
linetype = cread_eLine_Object;
else if ( strcmp( low( line_part[0]), "object") == 0)
......@@ -250,6 +258,7 @@ int ClassRead::read( char *filename)
case cread_eLine_TypeDef:
state |= cread_mState_TypeDef;
object_state = cread_mState_TypeDef;
classdef_level = object_level;
typedef_init();
if ( line_part[1][0] == '$')
strcpy( typedef_name, &line_part[1][1]);
......@@ -265,6 +274,22 @@ int ClassRead::read( char *filename)
else
strcpy( typedef_name, line_part[1]);
break;
case cread_eLine_Bit:
state |= cread_mState_Bit;
object_state = cread_mState_Bit;
strcpy( bit_name, line_part[1]);
strcpy( bit_type, "Bit");
bit_init();
object_level++;
break;
case cread_eLine_Value:
state |= cread_mState_Value;
object_state = cread_mState_Value;
strcpy( bit_name, line_part[1]);
strcpy( bit_type, "Value");
bit_init();
object_level++;
break;
case cread_eLine_SysBody:
state |= cread_mState_SysBody;
break;
......@@ -394,14 +419,22 @@ int ClassRead::read( char *filename)
if ( generate_struct && struct_class_open && classdef_level == object_level)
struct_class_close();
}
else if ( state & cread_mState_TypeDef) {
else if ( state & cread_mState_Bit) {
state &= ~cread_mState_Bit;
// object_state = cread_mState_TypeDef;
object_level--;
}
else if ( state & cread_mState_Value) {
state &= ~cread_mState_Value;
// object_state = cread_mState_TypeDef;
object_level--;
}
else if ( state & cread_mState_TypeDef && classdef_level == object_level) {
state &= ~cread_mState_TypeDef;
#if 0
if ( generate_html && html_class_open)
html_class_close();
html_typedef_close();
if ( generate_struct && struct_class_open)
struct_class_close();
#endif
struct_typedef_close();
}
else if ( state & cread_mState_Type) {
state &= ~cread_mState_Type;
......@@ -460,6 +493,10 @@ int ClassRead::read( char *filename)
case cread_mState_Type:
typedef_attr( attr_name, attr_value);
break;
case cread_mState_Bit:
case cread_mState_Value:
bit_attr( attr_name, attr_value);
break;
case cread_mState_ObjBodyDef:
body_attr( attr_name, attr_value);
break;
......@@ -608,7 +645,7 @@ int ClassRead::read( char *filename)
html_class_close();
if ( generate_xtthelp && xtthelp_index_open)
xtthelp_class_close();
if ( generate_struct)
if ( generate_struct && html_class_open)
struct_class_close();
fclose(fp);
......@@ -620,6 +657,7 @@ void ClassRead::attribute_init()
{
strcpy( attr_flags, "");
strcpy( attr_typeref, "");
strcpy( attr_typeref_volume, "");
strcpy( attr_pgmname, "");
strcpy( attr_elements, "");
attr_pointer = 0;
......@@ -642,6 +680,11 @@ int ClassRead::attribute_attr( char *name, char *value)
if ( *s == '$')
s++;
strcpy( attr_typeref, s);
strcpy( attr_typeref_volume, value);
if ( (s = strchr( attr_typeref_volume, ':')))
*s = 0;
else
strcpy( attr_typeref_volume, "");
}
else
strcpy( attr_typeref, value);
......@@ -716,6 +759,21 @@ int ClassRead::attribute_close()
return sts;
}
int ClassRead::bit_close()
{
int sts;
if ( generate_html)
sts = html_bit();
if ( generate_xtthelp)
sts = xtthelp_bit();
if ( generate_struct)
sts = struct_bit();
doc_fresh = 0;
return sts;
}
void ClassRead::class_init()
{
strcpy( class_name, "");
......@@ -1091,6 +1149,10 @@ int ClassRead::object_close()
case cread_mState_Type:
typedef_close();
break;
case cread_mState_Bit:
case cread_mState_Value:
bit_close();
break;
case cread_mState_Object:
break;
default:
......@@ -1104,9 +1166,17 @@ void ClassRead::typedef_init()
{
strcpy( typedef_name, "");
strcpy( typedef_typeref, "");
strcpy( typedef_pgmname, "");
typedef_elements = 0;
}
void ClassRead::bit_init()
{
strcpy( bit_text, "");
strcpy( bit_pgmname, "");
bit_value = 0;
}
int ClassRead::typedef_attr( char *name, char *value)
{
if ( strcmp( low( name), "typeref") == 0)
......@@ -1117,6 +1187,10 @@ int ClassRead::typedef_attr( char *name, char *value)
strcpy( typedef_typeref, value);
}
if ( strcmp( low( name), "pgmname") == 0)
{
strcpy( typedef_pgmname, value);
}
else if ( strcmp( low( name), "elements") == 0)
{
sscanf( value, "%d", &typedef_elements);
......@@ -1124,15 +1198,30 @@ int ClassRead::typedef_attr( char *name, char *value)
return 1;
}
int ClassRead::bit_attr( char *name, char *value)
{
if ( strcmp( low( name), "text") == 0) {
strcpy( bit_text, value);
}
else if ( strcmp( low( name), "pgmname") == 0) {
strcpy( bit_pgmname, value);
}
else if ( strcmp( low( name), "value") == 0) {
sscanf( value, "%u", &bit_value);
}
return 1;
}
int ClassRead::typedef_close()
{
if ( first_class) {
if ( generate_html)
html_init( typedef_name);
if ( generate_struct &&
object_state == cread_mState_TypeDef)
if ( generate_struct)
struct_init();
if ( generate_xtthelp)
xtthelp_init();
first_class = 0;
}
......@@ -1244,7 +1333,7 @@ char *ClassRead::flags_to_string( int value)
case pwr_mAdef_rtdbref: strcpy( str, "Rtdbref"); break;
case pwr_mAdef_private: strcpy( str, "Private"); break;
case pwr_mAdef_class: strcpy( str, "Class"); break;
case pwr_mAdef_subclass: strcpy( str, "Subclass"); break;
case pwr_mAdef_superclass: strcpy( str, "Superclass"); break;
case pwr_mAdef_buffer: strcpy( str, "Buffer"); break;
case pwr_mAdef_nowbl: strcpy( str, "Nowbl"); break;
case pwr_mAdef_alwayswbl: strcpy( str, "Alwayswbl"); break;
......
......@@ -55,6 +55,8 @@ typedef enum {
cread_eLine_Range,
cread_eLine_TypeDef,
cread_eLine_Type,
cread_eLine_Bit,
cread_eLine_Value,
cread_eLine_Unknown
} cread_eLine;
......@@ -80,7 +82,9 @@ typedef enum {
cread_mState_DParam = 1 << 18,
cread_mState_TypeDef = 1 << 19,
cread_mState_Type = 1 << 20,
cread_mState_StringAttr = 1 << 21
cread_mState_StringAttr = 1 << 21,
cread_mState_Bit = 1 << 22,
cread_mState_Value = 1 << 23
} cread_mState;
#define cread_cTmpFile1 "classread1.tmp"
......@@ -114,6 +118,7 @@ class ClassRead {
char attr_flags[200];
char attr_type[80];
char attr_typeref[80];
char attr_typeref_volume[80];
int attr_pointer;
int attr_array;
int attr_rtvirtual;
......@@ -138,6 +143,12 @@ class ClassRead {
char typedef_name[80];
char typedef_typeref[80];
int typedef_elements;
char typedef_pgmname[32];
char bit_name[80];
char bit_type[80];
int bit_value;
char bit_text[80];
char bit_pgmname[80];
char doc_author[200];
char doc_version[80];
char doc_groups[10][40];
......@@ -174,6 +185,9 @@ class ClassRead {
void typedef_init();
int typedef_attr( char *name, char *value);
int typedef_close();
void bit_init();
int bit_attr( char *name, char *value);
int bit_close();
void body_init();
int body_attr( char *name, char *value);
int body_close();
......@@ -222,6 +236,8 @@ class ClassRead {
int html_graphplccon();
int html_template();
int html_typedef();
int html_typedef_close();
int html_bit();
// xtthelp
int generate_xtthelp;
......@@ -235,6 +251,7 @@ class ClassRead {
int xtthelp_class_close();
int xtthelp_body();
int xtthelp_attribute();
int xtthelp_bit();
// src
int generate_src;
......@@ -273,11 +290,13 @@ class ClassRead {
int struct_body_close();
int struct_attribute();
int struct_typedef();
int struct_typedef_close();
int struct_bit();
int struct_volname_to_id();
void struct_cix_to_classid( unsigned int cix, pwr_tClassId *cid);
int struct_cixstr_to_classid( char *cix_str, pwr_tClassId *cid);
void struct_get_filename( char *struct_file);
int struct_check_typename( char *name);
int struct_check_typename( char *type_volume, char *type_name);
// Setup
char setup_filename[120];
......
......@@ -16,8 +16,8 @@ extern "C" {
int ClassRead::html_init( char *first)
{
char fname[200];
char gname[200];
pwr_tFileName fname;
pwr_tFileName gname;
char allclasses_name[80];
char timestr[80];
......@@ -384,13 +384,13 @@ int ClassRead::html_close()
int ClassRead::html_class()
{
char fname[200];
pwr_tFileName fname;
int i;
char html_file_name[80];
pwr_tFileName html_file_name;
char full_class_name[80];
char ref_name[200];
char struct_file[100];
char hpp_file[100];
pwr_tFileName struct_file;
pwr_tFileName hpp_file;
char low_volume_name[80];
char low_class_name[80];
char txt[200];
......@@ -581,8 +581,8 @@ endl <<
int ClassRead::html_body()
{
char struct_name[80];
char fname[200];
char struct_file[80];
pwr_tFileName fname;
pwr_tFileName struct_file;
struct_get_filename( fname);
src_filename_to_html( struct_file, fname);
......@@ -737,9 +737,20 @@ int ClassRead::html_attribute()
}
else if ( strncmp( attr_typeref, "pwr_eType_", 10) == 0) {
strcpy( typeref_href, &attr_typeref[10]);
strcpy( attr_typeref, typeref_href);
strcpy( attr_typeref, typeref_href);
}
else if ( strncmp( attr_typeref, "pwr_eTypeDef_", 13) == 0) {
strcpy( typeref_href, &attr_typeref[13]);
strcpy( attr_typeref, typeref_href);
}
sprintf( typeref_href, "pwrs_%s.html", low(attr_typeref));
if ( strcmp( attr_typeref_volume, "") != 0) {
char low_volname[80];
strcpy( low_volname, low(attr_typeref_volume));
sprintf( typeref_href, "%s_%s.html", low_volname,
low(attr_typeref));
}
else
sprintf( typeref_href, "pwrs_%s.html", low(attr_typeref));
sprintf( attrtype_href, "pwrs_%s.html", low(attr_type));
......@@ -831,7 +842,99 @@ int ClassRead::html_attribute()
fp_tmp <<
"<DT><CODE><B>Body</B>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" << body_name << "</CODE><DT>" << endl <<
"<DT><CODE><B>Class</B>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A HREF=\"" << attrtype_href << "\">$" << attr_type << "</A></CODE><DT>" << endl;
"<DT><CODE><B>Class</B>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A HREF=\"" << attrtype_href << "\">$" << attr_type << "</A></CODE><DT>" << endl;
fp_tmp <<
"<BR>" << endl <<
"<CODE><B>Description</B></CODE><DT></DL>" << endl <<
"<DIV ID=\"description\"><XMP>" << endl;
if ( doc_fresh) {
for ( i = 0; i < doc_cnt; i++) {
remove_spaces( doc_text[i], txt);
if ( strncmp( low(txt), "@image", 6) == 0) {
char imagefile[80];
remove_spaces( txt + 6, imagefile);
fp_tmp << "</XMP><IMG SRC=\"" << imagefile << "\"><XMP>" << endl;
}
else if ( strncmp( low(txt), "@b", 2) == 0) {
fp_tmp << "</XMP><B><FONT SIZE=\"3\">" << txt + 2 << "</FONT></B><XMP>" << endl;
}
else if ( strncmp( low(txt), "@h1", 3) == 0) {
fp_tmp << "</XMP><H3>" << txt + 3 << "</H3><XMP>" << endl;
}
else if ( strncmp( low(txt), "@h2", 3) == 0) {
fp_tmp << "</XMP><H4>" << txt + 3 << "</H4><XMP>" << endl;
}
else
fp_tmp << doc_text[i] << endl;
}
}
fp_tmp <<
"</XMP></DIV>" << endl;
return 1;
}
int ClassRead::html_bit()
{
int i;
char txt[200];
// Summary
char bitchar = _tolower(typedef_typeref[0]);
html_clf->f <<
"<TR BGCOLOR=\"white\" CLASS=\"TableRowColor\">" << endl <<
"<TD>" << endl <<
"<CODE><FONT SIZE=\"-1\">pwr_" << bitchar << typedef_name << "_" << bit_pgmname << "</FONT></CODE></TD>" << endl <<
"<TD ALIGN =\"right\" VALIGN=\"top\" WIDTH=\"1%\"><A HREF=\"#" << bit_name << "\"><CODE><B>" << bit_text << "</B></CODE></A></TD>" << endl <<
"<TD>";
if ( doc_fresh)
{
if ( strcmp( doc_summary, "") == 0)
{
for ( i = 0; i < doc_cnt; i++) {
remove_spaces( doc_text[i], txt);
if ( strncmp( low(txt), "@image", 6) == 0) {
continue;
}
else if ( strncmp( low(txt), "@b", 2) == 0) {
html_clf->f << "</XMP><B><FONT SIZE=\"3\">" << txt + 2 << "</FONT></B><XMP>" << endl;
}
else if ( strncmp( low(txt), "@h1", 3) == 0) {
html_clf->f << "<H3>" << txt + 3 << "</H3>" << endl;
}
else if ( strncmp( low(txt), "@h2", 3) == 0) {
html_clf->f << "<H4>" << txt + 3 << "</H4>" << endl;
}
else {
html_clf->f << doc_text[i];
if ( i < doc_cnt - 1)
html_clf->f << "<BR>" << endl;
}
}
}
else
html_clf->f << doc_summary << endl;
}
else
html_clf->f << "<BR>" << endl;
html_clf->f <<
"</TD>" << endl;
// Detail
fp_tmp <<
"<HR>" << endl <<
"<A NAME=\"" << bit_name << "\"> <H3>" <<
"<FONT SIZE=\"-1\">pwr_" << bitchar << typedef_name << "_" << bit_pgmname << "</FONT>&nbsp;&nbsp" << bit_text << "</H3></A>" << endl <<
"<DL><DT>" << endl <<
"<CODE><B>Value</B>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" << bit_value << "</CODE><DT>" << endl;
fp_tmp <<
"<BR>" << endl <<
......@@ -869,15 +972,16 @@ int ClassRead::html_attribute()
int ClassRead::html_typedef()
{
char fname[200];
pwr_tFileName fname;
int i;
char html_file_name[80];
pwr_tFileName html_file_name;
char full_class_name[80];
char ref_name[200];
char struct_file[100];
pwr_tFileName struct_file;
char low_volume_name[80];
char low_class_name[80];
char txt[200];
char code_aref[200];
strcpy( class_name, typedef_name);
......@@ -965,11 +1069,20 @@ int ClassRead::html_typedef()
endl <<
"<TR>" << endl <<
"<TD BGCOLOR=\"white\" CLASS=\"NavBarCell2\"><FONT SIZE=\"-2\">" << endl;
if ( doc_fresh && strcmp( doc_code, "") != 0)
if ( (strcmp( typedef_typeref, "Mask") == 0 ||
strcmp( typedef_typeref, "Enum") == 0) &&
strcmp( low_volume_name, "pwrs") != 0) {
sprintf( code_aref, "%s#%s", struct_file, typedef_name);
html_clf->f <<
" C Binding: &nbsp;<A HREF=\"" << code_aref << "\">Typedef</A>" << endl;
}
else if ( doc_fresh && strcmp( doc_code, "") != 0)
{
src_filename_to_html( ref_name, doc_code);
sprintf( code_aref, "%s#%s", ref_name, low_class_name);
html_clf->f <<
" C Binding: &nbsp;<A HREF=\"" << ref_name << "#" << low_class_name << "\">Typedef</A>" << endl;
" C Binding: &nbsp;<A HREF=\"" << code_aref << "\">Typedef</A>" << endl;
}
for ( i = 0; i < 50; i++)
html_clf->f << "&nbsp;";
......@@ -1045,6 +1158,32 @@ endl <<
html_clf->f <<
"</FONT>" << endl;
if ( strcmp( typedef_typeref, "Mask") == 0 ||
strcmp( typedef_typeref, "Enum") == 0) {
char bitchar = _tolower(typedef_typeref[0]);
html_clf->f <<
"<HR><BR>" << endl <<
"<A NAME=\"" << typedef_name << "\"><!-- --></A>" << endl <<
"<TABLE BORDER=\"1\" CELLPADDING=\"3\" CELLSPACING=\"0\" WIDTH=\"100%\">" << endl <<
"<TR BGCOLOR=\"#CCCCFF\" CLASS=\"TableHeadingColor\">" << endl <<
"<TD COLSPAN=3><FONT SIZE=\"+2\">" << endl <<
"<B>" << typedef_name << " elements</B></FONT>" <<
"<FONT SIZE=\"+1\"<B>&nbsp;&nbsp;&nbsp;&nbsp; <A HREF=\"" << code_aref << "\">pwr_" << bitchar << typedef_name << "</A></B></FONT></TD>" << endl <<
"</TR>" << endl;
}
return 1;
}
int ClassRead::html_typedef_close()
{
if ( strcmp( typedef_typeref, "Mask") == 0 ||
strcmp( typedef_typeref, "Enum") == 0) {
html_clf->f <<
"</TABLE>" << endl;
}
fp_tmp.close();
// Copy temporary file
......
......@@ -21,8 +21,8 @@ typedef struct {
int ClassRead::struct_init()
{
char struct_filename[200];
char fname[200];
pwr_tFileName struct_filename;
pwr_tFileName fname;
int sts;
struct_get_filename( struct_filename);
......@@ -83,8 +83,8 @@ int ClassRead::struct_class()
{
// Open class struct file
char struct_filename[200];
char fname[200];
pwr_tFileName struct_filename;
pwr_tFileName fname;
char volume_name_low[40];
strcpy( volume_name_low, low(volume_name));
......@@ -348,6 +348,8 @@ int ClassRead::struct_attribute()
if ( strncmp( low(attr_typeref), "pwr_etype_", strlen("pwr_etype_")) == 0)
strcpy( attr_typeref, &attr_typeref[strlen("pwr_etype_")]);
else if ( strncmp( low(attr_typeref), "pwr_etypedef_", strlen("pwr_etypedef_")) == 0)
strcpy( attr_typeref, &attr_typeref[strlen("pwr_etypedef_")]);
if ( strcmp( low(attr_type), "buffer") == 0)
{
......@@ -382,7 +384,7 @@ int ClassRead::struct_attribute()
// Check type for baseclasses
if ( strcmp( low(volume_name), "pwrb") == 0)
{
sts = struct_check_typename( type_name);
sts = struct_check_typename( attr_typeref_volume, type_name);
if ( EVEN(sts))
{
printf("Error, unknown attribute type '%s'", type_name);
......@@ -613,21 +615,89 @@ int ClassRead::struct_attribute()
int ClassRead::struct_typedef()
{
if ( strcmp( typedef_typeref, "String") == 0)
if ( strcmp( typedef_typeref, "Mask") == 0 ||
strcmp( typedef_typeref, "Enum") == 0) {
if ( strcmp(typedef_pgmname, "") == 0)
strcpy( typedef_pgmname, typedef_name);
fp_struct <<
"/*_* " << typedef_typeref << ": " << typedef_name << endl <<
" @Aref " << typedef_name << " " << typedef_name << endl <<
"*/" << endl << endl <<
"typedef pwr_t" << typedef_typeref << " pwr_t" << typedef_name << ";" << endl << endl <<
"typedef enum {" << endl;
}
else if ( strcmp( typedef_typeref, "String") == 0) {
if ( typedef_elements > 1)
fp_struct <<
"typedef char pwr_t" << typedef_name << "[" << typedef_elements << "];" << endl << endl;
else
fp_struct <<
else
fp_struct <<
"typedef char pwr_t" << typedef_name << ";" << endl << endl;
}
else {
if ( typedef_elements > 1)
fp_struct <<
"typedef pwr_t" << typedef_typeref << " pwr_t" << typedef_name << "[" << typedef_elements << "];" << endl << endl;
else
fp_struct <<
"typedef pwr_t" << typedef_typeref << " pwr_t" << typedef_name << ";" << endl << endl;
}
struct_class_open = 1;
return 1;
}
int ClassRead::struct_typedef_close()
{
if ( strcmp(typedef_pgmname, "") == 0)
strcpy( typedef_pgmname, typedef_name);
if ( strcmp( typedef_typeref, "Mask") == 0)
fp_struct <<
"} pwr_m" << typedef_pgmname << ";" << endl << endl;
else if ( strcmp( typedef_typeref, "Enum") == 0)
fp_struct <<
"} pwr_e" << typedef_pgmname << ";" << endl << endl;
struct_class_open = 0;
return 1;
}
int ClassRead::struct_bit()
{
char pgmname[80];
int i;
if ( strcmp(typedef_pgmname, "") == 0)
strcpy( typedef_pgmname, typedef_name);
if ( strcmp( bit_pgmname, "") == 0)
strcpy( pgmname, bit_name);
else
strcpy( pgmname, bit_pgmname);
if ( strcmp( bit_type, "Bit") == 0) {
fp_struct <<
" pwr_m" << typedef_pgmname << "_" << pgmname;
for ( i = 0; i < int(30 - strlen(typedef_pgmname) - strlen(pgmname)); i++)
fp_struct << ' ';
fp_struct << " = " << bit_value << "," << endl;
}
else if ( strcmp( bit_type, "Value") == 0) {
fp_struct <<
" pwr_e" << typedef_pgmname << "_" << pgmname;
for ( i = 0; i < int(30 - strlen(typedef_pgmname) - strlen(pgmname)); i++)
fp_struct << ' ';
fp_struct << " = " << bit_value << "," << endl;
}
return 1;
}
int ClassRead::struct_volname_to_id()
{
FILE *fp;
char fname[200];
pwr_tFileName fname;
char line[400];
char line_part[4][80];
int nr;
......@@ -763,7 +833,10 @@ int ClassRead::struct_cixstr_to_classid( char *cix_str, pwr_tClassId *cid)
{ "pwr_eCix_MountVolume", pwr_eCix_MountVolume},
{ "pwr_eCix_MountObject", pwr_eCix_MountObject},
{ "pwr_eCix_RtMenu", pwr_eCix_RtMenu},
{ "pwr_eCix_VolatileVolume", pwr_eCix_VolatileVolume},
{ "pwr_eCix_VolatileVolume", pwr_eCix_VolatileVolume},
{ "pwr_eCix_MenuRef", pwr_eCix_MenuRef},
{ "pwr_eCix_Bit", pwr_eCix_Bit},
{ "pwr_eCix_Value", pwr_eCix_Value},
{ "", 0}};
found = 0;
......@@ -800,10 +873,12 @@ void ClassRead::struct_get_filename( char *struct_file)
strcat( struct_file, "classes.h");
}
int ClassRead::struct_check_typename( char *type_name)
int ClassRead::struct_check_typename( char *type_volume, char *type_name)
{
char *name;
char valid_names[][40] = {
// Only types in pwrs can be typechecked
if ( strcmp( type_volume, "pwrs") == 0 || strcmp( type_volume, "") == 0) {
char *name;
char valid_names[][40] = {
"pwr_tAddress",
"pwr_tBit",
"pwr_tBitMask",
......@@ -860,11 +935,13 @@ int ClassRead::struct_check_typename( char *type_name)
"pwr_tURL",
""};
for ( name = valid_names[0]; strcmp(name,"") != 0;
name += sizeof(valid_names[0]))
{
if ( strcmp( name, type_name) == 0)
return 1;
for ( name = valid_names[0]; strcmp(name,"") != 0;
name += sizeof(valid_names[0])) {
if ( strcmp( name, type_name) == 0)
return 1;
}
return 0;
}
return 0;
else
return 1;
}
......@@ -15,7 +15,7 @@ extern "C" {
int ClassRead::xtthelp_init()
{
char fname[200];
pwr_tFileName fname;
strcpy( fname, dir);
strcat( fname, volume_name);
......@@ -150,6 +150,11 @@ int ClassRead::xtthelp_class_close()
return 1;
}
int ClassRead::xtthelp_bit()
{
return 1;
}
int ClassRead::xtthelp_attribute()
{
int i;
......
......@@ -103,7 +103,7 @@ void *wnav_help_insert_cb( void *ctx, navh_eItemType item_type, char *text1,
switch ( item_type) {
case navh_eItemType_Topic:
{
char fname[200];
pwr_tFileName fname;
xh->subject_to_fname( fname, text1, 1);
xh->fp.open( fname);
......@@ -131,10 +131,13 @@ void *wnav_help_insert_cb( void *ctx, navh_eItemType item_type, char *text1,
{
if ( strcmp( link, "") != 0) {
char fname[200];
pwr_tFileName fname;
if ( strncmp( link, "$web:", 5) == 0) {
strcpy( fname, &link[5]);
if ( strncmp( &link[5], "$pwrp_web/", 10) == 0)
strcpy( fname, &link[15]);
else
strcpy( fname, &link[5]);
}
else if ( (strstr( link, ".htm") != 0) ||
(strstr( link, ".pdf") != 0)) {
......@@ -183,10 +186,13 @@ void *wnav_help_insert_cb( void *ctx, navh_eItemType item_type, char *text1,
}
case navh_eItemType_HelpBold:
{
char fname[200];
pwr_tFileName fname;
if ( strcmp( link, "") != 0) {
if ( strncmp( link, "$web:", 5) == 0) {
strcpy( fname, &link[5]);
if ( strncmp( &link[5], "$pwrp_web/", 10) == 0)
strcpy( fname, &link[15]);
else
strcpy( fname, &link[5]);
}
else if ( (strstr( link, ".htm") != 0) ||
(strstr( link, ".pdf") != 0)) {
......
......@@ -61,6 +61,11 @@ static void help()
static int convert_sort_files( const void *file1, const void *file2)
{
// Types before classes
if ( strstr( (char *)file1, "_td_") && !strstr( (char *)file2, "_td_"))
return -1;
else if (!strstr( (char *)file1, "_td_") && strstr( (char *)file2, "_td_"))
return 1;
return ( strcmp( (char *)file1, (char *)file2));
}
......
......@@ -51,7 +51,7 @@ $(load_dir)/pwrb.dbs :
$(inc_dir)/pwr_baseclasses.h :
@ echo "Generating struct files for pwrb classes..."
@ co_convert -s -d $(inc_dir) "$(pwre_sroot)/wbl/pwrb/src/pwrb_c_*.wb_load"
@ co_convert -sv -d $(inc_dir) "$(pwre_sroot)/wbl/pwrb/src/pwrb_*.wb_load"
$(inc_dir)/pwr_baseclasses.hpp :
@ echo "Generating hpp files for pwrb classes..."
......@@ -59,7 +59,7 @@ $(inc_dir)/pwr_baseclasses.hpp :
$(doc_dir)/orm/pwrb_allclasses.html :
@ echo "Generating html files for pwrb classes..."
@ co_convert -w -d $(doc_dir)/orm -g $(pwre_sroot)/wbl/pwrb/src/cnv_setup.dat "$(pwre_sroot)/wbl/pwrb/src/pwrb_c_*.wb_load"
@ co_convert -w -d $(doc_dir)/orm -g $(pwre_sroot)/wbl/pwrb/src/cnv_setup.dat "$(pwre_sroot)/wbl/pwrb/src/pwrb_*.wb_load"
@ echo "Generating html files for pwrb structs..."
@ co_convert -c -d $(doc_dir)/orm $(inc_dir)/pwr_baseclasses.h
@ co_convert -c -d $(doc_dir)/orm $(inc_dir)/pwr_baseclasses.hpp
......
......@@ -207,22 +207,24 @@ SObject pwrb:Class
! The filtering is done on the engineering value,
! ActualValue, before storage in rtdb according:
!
! ActulaValue(t) = ActulaValue(t-1) + a * (InValue - ActulaValue(t-1)),
! where ActulaValue(t-1) is the
! engineering value stored at the former sampel
! and InValue(t) the current engineering value
! before filtering.
! a = ScanInterval * CycleTimeBus /
! FilterAttribute[0] and 0 < a < 1.0
! ActulaValue(t) = ActulaValue(t-1) + a * (InValue - ActulaValue(t-1))
!
! where
! - ActualValue(t-1) is the engineering value stored at the
! former sample
! - nValue(t) the current engineering value before filtering.
! - a = ScanInterval * ScanTime / FilterAttribute[0]
! and 0 < a < 1.0
!
! If a >= 0 no filtering is done. The less a the harder
! filtering.
!
! The product ScanInterval * CycleTimeBus specifies the updating
! The product ScanInterval * ScanTime specifies the updating
! period of the signal
!*/
Object FilterType $Attribute 13
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr TypeRef = "pwrb:Type-AiFilterTypeEnum"
EndBody
EndObject
!/**
......@@ -279,6 +281,14 @@ SObject pwrb:Class
EndObject
EndObject
EndObject
Object RtXtt $RtMenu
Object Channel $MenuRef
Body SysBody
Attr ButtonName = "Channel"
Attr RefAttribute = "SigChanCon"
EndBody
EndObject
EndObject
EndObject
EndSObject
......
......@@ -235,6 +235,14 @@ SObject pwrb:Class
EndObject
EndObject
EndObject
Object RtXtt $RtMenu
Object Channel $MenuRef
Body SysBody
Attr ButtonName = "Channel"
Attr RefAttribute = "SigChanCon"
EndBody
EndObject
EndObject
EndObject
EndSObject
......
......@@ -248,7 +248,7 @@ SObject pwrb:Class
Object EventType $Attribute 10
Body SysBody
Attr PgmName = "EventType"
Attr TypeRef = "pwrs:Type-$Enum"
Attr TypeRef = "pwrb:Type-EventTypeEnum"
EndBody
EndObject
!/**
......@@ -262,7 +262,7 @@ SObject pwrb:Class
Object EventPriority $Attribute 11
Body SysBody
Attr PgmName = "EventPriority"
Attr TypeRef = "pwrs:Type-$Enum"
Attr TypeRef = "pwrb:Type-EventPrioEnum"
EndBody
EndObject
!/**
......@@ -286,7 +286,7 @@ SObject pwrb:Class
Object EventFlags $Attribute 12
Body SysBody
Attr PgmName = "EventFlags"
Attr TypeRef = "pwrs:Type-$Mask"
Attr TypeRef = "pwrb:Type-EventFlagsMask"
EndBody
EndObject
!/**
......
......@@ -34,7 +34,7 @@ SObject pwrb:Class
!*/
Object TextAttribute $Intern 1
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr TypeRef = "pwrb:Type-TextAttrEnum"
EndBody
EndObject
!/**
......@@ -44,7 +44,7 @@ SObject pwrb:Class
!*/
Object FrameAttribute $Intern 2
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr TypeRef = "pwrb:Type-FrameAttrEnum"
EndBody
EndObject
!/**
......
......@@ -177,24 +177,26 @@ SObject pwrb:Class
EndBody
EndObject
!/**
! Specifies in which way SigValue will be converted to
! ActualValue. The possible types of conversions are:
!
! -- 0 No conversion: p ( s(SigValue) ) = s(SigValue)
! -- 1 The normal case: p ( s(SigValue) ) =
!
! SensorPolyCoef0 + SensorPolyCoef1 * s(igValue) + SensorPolyCoef2 * s(igValue) ** 2
! SigValue belong to the Ai object. SensorTypeCode specifies the
! sensor function.
! Obsolete.
!*/
Object SensorTypeCode $Attribute 15
Body SysBody
Attr TypeRef = "pwrs:Type-$UInt16"
EndBody
EndObject
!/**
! Specifies in which way SigValue will be converted to
! ActualValue. The possible types of conversions are:
!
! 0 No conversion
! 1 Linerar converson.
! 2 Parabolic conversion.
! 3 Squareroot conversion.
! 4 Signed squareroot conversion.
!*/
Object SensorPolyType $Attribute 16
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr TypeRef = "pwrb:Type-AiSensorTypeEnum"
EndBody
EndObject
!/**
......@@ -307,5 +309,13 @@ SObject pwrb:Class
EndObject
EndObject
EndObject
Object RtXtt $RtMenu
Object Signal $MenuRef
Body SysBody
Attr ButtonName = "Signal"
Attr RefAttribute = "SigChanCon"
EndBody
EndObject
EndObject
EndObject
EndSObject
......@@ -292,5 +292,13 @@ SObject pwrb:Class
EndObject
EndObject
EndObject
Object RtXtt $RtMenu
Object Signal $MenuRef
Body SysBody
Attr ButtonName = "Signal"
Attr RefAttribute = "SigChanCon"
EndBody
EndObject
EndObject
EndObject
EndSObject
......@@ -239,5 +239,13 @@ SObject pwrb:Class
EndObject
EndObject
EndObject
Object RtXtt $RtMenu
Object Signal $MenuRef
Body SysBody
Attr ButtonName = "Signal"
Attr RefAttribute = "SigChanCon"
EndBody
EndObject
EndObject
EndObject
EndSObject
......@@ -189,5 +189,13 @@ SObject pwrb:Class
EndObject
EndObject
EndObject
Object RtXtt $RtMenu
Object Signal $MenuRef
Body SysBody
Attr ButtonName = "Signal"
Attr RefAttribute = "SigChanCon"
EndBody
EndObject
EndObject
EndObject
EndSObject
......@@ -226,5 +226,13 @@ SObject pwrb:Class
EndObject
EndObject
EndObject
Object RtXtt $RtMenu
Object Signal $MenuRef
Body SysBody
Attr ButtonName = "Signal"
Attr RefAttribute = "SigChanCon"
EndBody
EndObject
EndObject
EndObject
EndSObject
......@@ -85,5 +85,13 @@ SObject pwrb:Class
Attr ConversionOn = 1
EndBody
EndObject
Object RtXtt $RtMenu
Object Signal $MenuRef
Body SysBody
Attr ButtonName = "Signal"
Attr RefAttribute = "SigChanCon"
EndBody
EndObject
EndObject
EndObject
EndSObject
......@@ -115,6 +115,14 @@ SObject pwrb:Class
EndBody
EndObject
EndObject
Object RtXtt $RtMenu
Object Signal $MenuRef
Body SysBody
Attr ButtonName = "Signal"
Attr RefAttribute = "SigChanCon"
EndBody
EndObject
EndObject
EndObject
EndSObject
......
......@@ -208,6 +208,14 @@ SObject pwrb:Class
EndObject
EndObject
EndObject
Object RtXtt $RtMenu
Object Channel $MenuRef
Body SysBody
Attr ButtonName = "Channel"
Attr RefAttribute = "SigChanCon"
EndBody
EndObject
EndObject
EndObject
EndSObject
......
......@@ -115,7 +115,7 @@ SObject pwrb:Class
!*/
Object NoOfBits $Attribute 10
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr TypeRef = "pwrb:Type-SsabCoNoOfBitsEnum"
Attr Flags |= PWR_MASK_ARRAY
Attr Elements = 4
EndBody
......@@ -137,7 +137,7 @@ SObject pwrb:Class
!*/
Object MulCount $Attribute 12
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr TypeRef = "pwrb:Type-SsabCoMulCountEnum"
Attr Flags |= PWR_MASK_ARRAY
Attr Elements = 4
EndBody
......@@ -149,7 +149,7 @@ SObject pwrb:Class
!*/
Object DivCount $Attribute 13
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr TypeRef = "pwrb:Type-SsabCoDivCountEnum"
Attr Flags |= PWR_MASK_ARRAY
Attr Elements = 4
EndBody
......
......@@ -110,7 +110,7 @@ SObject pwrb:Class
!*/
Object NoOfBits $Attribute 10
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr TypeRef = "pwrb:Type-SsabCoNoOfBitsEnum"
Attr Flags |= PWR_MASK_ARRAY
Attr Elements = 4
EndBody
......@@ -132,7 +132,7 @@ SObject pwrb:Class
!*/
Object MulCount $Attribute 12
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr TypeRef = "pwrb:Type-SsabCoMulCountEnum"
Attr Flags |= PWR_MASK_ARRAY
Attr Elements = 4
EndBody
......@@ -144,7 +144,7 @@ SObject pwrb:Class
!*/
Object DivCount $Attribute 13
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr TypeRef = "pwrb:Type-SsabCoDivCountEnum"
Attr Flags |= PWR_MASK_ARRAY
Attr Elements = 4
EndBody
......
......@@ -52,7 +52,7 @@ SObject pwrb:Class
!*/
Object DelayAction $Attribute 3
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr TypeRef = "pwrb:Type-SupDelayActionEnum"
EndBody
EndObject
!/**
......@@ -284,7 +284,7 @@ SObject pwrb:Class
!*/
Object EventType $Attribute 22
Body SysBody
Attr TypeRef = "pwrs:Type-$UInt32"
Attr TypeRef = "pwrb:Type-EventTypeEnum"
EndBody
EndObject
!/**
......@@ -297,7 +297,7 @@ SObject pwrb:Class
!*/
Object EventPriority $Attribute 23
Body SysBody
Attr TypeRef = "pwrs:Type-$UInt32"
Attr TypeRef = "pwrb:Type-EventPrioEnum"
EndBody
EndObject
!/**
......@@ -322,7 +322,7 @@ SObject pwrb:Class
!*/
Object EventFlags $Attribute 24
Body SysBody
Attr TypeRef = "pwrs:Type-$UInt32"
Attr TypeRef = "pwrb:Type-EventFlagsMask"
EndBody
EndObject
!/**
......
......@@ -185,7 +185,7 @@ SObject pwrb:Class
!*/
Object FilterType $Attribute 10
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr TypeRef = "pwrb:Type-DiFilterTypeEnum"
EndBody
EndObject
!/**
......@@ -242,6 +242,14 @@ SObject pwrb:Class
EndObject
EndObject
EndObject
Object RtXtt $RtMenu
Object Channel $MenuRef
Body SysBody
Attr ButtonName = "Channel"
Attr RefAttribute = "SigChanCon"
EndBody
EndObject
EndObject
EndObject
EndSObject
......
......@@ -84,7 +84,7 @@ SObject pwrb:Class
!*/
Object Components $Attribute 1
Body SysBody
Attr TypeRef = "pwrs:Type-$Mask"
Attr TypeRef = "pwrb:Type-DistrComponentMask"
EndBody
EndObject
EndObject
......
......@@ -198,6 +198,14 @@ SObject pwrb:Class
EndObject
EndObject
EndObject
Object RtXtt $RtMenu
Object Channel $MenuRef
Body SysBody
Attr ButtonName = "Channel"
Attr RefAttribute = "SigChanCon"
EndBody
EndObject
EndObject
EndObject
EndSObject
......
......@@ -69,12 +69,12 @@ SObject pwrb:Class
EndObject
Object DocumentOrientation $Intern 4
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr TypeRef = "pwrb:Type-DocumentOrientEnum"
EndBody
EndObject
Object DocumentSize $Intern 5
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr TypeRef = "pwrb:Type-DocumentSizeEnum"
EndBody
EndObject
EndObject
......
......@@ -248,7 +248,7 @@ SObject pwrb:Class
Object EventType $Attribute 10
Body SysBody
Attr PgmName = "EventType"
Attr TypeRef = "pwrs:Type-$Enum"
Attr TypeRef = "pwrb:Type-EventTypeEnum"
EndBody
EndObject
!/**
......@@ -262,7 +262,7 @@ SObject pwrb:Class
Object EventPriority $Attribute 11
Body SysBody
Attr PgmName = "EventPriority"
Attr TypeRef = "pwrs:Type-$Enum"
Attr TypeRef = "pwrb:Type-EventPrioEnum"
EndBody
EndObject
!/**
......@@ -288,7 +288,7 @@ SObject pwrb:Class
Object EventFlags $Attribute 12
Body SysBody
Attr PgmName = "EventFlags"
Attr TypeRef = "pwrs:Type-$Mask"
Attr TypeRef = "pwrb:Type-EventFlagsMask"
EndBody
EndObject
!/**
......
......@@ -40,7 +40,7 @@ SObject pwrb:Class
!*/
Object FrameAttribute $Intern 1
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr TypeRef = "pwrb:Type-FrameAttrEnum"
EndBody
EndObject
!/**
......
......@@ -58,7 +58,7 @@ SObject pwrb:Class
!*/
Object TextAttribute $Intern 2
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr TypeRef = "pwrb:Type-TextAttrEnum"
EndBody
EndObject
!/**
......@@ -68,7 +68,7 @@ SObject pwrb:Class
!*/
Object FrameAttribute $Intern 3
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr TypeRef = "pwrb:Type-FrameAttrEnum"
EndBody
EndObject
!/**
......
......@@ -182,6 +182,14 @@ SObject pwrb:Class
EndObject
EndObject
EndObject
Object RtXtt $RtMenu
Object Channel $MenuRef
Body SysBody
Attr ButtonName = "Channel"
Attr RefAttribute = "SigChanCon"
EndBody
EndObject
EndObject
EndObject
EndSObject
......
......@@ -181,5 +181,13 @@ SObject pwrb:Class
EndObject
EndObject
EndObject
Object RtXtt $RtMenu
Object Channel $MenuRef
Body SysBody
Attr ButtonName = "Channel"
Attr RefAttribute = "SigChanCon"
EndBody
EndObject
EndObject
EndObject
EndSObject
......@@ -249,7 +249,7 @@ SObject pwrb:Class
!*/
Object OpMod $Intern 12
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr TypeRef = "pwrb:Type-PidModeMask"
Attr GraphName = "OpMod"
EndBody
EndObject
......@@ -267,7 +267,7 @@ SObject pwrb:Class
!*/
Object AccMod $Intern 13
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr TypeRef = "pwrb:Type-PidModeEnum"
Attr GraphName = "AccMod"
EndBody
EndObject
......
......@@ -66,7 +66,7 @@ SObject pwrb:Class
!*/
Object OperatingSystem $Attribute 3
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr TypeRef = "pwrs:Type-$OpSysEnum"
EndBody
EndObject
!/**
......
......@@ -35,7 +35,7 @@ SObject pwrb:Class
!
Object NumberRepresentation $Attribute 4
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr TypeRef = "pwrb:Type-PbNumberRepEnum"
EndBody
EndObject
!
......
......@@ -33,7 +33,7 @@ SObject pwrb:Class
!
Object NumberRepresentation $Attribute 4
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr TypeRef = "pwrb:Type-PbNumberRepEnum"
EndBody
EndObject
!
......
......@@ -36,7 +36,7 @@ SObject pwrb:Class
!
Object Orientation $Attribute 4
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr TypeRef = "pwrb:Type-PbOrientationEnum"
EndBody
EndObject
!
......
......@@ -38,7 +38,7 @@ SObject pwrb:Class
!
Object Orientation $Attribute 4
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr TypeRef = "pwrb:Type-PbOrientationEnum"
EndBody
EndObject
!
......
......@@ -59,14 +59,14 @@ SObject pwrb:Class
!
Object ByteOrdering $Attribute 7
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr TypeRef = "pwrb:Type-ByteOrderingEnum"
EndBody
EndObject
!
!
Object StallAction $Attribute 8
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr TypeRef = "pwrb:Type-PbStallActionEnum"
EndBody
EndObject
!
......
......@@ -35,7 +35,7 @@ SObject pwrb:Class
!
Object NumberRepresentation $Attribute 4
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr TypeRef = "pwrb:Type-PbNumberRepEnum"
EndBody
EndObject
!
......
......@@ -33,7 +33,7 @@ SObject pwrb:Class
!
Object NumberRepresentation $Attribute 4
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr TypeRef = "pwrb:Type-PbNumberRepEnum"
EndBody
EndObject
!
......
......@@ -353,35 +353,45 @@ SObject pwrb:Class
EndBody
EndObject
!/**
! @Summary The PID control algorithm
! There are several variations of the PID control
! algorithm. PidAlg specifies the current choice. The
! possible values are as follows:
!
! 1 -- I Integral controller. Gain is not used.
!
! 3 -- I+P Integral controller with proportional
! control action. The P-term is based on the
!
! the process value.
!
! 6 -- P Proportional Controller.
!
! 7 -- PI Proportional Integral Controller. The
! P-term is based on the control error
! P-term is based on the control error.
!
! 11 -- I+PD Integral controller with proportional
! derivative control action. Both the P- and
! D-term are based on the process value
! D-term are based on the process value.
!
! 14 -- P+D Proportional Controller with derivative
! control action. P is based on the control
! control action. P is based on the control error,
! D on the process value.
!
! 15 -- PI+D Proportional Integral Controller with
! derivative control action. P is based on
! the control error, D on the process value.
!
! 30 -- PD Proportional Derivative Controller. Both
! the P- and D-term are based on the control
! error.
!
! 31 -- PID Proportional Integral Derivative
! Controller. Both the P- and D-term are
! based on the control error.
!*/
Object PidAlg $Intern 12
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr TypeRef = "pwrb:Type-PidAlgEnum"
Attr GraphName = "PidAlg"
EndBody
EndObject
......
......@@ -199,6 +199,12 @@ SObject pwrb:Class
Attr MethodName = "PlcPgm-OpenTrace"
EndBody
EndObject
Object Thread $MenuRef
Body SysBody
Attr ButtonName = "Thread"
Attr RefAttribute = "ThreadObject"
EndBody
EndObject
Object Scan $MenuCascade
Body SysBody
Attr ButtonName = "Scan"
......
......@@ -275,6 +275,14 @@ SObject pwrb:Class
EndObject
EndObject
EndObject
Object RtXtt $RtMenu
Object Channel $MenuRef
Body SysBody
Attr ButtonName = "Channel"
Attr RefAttribute = "SigChanCon"
EndBody
EndObject
EndObject
EndObject
EndSObject
......
......@@ -70,7 +70,7 @@ SObject pwrb:Class
!*/
Object Parity $Attribute 5
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr TypeRef = "pwrb:Type-ParityEnum"
EndBody
EndObject
!/**
......@@ -79,7 +79,7 @@ SObject pwrb:Class
!*/
Object StopBits $Attribute 6
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr TypeRef = "pwrb:Type-StopBitsEnum"
EndBody
EndObject
!/**
......@@ -88,7 +88,7 @@ SObject pwrb:Class
!*/
Object DataBits $Attribute 7
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr TypeRef = "pwrb:Type-DataBitsEnum"
EndBody
EndObject
!/**
......
......@@ -70,7 +70,7 @@ SObject pwrb:Class
!*/
Object Parity $Attribute 5
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr TypeRef = "pwrb:Type-ParityEnum"
EndBody
EndObject
!/**
......@@ -79,7 +79,7 @@ SObject pwrb:Class
!*/
Object StopBits $Attribute 6
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr TypeRef = "pwrb:Type-StopBitsEnum"
EndBody
EndObject
!/**
......@@ -88,7 +88,7 @@ SObject pwrb:Class
!*/
Object DataBits $Attribute 7
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr TypeRef = "pwrb:Type-DataBitsEnum"
EndBody
EndObject
!/**
......
......@@ -70,7 +70,7 @@ SObject pwrb:Class
!*/
Object Parity $Attribute 5
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr TypeRef = "pwrb:Type-ParityEnum"
EndBody
EndObject
!/**
......@@ -79,7 +79,7 @@ SObject pwrb:Class
!*/
Object StopBits $Attribute 6
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr TypeRef = "pwrb:Type-StopBitsEnum"
EndBody
EndObject
!/**
......@@ -88,7 +88,7 @@ SObject pwrb:Class
!*/
Object DataBits $Attribute 7
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr TypeRef = "pwrb:Type-DataBitsEnum"
EndBody
EndObject
!/**
......
......@@ -98,7 +98,7 @@ SObject pwrb:Class
!*/
Object ConnectionMode $Attribute 8
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr TypeRef = "pwrb:Type-ClientServerEnum"
EndBody
EndObject
!/**
......
......@@ -58,7 +58,7 @@ SObject pwrb:Class
!*/
Object TextAttribute $Intern 2
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr TypeRef = "pwrb:Type-TextAttrEnum"
EndBody
EndObject
!/**
......@@ -68,7 +68,7 @@ SObject pwrb:Class
!*/
Object FrameAttribute $Intern 3
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr TypeRef = "pwrb:Type-FrameAttrEnum"
EndBody
EndObject
!/**
......
......@@ -59,7 +59,7 @@ SObject pwrb:Class
!*/
Object TextAttribute $Intern 2
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr TypeRef = "pwrb:Type-TextAttrEnum"
EndBody
EndObject
!/**
......@@ -69,7 +69,7 @@ SObject pwrb:Class
!*/
Object FrameAttribute $Intern 3
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr TypeRef = "pwrb:Type-FrameAttrEnum"
EndBody
EndObject
!/**
......
......@@ -62,7 +62,7 @@ SObject pwrb:Class
!*/
Object WebTarget $Attribute 3
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr TypeRef = "pwrb:Type-WebTargetEnum"
EndBody
EndObject
EndObject
......
......@@ -58,7 +58,7 @@ SObject pwrb:Class
!*/
Object WebTarget $Attribute 3
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr TypeRef = "pwrb:Type-WebTargetEnum"
EndBody
EndObject
EndObject
......
! pwrb_aifiltertypeenum.wb_load -- Defines the enum type AiFilterTypeEnum
!
! PROVIEW/R
! Copyright (C) 1996 by Comator Process AB.
!
! <Description>.
!
SObject pwrb:Type
!/**
! @Version 1.0
! @Group Types
! Enumeration for filtertypes in ai objects.
!
!*/
Object AiFilterTypeEnum $TypeDef 8
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr PgmName = "AiFilterType"
EndBody
!/**
! No filter.
!*/
Object No $Value
Body SysBody
Attr PgmName = "No"
Attr Text = "No"
Attr Value = 0
EndBody
EndObject
!/**
! Exponential filter.
! The filtering is done on the engineering value,
! ActualValue, before storage in rtdb according:
!
! ActulaValue(t) = ActulaValue(t-1) + a * (InValue - ActulaValue(t-1))
!
! where
! - ActualValue(t-1) is the engineering value stored at the
! former sample
! - nValue(t) the current engineering value before filtering.
! - a = ScanInterval * ScanTime / FilterAttribute[0]
! and 0 < a < 1.0
!
! If a >= 0 no filtering is done. The less a the harder
! filtering.
!
! The product ScanInterval * ScanTime specifies the updating
! period of the signal
!*/
Object Exponential $Value
Body SysBody
Attr PgmName = "Exponential"
Attr Text = "Exponential"
Attr Value = 1
EndBody
EndObject
EndObject
EndSObject
! pwrb_td_aisensortypeenum.wb_load -- Defines the enum type AiSensorTypeEnum
!
! PROVIEW/R
! Copyright (C) 1996 by Comator Process AB.
!
! <Description>.
!
SObject pwrb:Type
!/**
! @Version 1.0
! @Group Types
! Enumeration for Ai sensor conversion types.
!
! @b See also
! @classlink ChanAi pwrb_chanai.html
!*/
Object AiSensorTypeEnum $TypeDef 18
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr PgmName = "AiSensorType"
EndBody
!/**
! No conversion. ActualValue is equal to SignalValue
!*/
Object SignalValue $Value
Body SysBody
Attr PgmName = "SignalValue"
Attr Text = "SignalValue"
Attr Value = 0
EndBody
EndObject
!/**
! Linear conversion.
!*/
Object Linear $Value
Body SysBody
Attr PgmName = "Linear"
Attr Text = "Linear"
Attr Value = 1
EndBody
EndObject
!/**
! Parabolic conversion.
!*/
Object Parabolic $Value
Body SysBody
Attr PgmName = "Parabolic"
Attr Text = "Parabolic"
Attr Value = 2
EndBody
EndObject
!/**
! Squareroot conversion.
!*/
Object SquareRoot $Value
Body SysBody
Attr PgmName = "SquareRoot"
Attr Text = "SquareRoot"
Attr Value = 3
EndBody
EndObject
!/**
! Signed squareroot conversion.
!*/
Object SignedSquareRoot $Value
Body SysBody
Attr PgmName = "SignedSquareRoot"
Attr Text = "Signed SquareRoot"
Attr Value = 4
EndBody
EndObject
EndObject
EndSObject
! pwrb_td_byteordering.wb_load -- Defines the enum type ByteOrdering
!
! PROVIEW/R
! Copyright (C) 1996 by Comator Process AB.
!
! <Description>.
!
SObject pwrb:Type
!/**
! @Version 1.0
! @Group Types
! Enumeration for byte ordering.
!*/
Object ByteOrderingEnum $TypeDef 27
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr PgmName = "ByteOrdering"
EndBody
!/**
! Little Endian.
!*/
Object LittleEndian $Value
Body SysBody
Attr PgmName = "LittleEndian"
Attr Text = "Little Endian"
Attr Value = 0
EndBody
EndObject
!/**
! Big Endian.
!*/
Object BigEndian $Value
Body SysBody
Attr PgmName = "BigEndian"
Attr Text = "Big Endian"
Attr Value = 1
EndBody
EndObject
EndObject
EndSObject
! pwrb_td_cardmask1_1.wb_load -- Defines the mask type CardMask1_1
!
! PROVIEW/R
! Copyright (C) 1996 by Comator Process AB.
!
! <Description>.
!
SObject pwrb:Type
!/**
! @Version 1.0
! @Group Types
! Defines mask for channel 1 - 16, with channel index starting
! from 1.
!
! Compare CardMask1_0 with index staring from 0.
!*/
Object CardMask1_1 $TypeDef 14
Body SysBody
Attr TypeRef = "pwrs:Type-$Mask"
Attr PgmName = "CardMask1_1"
EndBody
!/**
! Channel 1.
!*/
Object Channel1 $Bit
Body SysBody
Attr PgmName = "Channel1"
Attr Text = "Channel 1"
Attr Value = 1
EndBody
EndObject
!/**
! Channel 2.
!*/
Object Channel2 $Bit
Body SysBody
Attr PgmName = "Channel2"
Attr Text = "Channel 2"
Attr Value = 2
EndBody
EndObject
!/**
! Channel 3.
!*/
Object Channel3 $Bit
Body SysBody
Attr PgmName = "Channel3"
Attr Text = "Channel 3"
Attr Value = 4
EndBody
EndObject
!/**
! Channel 1.
!*/
Object Channel4 $Bit
Body SysBody
Attr PgmName = "Channel4"
Attr Text = "Channel 4"
Attr Value = 8
EndBody
EndObject
!/**
! Channel 1.
!*/
Object Channel5 $Bit
Body SysBody
Attr PgmName = "Channel5"
Attr Text = "Channel 5"
Attr Value = 16
EndBody
EndObject
!/**
! Channel 6.
!*/
Object Channel6 $Bit
Body SysBody
Attr PgmName = "Channel6"
Attr Text = "Channel 6"
Attr Value = 32
EndBody
EndObject
!/**
! Channel 7.
!*/
Object Channel7 $Bit
Body SysBody
Attr PgmName = "Channel7"
Attr Text = "Channel 7"
Attr Value = 64
EndBody
EndObject
!/**
! Channel 8.
!*/
Object Channel8 $Bit
Body SysBody
Attr PgmName = "Channel8"
Attr Text = "Channel 8"
Attr Value = 128
EndBody
EndObject
!/**
! Channel 9.
!*/
Object Channel9 $Bit
Body SysBody
Attr PgmName = "Channel9"
Attr Text = "Channel 9"
Attr Value = 256
EndBody
EndObject
!/**
! Channel 10.
!*/
Object Channel10 $Bit
Body SysBody
Attr PgmName = "Channel10"
Attr Text = "Channel 10"
Attr Value = 512
EndBody
EndObject
!/**
! Channel 11.
!*/
Object Channel11 $Bit
Body SysBody
Attr PgmName = "Channel11"
Attr Text = "Channel 11"
Attr Value = 1024
EndBody
EndObject
!/**
! Channel 1.
!*/
Object Channel12 $Bit
Body SysBody
Attr PgmName = "Channel12"
Attr Text = "Channel 12"
Attr Value = 2048
EndBody
EndObject
!/**
! Channel 13.
!*/
Object Channel13 $Bit
Body SysBody
Attr PgmName = "Channel13"
Attr Text = "Channel 13"
Attr Value = 4096
EndBody
EndObject
!/**
! Channel 14.
!*/
Object Channel14 $Bit
Body SysBody
Attr PgmName = "Channel14"
Attr Text = "Channel 14"
Attr Value = 8192
EndBody
EndObject
!/**
! Channel 15.
!*/
Object Channel15 $Bit
Body SysBody
Attr PgmName = "Channel15"
Attr Text = "Channel 15"
Attr Value = 16384
EndBody
EndObject
!/**
! Channel 16.
!*/
Object Channel16 $Bit
Body SysBody
Attr PgmName = "Channel16"
Attr Text = "Channel 16"
Attr Value = 32768
EndBody
EndObject
EndObject
EndSObject
! pwrb_td_cardmask2_1.wb_load -- Defines the mask type CardMask1_1
!
! PROVIEW/R
! Copyright (C) 1996 by Comator Process AB.
!
! <Description>.
!
SObject pwrb:Type
!/**
! @Version 1.0
! @Group Types
! Defines mask for channel 17 - 32, with channel index starting
! from 1.
!
! Compare CardMask2_0 with index staring from 0.
!*/
Object CardMask2_1 $TypeDef 15
Body SysBody
Attr TypeRef = "pwrs:Type-$Mask"
Attr PgmName = "CardMask2_1"
EndBody
!/**
! Channel 17.
!*/
Object Channel17 $Bit
Body SysBody
Attr PgmName = "Channel17"
Attr Text = "Channel 17"
Attr Value = 1
EndBody
EndObject
!/**
! Channel 18.
!*/
Object Channel18 $Bit
Body SysBody
Attr PgmName = "Channel18"
Attr Text = "Channel 18"
Attr Value = 2
EndBody
EndObject
!/**
! Channel 19.
!*/
Object Channel19 $Bit
Body SysBody
Attr PgmName = "Channel19"
Attr Text = "Channel 19"
Attr Value = 4
EndBody
EndObject
!/**
! Channel 20.
!*/
Object Channel20 $Bit
Body SysBody
Attr PgmName = "Channel20"
Attr Text = "Channel 20"
Attr Value = 8
EndBody
EndObject
!/**
! Channel 1.
!*/
Object Channel21 $Bit
Body SysBody
Attr PgmName = "Channel21"
Attr Text = "Channel 21"
Attr Value = 16
EndBody
EndObject
!/**
! Channel 22.
!*/
Object Channel22 $Bit
Body SysBody
Attr PgmName = "Channel22"
Attr Text = "Channel 22"
Attr Value = 32
EndBody
EndObject
!/**
! Channel 7.
!*/
Object Channel23 $Bit
Body SysBody
Attr PgmName = "Channel23"
Attr Text = "Channel 23"
Attr Value = 64
EndBody
EndObject
!/**
! Channel 24.
!*/
Object Channel24 $Bit
Body SysBody
Attr PgmName = "Channel24"
Attr Text = "Channel 24"
Attr Value = 128
EndBody
EndObject
!/**
! Channel 25.
!*/
Object Channel25 $Bit
Body SysBody
Attr PgmName = "Channel25"
Attr Text = "Channel 25"
Attr Value = 256
EndBody
EndObject
!/**
! Channel 26.
!*/
Object Channel26 $Bit
Body SysBody
Attr PgmName = "Channel26"
Attr Text = "Channel 26"
Attr Value = 512
EndBody
EndObject
!/**
! Channel 27.
!*/
Object Channel27 $Bit
Body SysBody
Attr PgmName = "Channel27"
Attr Text = "Channel 27"
Attr Value = 1024
EndBody
EndObject
!/**
! Channel 1.
!*/
Object Channel28 $Bit
Body SysBody
Attr PgmName = "Channel28"
Attr Text = "Channel 28"
Attr Value = 2048
EndBody
EndObject
!/**
! Channel 29.
!*/
Object Channel29 $Bit
Body SysBody
Attr PgmName = "Channel29"
Attr Text = "Channel 29"
Attr Value = 4096
EndBody
EndObject
!/**
! Channel 30.
!*/
Object Channel30 $Bit
Body SysBody
Attr PgmName = "Channel30"
Attr Text = "Channel 30"
Attr Value = 8192
EndBody
EndObject
!/**
! Channel 31.
!*/
Object Channel31 $Bit
Body SysBody
Attr PgmName = "Channel31"
Attr Text = "Channel 31"
Attr Value = 16384
EndBody
EndObject
!/**
! Channel 32.
!*/
Object Channel32 $Bit
Body SysBody
Attr PgmName = "Channel32"
Attr Text = "Channel 32"
Attr Value = 32768
EndBody
EndObject
EndObject
EndSObject
! pwrb_td_clientserverenum.wb_load -- Defines the mask type ClientServerEnum
!
! PROVIEW/R
! Copyright (C) 1996 by Comator Process AB.
!
! <Description>.
!
SObject pwrb:Type
!/**
! @Version 1.0
! @Group Types
! Enumeration for Client/Server.
!*/
Object ClientServerEnum $TypeDef 21
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr PgmName = "ClientServer"
EndBody
!/**
! Client.
!*/
Object Client $Value
Body SysBody
Attr PgmName = "Client"
Attr Text = "Client"
Attr Value = 0
EndBody
EndObject
!/**
! Server.
!*/
Object Server $Value
Body SysBody
Attr PgmName = "Server"
Attr Text = "Server"
Attr Value = 1
EndBody
EndObject
EndObject
EndSObject
! pwrb_td_databitsenum.wb_load -- Defines the enum type DataBitsEnum
!
! PROVIEW/R
! Copyright (C) 1996 by Comator Process AB.
!
! <Description>.
!
SObject pwrb:Type
!/**
! @Version 1.0
! @Group Types
! Enumeration for data bits.
!*/
Object DataBitsEnum $TypeDef 25
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr PgmName = "DataBits"
EndBody
!/**
! 0 data bits.
!*/
Object 0 $Value
Body SysBody
Attr PgmName = "0"
Attr Text = "0"
Attr Value = 0
EndBody
EndObject
!/**
! 1 data bit.
!*/
Object 1 $Value
Body SysBody
Attr PgmName = "1"
Attr Text = "1"
Attr Value = 1
EndBody
EndObject
!/**
! 2 data bits.
!*/
Object 2 $Value
Body SysBody
Attr PgmName = "2"
Attr Text = "2"
Attr Value = 2
EndBody
EndObject
!/**
! 3 data bits.
!*/
Object 3 $Value
Body SysBody
Attr PgmName = "3"
Attr Text = "3"
Attr Value = 3
EndBody
EndObject
!/**
! 4 data bits.
!*/
Object 4 $Value
Body SysBody
Attr PgmName = "4"
Attr Text = "4"
Attr Value = 4
EndBody
EndObject
!/**
! 5 data bits.
!*/
Object 5 $Value
Body SysBody
Attr PgmName = "5"
Attr Text = "5"
Attr Value = 5
EndBody
EndObject
!/**
! 6 data bits.
!*/
Object 6 $Value
Body SysBody
Attr PgmName = "6"
Attr Text = "6"
Attr Value = 6
EndBody
EndObject
!/**
! 7 data bits.
!*/
Object 7 $Value
Body SysBody
Attr PgmName = "7"
Attr Text = "7"
Attr Value = 7
EndBody
EndObject
!/**
! 8 data bits.
!*/
Object 8 $Value
Body SysBody
Attr PgmName = "8"
Attr Text = "8"
Attr Value = 8
EndBody
EndObject
EndObject
EndSObject
! pwrb_td_difiltertypeenum.wb_load -- Defines the enum type DiFilterTypeEnum
!
! PROVIEW/R
! Copyright (C) 1996 by Comator Process AB.
!
! <Description>.
!
SObject pwrb:Type
!/**
! @Version 1.0
! @Group Types
! Enumeration for filtertypes in di objects.
!
!*/
Object DiFilterTypeEnum $TypeDef 19
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr PgmName = "DiFilterType"
EndBody
!/**
! No filter.
!*/
Object No $Value
Body SysBody
Attr PgmName = "No"
Attr Text = "No"
Attr Value = 0
EndBody
EndObject
!/**
! Set and reset delay.
!*/
Object SetAndResetDelay $Value
Body SysBody
Attr PgmName = "SetAndResetDelay"
Attr Text = "SetAndResetDelay"
Attr Value = 1
EndBody
EndObject
EndObject
EndSObject
! pwrb_td_distrcomponentmask.wb_load -- Defines the mask type DistrComponentMask
!
! PROVIEW/R
! Copyright (C) 1996 by Comator Process AB.
!
! <Description>.
!
SObject pwrb:Type
!/**
! @Version 1.0
! @Group Types
! Defines mask for distribution components.
!*/
Object DistrComponentMask $TypeDef 13
Body SysBody
Attr TypeRef = "pwrs:Type-$Mask"
Attr PgmName = "DistrComponent"
EndBody
!/**
! The Proview user database $pwra_db/pwr_user.dat is included.
! The source is fetched from
! 1. $pwrp_src/'nodename'/pwr_user.dat
! 2. $pwra_db/pwr_user.dat
!*/
Object UserDatabase $Bit
Body SysBody
Attr PgmName = "UserDatabase"
Attr Text = "UserDatabase"
Attr Value = 1
EndBody
EndObject
!/**
! Loadfiles are included, i.e.
! - loadfiles for volumes configured with RootVolumeLoad, SubVolumeLoad
! and ClassVolumeLoad objects, and volumes referenced by these volumes,
! - plc file.
! - rtt crossreference files.
!*/
Object LoadFiles $Bit
Body SysBody
Attr PgmName = "LoadFiles"
Attr Text = "LoadFiles"
Attr Value = 2
EndBody
EndObject
!/**
! The startup file $pwrp_load/ld_appl_'nodename'_'busnumber'.dat is included.
!*/
Object ApplFile $Bit
Body SysBody
Attr PgmName = "ApplFile"
Attr Text = "ApplFile"
Attr Value = 4
EndBody
EndObject
!/**
! $pwrp_load/pwrp_alias.dat is included.
!*/
Object PwrpAliasFile $Bit
Body SysBody
Attr PgmName = "PwrpAliasFile"
Attr Text = "PwrpAliasFile"
Attr Value = 8
EndBody
EndObject
!/**
! All includefiles in $pwrp_inc is included.
!*/
Object IncludeFiles $Bit
Body SysBody
Attr PgmName = "IncludeFiles"
Attr Text = "IncludeFiles"
Attr Value = 16
EndBody
EndObject
!/**
! All Ge graph files $pwrp_pop/*.pwg are included.
!*/
Object GraphFiles $Bit
Body SysBody
Attr PgmName = "GraphFiles"
Attr Text = "GraphFiles"
Attr Value = 32
EndBody
EndObject
!/**
! The xtt help file is included. The source file is fetched from
! 1. $pwrp_src/'nodename'/xtt_help.dat
! 2. $pwrp_exe/xtt_help.dat
!*/
Object XttHelpFile $Bit
Body SysBody
Attr PgmName = "XttHelpFile"
Attr Text = "XttHelpFile"
Attr Value = 64
EndBody
EndObject
!/**
! The xtt resource file with function key definitions is included. The source
! file is fetched from
! 1. $pwrp_src/'nodename'/Rt_xtt
! 2. $pwrp_pop/Rt_xtt
! and distributed to /home/b55
!*/
Object XttResourceFile $Bit
Body SysBody
Attr PgmName = "XttResourceFile"
Attr Text = "XttResourceFile"
Attr Value = 128
EndBody
EndObject
!/**
! The xtt setup file with menu configuration and symbol definitions is included.
! The source is fetched from
! 1. $pwrp_src/'nodename'/xtt_setup.rtt_com
! 2. $pwrp_pop/xtt_setup.rtt_com
! and distributed to /home/b55
!*/
Object XttSetupFile $Bit
Body SysBody
Attr PgmName = "XttSetupFile"
Attr Text = "XttSetupFile"
Attr Value = 256
EndBody
EndObject
!/**
! The plc trace files $pwrp_load/*.flw are included.
!*/
Object FlowFiles $Bit
Body SysBody
Attr PgmName = "FlowFiles"
Attr Text = "FlowFiles"
Attr Value = 512
EndBody
EndObject
!/**
! The .rhost file used by rsh is included. The source is fetched from
! 1. $pwrp_src/'nodename'/.rhosts
! 2. $pwra_db/.rhosts
!*/
Object RHostFile $Bit
Body SysBody
Attr PgmName = "RHostFile"
Attr Text = "RHostFile"
Attr Value = 1024
EndBody
EndObject
!/**
! All web-files in $pwrp_web are included.
!*/
Object WebFiles $Bit
Body SysBody
Attr PgmName = "WebFiles"
Attr Text = "WebFiles"
Attr Value = 2048
EndBody
EndObject
!/**
! Script pwrp_stop.sh is distributed.
!*/
Object PwrpStop $Bit
Body SysBody
Attr PgmName = "PwrpStop"
Attr Text = "PwrpStop"
Attr Value = 4096
EndBody
EndObject
EndObject
EndSObject
! pwrb_documentorientenum.wb_load -- Defines the enum type DocumentOrientEnum
!
! PROVIEW/R
! Copyright (C) 1996 by Comator Process AB.
!
! <Description>.
!
SObject pwrb:Type
!/**
! @Version 1.0
! @Group Types
! Enumeration for document orientation.
!
!*/
Object DocumentOrientEnum $TypeDef 10
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr PgmName = "DocumentOrient"
EndBody
!/**
! Portrait orientation.
!*/
Object Portrait $Value
Body SysBody
Attr PgmName = "Portrait"
Attr Text = "Portrait"
Attr Value = 0
EndBody
EndObject
!/**
! Landscape.
!*/
Object Landscape $Value
Body SysBody
Attr PgmName = "Landscape"
Attr Text = "Landscape"
Attr Value = 1
EndBody
EndObject
EndObject
EndSObject
! pwrb_documentsizeenum.wb_load -- Defines the enum type DocumentSizeEnum
!
! PROVIEW/R
! Copyright (C) 1996 by Comator Process AB.
!
! <Description>.
!
SObject pwrb:Type
!/**
! @Version 1.0
! @Group Types
! Enumeration for document size.
!
!*/
Object DocumentSizeEnum $TypeDef 9
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr PgmName = "DocumentSize"
EndBody
!/**
! Size A0.
!*/
Object A0 $Value
Body SysBody
Attr PgmName = "A0"
Attr Text = "A0"
Attr Value = 0
EndBody
EndObject
!/**
! Size A1.
!*/
Object A1 $Value
Body SysBody
Attr PgmName = "A1"
Attr Text = "A1"
Attr Value = 1
EndBody
EndObject
!/**
! Size A2.
!*/
Object A2 $Value
Body SysBody
Attr PgmName = "A2"
Attr Text = "A2"
Attr Value = 2
EndBody
EndObject
!/**
! Size A3.
!*/
Object A3 $Value
Body SysBody
Attr PgmName = "A3"
Attr Text = "A3"
Attr Value = 3
EndBody
EndObject
!/**
! Size A4.
!*/
Object A4 $Value
Body SysBody
Attr PgmName = "A4"
Attr Text = "A4"
Attr Value = 4
EndBody
EndObject
!/**
! Size A5.
!*/
Object A5 $Value
Body SysBody
Attr PgmName = "A5"
Attr Text = "A5"
Attr Value = 5
EndBody
EndObject
EndObject
EndSObject
! pwrb_eventflagsmask.wb_load -- Defines the mask type EventFlagsMask
!
! PROVIEW/R
! Copyright (C) 1996 by Comator Process AB.
!
! <Description>.
!
SObject pwrb:Type
!/**
! @Version 1.0
! @Group Types
! Defines the EventFlags mask for messages.
!
! @b See also
! @classlink ASup pwrb_ASup.html
!*/
Object EventFlagsMask $TypeDef 1
Body SysBody
Attr TypeRef = "pwrs:Type-$Mask"
Attr PgmName = "EventFlags"
EndBody
!/**
! If this flag exists the return message ReturnText
! will be sent to the event lists at the out units.
!*/
Object Return $Bit
Body SysBody
Attr PgmName = "Return"
Attr Text = "Return"
Attr Value = 1
EndBody
EndObject
!/**
! If this flag exists the acknowledgement message
! will be sent to the event lists at the out-units.
!*/
Object Ack $Bit
Body SysBody
Attr PgmName = "Ack"
Attr Text = "Ack"
Attr Value = 2
EndBody
EndObject
!/**
! If the single out unit has a peep-function this
! will be activated when the message is received.
!*/
Object Bell $Bit
Body SysBody
Attr PgmName = "Bell"
Attr Text = "Bell"
Attr Value = 4
EndBody
EndObject
!/**
! The message is sent to every out unit regardless.
!*/
Object Force $Bit
Body SysBody
Attr PgmName = "Force"
Attr Text = "Force"
Attr Value = 8
EndBody
EndObject
!/**
! If the message is of the type INFO it will be
! placed in the event list. If this flag exists the
! message is also placed in the INFO square of the
! alarm window where acknowledgement is to be done.
!*/
Object InfoWindow $Bit
Body SysBody
Attr PgmName = "InfoWindow"
Attr Text = "InfoWindow"
Attr Value = 16
EndBody
EndObject
!/**
! Undocumented...
!*/
Object Returned $Bit
Body SysBody
Attr PgmName = "Returned"
Attr Text = "Returned"
Attr Value = 32
EndBody
EndObject
!/**
! Undocumented...
!*/
Object NoObject $Bit
Body SysBody
Attr PgmName = "NoObject"
Attr Text = "NoObject"
Attr Value = 64
EndBody
EndObject
EndObject
EndSObject
! pwrb_eventprioenum.wb_load -- Defines the enum type EventPrioEnum
!
! PROVIEW/R
! Copyright (C) 1996 by Comator Process AB.
!
! <Description>.
!
SObject pwrb:Type
!/**
! @Version 1.0
! @Group Types
! Enumeration for event priority.
!
!*/
Object EventPrioEnum $TypeDef 11
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr PgmName = "EventPrio"
EndBody
!/**
! Priority A, highest priority.
!*/
Object A $Value
Body SysBody
Attr PgmName = "A"
Attr Text = "A"
Attr Value = 67
EndBody
EndObject
!/**
! Priority B.
!*/
Object B $Value
Body SysBody
Attr PgmName = "B"
Attr Text = "B"
Attr Value = 66
EndBody
EndObject
!/**
! Priority C.
!*/
Object C $Value
Body SysBody
Attr PgmName = "C"
Attr Text = "C"
Attr Value = 65
EndBody
EndObject
!/**
! Priority D, lowest priority.
!*/
Object D $Value
Body SysBody
Attr PgmName = "D"
Attr Text = "D"
Attr Value = 64
EndBody
EndObject
EndObject
EndSObject
! pwrb_eventtypeenum.wb_load -- Defines the enum type EventTypeEnum
!
! PROVIEW/R
! Copyright (C) 1996 by Comator Process AB.
!
! <Description>.
!
SObject pwrb:Type
!/**
! @Version 1.0
! @Group Types
! Enumeration for event type.
!
!*/
Object EventTypeEnum $TypeDef 12
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr PgmName = "Event"
EndBody
!/**
! Type Info.
! If the message requires acknowledgement is
! it sent to the info part of the alarm
! window and the event list, otherwise only
! to the event list.
!*/
Object Info $Value
Body SysBody
Attr PgmName = "Info"
Attr Text = "Info"
Attr Value = 32
EndBody
EndObject
!/**
! Type Alarm.
! The message always requires an
! acknowledgement and sent to the alarm
!*/
Object Alarm $Value
Body SysBody
Attr PgmName = "Alarm"
Attr Text = "Alarm"
Attr Value = 64
EndBody
EndObject
EndObject
EndSObject
! pwrb_frameattrenum.wb_load -- Defines the enum type FrameAttrEnum
!
! PROVIEW/R
! Copyright (C) 1996 by Comator Process AB.
!
! <Description>.
!
SObject pwrb:Type
!/**
! @Version 1.0
! @Group Types
! Enumeration for frame attributes of text objects
! in the plc editor.
!
! @b See also
! @classlink Mode pwrb_text.html
!*/
Object FrameAttrEnum $TypeDef 5
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr PgmName = "FrameAttr"
EndBody
!/**
! Grey frame.
!*/
Object GreyFrame $Value
Body SysBody
Attr PgmName = "Grey"
Attr Text = "Grey"
Attr Value = 0
EndBody
EndObject
!/**
! Black frame.
!*/
Object Black $Value
Body SysBody
Attr PgmName = "Black"
Attr Text = "Black"
Attr Value = 1
EndBody
EndObject
!/**
! No frame.
!*/
Object No $Value
Body SysBody
Attr PgmName = "No"
Attr Text = "No"
Attr Value = 2
EndBody
EndObject
EndObject
EndSObject
! pwrb_td_parityenum.wb_load -- Defines the enum type ParityEnum
!
! PROVIEW/R
! Copyright (C) 1996 by Comator Process AB.
!
! <Description>.
!
SObject pwrb:Type
!/**
! @Version 1.0
! @Group Types
! Enumeration for Parity None/Odd/Even.
!*/
Object ParityEnum $TypeDef 22
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr PgmName = "Parity"
EndBody
!/**
! None.
!*/
Object None $Value
Body SysBody
Attr PgmName = "None"
Attr Text = "None"
Attr Value = 0
EndBody
EndObject
!/**
! Odd.
!*/
Object Odd $Value
Body SysBody
Attr PgmName = "Odd"
Attr Text = "Odd"
Attr Value = 1
EndBody
EndObject
!/**
! Even.
!*/
Object Even $Value
Body SysBody
Attr PgmName = "Even"
Attr Text = "Even"
Attr Value = 2
EndBody
EndObject
EndObject
EndSObject
! pwrb_td_pbnumberrepenum.wb_load -- Defines the enum type PbNumberRepEmum
!
! PROVIEW/R
! Copyright (C) 1996 by Comator Process AB.
!
! <Description>.
!
SObject pwrb:Type
!/**
! @Version 1.0
! @Group Types
! Enumeration for number representation.
!*/
Object PbNumberRepEnum $TypeDef 28
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr PgmName = "PbNumberRep"
EndBody
!/**
! Integer Unsigned.
!*/
Object IntUnsigned $Value
Body SysBody
Attr PgmName = "IntUnsigned"
Attr Text = "Integer Unsigned"
Attr Value = 0
EndBody
EndObject
!/**
! Integer Signed.
!*/
Object IntSigned $Value
Body SysBody
Attr PgmName = "IntSigned"
Attr Text = "Integer Signed"
Attr Value = 1
EndBody
EndObject
!/**
! Floating Point IEEE.
!*/
Object FloatIEEE $Value
Body SysBody
Attr PgmName = "FloatIEEE"
Attr Text = "Floating Point IEEE"
Attr Value = 2
EndBody
EndObject
!/**
! Floating Point VAX.
!*/
Object FloatVAX $Value
Body SysBody
Attr PgmName = "FloatVAX"
Attr Text = "Floating Point VAX"
Attr Value = 3
EndBody
EndObject
!/**
! Floating Point Intel.
!*/
Object FloatIntel $Value
Body SysBody
Attr PgmName = "FloatIntel"
Attr Text = "Floating Point Intel"
Attr Value = 4
EndBody
EndObject
EndObject
EndSObject
! pwrb_td_pborientationenum.wb_load -- Defines the enum type PbOrientationEnum
!
! PROVIEW/R
! Copyright (C) 1996 by Comator Process AB.
!
! <Description>.
!
SObject pwrb:Type
!/**
! @Version 1.0
! @Group Types
! Enumeration for orientation.
!*/
Object PbOrientationEnum $TypeDef 26
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr PgmName = "PbOrientation"
EndBody
!/**
! Byte.
!*/
Object Byte $Value
Body SysBody
Attr PgmName = "Byte"
Attr Text = "Byte"
Attr Value = 16
EndBody
EndObject
!/**
! Word.
!*/
Object Word $Value
Body SysBody
Attr PgmName = "Word"
Attr Text = "Word"
Attr Value = 16
EndBody
EndObject
!/**
! DoubleWord.
!*/
Object DoubleWord $Value
Body SysBody
Attr PgmName = "DoubleWord"
Attr Text = "DoubleWord"
Attr Value = 32
EndBody
EndObject
EndObject
EndSObject
! pwrb_td_pbstallactionenum.wb_load -- Defines the enum type PbStallActionEnum
!
! PROVIEW/R
! Copyright (C) 1996 by Comator Process AB.
!
! <Description>.
!
SObject pwrb:Type
!/**
! @Version 1.0
! @Group Types
! Enumeration for profibus stall action.
!*/
Object PbStallActionEnum $TypeDef 24
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr PgmName = "PbStallAction"
EndBody
!/**
! No action.
!*/
Object No $Value
Body SysBody
Attr PgmName = "No"
Attr Text = "No action"
Attr Value = 0
EndBody
EndObject
!/**
! Reset inputs.
!*/
Object ResetInputs $Value
Body SysBody
Attr PgmName = "ResetInputs"
Attr Text = "Reset inputs"
Attr Value = 1
EndBody
EndObject
!/**
! Set emergency break.
!*/
Object EmergencyBreak $Value
Body SysBody
Attr PgmName = "EmergencyBreak"
Attr Text = "Set emergency break"
Attr Value = 2
EndBody
EndObject
EndObject
EndSObject
! pwrb_pidalgenum.wb_load -- Defines the mask type PidAlgEnum
!
! PROVIEW/R
! Copyright (C) 1996 by Comator Process AB.
!
! <Description>.
!
SObject pwrb:Type
!/**
! @Version 1.0
! @Group Types
! Enumeration for PID algorithm.
!
! @b See also
! @classlink PID pwrb_pid.html
!*/
Object PidAlgEnum $TypeDef 16
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr PgmName = "PidAlg"
EndBody
!/**
! Integral controller. Gain is not used.
!*/
Object I $Value
Body SysBody
Attr PgmName = "I"
Attr Text = "I"
Attr Value = 1
EndBody
EndObject
!/**
! Integral controller with proportional
!*/
Object I_P $Value
Body SysBody
Attr PgmName = "I_P"
Attr Text = "I+P"
Attr Value = 3
EndBody
EndObject
!/**
! Proportional Controller.
!*/
Object P $Value
Body SysBody
Attr PgmName = "P"
Attr Text = "P"
Attr Value = 6
EndBody
EndObject
!/**
! Proportional Integral Controller. The
! P-term is based on the control error.
!*/
Object PI $Value
Body SysBody
Attr PgmName = "PI"
Attr Text = "PI"
Attr Value = 7
EndBody
EndObject
!/**
! Integral controller with proportional
! derivative control action. Both the P- and
! D-term are based on the process value.
!*/
Object I_PD $Value
Body SysBody
Attr PgmName = "I_PD"
Attr Text = "I+PD"
Attr Value = 11
EndBody
EndObject
!/**
! Proportional Controller with derivative
! control action. P is based on the control error,
! D on the process value.
!*/
Object P_D $Value
Body SysBody
Attr PgmName = "P_D"
Attr Text = "P+D"
Attr Value = 14
EndBody
EndObject
!/**
! Proportional Integral Controller with
! derivative control action. P is based on
! control error, D on the process value.
!*/
Object PI_D $Value
Body SysBody
Attr PgmName = "PI_D"
Attr Text = "PI+D"
Attr Value = 15
EndBody
EndObject
!/**
! Proportional Derivative Controller. Both
! the P- and D-term are based on the control
! error.
!*/
Object PD $Value
Body SysBody
Attr PgmName = "PD"
Attr Text = "PD"
Attr Value = 30
EndBody
EndObject
!/**
! Proportional Integral Derivative
! Controller. Both the P- and D-term are
! based on the control error.
!*/
Object PID $Value
Body SysBody
Attr PgmName = "PID"
Attr Text = "PID"
Attr Value = 31
EndBody
EndObject
EndObject
EndSObject
! pwrb_pidmodeenum.wb_load -- Defines the mask type PidModeEnum
!
! PROVIEW/R
! Copyright (C) 1996 by Comator Process AB.
!
! <Description>.
!
SObject pwrb:Type
!/**
! @Version 1.0
! @Group Types
! Enumeration for Manual/Auto/Cascade mode in a PID.
!
! @b See also
! @classlink Mode pwrb_mode.html
!*/
Object PidModeEnum $TypeDef 3
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
EndBody
!/**
! Manual mode.
!*/
Object Manual $Value
Body SysBody
Attr PgmName = "Manual"
Attr Text = "Manual"
Attr Value = 1
EndBody
EndObject
!/**
! Auto mode.
!*/
Object Auto $Value
Body SysBody
Attr PgmName = "Auto"
Attr Text = "Auto"
Attr Value = 2
EndBody
EndObject
!/**
! Manual and Auto mode.
!*/
Object ManAuto $Value
Body SysBody
Attr PgmName = "ManAuto"
Attr Text = "Manual / Auto"
Attr Value = 3
EndBody
EndObject
!/**
! Cascade.
!*/
Object Cascade $Value
Body SysBody
Attr PgmName = "Cascade"
Attr Text = "Cascade"
Attr Value = 4
EndBody
EndObject
!/**
! Cascade and Manual.
!*/
Object CascMan $Value
Body SysBody
Attr PgmName = "CascMan"
Attr Text = "Cascade / Manual"
Attr Value = 5
EndBody
EndObject
!/**
! Cascade and Auto.
!*/
Object CascAuto $Value
Body SysBody
Attr PgmName = "CascAuto"
Attr Text = "Cascade / Auto"
Attr Value = 6
EndBody
EndObject
!/**
! Cascade, Manual and Auto.
!*/
Object CascAutoMan $Value
Body SysBody
Attr PgmName = "CascAutoMan"
Attr Text = "Cascade / Auto / Manual"
Attr Value = 7
EndBody
EndObject
EndObject
EndSObject
! pwrb_pidmodemask.wb_load -- Defines the mask type PidModeMask
!
! PROVIEW/R
! Copyright (C) 1996 by Comator Process AB.
!
! <Description>.
!
SObject pwrb:Type
!/**
! @Version 1.0
! @Group Types
! Bitmask for Manual/Auto/Cascade mode in a PID.
!
! @b See also
! @classlink Mode pwrb_mode.html
!*/
Object PidModeMask $TypeDef 2
Body SysBody
Attr Type = pwr_eType_Mask
Attr Size = 4
Attr TypeRef = "pwrs:Type-$Mask"
Attr Elements = 1
EndBody
!/**
! Manual mode.
!*/
Object Manual $Bit
Body SysBody
Attr PgmName = "Manual"
Attr Text = "Manual"
Attr Value = 1
EndBody
EndObject
!/**
! Auto mode.
!*/
Object Auto $Bit
Body SysBody
Attr PgmName = "Auto"
Attr Text = "Auto"
Attr Value = 2
EndBody
EndObject
!/**
! Cascade mode.
!*/
Object Cascade $Bit
Body SysBody
Attr PgmName = "Cascade"
Attr Text = "Cascade"
Attr Value = 4
EndBody
EndObject
EndObject
EndSObject
! pwrb_td_ssabcodivcountenum.wb_load -- Defines the mask type SsabCoDivCountEnum
!
! PROVIEW/R
! Copyright (C) 1996 by Comator Process AB.
!
! <Description>.
!
SObject pwrb:Type
!/**
! @Version 1.0
! @Group Types
! Enumeration for DivCount in ssab Co objects.
!*/
Object SsabCoDivCountEnum $TypeDef 20
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr PgmName = "SsabCoDivCount"
EndBody
!/**
! No.
!*/
Object No $Value
Body SysBody
Attr PgmName = "No"
Attr Text = "No"
Attr Value = 0
EndBody
EndObject
!/**
! 16 times.
!*/
Object 16 $Value
Body SysBody
Attr PgmName = "16"
Attr Text = "16"
Attr Value = 16
EndBody
EndObject
EndObject
EndSObject
! pwrb_td_ssabcomulcountenum.wb_load -- Defines the mask type SsabCoMulCountEnum
!
! PROVIEW/R
! Copyright (C) 1996 by Comator Process AB.
!
! <Description>.
!
SObject pwrb:Type
!/**
! @Version 1.0
! @Group Types
! Enumeration for MulCount in ssab Co objects.
!*/
Object SsabCoMulCountEnum $TypeDef 29
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr PgmName = "SsabCoMulCount"
EndBody
!/**
! 2 times.
!*/
Object 2 $Value
Body SysBody
Attr PgmName = "2"
Attr Text = "2"
Attr Value = 2
EndBody
EndObject
!/**
! 4 times.
!*/
Object 4 $Value
Body SysBody
Attr PgmName = "4"
Attr Text = "4"
Attr Value = 4
EndBody
EndObject
EndObject
EndSObject
! pwrb_td_ssabconoofbitsenum.wb_load -- Defines the mask type SsabCoNoOfBitsEnum
!
! PROVIEW/R
! Copyright (C) 1996 by Comator Process AB.
!
! <Description>.
!
SObject pwrb:Type
!/**
! @Version 1.0
! @Group Types
! Enumeration for number of bits in ssab Co objects.
!*/
Object SsabCoNoOfBitsEnum $TypeDef 30
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr PgmName = "SsabCoNoOfBits"
EndBody
!/**
! 16 bits.
!*/
Object 16 $Value
Body SysBody
Attr PgmName = "16"
Attr Text = "16"
Attr Value = 16
EndBody
EndObject
!/**
! 24 bits.
!*/
Object 24 $Value
Body SysBody
Attr PgmName = "24"
Attr Text = "24"
Attr Value = 24
EndBody
EndObject
EndObject
EndSObject
! pwrb_td_stopbitsenum.wb_load -- Defines the enum type StopBitsEnum
!
! PROVIEW/R
! Copyright (C) 1996 by Comator Process AB.
!
! <Description>.
!
SObject pwrb:Type
!/**
! @Version 1.0
! @Group Types
! Enumeration for stop bits.
!*/
Object StopBitsEnum $TypeDef 23
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr PgmName = "StopBits"
EndBody
!/**
! 0 stop bits.
!*/
Object 0 $Value
Body SysBody
Attr PgmName = "0"
Attr Text = "0"
Attr Value = 0
EndBody
EndObject
!/**
! 1 stop bit.
!*/
Object 1 $Value
Body SysBody
Attr PgmName = "1"
Attr Text = "1"
Attr Value = 1
EndBody
EndObject
!/**
! 2 stop bits.
!*/
Object 2 $Value
Body SysBody
Attr PgmName = "2"
Attr Text = "2"
Attr Value = 2
EndBody
EndObject
EndObject
EndSObject
! pwrb_supdelayactionenum.wb_load -- Defines the mask type SupDelayActionEnum
!
! PROVIEW/R
! Copyright (C) 1996 by Comator Process AB.
!
! <Description>.
!
SObject pwrb:Type
!/**
! @Version 1.0
! @Group Types
! Enumeration for delay action in supervisory objects.
!*/
Object SupDelayActionEnum $TypeDef 17
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr PgmName = "SupDelayAction"
EndBody
!/**
! No action.
!*/
Object No $Value
Body SysBody
Attr PgmName = "No"
Attr Text = "No"
Attr Value = 0
EndBody
EndObject
!/**
! Send an alarm message
!*/
Object Message $Value
Body SysBody
Attr PgmName = "Message"
Attr Text = "Message"
Attr Value = 1
EndBody
EndObject
!/**
! Stall I/O.
!*/
Object EmergencyBreak $Value
Body SysBody
Attr PgmName = "EmergencyBreak"
Attr Text = "EmergencyBreak"
Attr Value = 2
EndBody
EndObject
EndObject
EndSObject
! pwrb_textattrenum.wb_load -- Defines the enum type TextAttrEnum
!
! PROVIEW/R
! Copyright (C) 1996 by Comator Process AB.
!
! <Description>.
!
SObject pwrb:Type
!/**
! @Version 1.0
! @Group Types
! Enumeration for text size of text objects
! in the plc editor.
!
! @b See also
! @classlink Mode pwrb_text.html
!*/
Object TextAttrEnum $TypeDef 6
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr PgmName = "TextAttr"
EndBody
!/**
! Small bold text.
!*/
Object SmallBold $Value
Body SysBody
Attr PgmName = "SmallBold"
Attr Text = "SmallBold"
Attr Value = 0
EndBody
EndObject
!/**
! Small text.
!*/
Object Small $Value
Body SysBody
Attr PgmName = "Small"
Attr Text = "Small"
Attr Value = 1
EndBody
EndObject
!/**
! Medium size text.
!*/
Object Medium $Value
Body SysBody
Attr PgmName = "Medium"
Attr Text = "Medium"
Attr Value = 2
EndBody
EndObject
!/**
! Large text.
!*/
Object Large $Value
Body SysBody
Attr PgmName = "Large"
Attr Text = "Large"
Attr Value = 3
EndBody
EndObject
EndObject
EndSObject
! pwrb_webtargetenum.wb_load -- Defines the enum type WebTargetEnum
!
! PROVIEW/R
! Copyright (C) 1996 by Comator Process AB.
!
! <Description>.
!
SObject pwrb:Type
!/**
! @Version 1.0
! @Group Types
! Target for web pages.
!
! @b See also
! @classlink Mode pwrb_weblink.html
!*/
Object WebTargetEnum $TypeDef 4
Body SysBody
Attr TypeRef = "pwrs:Type-$Enum"
Attr PgmName = "WebTarget"
EndBody
!/**
! Right frame is target for requested URL.
!*/
Object RightFrame $Value
Body SysBody
Attr PgmName = "RightFrame"
Attr Text = "RightFrame"
Attr Value = 0
EndBody
EndObject
!/**
! Parent window is target for requested URL.
!*/
Object ParentWindow $Value
Body SysBody
Attr PgmName = "ParentWindow"
Attr Text = "ParentWindow"
Attr Value = 1
EndBody
EndObject
!/**
! Open requested URL in a separate window.
!*/
Object SeparateWindow $Value
Body SysBody
Attr PgmName = "SeparateWindow"
Attr Text = "SeparateWindow"
Attr Value = 2
EndBody
EndObject
EndObject
EndSObject
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