Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
7b5ae99c
Commit
7b5ae99c
authored
May 23, 2006
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New classes GetDatap, CompModePID and CompPID added
parent
bd4d4872
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
719 additions
and
47 deletions
+719
-47
bcomp/wbl/bcomp/src/basecomponent.wb_load
bcomp/wbl/bcomp/src/basecomponent.wb_load
+682
-24
src/lib/rt/src/rt_plc_macro_div.h
src/lib/rt/src/rt_plc_macro_div.h
+7
-1
wb/exp/wb/src/pwr_wb_palette.cnf
wb/exp/wb/src/pwr_wb_palette.cnf
+1
-0
wb/lib/wb/src/wb_gcg.c
wb/lib/wb/src/wb_gcg.c
+29
-22
No files found.
bcomp/wbl/bcomp/src/basecomponent.wb_load
View file @
7b5ae99c
This diff is collapsed.
Click to expand it.
src/lib/rt/src/rt_plc_macro_div.h
View file @
7b5ae99c
/*
* Proview $Id: rt_plc_macro_div.h,v 1.
4 2005-09-01 14:57:56
claes Exp $
* Proview $Id: rt_plc_macro_div.h,v 1.
5 2006-05-23 13:53:47
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -156,6 +156,12 @@
#define BwOr_exec(t, o)\
o->Status = *o->In1P | *o->In2P;
/*_*
@aref getdatap GetDatap
*/
#define GetDatap_exec(object, in)\
memcpy( &object->Out, &in, 12);
...
...
wb/exp/wb/src/pwr_wb_palette.cnf
View file @
7b5ae99c
...
...
@@ -630,6 +630,7 @@ palette PlcEditorPalette
class CStoAttrRefP
class DataCollect
class GetData
class GetDatap
}
menu String
{
...
...
wb/lib/wb/src/wb_gcg.c
View file @
7b5ae99c
/*
* Proview $Id: wb_gcg.c,v 1.3
2 2006-04-28 05:01:02
claes Exp $
* Proview $Id: wb_gcg.c,v 1.3
3 2006-05-23 13:53:47
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -10984,14 +10984,14 @@ vldh_t_node node;
* vldh_t_node node I vldh node.
*
* Description:
* Compile method for GetIpToA
and GetIp
* Compile method for GetIpToA
, GetIp and GetDatap.
* Prints code for declaration and direkt link of a rtdbpointer.
* Prints an exec call :
* 'structname'_exec( 'objpointer');
* ex: GetIpToA_exec( Z80000811);
*
* Checks that the referenced object exists and that the referenced
* parameter exists in that obje
k
t, and that the type of the parameter
* parameter exists in that obje
c
t, and that the type of the parameter
* is correct.
* Prints declaration and direct link of pointer to referenced object.
*
...
...
@@ -11094,28 +11094,35 @@ vldh_t_node node;
//}
}
switch
(
info
.
type
)
{
case
pwr_eType_Int32
:
case
pwr_eType_UInt32
:
case
pwr_eType_Int16
:
case
pwr_eType_UInt16
:
case
pwr_eType_Int8
:
case
pwr_eType_UInt8
:
case
pwr_eType_Enum
:
case
pwr_eType_Mask
:
case
pwr_eType_Status
:
case
pwr_eType_NetStatus
:
if
(
!
(
node
->
ln
.
cid
!=
pwr_cClass_GetIpToA
||
node
->
ln
.
cid
!=
pwr_cClass_GetIp
))
{
if
(
info
.
flags
&
PWR_MASK_POINTER
)
{
if
(
node
->
ln
.
cid
!=
pwr_cClass_GetDatap
)
{
gcg_error_msg
(
gcgctx
,
GSX__REFPARTYPE
,
node
);
return
GSX__NEXTNODE
;
}
}
else
{
switch
(
info
.
type
)
{
case
pwr_eType_Int32
:
case
pwr_eType_UInt32
:
case
pwr_eType_Int16
:
case
pwr_eType_UInt16
:
case
pwr_eType_Int8
:
case
pwr_eType_UInt8
:
case
pwr_eType_Enum
:
case
pwr_eType_Mask
:
case
pwr_eType_Status
:
case
pwr_eType_NetStatus
:
if
(
!
(
node
->
ln
.
cid
!=
pwr_cClass_GetIpToA
||
node
->
ln
.
cid
!=
pwr_cClass_GetIp
))
{
gcg_error_msg
(
gcgctx
,
GSX__REFPARTYPE
,
node
);
return
GSX__NEXTNODE
;
}
break
;
default:
/* Not allowed type */
gcg_error_msg
(
gcgctx
,
GSX__REFPARTYPE
,
node
);
return
GSX__NEXTNODE
;
}
break
;
default:
/* Not allowed type */
gcg_error_msg
(
gcgctx
,
GSX__REFPARTYPE
,
node
);
return
GSX__NEXTNODE
;
}
sts
=
gcg_print_exec_macro
(
gcgctx
,
node
,
node
->
ln
.
oid
,
GCG_PREFIX_REF
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment