Commit 64367f53 authored by Claes Sjofors's avatar Claes Sjofors

Nmps wbl-files merged

parent 95a04ecf
This diff is collapsed.
!
! Proview Open Source Process Control.
! Copyright (C) 2005-2017 SSAB EMEA AB.
!
! This file is part of Proview.
!
! 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 Proview. If not, see <http://www.gnu.org/licenses/>
!
! Linking Proview statically or dynamically with other modules is
! making a combined work based on Proview. Thus, the terms and
! conditions of the GNU General Public License cover the whole
! combination.
!
! In addition, as a special exception, the copyright holders of
! Proview give you permission to, from the build function in the
! Proview Configurator, combine Proview with modules generated by the
! Proview PLC Editor to a PLC program, regardless of the license
! terms of these modules. You may copy and distribute the resulting
! combined work under the terms of your choice, provided that every
! copy of the combined work is accompanied by a complete copy of
! the source code of Proview (the version used to produce the
! combined work), being distributed under the terms of the GNU
! General Public License plus this exception.
!
! pwrb_c_nmpscelldata.wb_load -- Defines the class NMpsCellData.
!
SObject NMps:Class
!/**
! @Version 1.0
! @Group MaterialPlanning,Plc
! @Summary Data objects link class.
!
! The NMpsCellData class is used to link data object is NMpCell object.
!
! @classlink NMpsCell60 nmps_nmpscell60.html
!*/
Object NMpsCellData $ClassDef 52
Body SysBody
Attr Editor = pwr_eEditor_PlcEd
Attr Method = pwr_eMethod_Connections
EndBody
Object RtBody $ObjBodyDef 1
Body SysBody
Attr StructName = "NMpsCellData"
EndBody
!/**
! Pointer to data object.
!*/
Object DataP $Attribute 1
Body SysBody
Attr TypeRef = "pwrs:Type-$DataRef"
Attr Flags |= PWR_MASK_STATE
Attr Flags |= PWR_MASK_NOEDIT
EndBody
EndObject
!/**
! True if the front of the data object is inside the cell.
!*/
Object Data_Front $Attribute 3
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
Attr Flags |= PWR_MASK_NOEDIT
Attr Flags |= PWR_MASK_STATE
EndBody
EndObject
!/**
! True if the back of the data object is inside the cell.
!*/
Object Data_Back $Attribute 4
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
Attr Flags |= PWR_MASK_NOEDIT
Attr Flags |= PWR_MASK_STATE
EndBody
EndObject
!/**
! Realtime database direct link identiy.
!*/
Object Data_Dlid $Attribute 5
Body SysBody
Attr TypeRef = "pwrs:Type-$RefId"
Attr Flags |= PWR_MASK_INVISIBLE
Attr Flags |= PWR_MASK_STATE
EndBody
EndObject
!/**
! True if the data is selected.
!*/
Object Data_Select $Attribute 6
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
Attr Flags |= PWR_MASK_NOEDIT
Attr Flags |= PWR_MASK_STATE
EndBody
EndObject
!/**
! Stored value of Data_Select to detect changes.
!*/
Object Data_SelectOld $Attribute 7
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
Attr Flags |= PWR_MASK_INVISIBLE
Attr Flags |= PWR_MASK_STATE
EndBody
EndObject
EndObject
!
! Template object
!
Object Template NMpsCellData
Body RtBody
EndBody
EndObject
EndObject
EndSObject
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
!
! Proview Open Source Process Control.
! Copyright (C) 2005-2017 SSAB EMEA AB.
!
! This file is part of Proview.
!
! 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 Proview. If not, see <http://www.gnu.org/licenses/>
!
! Linking Proview statically or dynamically with other modules is
! making a combined work based on Proview. Thus, the terms and
! conditions of the GNU General Public License cover the whole
! combination.
!
! In addition, as a special exception, the copyright holders of
! Proview give you permission to, from the build function in the
! Proview Configurator, combine Proview with modules generated by the
! Proview PLC Editor to a PLC program, regardless of the license
! terms of these modules. You may copy and distribute the resulting
! combined work under the terms of your choice, provided that every
! copy of the combined work is accompanied by a complete copy of
! the source code of Proview (the version used to produce the
! combined work), being distributed under the terms of the GNU
! General Public License plus this exception.
!
! pwrb_c_cloop.wb_load -- Defines the class CLoop.
!
SObject NMps:Class
!/**
! @Version 1.0
! @Code nmps_plc_macro.h
! @Group Plc
! @Summary A loop object with a subwindow that is executed a number of times each plcscan.
!
! A loop object with a subwindow that is executed a number of times each plcscan.
! @image orm_cloop_fo.gif
! The object has a loop index which is fetched with the CurrentIndex object.
! The index is controlled by the attribute StartIndex, StopIndex and Increment.
!
! @b See also
! @classlink CurrentIndex nmps_currentindex.html
!*/
Object CLoop $ClassDef 14
Body SysBody
Attr Editor = pwr_eEditor_AttrEd
Attr Method = pwr_eMethod_Connections
Attr PopEditor = 2
EndBody
Object RtBody $ObjBodyDef 1
Body SysBody
Attr StructName = "CLoop"
EndBody
!/**
! Input for conditional execution of the loop.
!*/
Object Condition $Input 1
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
Attr Flags |= PWR_MASK_NOINVERT
Attr GraphName = "con"
EndBody
EndObject
!/**
! Start value for the loop index.
!*/
Object StartIndex $Input 2
Body SysBody
Attr TypeRef = "pwrs:Type-$Float32"
Attr GraphName = "Start"
EndBody
EndObject
!/**
! Increment of loop index each loop scan.
!*/
Object Increment $Input 3
Body SysBody
Attr TypeRef = "pwrs:Type-$Float32"
Attr GraphName = "Incr"
EndBody
EndObject
!/**
! When loop index has reached this value, the loop is stoped.
!*/
Object StopIndex $Input 4
Body SysBody
Attr TypeRef = "pwrs:Type-$Float32"
Attr GraphName = "Stop"
EndBody
EndObject
!/**
! Loop index. The loop index is reference by CurrentIndex objects in the subwindow.
!*/
Object CurrentIndex $Intern 5
Body SysBody
Attr TypeRef = "pwrs:Type-$Float32"
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] = 4
Attr parameters[1] = 0
Attr parameters[2] = 1
Attr parameters[3] = 0
Attr subwindow_class[0] = "pwrb:Class-WindowPlc"
Attr subwindows = 1
Attr graphmethod = 0
Attr graphindex = 0
Attr default_mask[0] = 1
Attr default_mask[1] = 0
Attr segname_annotation = 1
Attr compmethod = 50
Attr compindex = 0
Attr tracemethod = 2
Attr traceindex = 1
Attr executeordermethod = 2
Attr objname = "CLoop"
Attr graphname = "CLoop"
Attr debugpar = "Condition"
EndBody
EndObject
!
! Template object
!
Object Template CLoop
Body RtBody
Attr Condition = 1
Attr StartIndex = 1
Attr Increment = 1
Attr StopIndex = 1
EndBody
EndObject
EndObject
EndSObject
\ No newline at end of file
!
! Proview Open Source Process Control.
! Copyright (C) 2005-2017 SSAB EMEA AB.
!
! This file is part of Proview.
!
! 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 Proview. If not, see <http://www.gnu.org/licenses/>
!
! Linking Proview statically or dynamically with other modules is
! making a combined work based on Proview. Thus, the terms and
! conditions of the GNU General Public License cover the whole
! combination.
!
! In addition, as a special exception, the copyright holders of
! Proview give you permission to, from the build function in the
! Proview Configurator, combine Proview with modules generated by the
! Proview PLC Editor to a PLC program, regardless of the license
! terms of these modules. You may copy and distribute the resulting
! combined work under the terms of your choice, provided that every
! copy of the combined work is accompanied by a complete copy of
! the source code of Proview (the version used to produce the
! combined work), being distributed under the terms of the GNU
! General Public License plus this exception.
!
! nmps_c_convdef.wb_load -- Defines the class ConvDef.
!
SObject NMps:Class
Object ConvDef $ClassDef 39
Body SysBody
Attr Editor = pwr_eEditor_AttrEd
EndBody
!
! CONVDEF Runtime Body
!
Object RtBody $ObjBodyDef 1
Body SysBody
Attr StructName = "ConvDef"
EndBody
Object Param $Attribute 1
Body SysBody
Attr TypeRef = "pwrs:Type-$String80"
Attr Flags |= PWR_MASK_ARRAY
Attr Elements = 200
EndBody
EndObject
EndObject
EndObject
EndSObject
\ No newline at end of file
!
! Proview Open Source Process Control.
! Copyright (C) 2005-2017 SSAB EMEA AB.
!
! This file is part of Proview.
!
! 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 Proview. If not, see <http://www.gnu.org/licenses/>
!
! Linking Proview statically or dynamically with other modules is
! making a combined work based on Proview. Thus, the terms and
! conditions of the GNU General Public License cover the whole
! combination.
!
! In addition, as a special exception, the copyright holders of
! Proview give you permission to, from the build function in the
! Proview Configurator, combine Proview with modules generated by the
! Proview PLC Editor to a PLC program, regardless of the license
! terms of these modules. You may copy and distribute the resulting
! combined work under the terms of your choice, provided that every
! copy of the combined work is accompanied by a complete copy of
! the source code of Proview (the version used to produce the
! combined work), being distributed under the terms of the GNU
! General Public License plus this exception.
!
! pwrb_c_currentdata.wb_load -- Defines the class CurrentData.
!
SObject NMps:Class
!/**
! @Version 1.0
! @Group MaterialPlanning,Plc
! @Summary Get a reference to the current data object in a NMpsCell subwindow.
!
! Get a reference the current data object in a NMpsCell subwindow.
! @image orm_currentdata_fo.gif
! The object is used in a NMpsCell subwindow. A cell subwindow is exectuted
! one time for each data object in the cell, in one plc scan, plus one initiate
! execution.
! The output hold a pointer of the currently executed data object. This can be
! used as input to a data input of a DataArithm object.
! In the initiate execution, the current data is zero.
!
! @b See also
! @classlink NMpsCell nmps_nmpscell.html
! @classlink CurrentIndex nmps_currentindex.html
! @classlink DataArithm pwrb_dataarithm.html
!*/
Object CurrentData $ClassDef 11
Body SysBody
Attr Editor = pwr_eEditor_AttrEd
Attr Method = pwr_eMethod_DevBodyOnly
Attr PopEditor = 2
EndBody
!
! CURRENTDATA Runtime Body
!
Object RtBody $ObjBodyDef 1
Body SysBody
Attr StructName = "currentdata"
EndBody
!/**
! Pointer to the currently executed data object.
!*/
Object DataCurrentP $Output 1
Body SysBody
Attr PgmName = "DataCurrentP"
Attr Flags |= PWR_MASK_STATE
Attr Flags |= PWR_MASK_RTVIRTUAL
Attr Flags |= PWR_MASK_DEVBODYREF
Attr Flags |= PWR_MASK_POINTER
Attr Flags |= PWR_MASK_PRIVATE
Attr Flags |= PWR_MASK_INVISIBLE
Attr TypeRef = "pwrs:Type-$Float32"
Attr GraphName = "Out"
EndBody
EndObject
EndObject
!
! DATACOPY Development Body
!
Object GraphPlcNode $GraphPlcNode
Body SysBody
Attr object_type = 227
Attr parameters[0] = 0
Attr parameters[1] = 0
Attr parameters[2] = 1
Attr parameters[3] = 0
Attr subwindows = 0
Attr graphmethod = 0
Attr graphindex = 0
Attr default_mask[0] = 0
Attr default_mask[1] = 1
Attr segname_annotation = 1
Attr compmethod = 44
Attr compindex = 0
Attr tracemethod = 0
Attr traceindex = 0
Attr executeordermethod = 2
Attr objname = "CurrData"
Attr graphname = "CurrData"
Attr debugpar = ""
EndBody
EndObject
Object DevBody $ObjBodyDef 2
Object CellObject $Intern 1
Body SysBody
Attr PgmName = "CellObject"
Attr TypeRef = "pwrs:Type-$Objid"
Attr Flags |= PWR_MASK_INVISIBLE
EndBody
EndObject
Object PlcNode $Buffer 2
Body SysBody
Attr Class = pwr_eClass_PlcNode
Attr Flags |= PWR_MASK_INVISIBLE
EndBody
EndObject
EndObject
EndObject
EndSObject
\ No newline at end of file
!
! Proview Open Source Process Control.
! Copyright (C) 2005-2017 SSAB EMEA AB.
!
! This file is part of Proview.
!
! 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 Proview. If not, see <http://www.gnu.org/licenses/>
!
! Linking Proview statically or dynamically with other modules is
! making a combined work based on Proview. Thus, the terms and
! conditions of the GNU General Public License cover the whole
! combination.
!
! In addition, as a special exception, the copyright holders of
! Proview give you permission to, from the build function in the
! Proview Configurator, combine Proview with modules generated by the
! Proview PLC Editor to a PLC program, regardless of the license
! terms of these modules. You may copy and distribute the resulting
! combined work under the terms of your choice, provided that every
! copy of the combined work is accompanied by a complete copy of
! the source code of Proview (the version used to produce the
! combined work), being distributed under the terms of the GNU
! General Public License plus this exception.
!
! pwrb_c_currentindex.wb_load -- Defines the class CurrentIndex.
!
SObject NMps:Class
!/**
! @Version 1.0
! @Group MaterialPlanning,Plc
! @Summary Get the index of the current data object in a NMpsCell or a CLoop subwindow.
!
! Get the index of the current data object in a NMpsCell or a CLoop subwindow.
! @image orm_currentindex_fo.gif
! The object is used in a NMpsCell or a CLoop subwindow.
!
! A cell subwindow is exectuted one time for each data object in the cell,
! in one plc scan, plus one initiate execution.
! The output hold the index of the currently executed data object.
! In the initiate execution, the current index is zero.
!
! In a cloop subwindow, CurrentIndex keeps the index of the current loop.
! @b See also
! @classlink NMpsCell nmps_nmpscell.html
! @classlink CLoop nmps_cloop.html
! @classlink CurrentData nmps_currentdata.html
!*/
Object CurrentIndex $ClassDef 12
Body SysBody
Attr Editor = pwr_eEditor_AttrEd
Attr Method = pwr_eMethod_DevBodyOnly
Attr PopEditor = 2
EndBody
!
! CURRENTINDEX Runtime Body
!
Object RtBody $ObjBodyDef 1
Body SysBody
Attr StructName = "currentindex"
EndBody
!/**
! The index of the currently executed data object.
!*/
Object DataCurrent_Index $Output 1
Body SysBody
Attr PgmName = "CurrentIndex"
Attr Flags |= PWR_MASK_STATE
Attr Flags |= PWR_MASK_RTVIRTUAL
Attr Flags |= PWR_MASK_DEVBODYREF
Attr Flags |= PWR_MASK_INVISIBLE
Attr TypeRef = "pwrs:Type-$Float32"
Attr GraphName = "Out"
EndBody
EndObject
EndObject
!
! DATACOPY Development Body
!
Object GraphPlcNode $GraphPlcNode
Body SysBody
Attr object_type = 228
Attr parameters[0] = 0
Attr parameters[1] = 0
Attr parameters[2] = 1
Attr parameters[3] = 0
Attr subwindows = 0
Attr graphmethod = 0
Attr graphindex = 0
Attr default_mask[0] = 0
Attr default_mask[1] = 1
Attr segname_annotation = 1
Attr compmethod = 44
Attr compindex = 0
Attr tracemethod = 0
Attr traceindex = 0
Attr executeordermethod = 2
Attr objname = "CurrIndex"
Attr graphname = "CurrIndex"
Attr debugpar = ""
EndBody
EndObject
Object DevBody $ObjBodyDef 2
Object CellObject $Intern 1
Body SysBody
Attr PgmName = "CellObject"
Attr TypeRef = "pwrs:Type-$Objid"
Attr Flags |= PWR_MASK_INVISIBLE
EndBody
EndObject
Object PlcNode $Buffer 2
Body SysBody
Attr Class = pwr_eClass_PlcNode
Attr Flags |= PWR_MASK_INVISIBLE
EndBody
EndObject
EndObject
EndObject
EndSObject
\ No newline at end of file
!
! Proview Open Source Process Control.
! Copyright (C) 2005-2017 SSAB EMEA AB.
!
! This file is part of Proview.
!
! 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 Proview. If not, see <http://www.gnu.org/licenses/>
!
! Linking Proview statically or dynamically with other modules is
! making a combined work based on Proview. Thus, the terms and
! conditions of the GNU General Public License cover the whole
! combination.
!
! In addition, as a special exception, the copyright holders of
! Proview give you permission to, from the build function in the
! Proview Configurator, combine Proview with modules generated by the
! Proview PLC Editor to a PLC program, regardless of the license
! terms of these modules. You may copy and distribute the resulting
! combined work under the terms of your choice, provided that every
! copy of the combined work is accompanied by a complete copy of
! the source code of Proview (the version used to produce the
! combined work), being distributed under the terms of the GNU
! General Public License plus this exception.
!
! pwrb_c_datacnv.wb_load -- Defines the class DataCnv.
!
SObject NMps:Class
Object DataCnv $ClassDef 38
Body SysBody
Attr Editor = pwr_eEditor_PlcEd
Attr Method = pwr_eMethod_Connections
EndBody
!
! DATACNV Runtime Body
!
Object RtBody $ObjBodyDef 1
Body SysBody
Attr StructName = "datacnv"
EndBody
Object DataFrom $Input 1
Body SysBody
Attr TypeRef = "pwrs:Type-$Void"
Attr Flags |= PWR_MASK_POINTER
Attr Flags |= PWR_MASK_INVISIBLE
Attr GraphName = "From"
EndBody
EndObject
Object DataTo $Input 2
Body SysBody
Attr TypeRef = "pwrs:Type-$Void"
Attr Flags |= PWR_MASK_POINTER
Attr Flags |= PWR_MASK_INVISIBLE
Attr GraphName = "To"
EndBody
EndObject
Object Condition $Input 3
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
Attr Flags |= PWR_MASK_NOINVERT
Attr GraphName = "cond"
EndBody
EndObject
Object ToConvdefType $Attribute 4
Body SysBody
Attr TypeRef = "pwrs:Type-$Int32"
EndBody
EndObject
Object ToConvdef $Attribute 5
Body SysBody
Attr TypeRef = "pwrs:Type-$Objid"
EndBody
EndObject
Object ToConvdefFile $Attribute 6
Body SysBody
Attr TypeRef = "pwrs:Type-$String40"
EndBody
EndObject
Object FromConvdefType $Attribute 7
Body SysBody
Attr TypeRef = "pwrs:Type-$Int32"
EndBody
EndObject
Object FromConvdef $Attribute 8
Body SysBody
Attr TypeRef = "pwrs:Type-$Objid"
EndBody
EndObject
Object FromConvdefFile $Attribute 9
Body SysBody
Attr TypeRef = "pwrs:Type-$String40"
EndBody
EndObject
Object ConvTableCount $Attribute 10
Body SysBody
Attr TypeRef = "pwrs:Type-$Int32"
Attr Flags |= PWR_MASK_STATE
Attr Flags |= PWR_MASK_INVISIBLE
EndBody
EndObject
Object ConvTable $Attribute 11
Body SysBody
Attr TypeRef = "pwrs:Type-$Int32"
Attr Flags |= PWR_MASK_STATE
Attr Flags |= PWR_MASK_INVISIBLE
Attr Flags |= PWR_MASK_ARRAY
Attr Elements = 1800
EndBody
EndObject
EndObject
!
! DATACNV Development Body
!
Object GraphPlcNode $GraphPlcNode
Body SysBody
Attr object_type = 11
Attr parameters[0] = 3
Attr parameters[1] = 7
Attr parameters[2] = 0
Attr parameters[3] = 0
Attr subwindows = 0
Attr graphmethod = 0
Attr graphindex = 0
Attr default_mask[0] = 7
Attr default_mask[1] = 0
Attr segname_annotation = 1
Attr compmethod = 35
Attr compindex = 0
Attr tracemethod = 0
Attr traceindex = 0
Attr executeordermethod = 2
Attr objname = "DataCnv"
Attr graphname = "DataCnv"
Attr debugpar = ""
EndBody
EndObject
Object DevBody $ObjBodyDef 2
Object PlcNode $Buffer 1
Body SysBody
Attr Class = pwr_eClass_PlcNode
Attr Flags |= PWR_MASK_INVISIBLE
EndBody
EndObject
EndObject
EndObject
EndSObject
\ No newline at end of file
!
! Proview Open Source Process Control.
! Copyright (C) 2005-2017 SSAB EMEA AB.
!
! This file is part of Proview.
!
! 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 Proview. If not, see <http://www.gnu.org/licenses/>
!
! Linking Proview statically or dynamically with other modules is
! making a combined work based on Proview. Thus, the terms and
! conditions of the GNU General Public License cover the whole
! combination.
!
! In addition, as a special exception, the copyright holders of
! Proview give you permission to, from the build function in the
! Proview Configurator, combine Proview with modules generated by the
! Proview PLC Editor to a PLC program, regardless of the license
! terms of these modules. You may copy and distribute the resulting
! combined work under the terms of your choice, provided that every
! copy of the combined work is accompanied by a complete copy of
! the source code of Proview (the version used to produce the
! combined work), being distributed under the terms of the GNU
! General Public License plus this exception.
!
! pwrb_c_datacopy.wb_load -- Defines the class DataCopy.
!
SObject NMps:Class
!/**
! @Version 1.0
! @Code nmps_plc_macro.h
! @Group Plc,PlcData
! @Summary Copy a data object.
!
! Copy the content of a data object to another data object.
! @image orm_datacopy_fo.gif
! Note! At least one of the data objects has to be fetched with a GetData object.
! The copy is executed when the condition input is true.
!
! @b See also
! @classlink GetData pwrb_getdata.html
! @classlink DataReset nmps_datareset.html
!*/
Object DataCopy $ClassDef 9
Body SysBody
Attr Editor = pwr_eEditor_PlcEd
Attr Method = pwr_eMethod_Connections
EndBody
!
! DATACOPY Runtime Body
!
Object RtBody $ObjBodyDef 1
Body SysBody
Attr StructName = "datacopy"
EndBody
!/**
! Data input connected to an output that keeps a reference to the source data object.
!*/
Object DataFrom $Input 1
Body SysBody
Attr TypeRef = "pwrs:Type-$Void"
Attr Flags |= PWR_MASK_POINTER
Attr Flags |= PWR_MASK_INVISIBLE
Attr GraphName = "From"
EndBody
EndObject
!/**
! Data input connected to an output that keeps a reference to the target data object.
!*/
Object DataTo $Input 2
Body SysBody
Attr TypeRef = "pwrs:Type-$Void"
Attr Flags |= PWR_MASK_POINTER
Attr Flags |= PWR_MASK_INVISIBLE
Attr GraphName = "To"
EndBody
EndObject
!/**
! When Condition is true, the copy is executed.
!*/
Object Condition $Input 3
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
Attr GraphName = "cond"
EndBody
EndObject
EndObject
!
! DATACOPY Development Body
!
Object GraphPlcNode $GraphPlcNode
Body SysBody
Attr object_type = 226
Attr parameters[0] = 3
Attr parameters[1] = 0
Attr parameters[2] = 0
Attr parameters[3] = 0
Attr subwindows = 0
Attr graphmethod = 0
Attr graphindex = 0
Attr default_mask[0] = 7
Attr default_mask[1] = 0
Attr segname_annotation = 1
Attr compmethod = 45
Attr compindex = 0
Attr tracemethod = 0
Attr traceindex = 0
Attr executeordermethod = 2
Attr objname = "DataCopy"
Attr graphname = "DataCopy"
Attr debugpar = ""
EndBody
EndObject
Object DevBody $ObjBodyDef 2
Object PlcNode $Buffer 1
Body SysBody
Attr Class = pwr_eClass_PlcNode
Attr Flags |= PWR_MASK_INVISIBLE
EndBody
EndObject
EndObject
EndObject
EndSObject
\ No newline at end of file
!
! Proview Open Source Process Control.
! Copyright (C) 2005-2017 SSAB EMEA AB.
!
! This file is part of Proview.
!
! 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 Proview. If not, see <http://www.gnu.org/licenses/>
!
! Linking Proview statically or dynamically with other modules is
! making a combined work based on Proview. Thus, the terms and
! conditions of the GNU General Public License cover the whole
! combination.
!
! In addition, as a special exception, the copyright holders of
! Proview give you permission to, from the build function in the
! Proview Configurator, combine Proview with modules generated by the
! Proview PLC Editor to a PLC program, regardless of the license
! terms of these modules. You may copy and distribute the resulting
! combined work under the terms of your choice, provided that every
! copy of the combined work is accompanied by a complete copy of
! the source code of Proview (the version used to produce the
! combined work), being distributed under the terms of the GNU
! General Public License plus this exception.
!
! pwrb_c_dataequal.wb_load -- Defines the class DataEqual.
!
SObject NMps:Class
!/**
! @Version 1.0
! @Code nmps_plc.c
! @Group Plc,PlcData
! @Summary Check if two data references are equal.
! DataEqual compares two data reference values and returns true if they are equal.
! @image orm_dataequal_fo.png
!*/
Object DataEqual $ClassDef 58
Body SysBody
Attr Editor = pwr_eEditor_PlcEd
Attr Method = pwr_eMethod_Connections
Attr PopEditor = 2
EndBody
Object RtBody $ObjBodyDef 1
Body SysBody
Attr StructName = "DataEqual"
EndBody
!/**
! Data reference input 1.
!*/
Object In1 $Input 1
Body SysBody
Attr Flags |= PWR_MASK_NOREMOVE
Attr Flags |= PWR_MASK_NOEDIT
Attr TypeRef = "pwrs:Type-$DataRef"
Attr GraphName = "In1"
EndBody
EndObject
!/**
! Data reference input 2.
!*/
Object In2 $Input 2
Body SysBody
Attr Flags |= PWR_MASK_NOREMOVE
Attr Flags |= PWR_MASK_NOEDIT
Attr TypeRef = "pwrs:Type-$DataRef"
Attr GraphName = "In2"
EndBody
EndObject
!/**
! True if the input values are equal.
!*/
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 = 4
Attr compindex = 0
Attr tracemethod = 3
Attr traceindex = 1
Attr executeordermethod = 2
Attr objname = "DataEq"
Attr graphname = "DataEq"
Attr debugpar = "Status"
EndBody
EndObject
Object Template DataEqual
Body RtBody
EndBody
EndObject
EndObject
EndSObject
\ No newline at end of file
!
! Proview Open Source Process Control.
! Copyright (C) 2005-2017 SSAB EMEA AB.
!
! This file is part of Proview.
!
! 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 Proview. If not, see <http://www.gnu.org/licenses/>
!
! Linking Proview statically or dynamically with other modules is
! making a combined work based on Proview. Thus, the terms and
! conditions of the GNU General Public License cover the whole
! combination.
!
! In addition, as a special exception, the copyright holders of
! Proview give you permission to, from the build function in the
! Proview Configurator, combine Proview with modules generated by the
! Proview PLC Editor to a PLC program, regardless of the license
! terms of these modules. You may copy and distribute the resulting
! combined work under the terms of your choice, provided that every
! copy of the combined work is accompanied by a complete copy of
! the source code of Proview (the version used to produce the
! combined work), being distributed under the terms of the GNU
! General Public License plus this exception.
!
! pwrb_c_datafread.wb_load -- Defines the class DataFRead.
!
SObject NMps:Class
!/**
! @Version 1.0
! @Code nmps_plc.c
! @Group Plc,PlcData
! @Summary Read the content of a data object from file.
!
! Read the content of a data object from a file.
! @image orm_datafread_fo.gif
! The read is executed when the condition input is set to true.
!
! Hint!
! The filename and condition can be set from a fileview with the xtt
! command 'open fileview'.
!
! @b See also
! @exliblink "Example with fileview" ../../en_us/man_exlib_exlib_datafread.html
! @classlink GetData pwrb_getdata.html
! @classlink DataFWrite nmps_datafread.html
!*/
Object DataFRead $ClassDef 51
Body SysBody
Attr Editor = pwr_eEditor_PlcEd
Attr Method = pwr_eMethod_Connections
EndBody
!
! Runtime Body
!
Object RtBody $ObjBodyDef 1
Body SysBody
Attr StructName = "DataFRead"
EndBody
!/**
! Data input connected to an output that keeps a reference to the data object.
!*/
Object Data $Input 1
Body SysBody
Attr TypeRef = "pwrs:Type-$Void"
Attr Flags |= PWR_MASK_POINTER
Attr Flags |= PWR_MASK_NOEDIT
Attr Flags |= PWR_MASK_STATE
Attr Flags |= PWR_MASK_NOREMOVE
Attr GraphName = "Data"
EndBody
EndObject
!/**
! When Condition is goes from false to true, the read is executed.
! If condition is connected, it has to be reset before the next read.
! If condition is not connected it is automatically reset.
!*/
Object Condition $Input 2
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
Attr GraphName = "cond"
EndBody
EndObject
!/**
! @Summary String contaning the filename to read data from.
! String contaning the filename to read data from.
! The filename can be set by opening a fileview with the 'open fileview' command.
!*/
Object FileName $Input 3
Body SysBody
Attr TypeRef = "pwrs:Type-$String80"
Attr GraphName = "File"
EndBody
EndObject
!/**
! Status of last read operation.
!*/
Object ReadStatus $Intern 4
Body SysBody
Attr TypeRef = "pwrs:Type-$Status"
Attr Flags |= PWR_MASK_NOEDIT
Attr Flags |= PWR_MASK_STATE
EndBody
EndObject
!/**
! Old value of Condition to detect edge.
!*/
Object CondOld $Intern 5
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
Attr Flags |= PWR_MASK_INVISIBLE
Attr Flags |= PWR_MASK_STATE
EndBody
EndObject
!/**
! Error attribute set at read failure.
!*/
Object Error $Output 6
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
Attr Flags |= PWR_MASK_NOEDIT
Attr Flags |= PWR_MASK_STATE
EndBody
EndObject
EndObject
!
! Development Body
!
Object GraphPlcNode $GraphPlcNode
Body SysBody
Attr object_type = 11
Attr parameters[0] = 3
Attr parameters[1] = 2
Attr parameters[2] = 1
Attr parameters[3] = 0
Attr subwindows = 0
Attr graphmethod = 0
Attr graphindex = 0
Attr default_mask[0] = 7
Attr default_mask[1] = 0
Attr segname_annotation = 1
Attr compmethod = 4
Attr compindex = 0
Attr tracemethod = 0
Attr traceindex = 0
Attr executeordermethod = 2
Attr objname = "DataFRead"
Attr graphname = "DataFRead"
Attr debugpar = ""
EndBody
EndObject
Object DevBody $ObjBodyDef 2
Object PlcNode $Buffer 1
Body SysBody
Attr Class = pwr_eClass_PlcNode
Attr Flags |= PWR_MASK_INVISIBLE
EndBody
EndObject
EndObject
EndObject
EndSObject
\ No newline at end of file
!
! Proview Open Source Process Control.
! Copyright (C) 2005-2017 SSAB EMEA AB.
!
! This file is part of Proview.
!
! 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 Proview. If not, see <http://www.gnu.org/licenses/>
!
! Linking Proview statically or dynamically with other modules is
! making a combined work based on Proview. Thus, the terms and
! conditions of the GNU General Public License cover the whole
! combination.
!
! In addition, as a special exception, the copyright holders of
! Proview give you permission to, from the build function in the
! Proview Configurator, combine Proview with modules generated by the
! Proview PLC Editor to a PLC program, regardless of the license
! terms of these modules. You may copy and distribute the resulting
! combined work under the terms of your choice, provided that every
! copy of the combined work is accompanied by a complete copy of
! the source code of Proview (the version used to produce the
! combined work), being distributed under the terms of the GNU
! General Public License plus this exception.
!
! pwrb_c_datafwrite.wb_load -- Defines the class DataFWrite.
!
SObject NMps:Class
!/**
! @Version 1.0
! @Code nmps_plc.c
! @Group Plc,PlcData
! @Summary Write the content of a data object to a file.
!
! Write the content of a data object to a file.
! @image orm_datafwrite_fo.gif
! The write is executed when the condition input is set to true.
!
! Hint!
! The filename and condition can be set from a fileview with the xtt
! command 'open fileview'.
!
! @b See also
! @exliblink "Example with fileview" ../../en_us/man_exlib_exlib_datafread.html
! @classlink GetData pwrb_getdata.html
! @classlink DataFRead nmps_datafread.html
!*/
Object DataFWrite $ClassDef 50
Body SysBody
Attr Editor = pwr_eEditor_PlcEd
Attr Method = pwr_eMethod_Connections
EndBody
!
! Runtime Body
!
Object RtBody $ObjBodyDef 1
Body SysBody
Attr StructName = "DataFWrite"
EndBody
!/**
! Data input connected to an output that keeps a reference to the data object.
!*/
Object Data $Input 1
Body SysBody
Attr TypeRef = "pwrs:Type-$Void"
Attr Flags |= PWR_MASK_POINTER
Attr Flags |= PWR_MASK_NOEDIT
Attr Flags |= PWR_MASK_STATE
Attr Flags |= PWR_MASK_NOREMOVE
Attr GraphName = "Data"
EndBody
EndObject
!/**
! When Condition is goes from false to true, the write is executed.
! If condition is connected, it has to be reset before the next write.
! If condition is not connected it is automatically reset.
!*/
Object Condition $Input 2
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
Attr GraphName = "cond"
EndBody
EndObject
!/**
! @Summary String contaning the filename to write data to.
! String contaning the filename to write data to.
!*/
Object FileName $Input 3
Body SysBody
Attr TypeRef = "pwrs:Type-$String80"
Attr GraphName = "File"
EndBody
EndObject
!/**
! Status of last write operation.
!*/
Object WriteStatus $Intern 4
Body SysBody
Attr TypeRef = "pwrs:Type-$Status"
Attr Flags |= PWR_MASK_NOEDIT
Attr Flags |= PWR_MASK_STATE
EndBody
EndObject
!/**
! Old value of Condition to detect edge.
!*/
Object CondOld $Intern 5
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
Attr Flags |= PWR_MASK_INVISIBLE
Attr Flags |= PWR_MASK_STATE
EndBody
EndObject
!/**
! Error attribute set at write failure.
!*/
Object Error $Output 6
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
Attr Flags |= PWR_MASK_NOEDIT
Attr Flags |= PWR_MASK_STATE
EndBody
EndObject
EndObject
!
! Development Body
!
Object GraphPlcNode $GraphPlcNode
Body SysBody
Attr object_type = 11
Attr parameters[0] = 3
Attr parameters[1] = 2
Attr parameters[2] = 1
Attr parameters[3] = 0
Attr subwindows = 0
Attr graphmethod = 0
Attr graphindex = 0
Attr default_mask[0] = 7
Attr default_mask[1] = 0
Attr segname_annotation = 1
Attr compmethod = 4
Attr compindex = 0
Attr tracemethod = 0
Attr traceindex = 0
Attr executeordermethod = 2
Attr objname = "DataFWrite"
Attr graphname = "DataFWrite"
Attr debugpar = ""
EndBody
EndObject
Object DevBody $ObjBodyDef 2
Object PlcNode $Buffer 1
Body SysBody
Attr Class = pwr_eClass_PlcNode
Attr Flags |= PWR_MASK_INVISIBLE
EndBody
EndObject
EndObject
EndObject
EndSObject
\ No newline at end of file
!
! Proview Open Source Process Control.
! Copyright (C) 2005-2017 SSAB EMEA AB.
!
! This file is part of Proview.
!
! 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 Proview. If not, see <http://www.gnu.org/licenses/>
!
! Linking Proview statically or dynamically with other modules is
! making a combined work based on Proview. Thus, the terms and
! conditions of the GNU General Public License cover the whole
! combination.
!
! In addition, as a special exception, the copyright holders of
! Proview give you permission to, from the build function in the
! Proview Configurator, combine Proview with modules generated by the
! Proview PLC Editor to a PLC program, regardless of the license
! terms of these modules. You may copy and distribute the resulting
! combined work under the terms of your choice, provided that every
! copy of the combined work is accompanied by a complete copy of
! the source code of Proview (the version used to produce the
! combined work), being distributed under the terms of the GNU
! General Public License plus this exception.
!
! pwrb_c_datamux.wb_load -- Defines the class DataMux.
!
SObject NMps:Class
!/**
! @Version 1.0
! @Code nmps_plc.c
! @Group Plc,PlcData
! @Summary Data reference multiplexer
! Data reference multiplexer.
! @image orm_datamux_fo.png
!
! Select one of 24 data reference inputs, depending on Idx.
!
!*/
Object DataMux $ClassDef 60
Body SysBody
Attr Editor = pwr_eEditor_AttrEd
Attr Method = pwr_eMethod_Connections
Attr PopEditor = 2
EndBody
Object RtBody $ObjBodyDef 1
Body SysBody
Attr StructName = "DataMux"
EndBody
!/**
! Index for selected value.
! First input has index 0.
!*/
Object Index $Input 1
Body SysBody
Attr TypeRef = "pwrs:Type-$Int32"
Attr GraphName = "Idx"
EndBody
EndObject
!/**
! Value of input signal 0, input signal 1, ...
!*/
Object In0 $Input 2
Body SysBody
Attr Flags |= PWR_MASK_NOEDIT
Attr TypeRef = "pwrs:Type-$DataRef"
Attr GraphName = "In0"
EndBody
EndObject
Object In1 $Input 3
Body SysBody
Attr Flags |= PWR_MASK_NOEDIT
Attr TypeRef = "pwrs:Type-$DataRef"
Attr GraphName = "In1"
EndBody
EndObject
Object In2 $Input 4
Body SysBody
Attr Flags |= PWR_MASK_NOEDIT
Attr TypeRef = "pwrs:Type-$DataRef"
Attr GraphName = "In2"
EndBody
EndObject
Object In3 $Input 5
Body SysBody
Attr Flags |= PWR_MASK_NOEDIT
Attr TypeRef = "pwrs:Type-$DataRef"
Attr GraphName = "In3"
EndBody
EndObject
Object In4 $Input 6
Body SysBody
Attr Flags |= PWR_MASK_NOEDIT
Attr TypeRef = "pwrs:Type-$DataRef"
Attr GraphName = "In4"
EndBody
EndObject
Object In5 $Input 7
Body SysBody
Attr Flags |= PWR_MASK_NOEDIT
Attr TypeRef = "pwrs:Type-$DataRef"
Attr GraphName = "In5"
EndBody
EndObject
Object In6 $Input 8
Body SysBody
Attr Flags |= PWR_MASK_NOEDIT
Attr TypeRef = "pwrs:Type-$DataRef"
Attr GraphName = "In6"
EndBody
EndObject
Object In7 $Input 9
Body SysBody
Attr Flags |= PWR_MASK_NOEDIT
Attr TypeRef = "pwrs:Type-$DataRef"
Attr GraphName = "In7"
EndBody
EndObject
Object In8 $Input 10
Body SysBody
Attr Flags |= PWR_MASK_NOEDIT
Attr TypeRef = "pwrs:Type-$DataRef"
Attr GraphName = "In8"
EndBody
EndObject
Object In9 $Input 11
Body SysBody
Attr Flags |= PWR_MASK_NOEDIT
Attr TypeRef = "pwrs:Type-$DataRef"
Attr GraphName = "In9"
EndBody
EndObject
Object In10 $Input 12
Body SysBody
Attr Flags |= PWR_MASK_NOEDIT
Attr TypeRef = "pwrs:Type-$DataRef"
Attr GraphName = "In10"
EndBody
EndObject
Object In11 $Input 13
Body SysBody
Attr Flags |= PWR_MASK_NOEDIT
Attr TypeRef = "pwrs:Type-$DataRef"
Attr GraphName = "In11"
EndBody
EndObject
Object In12 $Input 14
Body SysBody
Attr Flags |= PWR_MASK_NOEDIT
Attr TypeRef = "pwrs:Type-$DataRef"
Attr GraphName = "In12"
EndBody
EndObject
Object In13 $Input 15
Body SysBody
Attr Flags |= PWR_MASK_NOEDIT
Attr TypeRef = "pwrs:Type-$DataRef"
Attr GraphName = "In13"
EndBody
EndObject
Object In14 $Input 16
Body SysBody
Attr Flags |= PWR_MASK_NOEDIT
Attr TypeRef = "pwrs:Type-$DataRef"
Attr GraphName = "In14"
EndBody
EndObject
Object In15 $Input 17
Body SysBody
Attr Flags |= PWR_MASK_NOEDIT
Attr TypeRef = "pwrs:Type-$DataRef"
Attr GraphName = "In15"
EndBody
EndObject
Object In16 $Input 18
Body SysBody
Attr Flags |= PWR_MASK_NOEDIT
Attr TypeRef = "pwrs:Type-$DataRef"
Attr GraphName = "In16"
EndBody
EndObject
Object In17 $Input 19
Body SysBody
Attr Flags |= PWR_MASK_NOEDIT
Attr TypeRef = "pwrs:Type-$DataRef"
Attr GraphName = "In17"
EndBody
EndObject
Object In18 $Input 20
Body SysBody
Attr Flags |= PWR_MASK_NOEDIT
Attr TypeRef = "pwrs:Type-$DataRef"
Attr GraphName = "In18"
EndBody
EndObject
Object In19 $Input 21
Body SysBody
Attr Flags |= PWR_MASK_NOEDIT
Attr TypeRef = "pwrs:Type-$DataRef"
Attr GraphName = "In19"
EndBody
EndObject
Object In20 $Input 22
Body SysBody
Attr Flags |= PWR_MASK_NOEDIT
Attr TypeRef = "pwrs:Type-$DataRef"
Attr GraphName = "In20"
EndBody
EndObject
Object In21 $Input 23
Body SysBody
Attr Flags |= PWR_MASK_NOEDIT
Attr TypeRef = "pwrs:Type-$DataRef"
Attr GraphName = "In21"
EndBody
EndObject
Object In22 $Input 24
Body SysBody
Attr Flags |= PWR_MASK_NOEDIT
Attr TypeRef = "pwrs:Type-$DataRef"
Attr GraphName = "In22"
EndBody
EndObject
Object In23 $Input 25
Body SysBody
Attr Flags |= PWR_MASK_NOEDIT
Attr TypeRef = "pwrs:Type-$DataRef"
Attr GraphName = "In23"
EndBody
EndObject
!/**
! Maximum value for index.
! This limitation is used to avoid a null reference if an input that is
! not connected is specified by Index.
! If Index is larger than MaxIndex, the data reference for MaxIndex is
! selected.
!*/
Object MaxIndex $Intern 26
Body SysBody
Attr TypeRef = "pwrs:Type-$Int32"
Attr GraphName = "Idx"
EndBody
EndObject
!/**
! Selected value.
!*/
Object ActVal $Output 27
Body SysBody
Attr PgmName = "ActVal"
Attr Flags |= PWR_MASK_STATE
Attr Flags |= PWR_MASK_NOEDIT
Attr TypeRef = "pwrs:Type-$DataRef"
Attr GraphName = "Val"
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] = 25
Attr parameters[1] = 1
Attr parameters[2] = 1
Attr parameters[3] = 0
Attr subwindows = 0
Attr graphmethod = 0
Attr graphindex = 0
Attr default_mask[0] = 7
Attr default_mask[1] = 1
Attr segname_annotation = 1
Attr compmethod = 4
Attr compindex = 0
Attr tracemethod = 0
Attr traceindex = 0
Attr executeordermethod = 2
Attr objname = "DataMux"
Attr graphname = "DataMux"
Attr debugpar = ""
EndBody
EndObject
Object Template DataMux
Body RtBody
Attr MaxIndex = 23
EndBody
EndObject
EndObject
EndSObject
\ No newline at end of file
!
! Proview Open Source Process Control.
! Copyright (C) 2005-2017 SSAB EMEA AB.
!
! This file is part of Proview.
!
! 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 Proview. If not, see <http://www.gnu.org/licenses/>
!
! Linking Proview statically or dynamically with other modules is
! making a combined work based on Proview. Thus, the terms and
! conditions of the GNU General Public License cover the whole
! combination.
!
! In addition, as a special exception, the copyright holders of
! Proview give you permission to, from the build function in the
! Proview Configurator, combine Proview with modules generated by the
! Proview PLC Editor to a PLC program, regardless of the license
! terms of these modules. You may copy and distribute the resulting
! combined work under the terms of your choice, provided that every
! copy of the combined work is accompanied by a complete copy of
! the source code of Proview (the version used to produce the
! combined work), being distributed under the terms of the GNU
! General Public License plus this exception.
!
! pwrb_c_datanotequal.wb_load -- Defines the class DataNotEqual.
!
SObject NMps:Class
!/**
! @Version 1.0
! @Code nmps_plc.c
! @Group Plc,PlcData
! @Summary Check if two data references are not equal.
! DataNotEqual compares two data reference values and returns false if they are equal.
! @image orm_datanotequal_fo.png
!*/
Object DataNotEqual $ClassDef 59
Body SysBody
Attr Editor = pwr_eEditor_PlcEd
Attr Method = pwr_eMethod_Connections
Attr PopEditor = 2
EndBody
Object RtBody $ObjBodyDef 1
Body SysBody
Attr StructName = "DataNotEqual"
EndBody
!/**
! Data reference input 1.
!*/
Object In1 $Input 1
Body SysBody
Attr Flags |= PWR_MASK_NOREMOVE
Attr Flags |= PWR_MASK_NOEDIT
Attr TypeRef = "pwrs:Type-$DataRef"
Attr GraphName = "In1"
EndBody
EndObject
!/**
! Data reference input 2.
!*/
Object In2 $Input 2
Body SysBody
Attr Flags |= PWR_MASK_NOREMOVE
Attr Flags |= PWR_MASK_NOEDIT
Attr TypeRef = "pwrs:Type-$DataRef"
Attr GraphName = "In2"
EndBody
EndObject
!/**
! True if the input values are not equal.
!*/
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 = 4
Attr compindex = 0
Attr tracemethod = 3
Attr traceindex = 1
Attr executeordermethod = 2
Attr objname = "DataNe"
Attr graphname = "DataNe"
Attr debugpar = "Status"
EndBody
EndObject
Object Template DataNotEqual
Body RtBody
EndBody
EndObject
EndObject
EndSObject
\ No newline at end of file
!
! Proview Open Source Process Control.
! Copyright (C) 2005-2017 SSAB EMEA AB.
!
! This file is part of Proview.
!
! 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 Proview. If not, see <http://www.gnu.org/licenses/>
!
! Linking Proview statically or dynamically with other modules is
! making a combined work based on Proview. Thus, the terms and
! conditions of the GNU General Public License cover the whole
! combination.
!
! In addition, as a special exception, the copyright holders of
! Proview give you permission to, from the build function in the
! Proview Configurator, combine Proview with modules generated by the
! Proview PLC Editor to a PLC program, regardless of the license
! terms of these modules. You may copy and distribute the resulting
! combined work under the terms of your choice, provided that every
! copy of the combined work is accompanied by a complete copy of
! the source code of Proview (the version used to produce the
! combined work), being distributed under the terms of the GNU
! General Public License plus this exception.
!
! nmps_c_datarcv.wb_load -- Defines the class DataRcv.
!
SObject NMps:Class
Object DataRcv $ClassDef 41
Body SysBody
Attr Editor = pwr_eEditor_PlcEd
Attr Method = pwr_eMethod_Connections
EndBody
!
! DATARCV Runtime Body
!
Object RtBody $ObjBodyDef 1
Body SysBody
Attr StructName = "DataRcv"
EndBody
Object Out $Input 1
Body SysBody
Attr PgmName = "Out"
Attr InputType = 2
Attr TypeRef = "pwrs:Type-$Int32"
Attr GraphName = "Out"
Attr Flags |= PWR_MASK_STATE
Attr Flags |= PWR_MASK_NOEDIT
EndBody
EndObject
Object Accept $Input 2
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
Attr Flags |= PWR_MASK_NOINVERT
Attr GraphName = "acc"
EndBody
EndObject
Object Reset $Input 3
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
Attr Flags |= PWR_MASK_NOINVERT
Attr GraphName = "res"
EndBody
EndObject
Object DataReceived $Output 4
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
Attr GraphName = "rcvd"
EndBody
EndObject
Object Error $Output 5
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
Attr GraphName = "err"
EndBody
EndObject
Object Function $Attribute 6
Body SysBody
Attr TypeRef = "pwrs:Type-$Int32"
EndBody
EndObject
Object AlarmText $Attribute 7
Body SysBody
Attr TypeRef = "pwrs:Type-$String80"
Attr Flags |= PWR_MASK_ARRAY
Attr Elements = 5
EndBody
EndObject
Object DisplayObject $Attribute 8
Body SysBody
Attr TypeRef = "pwrs:Type-$Objid"
EndBody
EndObject
Object SendRemTrans $Attribute 9
Body SysBody
Attr TypeRef = "pwrs:Type-$Objid"
EndBody
EndObject
Object RcvRemTrans $Attribute 10
Body SysBody
Attr TypeRef = "pwrs:Type-$Objid"
EndBody
EndObject
Object CellObject $Attribute 11
Body SysBody
Attr TypeRef = "pwrs:Type-$Objid"
EndBody
EndObject
Object DataClass $Attribute 12
Body SysBody
Attr TypeRef = "pwrs:Type-$Objid"
EndBody
EndObject
Object DataParent $Attribute 13
Body SysBody
Attr TypeRef = "pwrs:Type-$Objid"
EndBody
EndObject
Object ToConvdefType $Attribute 14
Body SysBody
Attr TypeRef = "pwrs:Type-$Int32"
EndBody
EndObject
Object ToConvdef $Attribute 15
Body SysBody
Attr TypeRef = "pwrs:Type-$Objid"
EndBody
EndObject
Object ToConvdefFile $Attribute 16
Body SysBody
Attr TypeRef = "pwrs:Type-$String40"
EndBody
EndObject
Object FromConvdefType $Attribute 17
Body SysBody
Attr TypeRef = "pwrs:Type-$Int32"
EndBody
EndObject
Object FromConvdef $Attribute 18
Body SysBody
Attr TypeRef = "pwrs:Type-$Objid"
EndBody
EndObject
Object FromConvdefFile $Attribute 19
Body SysBody
Attr TypeRef = "pwrs:Type-$String40"
EndBody
EndObject
Object OpAccept $Attribute 20
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
Attr Flags |= PWR_MASK_NOEDIT
EndBody
EndObject
Object OpReset $Attribute 21
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
Attr Flags |= PWR_MASK_NOEDIT
EndBody
EndObject
Object AcceptOld $Attribute 22
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
Attr Flags |= PWR_MASK_INVISIBLE
EndBody
EndObject
Object ResetOld $Attribute 23
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
Attr Flags |= PWR_MASK_INVISIBLE
EndBody
EndObject
Object SysAcceptDetected $Attribute 24
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
Attr Flags |= PWR_MASK_INVISIBLE
EndBody
EndObject
Object OpAcceptDetected $Attribute 25
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
Attr Flags |= PWR_MASK_INVISIBLE
EndBody
EndObject
Object AcceptDetected $Attribute 26
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
Attr Flags |= PWR_MASK_INVISIBLE
EndBody
EndObject
Object ResetDetected $Attribute 27
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
Attr Flags |= PWR_MASK_INVISIBLE
EndBody
EndObject
Object DataRcvDetected $Attribute 28
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
Attr Flags |= PWR_MASK_INVISIBLE
EndBody
EndObject
Object ErrorDetected $Attribute 29
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
Attr Flags |= PWR_MASK_INVISIBLE
EndBody
EndObject
EndObject
!
! DataRcv Development Body
!
Object GraphPlcNode $GraphPlcNode
Body SysBody
Attr object_type = 11
Attr parameters[0] = 4
Attr parameters[1] = 16
Attr parameters[2] = 2
Attr parameters[3] = 0
Attr subwindows = 0
Attr graphmethod = 16
Attr graphindex = 1
Attr default_mask[0] = 1
Attr default_mask[1] = 1
Attr segname_annotation = 1
Attr compmethod = 4
Attr compindex = 0
Attr tracemethod = 0
Attr traceindex = 0
Attr executeordermethod = 2
Attr objname = "DataRcv"
Attr graphname = "DataRcv"
Attr debugpar = ""
EndBody
EndObject
Object DevBody $ObjBodyDef 2
Object PlcNode $Buffer 1
Body SysBody
Attr Class = pwr_eClass_PlcNode
Attr Flags |= PWR_MASK_INVISIBLE
EndBody
EndObject
EndObject
EndObject
EndSObject
\ No newline at end of file
!
! Proview Open Source Process Control.
! Copyright (C) 2005-2017 SSAB EMEA AB.
!
! This file is part of Proview.
!
! 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 Proview. If not, see <http://www.gnu.org/licenses/>
!
! Linking Proview statically or dynamically with other modules is
! making a combined work based on Proview. Thus, the terms and
! conditions of the GNU General Public License cover the whole
! combination.
!
! In addition, as a special exception, the copyright holders of
! Proview give you permission to, from the build function in the
! Proview Configurator, combine Proview with modules generated by the
! Proview PLC Editor to a PLC program, regardless of the license
! terms of these modules. You may copy and distribute the resulting
! combined work under the terms of your choice, provided that every
! copy of the combined work is accompanied by a complete copy of
! the source code of Proview (the version used to produce the
! combined work), being distributed under the terms of the GNU
! General Public License plus this exception.
!
! nmps_c_datarequest.wb_load -- Defines the class DataRequest.
!
SObject NMps:Class
Object DataRequest $ClassDef 40
Body SysBody
Attr Editor = pwr_eEditor_PlcEd
Attr Method = pwr_eMethod_Connections
EndBody
!
! DATAREQUEST Runtime Body
!
Object RtBody $ObjBodyDef 1
Body SysBody
Attr StructName = "DataRequest"
EndBody
Object Out $Input 1
Body SysBody
Attr PgmName = "Out"
Attr InputType = 2
Attr TypeRef = "pwrs:Type-$Int32"
Attr GraphName = "Out"
Attr Flags |= PWR_MASK_STATE
Attr Flags |= PWR_MASK_NOEDIT
EndBody
EndObject
Object Trigg $Input 2
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
Attr Flags |= PWR_MASK_NOINVERT
Attr GraphName = "trg"
EndBody
EndObject
Object Accept $Input 3
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
Attr Flags |= PWR_MASK_NOINVERT
Attr GraphName = "acc"
EndBody
EndObject
Object Reset $Input 4
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
Attr Flags |= PWR_MASK_NOINVERT
Attr GraphName = "res"
EndBody
EndObject
Object DataReceived $Output 5
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
Attr GraphName = "rcvd"
EndBody
EndObject
Object Error $Output 6
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
Attr GraphName = "err"
EndBody
EndObject
Object Key $Attribute 7
Body SysBody
Attr TypeRef = "pwrs:Type-$Int32"
EndBody
EndObject
Object KeyStr $Attribute 8
Body SysBody
Attr TypeRef = "pwrs:Type-$String40"
EndBody
EndObject
Object Function $Attribute 9
Body SysBody
Attr TypeRef = "pwrs:Type-$Int32"
EndBody
EndObject
Object TimeoutTime $Attribute 10
Body SysBody
Attr TypeRef = "pwrs:Type-$Float32"
EndBody
EndObject
Object AlarmText $Attribute 11
Body SysBody
Attr TypeRef = "pwrs:Type-$String80"
Attr Flags |= PWR_MASK_ARRAY
Attr Elements = 5
EndBody
EndObject
Object ReturnStatus $Attribute 12
Body SysBody
Attr TypeRef = "pwrs:Type-$UInt32"
Attr Flags |= PWR_MASK_ARRAY
Attr Elements = 10
EndBody
EndObject
Object ReturnStatusText $Attribute 13
Body SysBody
Attr TypeRef = "pwrs:Type-$String80"
Attr Flags |= PWR_MASK_ARRAY
Attr Elements = 10
EndBody
EndObject
Object DisplayObject $Attribute 14
Body SysBody
Attr TypeRef = "pwrs:Type-$Objid"
EndBody
EndObject
Object SendRemTrans $Attribute 15
Body SysBody
Attr TypeRef = "pwrs:Type-$Objid"
EndBody
EndObject
Object RcvRemTrans $Attribute 16
Body SysBody
Attr TypeRef = "pwrs:Type-$Objid"
EndBody
EndObject
Object CellObject $Attribute 17
Body SysBody
Attr TypeRef = "pwrs:Type-$Objid"
EndBody
EndObject
Object DataClass $Attribute 18
Body SysBody
Attr TypeRef = "pwrs:Type-$Objid"
EndBody
EndObject
Object DataParent $Attribute 19
Body SysBody
Attr TypeRef = "pwrs:Type-$Objid"
EndBody
EndObject
Object ToConvdefType $Attribute 20
Body SysBody
Attr TypeRef = "pwrs:Type-$Int32"
EndBody
EndObject
Object ToConvdef $Attribute 21
Body SysBody
Attr TypeRef = "pwrs:Type-$Objid"
EndBody
EndObject
Object ToConvdefFile $Attribute 22
Body SysBody
Attr TypeRef = "pwrs:Type-$String40"
EndBody
EndObject
Object FromConvdefType $Attribute 23
Body SysBody
Attr TypeRef = "pwrs:Type-$Int32"
EndBody
EndObject
Object FromConvdef $Attribute 24
Body SysBody
Attr TypeRef = "pwrs:Type-$Objid"
EndBody
EndObject
Object FromConvdefFile $Attribute 25
Body SysBody
Attr TypeRef = "pwrs:Type-$String40"
EndBody
EndObject
Object OpTrigg $Attribute 26
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
Attr Flags |= PWR_MASK_NOEDIT
EndBody
EndObject
Object OpAccept $Attribute 27
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
Attr Flags |= PWR_MASK_NOEDIT
EndBody
EndObject
Object OpReset $Attribute 28
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
Attr Flags |= PWR_MASK_NOEDIT
EndBody
EndObject
Object TriggOld $Attribute 29
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
Attr Flags |= PWR_MASK_INVISIBLE
EndBody
EndObject
Object AcceptOld $Attribute 30
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
Attr Flags |= PWR_MASK_INVISIBLE
EndBody
EndObject
Object ResetOld $Attribute 31
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
Attr Flags |= PWR_MASK_INVISIBLE
EndBody
EndObject
Object TriggDetected $Attribute 32
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
Attr Flags |= PWR_MASK_INVISIBLE
EndBody
EndObject
Object SysAcceptDetected $Attribute 33
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
Attr Flags |= PWR_MASK_INVISIBLE
EndBody
EndObject
Object OpAcceptDetected $Attribute 34
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
Attr Flags |= PWR_MASK_INVISIBLE
EndBody
EndObject
Object AcceptDetected $Attribute 35
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
Attr Flags |= PWR_MASK_INVISIBLE
EndBody
EndObject
Object ResetDetected $Attribute 36
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
Attr Flags |= PWR_MASK_INVISIBLE
EndBody
EndObject
Object DataRcvDetected $Attribute 37
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
Attr Flags |= PWR_MASK_INVISIBLE
EndBody
EndObject
Object ErrorDetected $Attribute 38
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
Attr Flags |= PWR_MASK_INVISIBLE
EndBody
EndObject
EndObject
!
! DataReqest Development Body
!
Object GraphPlcNode $GraphPlcNode
Body SysBody
Attr object_type = 11
Attr parameters[0] = 4
Attr parameters[1] = 16
Attr parameters[2] = 2
Attr parameters[3] = 0
Attr subwindows = 0
Attr graphmethod = 16
Attr graphindex = 1
Attr default_mask[0] = 1
Attr default_mask[1] = 1
Attr segname_annotation = 1
Attr compmethod = 4
Attr compindex = 0
Attr tracemethod = 0
Attr traceindex = 0
Attr executeordermethod = 2
Attr objname = "DataReq"
Attr graphname = "DataReq"
Attr debugpar = ""
EndBody
EndObject
Object DevBody $ObjBodyDef 2
Object PlcNode $Buffer 1
Body SysBody
Attr Class = pwr_eClass_PlcNode
Attr Flags |= PWR_MASK_INVISIBLE
EndBody
EndObject
EndObject
EndObject
EndSObject
\ No newline at end of file
!
! Proview Open Source Process Control.
! Copyright (C) 2005-2017 SSAB EMEA AB.
!
! This file is part of Proview.
!
! 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 Proview. If not, see <http://www.gnu.org/licenses/>
!
! Linking Proview statically or dynamically with other modules is
! making a combined work based on Proview. Thus, the terms and
! conditions of the GNU General Public License cover the whole
! combination.
!
! In addition, as a special exception, the copyright holders of
! Proview give you permission to, from the build function in the
! Proview Configurator, combine Proview with modules generated by the
! Proview PLC Editor to a PLC program, regardless of the license
! terms of these modules. You may copy and distribute the resulting
! combined work under the terms of your choice, provided that every
! copy of the combined work is accompanied by a complete copy of
! the source code of Proview (the version used to produce the
! combined work), being distributed under the terms of the GNU
! General Public License plus this exception.
!
! pwrb_c_datareset.wb_load -- Defines the class DataReset.
!
SObject NMps:Class
!/**
! @Version 1.0
! @Code nmps_plc_macro.h
! @Group Plc,PlcData
! @Summary Reset a data object.
!
! Reset a data object. Set zero in all the attributes of the object.
! @image orm_datareset_fo.gif
! Note! The data objects has to be fetched with a GetData object.
! The reset is executed when the condition input is true.
!
! @b See also
! @classlink GetData nmps_currentindex.html
! @classlink DataCopy nmps_datacopy.html
!*/
Object DataReset $ClassDef 10
Body SysBody
Attr Editor = pwr_eEditor_PlcEd
Attr Method = pwr_eMethod_Connections
EndBody
!
! DATARESET Runtime Body
!
Object RtBody $ObjBodyDef 1
Body SysBody
Attr StructName = "datareset"
EndBody
!/**
! Data input connected to an output that keeps a reference to the data object.
!*/
Object Data $Input 1
Body SysBody
Attr TypeRef = "pwrs:Type-$Void"
Attr Flags |= PWR_MASK_POINTER
Attr Flags |= PWR_MASK_INVISIBLE
Attr GraphName = "Data"
EndBody
EndObject
!/**
! When Condition is true, the reset is executed.
!*/
Object Condition $Input 2
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
Attr GraphName = "cond"
EndBody
EndObject
EndObject
!
! DATARESET Development Body
!
Object GraphPlcNode $GraphPlcNode
Body SysBody
Attr object_type = 221
Attr parameters[0] = 2
Attr parameters[1] = 0
Attr parameters[2] = 0
Attr parameters[3] = 0
Attr subwindows = 0
Attr graphmethod = 0
Attr graphindex = 0
Attr default_mask[0] = 3
Attr default_mask[1] = 0
Attr segname_annotation = 1
Attr compmethod = 45
Attr compindex = 0
Attr tracemethod = 0
Attr traceindex = 0
Attr executeordermethod = 2
Attr objname = "DataReset"
Attr graphname = "DataReset"
Attr debugpar = ""
EndBody
EndObject
Object DevBody $ObjBodyDef 2
Object PlcNode $Buffer 1
Body SysBody
Attr Class = pwr_eClass_PlcNode
Attr Flags |= PWR_MASK_INVISIBLE
EndBody
EndObject
EndObject
EndObject
EndSObject
\ No newline at end of file
!
! Proview Open Source Process Control.
! Copyright (C) 2005-2017 SSAB EMEA AB.
!
! This file is part of Proview.
!
! 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 Proview. If not, see <http://www.gnu.org/licenses/>
!
! Linking Proview statically or dynamically with other modules is
! making a combined work based on Proview. Thus, the terms and
! conditions of the GNU General Public License cover the whole
! combination.
!
! In addition, as a special exception, the copyright holders of
! Proview give you permission to, from the build function in the
! Proview Configurator, combine Proview with modules generated by the
! Proview PLC Editor to a PLC program, regardless of the license
! terms of these modules. You may copy and distribute the resulting
! combined work under the terms of your choice, provided that every
! copy of the combined work is accompanied by a complete copy of
! the source code of Proview (the version used to produce the
! combined work), being distributed under the terms of the GNU
! General Public License plus this exception.
!
! nmps_c_datasel.wb_load -- Defines the class DataSel.
!
SObject NMps:Class
!/**
! @Version 1.0
! @Code nmps_plc.c
! @Group Plc,PlcData
! @Summary Data reference selection.
! Data reference selection.
! @image orm_datasel_fo.png
!
! Select one of two inputs.
!
!*/
Object DataSel $ClassDef 57
Body SysBody
Attr Editor = pwr_eEditor_AttrEd
Attr Method = pwr_eMethod_Connections
Attr PopEditor = 2
EndBody
Object RtBody $ObjBodyDef 1
Body SysBody
Attr StructName = "DataSel"
EndBody
!/**
! Data reference input.
!*/
Object In1 $Input 1
Body SysBody
Attr Flags |= PWR_MASK_NOREMOVE
Attr Flags |= PWR_MASK_NOEDIT
Attr TypeRef = "pwrs:Type-$DataRef"
Attr GraphName = "In1"
EndBody
EndObject
!/**
! DataReference input.
!*/
Object In2 $Input 2
Body SysBody
Attr Flags |= PWR_MASK_NOREMOVE
Attr Flags |= PWR_MASK_NOEDIT
Attr TypeRef = "pwrs:Type-$DataRef"
Attr GraphName = "In2"
EndBody
EndObject
!/**
! Control.
!*/
Object Control $Input 3
Body SysBody
Attr Flags |= PWR_MASK_NOINVERT
Attr TypeRef = "pwrs:Type-$Boolean"
Attr GraphName = "con"
EndBody
EndObject
!/**
! Selected value.
!*/
Object ActVal $Output 9
Body SysBody
Attr PgmName = "ActVal"
Attr Flags |= PWR_MASK_STATE
Attr Flags |= PWR_MASK_NOEDIT
Attr TypeRef = "pwrs:Type-$DataRef"
Attr GraphName = "Val"
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] = 3
Attr parameters[1] = 0
Attr parameters[2] = 1
Attr parameters[3] = 0
Attr subwindows = 0
Attr graphmethod = 0
Attr graphindex = 0
Attr default_mask[0] = 7
Attr default_mask[1] = 1
Attr segname_annotation = 1
Attr compmethod = 4
Attr compindex = 0
Attr tracemethod = 0
Attr traceindex = 0
Attr executeordermethod = 2
Attr objname = "DataSel"
Attr graphname = "DataSel"
Attr debugpar = ""
EndBody
EndObject
Object Template DataSel
EndObject
EndObject
EndSObject
\ No newline at end of file
This diff is collapsed.
!
! Proview Open Source Process Control.
! Copyright (C) 2005-2017 SSAB EMEA AB.
!
! This file is part of Proview.
!
! 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 Proview. If not, see <http://www.gnu.org/licenses/>
!
! Linking Proview statically or dynamically with other modules is
! making a combined work based on Proview. Thus, the terms and
! conditions of the GNU General Public License cover the whole
! combination.
!
! In addition, as a special exception, the copyright holders of
! Proview give you permission to, from the build function in the
! Proview Configurator, combine Proview with modules generated by the
! Proview PLC Editor to a PLC program, regardless of the license
! terms of these modules. You may copy and distribute the resulting
! combined work under the terms of your choice, provided that every
! copy of the combined work is accompanied by a complete copy of
! the source code of Proview (the version used to produce the
! combined work), being distributed under the terms of the GNU
! General Public License plus this exception.
!
! nmps_c_datasend.wb_load -- Defines the class DataSend.
!
SObject NMps:Class
Object DataSend $ClassDef 42
Body SysBody
Attr Editor = pwr_eEditor_PlcEd
Attr Method = pwr_eMethod_Connections
EndBody
!
! DATASEND Runtime Body
!
Object RtBody $ObjBodyDef 1
Body SysBody
Attr StructName = "DataSend"
EndBody
Object DataIn $Input 1
Body SysBody
Attr TypeRef = "pwrs:Type-$Void"
Attr Flags |= PWR_MASK_POINTER
Attr GraphName = "Da"
EndBody
EndObject
Object Trigg $Input 2
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
Attr Flags |= PWR_MASK_NOINVERT
Attr GraphName = "trg"
EndBody
EndObject
Object Dummy $Input 3
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
Attr Flags |= PWR_MASK_INVISIBLE
EndBody
EndObject
Object DataSent $Output 4
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
Attr GraphName = "sent"
EndBody
EndObject
Object Error $Output 5
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
Attr GraphName = "err"
EndBody
EndObject
Object Function $Attribute 6
Body SysBody
Attr TypeRef = "pwrs:Type-$Int32"
EndBody
EndObject
Object TimeoutTime $Attribute 7
Body SysBody
Attr TypeRef = "pwrs:Type-$Float32"
EndBody
EndObject
Object AlarmText $Attribute 8
Body SysBody
Attr TypeRef = "pwrs:Type-$String80"
Attr Flags |= PWR_MASK_ARRAY
Attr Elements = 5
EndBody
EndObject
Object ReturnStatus $Attribute 9
Body SysBody
Attr TypeRef = "pwrs:Type-$UInt32"
Attr Flags |= PWR_MASK_ARRAY
Attr Elements = 10
EndBody
EndObject
Object ReturnStatusText $Attribute 10
Body SysBody
Attr TypeRef = "pwrs:Type-$String80"
Attr Flags |= PWR_MASK_ARRAY
Attr Elements = 10
EndBody
EndObject
Object SendRemTrans $Attribute 11
Body SysBody
Attr TypeRef = "pwrs:Type-$Objid"
EndBody
EndObject
Object RcvRemTrans $Attribute 12
Body SysBody
Attr TypeRef = "pwrs:Type-$Objid"
EndBody
EndObject
Object ToConvdefType $Attribute 13
Body SysBody
Attr TypeRef = "pwrs:Type-$Int32"
EndBody
EndObject
Object ToConvdef $Attribute 14
Body SysBody
Attr TypeRef = "pwrs:Type-$Objid"
EndBody
EndObject
Object ToConvdefFile $Attribute 15
Body SysBody
Attr TypeRef = "pwrs:Type-$String40"
EndBody
EndObject
Object FromConvdefType $Attribute 16
Body SysBody
Attr TypeRef = "pwrs:Type-$Int32"
EndBody
EndObject
Object FromConvdef $Attribute 17
Body SysBody
Attr TypeRef = "pwrs:Type-$Objid"
EndBody
EndObject
Object FromConvdefFile $Attribute 18
Body SysBody
Attr TypeRef = "pwrs:Type-$String40"
EndBody
EndObject
Object TriggOld $Attribute 19
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
Attr Flags |= PWR_MASK_INVISIBLE
EndBody
EndObject
Object TriggDetected $Attribute 20
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
Attr Flags |= PWR_MASK_INVISIBLE
EndBody
EndObject
Object DataSentDetected $Attribute 21
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
Attr Flags |= PWR_MASK_INVISIBLE
EndBody
EndObject
Object ErrorDetected $Attribute 22
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
Attr Flags |= PWR_MASK_INVISIBLE
EndBody
EndObject
EndObject
!
! DataSend Development Body
!
Object GraphPlcNode $GraphPlcNode
Body SysBody
Attr object_type = 11
Attr parameters[0] = 3
Attr parameters[1] = 14
Attr parameters[2] = 2
Attr parameters[3] = 0
Attr subwindows = 0
Attr graphmethod = 16
Attr graphindex = 1
Attr default_mask[0] = 1
Attr default_mask[1] = 1
Attr segname_annotation = 1
Attr compmethod = 4
Attr compindex = 0
Attr tracemethod = 0
Attr traceindex = 0
Attr executeordermethod = 2
Attr objname = "DataSend"
Attr graphname = "DataSend"
Attr debugpar = ""
EndBody
EndObject
Object DevBody $ObjBodyDef 2
Object PlcNode $Buffer 1
Body SysBody
Attr Class = pwr_eClass_PlcNode
Attr Flags |= PWR_MASK_INVISIBLE
EndBody
EndObject
EndObject
EndObject
EndSObject
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
!
! Proview Open Source Process Control.
! Copyright (C) 2005-2017 SSAB EMEA AB.
!
! This file is part of Proview.
!
! 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 Proview. If not, see <http://www.gnu.org/licenses/>
!
! Linking Proview statically or dynamically with other modules is
! making a combined work based on Proview. Thus, the terms and
! conditions of the GNU General Public License cover the whole
! combination.
!
! In addition, as a special exception, the copyright holders of
! Proview give you permission to, from the build function in the
! Proview Configurator, combine Proview with modules generated by the
! Proview PLC Editor to a PLC program, regardless of the license
! terms of these modules. You may copy and distribute the resulting
! combined work under the terms of your choice, provided that every
! copy of the combined work is accompanied by a complete copy of
! the source code of Proview (the version used to produce the
! combined work), being distributed under the terms of the GNU
! General Public License plus this exception.
!
! nmps_c_loctrans.wb_load -- Defines the class LocTrans.
!
SObject NMps:Class
!
! LocTrans - Local Trans descripton
!
Object LocTrans $ClassDef 49
Body SysBody
Attr Editor = pwr_eEditor_AttrEd
Attr Method = pwr_eMethod_Standard
EndBody
!
! RemTrans Runtime Body
!
Object RtBody $ObjBodyDef 1
Body SysBody
Attr StructName = "LocTrans"
EndBody
!
! Parameter Description
!
Object Description $Attribute 1
Body SysBody
Attr TypeRef = "pwrs:Type-$String80"
EndBody
EndObject
!
! Parameter DataValid
!
Object DataValid $Attribute 2
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
Attr Flags |= PWR_MASK_NOEDIT
EndBody
EndObject
EndObject
EndObject ! $ClassDef
EndSObject ! SObject
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment