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
af4b4153
Commit
af4b4153
authored
May 02, 2006
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New time objects
parent
3f8d2868
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
610 additions
and
0 deletions
+610
-0
src/wbl/pwrb/src/pwrb_c_atequal.wb_load
src/wbl/pwrb/src/pwrb_c_atequal.wb_load
+122
-0
src/wbl/pwrb/src/pwrb_c_atlessthan.wb_load
src/wbl/pwrb/src/pwrb_c_atlessthan.wb_load
+122
-0
src/wbl/pwrb/src/pwrb_c_dtequal.wb_load
src/wbl/pwrb/src/pwrb_c_dtequal.wb_load
+122
-0
src/wbl/pwrb/src/pwrb_c_dtgreaterthan.wb_load
src/wbl/pwrb/src/pwrb_c_dtgreaterthan.wb_load
+122
-0
src/wbl/pwrb/src/pwrb_c_dtlessthan.wb_load
src/wbl/pwrb/src/pwrb_c_dtlessthan.wb_load
+122
-0
No files found.
src/wbl/pwrb/src/pwrb_c_atequal.wb_load
0 → 100644
View file @
af4b4153
!
! Proview $Id: pwrb_c_atequal.wb_load,v 1.1 2006-05-02 07:05:09 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.
!
! pwrb_c_atequal.wb_load -- Defines the class AtEqual.
!
SObject pwrb:Class
!/**
! @Version 1.0
! @Code rt_plc_macro_time.h
! @Group Plc,PlcTime
! @Summary Compare two abolute times.
! Compare two absolute times..
! @image orm_atequal_fo.gif
!
! AtEquals compares two absolute times and returns true if they are
! equal.
!
! Both inputs have to be connected to absolute times. The result is a digital value.
!*/
Object AtEqual $ClassDef 466
Body SysBody
Attr Editor = pwr_eEditor_PlcEd
Attr Method = pwr_eMethod_Connections
Attr PopEditor = 2
EndBody
Object RtBody $ObjBodyDef 1
Body SysBody
Attr StructName = "AtEqual"
EndBody
!/**
! An absolute time.
! The input has to be connected to an output of type Time.
!*/
Object ATime1 $Input 1
Body SysBody
Attr TypeRef = "pwrs:Type-$Time"
Attr Flags |= PWR_MASK_STATE
Attr Flags |= PWR_MASK_RTVIRTUAL
Attr Flags |= PWR_MASK_NOEDIT
Attr Flags |= PWR_MASK_NOREMOVE
Attr GraphName = "ATim1"
EndBody
EndObject
!/**
! An absolute time.
! The input has to be connected to an output of type Time.
!*/
Object ATime2 $Input 2
Body SysBody
Attr Flags |= PWR_MASK_STATE
Attr Flags |= PWR_MASK_RTVIRTUAL
Attr Flags |= PWR_MASK_NOEDIT
Attr Flags |= PWR_MASK_NOREMOVE
Attr TypeRef = "pwrs:Type-$Time"
Attr GraphName = "ATim2"
EndBody
EndObject
!/**
! Status has the value 1 if ATime1 equals ATime2, else 0.
!*/
Object Status $Output 3
Body SysBody
Attr Flags |= PWR_MASK_STATE
Attr Flags |= PWR_MASK_NOEDIT
Attr TypeRef = "pwrs:Type-$Boolean"
Attr GraphName = "sts"
EndBody
EndObject
EndObject
Object DevBody $ObjBodyDef 2
Object PlcNode $Buffer 1
Body SysBody
Attr Class = pwr_eClass_PlcNode
Attr Flags |= PWR_MASK_INVISIBLE
EndBody
EndObject
EndObject
Object GraphPlcNode $GraphPlcNode
Body SysBody
Attr object_type = 11
Attr parameters[0] = 2
Attr parameters[1] = 0
Attr parameters[2] = 1
Attr parameters[3] = 0
Attr subwindows = 0
Attr graphmethod = 1
Attr graphindex = 0
Attr default_mask[0] = 3
Attr default_mask[1] = 1
Attr segname_annotation = 1
Attr compmethod = 5
Attr compindex = 0
Attr tracemethod = 3
Attr traceindex = 0
Attr executeordermethod = 2
Attr objname = "AtEq"
Attr graphname = "AtEq"
Attr debugpar = "Status"
EndBody
EndObject
EndObject
EndSObject
src/wbl/pwrb/src/pwrb_c_atlessthan.wb_load
0 → 100644
View file @
af4b4153
!
! Proview $Id: pwrb_c_atlessthan.wb_load,v 1.1 2006-05-02 07:05:09 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.
!
! pwrb_c_atlessthan.wb_load -- Defines the class AtLessThan.
!
SObject pwrb:Class
!/**
! @Version 1.0
! @Code rt_plc_macro_time.h
! @Group Plc,PlcTime
! @Summary Compare two absolute times..
! Compare two absolute times.
! @image orm_atlessthan_fo.gif
!
! AtLessThan compares two absolute times and returns true if the first are
! less than the second.
!
! Both inputs have to be connected to absolute times. The result is a digital value.
!*/
Object AtLessThan $ClassDef 465
Body SysBody
Attr Editor = pwr_eEditor_PlcEd
Attr Method = pwr_eMethod_Connections
Attr PopEditor = 2
EndBody
Object RtBody $ObjBodyDef 1
Body SysBody
Attr StructName = "AtLessThan"
EndBody
!/**
! An absolute time.
! The input has to be connected to an output of type Time.
!*/
Object ATime1 $Input 1
Body SysBody
Attr TypeRef = "pwrs:Type-$Time"
Attr Flags |= PWR_MASK_STATE
Attr Flags |= PWR_MASK_RTVIRTUAL
Attr Flags |= PWR_MASK_NOEDIT
Attr Flags |= PWR_MASK_NOREMOVE
Attr GraphName = "ATim1"
EndBody
EndObject
!/**
! An absolute time.
! The input has to be connected to an output of type Time.
!*/
Object ATime2 $Input 2
Body SysBody
Attr Flags |= PWR_MASK_STATE
Attr Flags |= PWR_MASK_RTVIRTUAL
Attr Flags |= PWR_MASK_NOEDIT
Attr Flags |= PWR_MASK_NOREMOVE
Attr TypeRef = "pwrs:Type-$Time"
Attr GraphName = "ATim2"
EndBody
EndObject
!/**
! Status has the value 1 if ATime1 < ATime2, else 0.
!*/
Object Status $Output 3
Body SysBody
Attr Flags |= PWR_MASK_STATE
Attr Flags |= PWR_MASK_NOEDIT
Attr TypeRef = "pwrs:Type-$Boolean"
Attr GraphName = "sts"
EndBody
EndObject
EndObject
Object DevBody $ObjBodyDef 2
Object PlcNode $Buffer 1
Body SysBody
Attr Class = pwr_eClass_PlcNode
Attr Flags |= PWR_MASK_INVISIBLE
EndBody
EndObject
EndObject
Object GraphPlcNode $GraphPlcNode
Body SysBody
Attr object_type = 11
Attr parameters[0] = 2
Attr parameters[1] = 0
Attr parameters[2] = 1
Attr parameters[3] = 0
Attr subwindows = 0
Attr graphmethod = 1
Attr graphindex = 0
Attr default_mask[0] = 3
Attr default_mask[1] = 1
Attr segname_annotation = 1
Attr compmethod = 5
Attr compindex = 0
Attr tracemethod = 3
Attr traceindex = 0
Attr executeordermethod = 2
Attr objname = "AtLt"
Attr graphname = "AtLt"
Attr debugpar = "Status"
EndBody
EndObject
EndObject
EndSObject
src/wbl/pwrb/src/pwrb_c_dtequal.wb_load
0 → 100644
View file @
af4b4153
!
! Proview $Id: pwrb_c_dtequal.wb_load,v 1.1 2006-05-02 07:05:09 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.
!
! pwrb_c_atequal.wb_load -- Defines the class AtEqual.
!
SObject pwrb:Class
!/**
! @Version 1.0
! @Code rt_plc_macro_time.h
! @Group Plc,PlcTime
! @Summary Compare two delta times.
! Compare two delta times.
! @image orm_dtequal_fo.gif
!
! DtEquals compares two delta times and returns true if they are
! equal.
!
! Both inputs have to be connected to absolute times. The result is a digital value.
!*/
Object DtEqual $ClassDef 468
Body SysBody
Attr Editor = pwr_eEditor_PlcEd
Attr Method = pwr_eMethod_Connections
Attr PopEditor = 2
EndBody
Object RtBody $ObjBodyDef 1
Body SysBody
Attr StructName = "DtEqual"
EndBody
!/**
! A delta time.
! The input has to be connected to an output of type DeltaTime.
!*/
Object DTime1 $Input 1
Body SysBody
Attr TypeRef = "pwrs:Type-$DeltaTime"
Attr Flags |= PWR_MASK_STATE
Attr Flags |= PWR_MASK_RTVIRTUAL
Attr Flags |= PWR_MASK_NOEDIT
Attr Flags |= PWR_MASK_NOREMOVE
Attr GraphName = "DTim1"
EndBody
EndObject
!/**
! An delta time.
! The input has to be connected to an output of type DeltaTime.
!*/
Object DTime2 $Input 2
Body SysBody
Attr Flags |= PWR_MASK_STATE
Attr Flags |= PWR_MASK_RTVIRTUAL
Attr Flags |= PWR_MASK_NOEDIT
Attr Flags |= PWR_MASK_NOREMOVE
Attr TypeRef = "pwrs:Type-$DeltaTime"
Attr GraphName = "DTim2"
EndBody
EndObject
!/**
! Status has the value 1 if DTime1 equals DTime2, else 0.
!*/
Object Status $Output 3
Body SysBody
Attr Flags |= PWR_MASK_STATE
Attr Flags |= PWR_MASK_NOEDIT
Attr TypeRef = "pwrs:Type-$Boolean"
Attr GraphName = "sts"
EndBody
EndObject
EndObject
Object DevBody $ObjBodyDef 2
Object PlcNode $Buffer 1
Body SysBody
Attr Class = pwr_eClass_PlcNode
Attr Flags |= PWR_MASK_INVISIBLE
EndBody
EndObject
EndObject
Object GraphPlcNode $GraphPlcNode
Body SysBody
Attr object_type = 11
Attr parameters[0] = 2
Attr parameters[1] = 0
Attr parameters[2] = 1
Attr parameters[3] = 0
Attr subwindows = 0
Attr graphmethod = 1
Attr graphindex = 0
Attr default_mask[0] = 3
Attr default_mask[1] = 1
Attr segname_annotation = 1
Attr compmethod = 5
Attr compindex = 0
Attr tracemethod = 3
Attr traceindex = 0
Attr executeordermethod = 2
Attr objname = "DtEq"
Attr graphname = "DtEq"
Attr debugpar = "Status"
EndBody
EndObject
EndObject
EndSObject
src/wbl/pwrb/src/pwrb_c_dtgreaterthan.wb_load
0 → 100644
View file @
af4b4153
!
! Proview $Id: pwrb_c_dtgreaterthan.wb_load,v 1.1 2006-05-02 07:05:09 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.
!
! pwrb_c_dtgreaterthan.wb_load -- Defines the class DtGreaterThan.
!
SObject pwrb:Class
!/**
! @Version 1.0
! @Code rt_plc_macro_time.h
! @Group Plc,PlcTime
! @Summary Compare two delta times.
! Compare two delta times.
! @image orm_dtgreaterthan_fo.gif
!
! DtGreaterThan compares two delta times and returns true if the first are
! greater than the second.
!
! Both inputs have to be connected to delta times. The result is a digital value.
!*/
Object DtGreaterThan $ClassDef 470
Body SysBody
Attr Editor = pwr_eEditor_PlcEd
Attr Method = pwr_eMethod_Connections
Attr PopEditor = 2
EndBody
Object RtBody $ObjBodyDef 1
Body SysBody
Attr StructName = "DtGreaterThan"
EndBody
!/**
! A delta time.
! The input has to be connected to an output of type DeltaTime.
!*/
Object DTime1 $Input 1
Body SysBody
Attr TypeRef = "pwrs:Type-$DeltaTime"
Attr Flags |= PWR_MASK_STATE
Attr Flags |= PWR_MASK_RTVIRTUAL
Attr Flags |= PWR_MASK_NOEDIT
Attr Flags |= PWR_MASK_NOREMOVE
Attr GraphName = "DTim1"
EndBody
EndObject
!/**
! A delta time.
! The input has to be connected to an output of type DeltaTime.
!*/
Object DTime2 $Input 2
Body SysBody
Attr Flags |= PWR_MASK_STATE
Attr Flags |= PWR_MASK_RTVIRTUAL
Attr Flags |= PWR_MASK_NOEDIT
Attr Flags |= PWR_MASK_NOREMOVE
Attr TypeRef = "pwrs:Type-$DeltaTime"
Attr GraphName = "DTim2"
EndBody
EndObject
!/**
! Status has the value 1 if DTime1 > DTime2, else 0.
!*/
Object Status $Output 3
Body SysBody
Attr Flags |= PWR_MASK_STATE
Attr Flags |= PWR_MASK_NOEDIT
Attr TypeRef = "pwrs:Type-$Boolean"
Attr GraphName = "sts"
EndBody
EndObject
EndObject
Object DevBody $ObjBodyDef 2
Object PlcNode $Buffer 1
Body SysBody
Attr Class = pwr_eClass_PlcNode
Attr Flags |= PWR_MASK_INVISIBLE
EndBody
EndObject
EndObject
Object GraphPlcNode $GraphPlcNode
Body SysBody
Attr object_type = 11
Attr parameters[0] = 2
Attr parameters[1] = 0
Attr parameters[2] = 1
Attr parameters[3] = 0
Attr subwindows = 0
Attr graphmethod = 1
Attr graphindex = 0
Attr default_mask[0] = 3
Attr default_mask[1] = 1
Attr segname_annotation = 1
Attr compmethod = 5
Attr compindex = 0
Attr tracemethod = 3
Attr traceindex = 0
Attr executeordermethod = 2
Attr objname = "DtGt"
Attr graphname = "DtGt"
Attr debugpar = "Status"
EndBody
EndObject
EndObject
EndSObject
src/wbl/pwrb/src/pwrb_c_dtlessthan.wb_load
0 → 100644
View file @
af4b4153
!
! Proview $Id: pwrb_c_dtlessthan.wb_load,v 1.1 2006-05-02 07:05:09 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.
!
! pwrb_c_atlessthan.wb_load -- Defines the class AtLessThan.
!
SObject pwrb:Class
!/**
! @Version 1.0
! @Code rt_plc_macro_time.h
! @Group Plc,PlcTime
! @Summary Compare two delta times.
! Compare two delta times.
! @image orm_dtlessthan_fo.gif
!
! DtLessThan compares two delta times and returns true if the first are
! less than the second.
!
! Both inputs have to be connected to delta times. The result is a digital value.
!*/
Object DtLessThan $ClassDef 469
Body SysBody
Attr Editor = pwr_eEditor_PlcEd
Attr Method = pwr_eMethod_Connections
Attr PopEditor = 2
EndBody
Object RtBody $ObjBodyDef 1
Body SysBody
Attr StructName = "DtLessThan"
EndBody
!/**
! A delta time.
! The input has to be connected to an output of type DeltaTime.
!*/
Object DTime1 $Input 1
Body SysBody
Attr TypeRef = "pwrs:Type-$DeltaTime"
Attr Flags |= PWR_MASK_STATE
Attr Flags |= PWR_MASK_RTVIRTUAL
Attr Flags |= PWR_MASK_NOEDIT
Attr Flags |= PWR_MASK_NOREMOVE
Attr GraphName = "DTim1"
EndBody
EndObject
!/**
! An delta time.
! The input has to be connected to an output of type DeltaTime.
!*/
Object DTime2 $Input 2
Body SysBody
Attr Flags |= PWR_MASK_STATE
Attr Flags |= PWR_MASK_RTVIRTUAL
Attr Flags |= PWR_MASK_NOEDIT
Attr Flags |= PWR_MASK_NOREMOVE
Attr TypeRef = "pwrs:Type-$DeltaTime"
Attr GraphName = "DTim2"
EndBody
EndObject
!/**
! Status has the value 1 if DTime1 < DTime2, else 0.
!*/
Object Status $Output 3
Body SysBody
Attr Flags |= PWR_MASK_STATE
Attr Flags |= PWR_MASK_NOEDIT
Attr TypeRef = "pwrs:Type-$Boolean"
Attr GraphName = "sts"
EndBody
EndObject
EndObject
Object DevBody $ObjBodyDef 2
Object PlcNode $Buffer 1
Body SysBody
Attr Class = pwr_eClass_PlcNode
Attr Flags |= PWR_MASK_INVISIBLE
EndBody
EndObject
EndObject
Object GraphPlcNode $GraphPlcNode
Body SysBody
Attr object_type = 11
Attr parameters[0] = 2
Attr parameters[1] = 0
Attr parameters[2] = 1
Attr parameters[3] = 0
Attr subwindows = 0
Attr graphmethod = 1
Attr graphindex = 0
Attr default_mask[0] = 3
Attr default_mask[1] = 1
Attr segname_annotation = 1
Attr compmethod = 5
Attr compindex = 0
Attr tracemethod = 3
Attr traceindex = 0
Attr executeordermethod = 2
Attr objname = "DtLt"
Attr graphname = "DtLt"
Attr debugpar = "Status"
EndBody
EndObject
EndObject
EndSObject
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