├── .gitattributes ├── .gitignore ├── .gitmodules ├── LICENSE ├── Logical ├── Global.typ ├── Global.var ├── Libraries │ ├── AsARCfg │ │ ├── AsARCfg.fun │ │ ├── AsARCfg.typ │ │ ├── AsARCfg.var │ │ ├── SG3 │ │ │ └── AsARCfg.h │ │ ├── SG4 │ │ │ └── AsARCfg.h │ │ ├── SGC │ │ │ └── AsARCfg.h │ │ └── binary.lby │ ├── AsBrStr │ │ ├── AsBrStr.fun │ │ ├── AsBrStr.typ │ │ ├── AsBrStr.var │ │ ├── SG3 │ │ │ └── AsBrStr.h │ │ ├── SG4 │ │ │ └── AsBrStr.h │ │ ├── SGC │ │ │ └── AsBrStr.h │ │ └── binary.lby │ ├── AsHttp │ │ ├── AsHttp.fun │ │ ├── AsHttp.typ │ │ ├── AsHttp.var │ │ ├── SG4 │ │ │ └── AsHttp.h │ │ └── binary.lby │ ├── AsICMP │ │ ├── AsICMP.fun │ │ ├── AsICMP.typ │ │ ├── AsICMP.var │ │ ├── SG3 │ │ │ └── AsICMP.h │ │ ├── SG4 │ │ │ └── AsICMP.h │ │ ├── SGC │ │ │ └── AsICMP.h │ │ └── binary.lby │ ├── AsIecCon │ │ ├── AsIecCon.fun │ │ ├── AsIecCon.typ │ │ ├── AsIecCon.var │ │ ├── SG3 │ │ │ └── AsIecCon.h │ │ ├── SG4 │ │ │ └── AsIecCon.h │ │ ├── SGC │ │ │ └── AsIecCon.h │ │ └── binary.lby │ ├── AsMem │ │ ├── AsMem.fun │ │ ├── AsMem.typ │ │ ├── AsMem.var │ │ ├── SG4 │ │ │ └── AsMem.h │ │ └── binary.lby │ ├── AsUSB │ │ ├── AsUSB.fun │ │ ├── AsUSB.typ │ │ ├── AsUSB.var │ │ ├── SG4 │ │ │ └── AsUSB.h │ │ └── binary.lby │ ├── AsZip │ │ ├── AsZip.fun │ │ ├── AsZip.typ │ │ ├── AsZip.var │ │ ├── SG4 │ │ │ └── AsZip.h │ │ └── binary.lby │ ├── FileIO │ │ ├── FileIO.fun │ │ ├── FileIO.typ │ │ ├── FileIO.var │ │ ├── SG4 │ │ │ └── FileIO.h │ │ └── binary.lby │ ├── IecCheck │ │ ├── IEC.lby │ │ ├── IecCheck.fun │ │ └── IecCheck.st │ ├── Package.pkg │ ├── astime │ │ ├── SG3 │ │ │ └── astime.h │ │ ├── SG4 │ │ │ └── astime.h │ │ ├── SGC │ │ │ └── astime.h │ │ ├── astime.fun │ │ ├── astime.typ │ │ ├── astime.var │ │ └── binary.lby │ ├── operator │ │ ├── SG3 │ │ │ └── operator.h │ │ ├── SG4 │ │ │ └── operator.h │ │ ├── SGC │ │ │ └── operator.h │ │ ├── binary.lby │ │ ├── operator.fun │ │ ├── operator.typ │ │ └── operator.var │ ├── runtime │ │ ├── SG3 │ │ │ └── runtime.h │ │ ├── SG4 │ │ │ └── runtime.h │ │ ├── SGC │ │ │ └── runtime.h │ │ ├── binary.lby │ │ ├── runtime.fun │ │ ├── runtime.typ │ │ └── runtime.var │ ├── standard │ │ ├── SG3 │ │ │ └── standard.h │ │ ├── SG4 │ │ │ └── standard.h │ │ ├── SGC │ │ │ └── standard.h │ │ ├── binary.lby │ │ ├── standard.fun │ │ ├── standard.typ │ │ └── standard.var │ └── sys_lib │ │ ├── SG3 │ │ └── sys_lib.h │ │ ├── SG4 │ │ └── sys_lib.h │ │ ├── SGC │ │ └── sys_lib.h │ │ ├── binary.lby │ │ ├── sys_lib.fun │ │ ├── sys_lib.typ │ │ └── sys_lib.var ├── NETdevice │ ├── NetDevice │ │ ├── IEC.prg │ │ ├── Main.st │ │ └── Variables.var │ ├── NetTypes.typ │ ├── NetVariables.var │ ├── Package.pkg │ └── changelog.txt ├── Package.pkg ├── USBdevice │ ├── Package.pkg │ ├── UsbDevice │ │ ├── IEC.prg │ │ ├── USBdevice.st │ │ └── USBdevice.var │ ├── UsbTypes.typ │ ├── UsbVariables.var │ └── changelog.txt ├── VCShared │ ├── AlarmGroups │ │ ├── AlarmSystem.alcfg │ │ └── SystemAlarms.algrp │ ├── ControlVersion.cvinfo │ ├── DataSources │ │ ├── DataSource.dso │ │ └── Internal.dso │ ├── Languages.vcr │ ├── Package.vcp │ ├── TextGroups │ │ ├── AlarmAcknowledgeState.txtgrp │ │ ├── AlarmBypassState.txtgrp │ │ ├── AlarmEvent.txtgrp │ │ ├── AlarmState.txtgrp │ │ ├── DateTimeFormats.txtgrp │ │ └── httpURL_SDM.txtgrp │ └── UnitGroups │ │ ├── Length.vcug │ │ ├── Mass.vcug │ │ ├── Memory.vcug │ │ ├── Power.vcug │ │ ├── Pressure.vcug │ │ ├── Temperatures.vcug │ │ └── Volume.vcug ├── mappFileExplorer │ ├── ExplorerTypes.typ │ ├── ExplorerVariables.var │ ├── FileExplorer │ │ ├── IEC.prg │ │ ├── LocalFunctions.fun │ │ ├── LocalFunctions.st │ │ ├── Main.st │ │ └── Variables.var │ ├── HowToImport.pdf │ ├── Package.pkg │ └── changelog.txt └── mappView │ ├── Layouts │ ├── Layout.layout │ └── Package.pkg │ ├── Package.pkg │ ├── Resources │ ├── Media │ │ ├── Package.pkg │ │ ├── screenshot_cfg.png │ │ └── screenshot_main.png │ ├── Package.pkg │ ├── Snippets │ │ └── Package.pkg │ ├── Texts │ │ └── Package.pkg │ └── Themes │ │ ├── BuRTheme1 │ │ ├── BuRTheme1.theme │ │ ├── Package.pkg │ │ └── brease │ │ │ ├── BuRTheme1.stylesset │ │ │ ├── Buttons.styles │ │ │ ├── Charts.styles │ │ │ ├── Common.styles │ │ │ ├── Container.styles │ │ │ ├── Default.styles │ │ │ ├── Graphic.styles │ │ │ ├── LabelTexts.styles │ │ │ ├── Lists.styles │ │ │ ├── Numeric.styles │ │ │ ├── Package.pkg │ │ │ ├── Sequencer.styles │ │ │ └── System.styles │ │ └── Package.pkg │ ├── Visualization │ ├── Dialogs │ │ ├── AreaContents │ │ │ └── Package.pkg │ │ └── Package.pkg │ ├── Expressions │ │ └── Package.pkg │ ├── Layouts │ │ └── Package.pkg │ ├── Package.pkg │ ├── Pages │ │ ├── AreaContents │ │ │ └── Package.pkg │ │ ├── ExplorerPage │ │ │ ├── Content.content │ │ │ ├── ExplorerPage.page │ │ │ └── Package.pkg │ │ └── Package.pkg │ ├── Resources │ │ ├── Package.pkg │ │ ├── Snippets │ │ │ └── Package.pkg │ │ └── Texts │ │ │ └── Package.pkg │ └── Variables │ │ └── Package.pkg │ └── Widgets │ └── Package.pkg ├── Physical ├── Physical.pkg └── X20CPU │ ├── Config.pkg │ ├── Hardware.hw │ ├── Hardware.hwl │ ├── Hardware.jpg │ └── X20CP3585 │ ├── AccessAndSecurity │ ├── CertificateStore │ │ ├── CertificateRevocationLists │ │ │ └── Package.pkg │ │ ├── CertificateSigningRequests │ │ │ └── Package.pkg │ │ ├── OwnCertificates │ │ │ ├── Certificates │ │ │ │ └── Package.pkg │ │ │ ├── Package.pkg │ │ │ └── PrivateKeys │ │ │ │ └── Package.pkg │ │ ├── Package.pkg │ │ └── ThirdPartyCertificates │ │ │ ├── Package.pkg │ │ │ └── SoftwareCertificates │ │ │ └── Package.pkg │ ├── Package.pkg │ ├── TransportLayerSecurity │ │ └── Package.pkg │ └── UserRoleSystem │ │ ├── Package.pkg │ │ ├── Role.role │ │ └── User.user │ ├── Connectivity │ ├── OpcUA │ │ ├── OpcUaMap.uad │ │ └── Package.pkg │ └── Package.pkg │ ├── Cpu.per │ ├── Cpu.pkg │ ├── Cpu.sw │ ├── IoMap.iom │ ├── PvMap.vvm │ ├── TextSystem │ └── Package.pkg │ ├── UnitSystem │ └── Package.pkg │ ├── mappCockpit │ └── Package.pkg │ ├── mappControl │ └── Package.pkg │ ├── mappMotion │ └── Package.pkg │ ├── mappServices │ └── Package.pkg │ └── mappView │ ├── Config.mappviewcfg │ ├── Explorer.binding │ ├── Explorer.eventbinding │ ├── Package.pkg │ └── Visualizat.vis ├── README.md └── Tmp_Explorer_V1.apj /.gitattributes: -------------------------------------------------------------------------------- 1 | # Example of a `.gitattributes` 2 | *.apj linguist-language=B&R 3 | *.typ linguist-language=B&R 4 | *.var linguist-language=B&R 5 | *.pkg linguist-language=B&R 6 | *.lby linguist-language=B&R 7 | *.fun linguist-language=B&R 8 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /Binaries 2 | /Diagnosis 3 | /Temp 4 | /Docs 5 | /*.set 6 | /*.isopen 7 | 8 | 9 | debug.log 10 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "Wiki"] 2 | path = Wiki 3 | url = https://github.com/br-automation-com/mappView-File-Explorer.wiki.git 4 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 B&R Automation 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Logical/Global.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/archive-br-automation-com/mappView-File-Explorer/70e2e9382c762073cd21ee18b4355a0e1b007424/Logical/Global.typ -------------------------------------------------------------------------------- /Logical/Global.var: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/archive-br-automation-com/mappView-File-Explorer/70e2e9382c762073cd21ee18b4355a0e1b007424/Logical/Global.var -------------------------------------------------------------------------------- /Logical/Libraries/AsARCfg/AsARCfg.typ: -------------------------------------------------------------------------------- 1 | 2 | TYPE 3 | cfgLease_typ : STRUCT (*lease structure*) 4 | name : STRING[8]; (*name of lease (max 8)*) 5 | startAdr : STRING[16]; (*start address of lease*) 6 | stopAdr : STRING[16]; (*stop address of lease*) 7 | subnetMask : STRING[16]; (*subnet mask of lease*) 8 | defaultGateway : STRING[16]; (*default gateway of lease*) 9 | leaseTimeout : DINT; (*-1 for infinite timeout*) 10 | END_STRUCT; 11 | END_TYPE 12 | -------------------------------------------------------------------------------- /Logical/Libraries/AsARCfg/binary.lby: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | AsARCfg.fun 6 | AsARCfg.typ 7 | AsARCfg.var 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Logical/Libraries/AsBrStr/AsBrStr.fun: -------------------------------------------------------------------------------- 1 | 2 | {REDUND_CONTEXT} {REDUND_UNREPLICABLE} FUNCTION brsftoa : UINT (*converts a REAL value into a character string*) 3 | VAR_INPUT 4 | value :REAL; (*REAL (FLOAT) value to be converted into a character string*) 5 | pString :UDINT; (*pointer to the destination character string*) 6 | END_VAR 7 | END_FUNCTION 8 | {REDUND_CONTEXT} {REDUND_UNREPLICABLE} FUNCTION brsatof : REAL (*converts a character string into a REAL (FLOAT) value*) 9 | VAR_INPUT 10 | pString :UDINT; (*pointer to the character string to be converted*) 11 | END_VAR 12 | END_FUNCTION 13 | {REDUND_CONTEXT} {REDUND_UNREPLICABLE} FUNCTION brsatod : LREAL (*converts a character string into a LREAL (DOUBLE) value*) 14 | VAR_INPUT 15 | pString :UDINT; (*pointer to the character string to be converted*) 16 | END_VAR 17 | END_FUNCTION 18 | {REDUND_CONTEXT} {REDUND_UNREPLICABLE} FUNCTION brsitoa : UINT (*converts a DINT value into a character string*) 19 | VAR_INPUT 20 | value :DINT; (*numerical value to be converted into a string*) 21 | pString :UDINT; (*pointer to the destination character string*) 22 | END_VAR 23 | END_FUNCTION 24 | {REDUND_CONTEXT} {REDUND_UNREPLICABLE} FUNCTION brsatoi : DINT (*converts a character string into a DINT value*) 25 | VAR_INPUT 26 | pString :UDINT; (*pointer to the character string to be converted*) 27 | END_VAR 28 | END_FUNCTION 29 | {REDUND_CONTEXT} {REDUND_UNREPLICABLE} FUNCTION brsmemset : UDINT (*fills the memory area with specific values*) 30 | VAR_INPUT 31 | pDest :UDINT; (*pointer to the destination memory*) 32 | value :USINT; (*initialization value*) 33 | length :UDINT; (*number of bytes to be initialized*) 34 | END_VAR 35 | END_FUNCTION 36 | {REDUND_CONTEXT} {REDUND_UNREPLICABLE} FUNCTION brsmemcpy : UDINT (*copies the memory area*) 37 | VAR_INPUT 38 | pDest :UDINT; (*pointer to the destination memory*) 39 | pSrc :UDINT; (*pointer to the data to be copied*) 40 | length :UDINT; (*size of bytes to be copied*) 41 | END_VAR 42 | END_FUNCTION 43 | {REDUND_CONTEXT} {REDUND_UNREPLICABLE} FUNCTION brsmemmove : UDINT (*copies the memory area (even if the memory areas overlap)*) 44 | VAR_INPUT 45 | pDest :UDINT; (*pointer to the destination memory*) 46 | pSrc :UDINT; (*pointer to the data to be copied*) 47 | length :UDINT; (*size of bytes to be copied*) 48 | END_VAR 49 | END_FUNCTION 50 | {REDUND_CONTEXT} {REDUND_UNREPLICABLE} FUNCTION brsmemcmp : DINT (*compares memory areas*) 51 | VAR_INPUT 52 | pMem1 :UDINT; (*pointer to the memory area 1*) 53 | pMem2 :UDINT; (*pointer to the memory area 2*) 54 | length :UDINT; (*size of bytes to be checked*) 55 | END_VAR 56 | END_FUNCTION 57 | {REDUND_CONTEXT} {REDUND_UNREPLICABLE} FUNCTION brsstrcat : UDINT (*attaches character strings to one another*) 58 | VAR_INPUT 59 | pDest :UDINT; (*pointer to the destination character string*) 60 | pSrc :UDINT; (*pointer to the source character string*) 61 | END_VAR 62 | END_FUNCTION 63 | {REDUND_CONTEXT} {REDUND_UNREPLICABLE} FUNCTION brsstrlen : UDINT (*provides the length of a character string*) 64 | VAR_INPUT 65 | pString :UDINT; (*pointer to the source character string*) 66 | END_VAR 67 | END_FUNCTION 68 | {REDUND_CONTEXT} {REDUND_UNREPLICABLE} FUNCTION brsstrcpy : UDINT (*copies one character string into another*) 69 | VAR_INPUT 70 | pDest :UDINT; (*pointer to the destination character string*) 71 | pSrc :UDINT; (*pointer to the source character string*) 72 | END_VAR 73 | END_FUNCTION 74 | {REDUND_CONTEXT} {REDUND_UNREPLICABLE} FUNCTION brsstrcmp : DINT (*compares two character strings*) 75 | VAR_INPUT 76 | pString1 :UDINT; (*pointer to the first character string*) 77 | pString2 :UDINT; (*pointer to the second character string*) 78 | END_VAR 79 | END_FUNCTION 80 | 81 | -------------------------------------------------------------------------------- /Logical/Libraries/AsBrStr/AsBrStr.typ: -------------------------------------------------------------------------------- 1 | 2 | TYPE 3 | 4 | END_TYPE 5 | -------------------------------------------------------------------------------- /Logical/Libraries/AsBrStr/AsBrStr.var: -------------------------------------------------------------------------------- 1 | 2 | VAR CONSTANT 3 | 4 | END_VAR 5 | -------------------------------------------------------------------------------- /Logical/Libraries/AsBrStr/SG3/AsBrStr.h: -------------------------------------------------------------------------------- 1 | /* Automation Studio generated header file */ 2 | /* Do not edit ! */ 3 | 4 | #ifndef _ASBRSTR_ 5 | #define _ASBRSTR_ 6 | #ifdef __cplusplus 7 | extern "C" 8 | { 9 | #endif 10 | 11 | #include 12 | 13 | #ifndef _IEC_CONST 14 | #define _IEC_CONST _WEAK const 15 | #endif 16 | 17 | 18 | 19 | 20 | /* Prototyping of functions and function blocks */ 21 | unsigned short brsftoa(float value, unsigned long pString); 22 | float brsatof(unsigned long pString); 23 | unsigned short brsitoa(signed long value, unsigned long pString); 24 | signed long brsatoi(unsigned long pString); 25 | unsigned long brsmemset(unsigned long pDest, unsigned char value, unsigned long length); 26 | unsigned long brsmemcpy(unsigned long pDest, unsigned long pSrc, unsigned long length); 27 | unsigned long brsmemmove(unsigned long pDest, unsigned long pSrc, unsigned long length); 28 | signed long brsmemcmp(unsigned long pMem1, unsigned long pMem2, unsigned long length); 29 | unsigned long brsstrcat(unsigned long pDest, unsigned long pSrc); 30 | unsigned long brsstrlen(unsigned long pString); 31 | unsigned long brsstrcpy(unsigned long pDest, unsigned long pSrc); 32 | signed long brsstrcmp(unsigned long pString1, unsigned long pString2); 33 | 34 | 35 | #ifdef __cplusplus 36 | }; 37 | #endif 38 | #endif /* _ASBRSTR_ */ 39 | 40 | -------------------------------------------------------------------------------- /Logical/Libraries/AsBrStr/SG4/AsBrStr.h: -------------------------------------------------------------------------------- 1 | /* Automation Studio generated header file */ 2 | /* Do not edit ! */ 3 | 4 | #ifndef _ASBRSTR_ 5 | #define _ASBRSTR_ 6 | #ifdef __cplusplus 7 | extern "C" 8 | { 9 | #endif 10 | 11 | #include 12 | 13 | #ifndef _BUR_PUBLIC 14 | #define _BUR_PUBLIC 15 | #endif 16 | 17 | 18 | 19 | /* Prototyping of functions and function blocks */ 20 | _BUR_PUBLIC unsigned short brsftoa(float value, unsigned long pString); 21 | _BUR_PUBLIC float brsatof(unsigned long pString); 22 | _BUR_PUBLIC double brsatod(unsigned long pString); 23 | _BUR_PUBLIC unsigned short brsitoa(signed long value, unsigned long pString); 24 | _BUR_PUBLIC signed long brsatoi(unsigned long pString); 25 | _BUR_PUBLIC unsigned long brsmemset(unsigned long pDest, unsigned char value, unsigned long length); 26 | _BUR_PUBLIC unsigned long brsmemcpy(unsigned long pDest, unsigned long pSrc, unsigned long length); 27 | _BUR_PUBLIC unsigned long brsmemmove(unsigned long pDest, unsigned long pSrc, unsigned long length); 28 | _BUR_PUBLIC signed long brsmemcmp(unsigned long pMem1, unsigned long pMem2, unsigned long length); 29 | _BUR_PUBLIC unsigned long brsstrcat(unsigned long pDest, unsigned long pSrc); 30 | _BUR_PUBLIC unsigned long brsstrlen(unsigned long pString); 31 | _BUR_PUBLIC unsigned long brsstrcpy(unsigned long pDest, unsigned long pSrc); 32 | _BUR_PUBLIC signed long brsstrcmp(unsigned long pString1, unsigned long pString2); 33 | 34 | 35 | #ifdef __cplusplus 36 | }; 37 | #endif 38 | #endif /* _ASBRSTR_ */ 39 | 40 | -------------------------------------------------------------------------------- /Logical/Libraries/AsBrStr/SGC/AsBrStr.h: -------------------------------------------------------------------------------- 1 | /* Automation Studio generated header file */ 2 | /* Do not edit ! */ 3 | 4 | #ifndef _ASBRSTR_ 5 | #define _ASBRSTR_ 6 | #ifdef __cplusplus 7 | extern "C" 8 | { 9 | #endif 10 | 11 | #include 12 | 13 | #ifndef _IEC_CONST 14 | #define _IEC_CONST _WEAK const 15 | #endif 16 | 17 | 18 | 19 | 20 | /* Prototyping of functions and function blocks */ 21 | unsigned short brsftoa(float value, unsigned long pString); 22 | float brsatof(unsigned long pString); 23 | unsigned short brsitoa(signed long value, unsigned long pString); 24 | signed long brsatoi(unsigned long pString); 25 | unsigned long brsmemset(unsigned long pDest, unsigned char value, unsigned long length); 26 | unsigned long brsmemcpy(unsigned long pDest, unsigned long pSrc, unsigned long length); 27 | unsigned long brsmemmove(unsigned long pDest, unsigned long pSrc, unsigned long length); 28 | signed long brsmemcmp(unsigned long pMem1, unsigned long pMem2, unsigned long length); 29 | unsigned long brsstrcat(unsigned long pDest, unsigned long pSrc); 30 | unsigned long brsstrlen(unsigned long pString); 31 | unsigned long brsstrcpy(unsigned long pDest, unsigned long pSrc); 32 | signed long brsstrcmp(unsigned long pString1, unsigned long pString2); 33 | 34 | 35 | #ifdef __cplusplus 36 | }; 37 | #endif 38 | #endif /* _ASBRSTR_ */ 39 | 40 | -------------------------------------------------------------------------------- /Logical/Libraries/AsBrStr/binary.lby: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | AsBrStr.fun 6 | AsBrStr.typ 7 | AsBrStr.var 8 | 9 | -------------------------------------------------------------------------------- /Logical/Libraries/AsHttp/AsHttp.typ: -------------------------------------------------------------------------------- 1 | 2 | TYPE 3 | httpResponseHeader_t : STRUCT (*response header structure*) 4 | protocol : STRING[20]; (*HTTP/1.0 or HTTP/1.1*) 5 | status : STRING[280]; (*HTTP status line e.g. "200 OK" , "404 Not Found"*) 6 | contentType : STRING[100]; (*MIME type specifying message body, e.g. "text/html"*) 7 | contentLength : UDINT; (*length of message data, should be equal to responseDataLen, optional input*) 8 | connection : STRING[80]; (*valid tokens are "Close" or "Keep-Alive", default is "Close"*) 9 | keepAlive : STRING[80]; (*e.g. "timeout=5, max=100", optional*) 10 | userLine : ARRAY[0..7]OF httpHeaderLine_t; (*userspecific headerlines, optional*) 11 | rawHeader : httpRawHeader_t; (*interface to add / get formatted headers, optional*) 12 | END_STRUCT; 13 | httpRequestHeader_t : STRUCT (*request header structure*) 14 | protocol : STRING[20]; (*protocol version e.g. "HTTP/1.0" or "HTTP/1.1", optional input*) 15 | host : STRING[280]; (*host name or ip address of the server and port number if <> 80, optional input*) 16 | contentType : STRING[100]; (*MIME type specifying message body, e.g. "text/html", optional input*) 17 | contentLength : UDINT; (*length of message data, should be equal to requestDataLen, optional input*) 18 | connection : STRING[80]; (*valid tokens are "Close" or "Keep-Alive", default is "Close", optional input*) 19 | keepAlive : STRING[80]; (*e.g. "timeout=5, max=100", optional input*) 20 | userLine : ARRAY[0..7]OF httpHeaderLine_t; (*userspecific headerlines, optional*) 21 | rawHeader : httpRawHeader_t; (*interface to add / get formatted headers, optional*) 22 | END_STRUCT; 23 | httpHeaderLine_t : STRUCT (*structure containing information of one header line*) 24 | name : STRING[50]; (*header field name, e.g. "User-Agent" to get / set the user-agent header entry*) 25 | value : STRING[80]; (*header field value, e.g. "B&R Client"*) 26 | END_STRUCT; 27 | httpRawHeader_t : STRUCT (*buffer handling structure for raw (formatted) headers*) 28 | pData : UDINT; (*pointer to data buffer, where the header is copied*) 29 | dataSize : UDINT; (*max. length of data buffer in bytes*) 30 | dataLen : UDINT; (*length of the header bytes copied out*) 31 | END_STRUCT; 32 | httpStatistics_t : STRUCT (*informational structure*) 33 | requestCounter : UDINT; (*counts requests*) 34 | timeOfLastRequest : DATE_AND_TIME; (*timestamp of last request*) 35 | responseCounter : UDINT; (*counts responses*) 36 | timeOfLastResponse : DATE_AND_TIME; (*timestamp of last response*) 37 | errorCounter : UDINT; (*counts errors, e.g. connection errors, aborts *) 38 | lastError : UDINT; (*error number, if any*) 39 | END_STRUCT; 40 | END_TYPE 41 | -------------------------------------------------------------------------------- /Logical/Libraries/AsHttp/AsHttp.var: -------------------------------------------------------------------------------- 1 | VAR CONSTANT 2 | httpERR_BUFFER_SIZE : UINT := 35550; (*buffer is too small*) 3 | httpERR_DATA_SIZE : UINT := 35551; (*data buffer is too small*) 4 | httpERR_HEADER_SIZE_RAW : UINT := 35552; (*raw header size buffer is too small or raw header is too long*) 5 | httpERR_HEADER_SIZE_USERLINE : UINT := 35553; (*any of requested user line is too long for the structure*) 6 | httpERR_INVALID_PARAM : UINT := 35554; (*check parameters. At least one of needed ones is zero*) 7 | httpERR_NO_DATA : UINT := 35555; (*no data retrieved*) 8 | httpERR_METHOD_UNSUPPORTED : UINT := 35556; (*method not supported, supported methods are PUT, POST, GET, DELETE*) 9 | httpERR_SERVICE_NO_WEBSERVER : UINT := 35557; (*webserver is disabled or not installed, webservice will not be available*) 10 | httpERR_SERVICE_LINK_FAILED : UINT := 35558; (*webservice could not be registered, check registration*) 11 | httpERR_CLIENT_ERR_SOCKET_CREATE : UINT := 35559; (*could not create a new socket. Try again later*) 12 | httpERR_CLIENT_NO_MORE_IDENTS : UINT := 35560; (*too many httpClients enabled, disable unused instances*) 13 | httpERR_CLIENT_TCP_CONN_CLOSED : UINT := 35561; (*informational, no error: Connection closed. Possible reasons: HTTP/1.0, use of "Connection: close" header, Keep-Alive timeout*) 14 | httpERR_CLIENT_TCP_CONN_FAILED : UINT := 35562; (*could not connect to given server. Check network parameters and server aviability*) 15 | httpERR_CLIENT_TCP_INVALID_HOST : UINT := 35563; (*could not resolve name or IP-address of server, check pHost*) 16 | httpERR_CLIENT_TCP_DISCONNECTED : UINT := 35564; (*lost connection unexpectedly*) 17 | httpERR_NOT_FOUND : UINT := 35565; (*source string didn't contain parameter*) 18 | httpERR_ILLEGAL_CHARACTERS : UINT := 35566; (*source contains characters, that couldn't be transformd*) 19 | httpERR_SSL_HANDSHAKE_FAILED : UINT := 35567; (*client handshake failed*) 20 | httpERR_INVALID_SSL_CONFIG : UINT := 35568; (*Could not open ssl configuration*) 21 | httpERR_SYSTEM : UINT := 35579; (*general error, see help*) 22 | httpMETHOD_GET : UINT := 1; (*request method GET, additional request parameters are part of the URL*) 23 | httpMETHOD_POST : UINT := 2; (*request method POST, request contains a message body*) 24 | httpMETHOD_PUT : UINT := 3; (*request method PUT, request contains a message body*) 25 | httpMETHOD_DELETE : UINT := 4; (*request method DELETE, additional request parameters are part of the URL*) 26 | httpOPTION_HTTP_10 : UINT := 0; (*use HTTP/1.0 as protocol type*) 27 | httpOPTION_HTTP_11 : UINT := 1; (*use HTTP/1.1 as protocol type*) 28 | httpOPTION_SERVICE_TYPE_ROOT : UINT := 4; (*Type of service: root path, e.g. "/basePath", handles requests inside this virtual folder*) 29 | httpOPTION_SERVICE_TYPE_NAME : UINT := 2; (*Type of service: name, e.g. "hello.cgi", handles requests ending with this name*) 30 | httpOPTION_SERVICE_TYPE_EXT : UINT := 6; (*Type of service: file extension, e.g. "*.abc" handles requests with file extension ".abc"*) 31 | httpOPTION_SERVICE_TYPE_LEAF : UINT := 8; (*Type of service: relative path, e.g. "cgi-bin" handles requests in virtual subfolders called "cgi-bin"*) 32 | httpPHASE_NOT_CONNECTED : UINT := 0; (*not connected*) 33 | httpPHASE_SENDING : UINT := 1; (*sending a HTTP message*) 34 | httpPHASE_RECEIVING : UINT := 2; (*receiving a HTTP message*) 35 | httpPHASE_RECEIVED : UINT := 3; (*HTTP message received *) 36 | httpPHASE_WAITING : UINT := 4; (*idle state*) 37 | END_VAR 38 | -------------------------------------------------------------------------------- /Logical/Libraries/AsHttp/binary.lby: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | AsHttp.fun 6 | AsHttp.typ 7 | AsHttp.var 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Logical/Libraries/AsICMP/AsICMP.fun: -------------------------------------------------------------------------------- 1 | 2 | {REDUND_CONTEXT} {REDUND_UNREPLICABLE} FUNCTION_BLOCK IcmpPing (*pings a station; asynchronous execution*) 3 | VAR_INPUT 4 | enable : BOOL; (*enables execution*) 5 | pHost : UDINT; (*pointer to the IP address or name of the station that should be pinged*) 6 | timeout : UINT; (*response timeout*) 7 | END_VAR 8 | 9 | VAR_OUTPUT 10 | status : UINT; (*execution status: ERR_OK, ERR_FUB_ENABLE_FALSE, ERR_FUB_BUSY, 0xXXXX = see help*) 11 | END_VAR 12 | 13 | VAR 14 | i_state : UINT; (*internal variable*) 15 | i_result : UINT; (*internal variable*) 16 | i_tmp : UDINT; (*internal variable*) 17 | END_VAR 18 | END_FUNCTION_BLOCK 19 | -------------------------------------------------------------------------------- /Logical/Libraries/AsICMP/AsICMP.typ: -------------------------------------------------------------------------------- 1 | 2 | TYPE 3 | 4 | END_TYPE 5 | -------------------------------------------------------------------------------- /Logical/Libraries/AsICMP/AsICMP.var: -------------------------------------------------------------------------------- 1 | 2 | VAR CONSTANT 3 | icmpERR_NO_RESPONSE : UINT := 32750; (*no ping response*) 4 | icmpERR_PARAMETER : UINT := 32751; (*invalid parameter, check parameter*) 5 | icmpERR_SOCKET_CREATE : UINT := 32752; (*create socket failed*) 6 | icmpERR_UNREACHABLE : UINT := 32753; (*host unreachable*) 7 | icmpERR_FIREWALL : UINT := 32754; (*blocked by firewall*) 8 | icmpERR_SYSTEM : UINT := 32799; (*system error*) 9 | END_VAR 10 | -------------------------------------------------------------------------------- /Logical/Libraries/AsICMP/SG3/AsICMP.h: -------------------------------------------------------------------------------- 1 | /* Automation Studio generated header file */ 2 | /* Do not edit ! */ 3 | 4 | #ifndef _ASICMP_ 5 | #define _ASICMP_ 6 | #ifdef __cplusplus 7 | extern "C" 8 | { 9 | #endif 10 | 11 | #include 12 | 13 | #include 14 | 15 | #ifndef _IEC_CONST 16 | #define _IEC_CONST _WEAK const 17 | #endif 18 | 19 | /* Constants */ 20 | #ifdef _REPLACE_CONST 21 | #define icmpERR_NO_RESPONSE 32750U 22 | #define icmpERR_PARAMETER 32751U 23 | #define icmpERR_SOCKET_CREATE 32752U 24 | #define icmpERR_SYSTEM 32799U 25 | #else 26 | _IEC_CONST unsigned short icmpERR_NO_RESPONSE = 32750U; 27 | _IEC_CONST unsigned short icmpERR_PARAMETER = 32751U; 28 | _IEC_CONST unsigned short icmpERR_SOCKET_CREATE = 32752U; 29 | _IEC_CONST unsigned short icmpERR_SYSTEM = 32799U; 30 | #endif 31 | 32 | 33 | 34 | 35 | /* Datatypes and datatypes of function blocks */ 36 | typedef struct IcmpPing 37 | { 38 | /* VAR_INPUT (analog) */ 39 | unsigned long pHost; 40 | unsigned short timeout; 41 | /* VAR_OUTPUT (analog) */ 42 | unsigned short status; 43 | /* VAR (analog) */ 44 | unsigned short i_state; 45 | unsigned short i_result; 46 | unsigned long i_tmp; 47 | /* VAR_INPUT (digital) */ 48 | plcbit enable; 49 | } IcmpPing_typ; 50 | 51 | 52 | 53 | /* Prototyping of functions and function blocks */ 54 | void IcmpPing(struct IcmpPing* inst); 55 | 56 | 57 | #ifdef __cplusplus 58 | }; 59 | #endif 60 | #endif /* _ASICMP_ */ 61 | 62 | 63 | -------------------------------------------------------------------------------- /Logical/Libraries/AsICMP/SG4/AsICMP.h: -------------------------------------------------------------------------------- 1 | /* Automation Studio generated header file */ 2 | /* Do not edit ! */ 3 | 4 | #ifndef _ASICMP_ 5 | #define _ASICMP_ 6 | #ifdef __cplusplus 7 | extern "C" 8 | { 9 | #endif 10 | 11 | #include 12 | 13 | #include 14 | 15 | #ifndef _BUR_PUBLIC 16 | #define _BUR_PUBLIC 17 | #endif 18 | /* Constants */ 19 | #ifdef _REPLACE_CONST 20 | #define icmpERR_SYSTEM 32799U 21 | #define icmpERR_FIREWALL 32754U 22 | #define icmpERR_UNREACHABLE 32753U 23 | #define icmpERR_SOCKET_CREATE 32752U 24 | #define icmpERR_PARAMETER 32751U 25 | #define icmpERR_NO_RESPONSE 32750U 26 | #else 27 | #ifndef _GLOBAL_CONST 28 | #define _GLOBAL_CONST _WEAK const 29 | #endif 30 | _GLOBAL_CONST unsigned short icmpERR_SYSTEM; 31 | _GLOBAL_CONST unsigned short icmpERR_FIREWALL; 32 | _GLOBAL_CONST unsigned short icmpERR_UNREACHABLE; 33 | _GLOBAL_CONST unsigned short icmpERR_SOCKET_CREATE; 34 | _GLOBAL_CONST unsigned short icmpERR_PARAMETER; 35 | _GLOBAL_CONST unsigned short icmpERR_NO_RESPONSE; 36 | #endif 37 | 38 | 39 | 40 | 41 | /* Datatypes and datatypes of function blocks */ 42 | typedef struct IcmpPing 43 | { 44 | /* VAR_INPUT (analog) */ 45 | unsigned long pHost; 46 | unsigned short timeout; 47 | /* VAR_OUTPUT (analog) */ 48 | unsigned short status; 49 | /* VAR (analog) */ 50 | unsigned short i_state; 51 | unsigned short i_result; 52 | unsigned long i_tmp; 53 | /* VAR_INPUT (digital) */ 54 | plcbit enable; 55 | } IcmpPing_typ; 56 | 57 | 58 | 59 | /* Prototyping of functions and function blocks */ 60 | _BUR_PUBLIC void IcmpPing(struct IcmpPing* inst); 61 | 62 | 63 | #ifdef __cplusplus 64 | }; 65 | #endif 66 | #endif /* _ASICMP_ */ 67 | 68 | -------------------------------------------------------------------------------- /Logical/Libraries/AsICMP/SGC/AsICMP.h: -------------------------------------------------------------------------------- 1 | /* Automation Studio generated header file */ 2 | /* Do not edit ! */ 3 | 4 | #ifndef _ASICMP_ 5 | #define _ASICMP_ 6 | #ifdef __cplusplus 7 | extern "C" 8 | { 9 | #endif 10 | 11 | #include 12 | 13 | #include 14 | 15 | #ifndef _IEC_CONST 16 | #define _IEC_CONST _WEAK const 17 | #endif 18 | 19 | /* Constants */ 20 | #ifdef _REPLACE_CONST 21 | #define icmpERR_NO_RESPONSE 32750U 22 | #define icmpERR_PARAMETER 32751U 23 | #define icmpERR_SOCKET_CREATE 32752U 24 | #define icmpERR_SYSTEM 32799U 25 | #else 26 | _IEC_CONST unsigned short icmpERR_NO_RESPONSE = 32750U; 27 | _IEC_CONST unsigned short icmpERR_PARAMETER = 32751U; 28 | _IEC_CONST unsigned short icmpERR_SOCKET_CREATE = 32752U; 29 | _IEC_CONST unsigned short icmpERR_SYSTEM = 32799U; 30 | #endif 31 | 32 | 33 | 34 | 35 | /* Datatypes and datatypes of function blocks */ 36 | typedef struct IcmpPing 37 | { 38 | /* VAR_INPUT (analog) */ 39 | unsigned long pHost; 40 | unsigned short timeout; 41 | /* VAR_OUTPUT (analog) */ 42 | unsigned short status; 43 | /* VAR (analog) */ 44 | unsigned short i_state; 45 | unsigned short i_result; 46 | unsigned long i_tmp; 47 | /* VAR_INPUT (digital) */ 48 | plcbit enable; 49 | } IcmpPing_typ; 50 | 51 | 52 | 53 | /* Prototyping of functions and function blocks */ 54 | void IcmpPing(struct IcmpPing* inst); 55 | 56 | 57 | #ifdef __cplusplus 58 | }; 59 | #endif 60 | #endif /* _ASICMP_ */ 61 | 62 | 63 | -------------------------------------------------------------------------------- /Logical/Libraries/AsICMP/binary.lby: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | AsICMP.fun 6 | AsICMP.typ 7 | AsICMP.var 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Logical/Libraries/AsIecCon/AsIecCon.typ: -------------------------------------------------------------------------------- 1 | 2 | TYPE 3 | 4 | END_TYPE 5 | -------------------------------------------------------------------------------- /Logical/Libraries/AsIecCon/AsIecCon.var: -------------------------------------------------------------------------------- 1 | 2 | VAR CONSTANT 3 | 4 | END_VAR 5 | -------------------------------------------------------------------------------- /Logical/Libraries/AsIecCon/SG3/AsIecCon.h: -------------------------------------------------------------------------------- 1 | /* Automation Studio Generated Header File, Format Version 1.00 */ 2 | /* do not change */ 3 | #ifndef ASIECCON_H_ 4 | #define ASIECCON_H_ 5 | #ifdef __cplusplus 6 | extern "C" { 7 | #endif 8 | 9 | 10 | #include 11 | 12 | 13 | 14 | /* Constants */ 15 | 16 | 17 | /* Datatypes */ 18 | 19 | 20 | /* Datatypes of function blocks */ 21 | 22 | 23 | /* Prototyping of functions and function blocks */ 24 | signed short H_TO_NINT(signed short IN); 25 | unsigned short H_TO_NUINT(unsigned short IN); 26 | signed long H_TO_NDINT(signed long IN); 27 | unsigned long H_TO_NUDINT(unsigned long IN); 28 | float H_TO_NREAL(float IN); 29 | plctime H_TO_NTIME(plctime IN); 30 | DATE_AND_TIME H_TO_NDT(DATE_AND_TIME IN); 31 | signed short N_TO_HINT(signed short IN); 32 | unsigned short N_TO_HUINT(unsigned short IN); 33 | signed long N_TO_HDINT(signed long IN); 34 | unsigned long N_TO_HUDINT(unsigned long IN); 35 | float N_TO_HREAL(float IN); 36 | plctime N_TO_HTIME(plctime IN); 37 | DATE_AND_TIME N_TO_HDT(DATE_AND_TIME IN); 38 | signed short swapINT(signed short IN); 39 | unsigned short swapUINT(unsigned short IN); 40 | signed long swapDINT(signed long IN); 41 | unsigned long swapUDINT(unsigned long IN); 42 | float swapREAL(float IN); 43 | 44 | 45 | #ifdef __cplusplus 46 | }; 47 | #endif 48 | #endif /* ASIECCON_H_ */ 49 | 50 | -------------------------------------------------------------------------------- /Logical/Libraries/AsIecCon/SG4/AsIecCon.h: -------------------------------------------------------------------------------- 1 | /* Automation Studio generated header file */ 2 | /* Do not edit ! */ 3 | 4 | #ifndef _ASIECCON_ 5 | #define _ASIECCON_ 6 | #ifdef __cplusplus 7 | extern "C" 8 | { 9 | #endif 10 | 11 | #include 12 | 13 | #ifndef _BUR_PUBLIC 14 | #define _BUR_PUBLIC 15 | #endif 16 | 17 | 18 | 19 | /* Prototyping of functions and function blocks */ 20 | _BUR_PUBLIC signed short H_TO_NINT(signed short IN); 21 | _BUR_PUBLIC unsigned short H_TO_NUINT(unsigned short IN); 22 | _BUR_PUBLIC signed long H_TO_NDINT(signed long IN); 23 | _BUR_PUBLIC unsigned long H_TO_NUDINT(unsigned long IN); 24 | _BUR_PUBLIC float H_TO_NREAL(float IN); 25 | _BUR_PUBLIC double H_TO_NLREAL(double IN); 26 | _BUR_PUBLIC plctime H_TO_NTIME(plctime IN); 27 | _BUR_PUBLIC DATE_AND_TIME H_TO_NDT(DATE_AND_TIME IN); 28 | _BUR_PUBLIC DATE H_TO_NDATE(DATE IN); 29 | _BUR_PUBLIC TOD H_TO_NTOD(TOD IN); 30 | _BUR_PUBLIC signed short N_TO_HINT(signed short IN); 31 | _BUR_PUBLIC unsigned short N_TO_HUINT(unsigned short IN); 32 | _BUR_PUBLIC signed long N_TO_HDINT(signed long IN); 33 | _BUR_PUBLIC unsigned long N_TO_HUDINT(unsigned long IN); 34 | _BUR_PUBLIC float N_TO_HREAL(float IN); 35 | _BUR_PUBLIC double N_TO_HLREAL(double IN); 36 | _BUR_PUBLIC plctime N_TO_HTIME(plctime IN); 37 | _BUR_PUBLIC DATE_AND_TIME N_TO_HDT(DATE_AND_TIME IN); 38 | _BUR_PUBLIC DATE N_TO_HDATE(DATE IN); 39 | _BUR_PUBLIC TOD N_TO_HTOD(TOD IN); 40 | _BUR_PUBLIC signed short swapINT(signed short IN); 41 | _BUR_PUBLIC unsigned short swapUINT(unsigned short IN); 42 | _BUR_PUBLIC WORD swapWORD(WORD IN); 43 | _BUR_PUBLIC signed long swapDINT(signed long IN); 44 | _BUR_PUBLIC unsigned long swapUDINT(unsigned long IN); 45 | _BUR_PUBLIC DWORD swapDWORD(DWORD IN); 46 | _BUR_PUBLIC TIME swapTIME(TIME IN); 47 | _BUR_PUBLIC DATE_AND_TIME swapDT(DATE_AND_TIME IN); 48 | _BUR_PUBLIC DATE swapDATE(DATE IN); 49 | _BUR_PUBLIC TOD swapTOD(TOD IN); 50 | _BUR_PUBLIC float swapREAL(float IN); 51 | _BUR_PUBLIC double swapLREAL(double IN); 52 | 53 | /* The interface declarations of the AsIecCon functions are not included here 54 | * because they are inline in IEC languages. The x_TO_STRING and the 55 | * STRING_TO_x functions are not available for C programms. */ 56 | 57 | #ifdef __cplusplus 58 | }; 59 | #endif 60 | #endif /* _ASIECCON_ */ 61 | 62 | -------------------------------------------------------------------------------- /Logical/Libraries/AsIecCon/SGC/AsIecCon.h: -------------------------------------------------------------------------------- 1 | /* Automation Studio Generated Header File, Format Version 1.00 */ 2 | /* do not change */ 3 | #ifndef ASIECCON_H_ 4 | #define ASIECCON_H_ 5 | #ifdef __cplusplus 6 | extern "C" { 7 | #endif 8 | 9 | 10 | #include 11 | 12 | 13 | 14 | /* Constants */ 15 | 16 | 17 | /* Datatypes */ 18 | 19 | 20 | /* Datatypes of function blocks */ 21 | 22 | 23 | /* Prototyping of functions and function blocks */ 24 | signed short H_TO_NINT(signed short IN); 25 | unsigned short H_TO_NUINT(unsigned short IN); 26 | signed long H_TO_NDINT(signed long IN); 27 | unsigned long H_TO_NUDINT(unsigned long IN); 28 | float H_TO_NREAL(float IN); 29 | plctime H_TO_NTIME(plctime IN); 30 | DATE_AND_TIME H_TO_NDT(DATE_AND_TIME IN); 31 | DATE H_TO_NDATE(DATE IN); 32 | TOD H_TO_NTOD(TOD IN); 33 | signed short N_TO_HINT(signed short IN); 34 | unsigned short N_TO_HUINT(unsigned short IN); 35 | signed long N_TO_HDINT(signed long IN); 36 | unsigned long N_TO_HUDINT(unsigned long IN); 37 | float N_TO_HREAL(float IN); 38 | plctime N_TO_HTIME(plctime IN); 39 | DATE_AND_TIME N_TO_HDT(DATE_AND_TIME IN); 40 | DATE N_TO_HDATE(DATE IN); 41 | TOD N_TO_HTOD(TOD IN); 42 | signed short swapINT(signed short IN); 43 | unsigned short swapUINT(unsigned short IN); 44 | WORD swapWORD(WORD IN); 45 | signed long swapDINT(signed long IN); 46 | unsigned long swapUDINT(unsigned long IN); 47 | DWORD swapDWORD(DWORD IN); 48 | TIME swapTIME(TIME IN); 49 | DATE_AND_TIME swapDT(DATE_AND_TIME IN); 50 | DATE swapDATE(DATE IN); 51 | TOD swapTOD(TOD IN); 52 | float swapREAL(float IN); 53 | 54 | /* The interface declarations of the AsIecCon functions are not included here 55 | * because they are inline in IEC languages. The x_TO_STRING and the 56 | * STRING_TO_x functions are not available for C programms. */ 57 | 58 | #ifdef __cplusplus 59 | }; 60 | #endif 61 | #endif /* ASIECCON_H_ */ 62 | 63 | -------------------------------------------------------------------------------- /Logical/Libraries/AsIecCon/binary.lby: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | AsIecCon.fun 6 | AsIecCon.typ 7 | AsIecCon.var 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Logical/Libraries/AsMem/AsMem.fun: -------------------------------------------------------------------------------- 1 | 2 | {REDUND_CONTEXT} {REDUND_UNREPLICABLE} FUNCTION_BLOCK AsMemPartCreate (*creates a memory partition with lenght "len"*) 3 | VAR_INPUT 4 | enable :BOOL; (*enables execution*) 5 | len :UDINT; (*size of the memory partition*) 6 | END_VAR 7 | VAR_OUTPUT 8 | status :UINT; (*execution status: ERR_OK, ERR_FUB_ENABLE_FALSE, 0xXXXX = see help*) 9 | ident :UDINT; (*identifier of the memory partition*) 10 | END_VAR 11 | END_FUNCTION_BLOCK 12 | 13 | {REDUND_CONTEXT} {REDUND_UNREPLICABLE} FUNCTION_BLOCK AsMemPartDestroy (*deletes a memory partition*) 14 | VAR_INPUT 15 | enable :BOOL; (*enables execution*) 16 | ident :UDINT; (*identifier of the memory partition*) 17 | END_VAR 18 | VAR_OUTPUT 19 | status :UINT; (*execution status: ERR_OK, ERR_FUB_ENABLE_FALSE, 0xXXXX = see help*) 20 | END_VAR 21 | END_FUNCTION_BLOCK 22 | 23 | {REDUND_CONTEXT} {REDUND_UNREPLICABLE} FUNCTION_BLOCK AsMemPartAlloc (*allocates a memory block from the specified memory partition*) 24 | VAR_INPUT 25 | enable :BOOL; (*enables execution*) 26 | ident :UDINT; (*identifier of the memory partition*) 27 | len :UDINT; (*size of the memory block to be allocated*) 28 | END_VAR 29 | VAR_OUTPUT 30 | status :UINT; (*execution status: ERR_OK, ERR_FUB_ENABLE_FALSE, 0xXXXX = see help*) 31 | mem :UDINT; (*pointer to the allocated memory block*) 32 | END_VAR 33 | END_FUNCTION_BLOCK 34 | 35 | {REDUND_CONTEXT} {REDUND_UNREPLICABLE} FUNCTION_BLOCK AsMemPartAllocClear (*allocates a memory block from the specified memory partition*) 36 | VAR_INPUT 37 | enable :BOOL; (*enables execution*) 38 | ident :UDINT; (*identifier of the memory partition*) 39 | len :UDINT; (*size of the memory block to be allocated*) 40 | END_VAR 41 | VAR_OUTPUT 42 | status :UINT; (*execution status: ERR_OK, ERR_FUB_ENABLE_FALSE, 0xXXXX = see help*) 43 | mem :UDINT; (*pointer to the allocated memory block*) 44 | END_VAR 45 | END_FUNCTION_BLOCK 46 | 47 | {REDUND_CONTEXT} {REDUND_UNREPLICABLE} FUNCTION_BLOCK AsMemPartRealloc (*changes an allocated memory block or allocate a new memory block with the modified size*) 48 | VAR_INPUT 49 | enable :BOOL; (*enables execution*) 50 | ident :UDINT; (*identifier of the memory partition*) 51 | memOld :UDINT; (*pointer to an already allocated memory block*) 52 | len :UDINT; (*size of the memory block to be allocated*) 53 | END_VAR 54 | VAR_OUTPUT 55 | status :UINT; (*execution status: ERR_OK, ERR_FUB_ENABLE_FALSE, 0xXXXX = see help*) 56 | mem :UDINT; (*pointer to the allocated memory block*) 57 | END_VAR 58 | END_FUNCTION_BLOCK 59 | 60 | {REDUND_CONTEXT} {REDUND_UNREPLICABLE} FUNCTION_BLOCK AsMemPartFree (*frees up an allocated memory block*) 61 | VAR_INPUT 62 | enable :BOOL; (*enables execution*) 63 | ident :UDINT; (*identifier of the memory partition*) 64 | mem :UDINT; (*pointer to the memory block to be freed up*) 65 | END_VAR 66 | VAR_OUTPUT 67 | status :UINT; (*execution status: ERR_OK, ERR_FUB_ENABLE_FALSE, 0xXXXX = see help*) 68 | END_VAR 69 | END_FUNCTION_BLOCK 70 | 71 | {REDUND_CONTEXT} {REDUND_UNREPLICABLE} FUNCTION_BLOCK AsMemPartInfo (*gives information about free momory of the selected memory partition*) 72 | VAR_INPUT 73 | enable :BOOL; (*enables execution*) 74 | ident :UDINT; (*identifier of the memory partition*) 75 | END_VAR 76 | VAR_OUTPUT 77 | status :UINT; (*execution status: ERR_OK, ERR_FUB_ENABLE_FALSE, 0xXXXX = see help*) 78 | numBytesFree :UDINT; (*free memory*) 79 | maxBlockSizeFree :UDINT; (*largest free memory block*) 80 | END_VAR 81 | END_FUNCTION_BLOCK 82 | -------------------------------------------------------------------------------- /Logical/Libraries/AsMem/AsMem.typ: -------------------------------------------------------------------------------- 1 | 2 | TYPE 3 | 4 | END_TYPE 5 | -------------------------------------------------------------------------------- /Logical/Libraries/AsMem/AsMem.var: -------------------------------------------------------------------------------- 1 | 2 | VAR CONSTANT 3 | asmemERR_DESTROY : UINT := 30501; (*cannot free up memory partition*) 4 | asmemERR_CREATE : UINT := 30500; (*cannot create memory partition*) 5 | asmemERR_NOMEM : UINT := 30502; (*cannot allocate memory block with requested size*) 6 | asmemERR_INFO : UINT := 30504; (*information about free memory can not be detected*) 7 | asmemERR_FREE : UINT := 30503; (*cannot free up memory block*) 8 | END_VAR 9 | -------------------------------------------------------------------------------- /Logical/Libraries/AsMem/SG4/AsMem.h: -------------------------------------------------------------------------------- 1 | /* Automation Studio generated header file */ 2 | /* Do not edit ! */ 3 | 4 | #ifndef _ASMEM_ 5 | #define _ASMEM_ 6 | #ifdef __cplusplus 7 | extern "C" 8 | { 9 | #endif 10 | 11 | #include 12 | 13 | #include 14 | 15 | #ifndef _BUR_PUBLIC 16 | #define _BUR_PUBLIC 17 | #endif 18 | /* Constants */ 19 | #ifdef _REPLACE_CONST 20 | #define asmemERR_FREE 30503U 21 | #define asmemERR_INFO 30504U 22 | #define asmemERR_NOMEM 30502U 23 | #define asmemERR_CREATE 30500U 24 | #define asmemERR_DESTROY 30501U 25 | #else 26 | #ifndef _GLOBAL_CONST 27 | #define _GLOBAL_CONST _WEAK const 28 | #endif 29 | _GLOBAL_CONST unsigned short asmemERR_FREE; 30 | _GLOBAL_CONST unsigned short asmemERR_INFO; 31 | _GLOBAL_CONST unsigned short asmemERR_NOMEM; 32 | _GLOBAL_CONST unsigned short asmemERR_CREATE; 33 | _GLOBAL_CONST unsigned short asmemERR_DESTROY; 34 | #endif 35 | 36 | 37 | 38 | 39 | /* Datatypes and datatypes of function blocks */ 40 | typedef struct AsMemPartCreate 41 | { 42 | /* VAR_INPUT (analog) */ 43 | unsigned long len; 44 | /* VAR_OUTPUT (analog) */ 45 | unsigned short status; 46 | unsigned long ident; 47 | /* VAR_INPUT (digital) */ 48 | plcbit enable; 49 | } AsMemPartCreate_typ; 50 | 51 | typedef struct AsMemPartDestroy 52 | { 53 | /* VAR_INPUT (analog) */ 54 | unsigned long ident; 55 | /* VAR_OUTPUT (analog) */ 56 | unsigned short status; 57 | /* VAR_INPUT (digital) */ 58 | plcbit enable; 59 | } AsMemPartDestroy_typ; 60 | 61 | typedef struct AsMemPartAlloc 62 | { 63 | /* VAR_INPUT (analog) */ 64 | unsigned long ident; 65 | unsigned long len; 66 | /* VAR_OUTPUT (analog) */ 67 | unsigned short status; 68 | unsigned long mem; 69 | /* VAR_INPUT (digital) */ 70 | plcbit enable; 71 | } AsMemPartAlloc_typ; 72 | 73 | typedef struct AsMemPartAllocClear 74 | { 75 | /* VAR_INPUT (analog) */ 76 | unsigned long ident; 77 | unsigned long len; 78 | /* VAR_OUTPUT (analog) */ 79 | unsigned short status; 80 | unsigned long mem; 81 | /* VAR_INPUT (digital) */ 82 | plcbit enable; 83 | } AsMemPartAllocClear_typ; 84 | 85 | typedef struct AsMemPartRealloc 86 | { 87 | /* VAR_INPUT (analog) */ 88 | unsigned long ident; 89 | unsigned long memOld; 90 | unsigned long len; 91 | /* VAR_OUTPUT (analog) */ 92 | unsigned short status; 93 | unsigned long mem; 94 | /* VAR_INPUT (digital) */ 95 | plcbit enable; 96 | } AsMemPartRealloc_typ; 97 | 98 | typedef struct AsMemPartFree 99 | { 100 | /* VAR_INPUT (analog) */ 101 | unsigned long ident; 102 | unsigned long mem; 103 | /* VAR_OUTPUT (analog) */ 104 | unsigned short status; 105 | /* VAR_INPUT (digital) */ 106 | plcbit enable; 107 | } AsMemPartFree_typ; 108 | 109 | typedef struct AsMemPartInfo 110 | { 111 | /* VAR_INPUT (analog) */ 112 | unsigned long ident; 113 | /* VAR_OUTPUT (analog) */ 114 | unsigned short status; 115 | unsigned long numBytesFree; 116 | unsigned long maxBlockSizeFree; 117 | /* VAR_INPUT (digital) */ 118 | plcbit enable; 119 | } AsMemPartInfo_typ; 120 | 121 | 122 | 123 | /* Prototyping of functions and function blocks */ 124 | _BUR_PUBLIC void AsMemPartCreate(struct AsMemPartCreate* inst); 125 | _BUR_PUBLIC void AsMemPartDestroy(struct AsMemPartDestroy* inst); 126 | _BUR_PUBLIC void AsMemPartAlloc(struct AsMemPartAlloc* inst); 127 | _BUR_PUBLIC void AsMemPartAllocClear(struct AsMemPartAllocClear* inst); 128 | _BUR_PUBLIC void AsMemPartRealloc(struct AsMemPartRealloc* inst); 129 | _BUR_PUBLIC void AsMemPartFree(struct AsMemPartFree* inst); 130 | _BUR_PUBLIC void AsMemPartInfo(struct AsMemPartInfo* inst); 131 | 132 | 133 | #ifdef __cplusplus 134 | }; 135 | #endif 136 | #endif /* _ASMEM_ */ 137 | 138 | -------------------------------------------------------------------------------- /Logical/Libraries/AsMem/binary.lby: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | AsMem.fun 6 | AsMem.typ 7 | AsMem.var 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Logical/Libraries/AsUSB/AsUSB.fun: -------------------------------------------------------------------------------- 1 | 2 | {REDUND_CONTEXT} {REDUND_UNREPLICABLE} FUNCTION_BLOCK UsbNodeListGet (* get USB node list *) 3 | VAR_INPUT 4 | enable : BOOL; (* fub enable *) 5 | pBuffer : UDINT; (* pointer to input buffer *) 6 | bufferSize : UDINT; (* max length of input buffer *) 7 | filterInterfaceClass : UINT; (* filter for interface class *) 8 | filterInterfaceSubClass : UINT; (* filter for interface subclass *) 9 | END_VAR 10 | VAR_OUTPUT 11 | status : UINT; (* status *) 12 | allNodes : UDINT; (* all usb nodes on target *) 13 | listNodes : UDINT; (* usb nodes in the list *) 14 | attachDetachCount:UDINT; (* attach/deatch actions *) 15 | END_VAR 16 | VAR 17 | i_state : UINT; (* internal variable *) 18 | i_result : UINT; (* internal variable *) 19 | i_tmp : UDINT; (* internal variable *) 20 | END_VAR 21 | END_FUNCTION_BLOCK 22 | {REDUND_CONTEXT} {REDUND_UNREPLICABLE} FUNCTION_BLOCK UsbNodeGet (* get USB node description *) 23 | VAR_INPUT 24 | enable : BOOL; (* fub enable *) 25 | nodeId : UDINT; (* unique node identifier of USBNodeListGet *) 26 | pBuffer : UDINT; (* pointer to input buffer *) 27 | bufferSize : UDINT; (* max length of input buffer *) 28 | END_VAR 29 | VAR_OUTPUT 30 | status : UINT; (* status *) 31 | END_VAR 32 | VAR 33 | i_state : UINT; (* internal variable *) 34 | i_result : UINT; (* internal variable *) 35 | i_tmp : UDINT; (* internal variable *) 36 | END_VAR 37 | END_FUNCTION_BLOCK 38 | {REDUND_CONTEXT} {REDUND_UNREPLICABLE} FUNCTION_BLOCK UsbDescriptorGet (* get USB node descriptor *) 39 | VAR_INPUT 40 | enable : BOOL; (* fub enable *) 41 | nodeId : UDINT; (* unique node identifier of USBNodeListGet *) 42 | requestType : USINT; (* reqeust type *) 43 | descriptorType : USINT; (* descriptor type *) 44 | descriptorIndex : USINT; (* descriptor index *) 45 | languageId : UINT; (* language unicode *) 46 | pBuffer : UDINT; (* pointer to input buffer *) 47 | bufferSize : UINT; (* max length of input buffer *) 48 | END_VAR 49 | VAR_OUTPUT 50 | status : UINT; (* status *) 51 | actSize : UINT; (* length of received data *) 52 | END_VAR 53 | VAR 54 | i_state : UINT; (* internal variable *) 55 | i_result : UINT; (* internal variable *) 56 | i_tmp : UDINT; (* internal variable *) 57 | END_VAR 58 | END_FUNCTION_BLOCK 59 | {REDUND_CONTEXT} {REDUND_UNREPLICABLE} FUNCTION_BLOCK UsbMsDeviceReady (* get USB mass storage device ready status *) 60 | VAR_INPUT 61 | enable : BOOL; (* fub enable *) 62 | pIfName : UDINT; (* pointer to string of ifName of input buffer of USBNodeGet *) 63 | END_VAR 64 | VAR_OUTPUT 65 | status : UINT; (* status *) 66 | ready : BOOL; (* device ready status true/false *) 67 | END_VAR 68 | VAR 69 | i_state : UINT; (* internal variable *) 70 | i_result : UINT; (* internal variable *) 71 | i_tmp : UDINT; (* internal variable *) 72 | END_VAR 73 | END_FUNCTION_BLOCK 74 | 75 | 76 | -------------------------------------------------------------------------------- /Logical/Libraries/AsUSB/AsUSB.typ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/archive-br-automation-com/mappView-File-Explorer/70e2e9382c762073cd21ee18b4355a0e1b007424/Logical/Libraries/AsUSB/AsUSB.typ -------------------------------------------------------------------------------- /Logical/Libraries/AsUSB/AsUSB.var: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/archive-br-automation-com/mappView-File-Explorer/70e2e9382c762073cd21ee18b4355a0e1b007424/Logical/Libraries/AsUSB/AsUSB.var -------------------------------------------------------------------------------- /Logical/Libraries/AsUSB/binary.lby: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | AsUSB.fun 6 | AsUSB.typ 7 | AsUSB.var 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Logical/Libraries/AsZip/AsZip.fun: -------------------------------------------------------------------------------- 1 | 2 | {REDUND_ERROR} FUNCTION_BLOCK zipArchive (*Creates an archive (.tar, .gz or .tar.gz)*) 3 | VAR_INPUT 4 | enable : BOOL; (*enables execution*) 5 | pArchiveDevice : UDINT; (*device name of the archive file given as a pointer*) 6 | pArchiveFile : UDINT; (*file name of the archive file given as a pointer*) 7 | pSrcDevice : UDINT; (*device name of the source file or folder given as a pointer*) 8 | pSrcFile : UDINT; (*source folder or file given as a pointer*) 9 | pOptions : UDINT; (*additional options given as pointer*) 10 | END_VAR 11 | 12 | VAR_OUTPUT 13 | status : UINT; (*execution status: ERR_OK, ERR_FUB_ENABLE_FALSE, ERR_FUB_BUSY, 0xXXXX = see help*) 14 | END_VAR 15 | 16 | VAR 17 | i_state : UINT; (*internal variable*) 18 | i_result : UINT; (*internal variable*) 19 | END_VAR 20 | END_FUNCTION_BLOCK 21 | 22 | {REDUND_ERROR} FUNCTION_BLOCK zipExtract (*Extracts an archive (.tar, .gz or .tar.gz)*) 23 | VAR_INPUT 24 | enable : BOOL; (*enables execution*) 25 | pArchiveDevice : UDINT; (*device name of the archive given as a pointer*) 26 | pArchiveFile : UDINT; (*file name of the archive given as a pointer*) 27 | pOutDevice : UDINT; (*device name of the destination folder of the files to extract given as pointer*) 28 | pOutFolder : UDINT; (*destination folder name of the files to extract given as pointer*) 29 | pOptions : UDINT; (*additional options given as pointer*) 30 | END_VAR 31 | 32 | VAR_OUTPUT 33 | status : UINT; (*execution status: ERR_OK, ERR_FUB_ENABLE_FALSE, ERR_FUB_BUSY, 0xXXXX = see help*) 34 | END_VAR 35 | 36 | VAR 37 | i_state : UINT; (*internal variable*) 38 | i_result : UINT; (*internal variable*) 39 | END_VAR 40 | END_FUNCTION_BLOCK 41 | -------------------------------------------------------------------------------- /Logical/Libraries/AsZip/AsZip.typ: -------------------------------------------------------------------------------- 1 | 2 | TYPE 3 | 4 | END_TYPE 5 | -------------------------------------------------------------------------------- /Logical/Libraries/AsZip/AsZip.var: -------------------------------------------------------------------------------- 1 | 2 | VAR CONSTANT 3 | zipERR_NULLPOINTER : UINT := 38060; (*null pointer given*) 4 | zipERR_INVALID_DEVICE : UINT := 38061; (*device doesn't exist or device not configured*) 5 | zipERR_UNSUPPORTED_EXTENSION : UINT := 38062; (*unsupported extension*) 6 | zipERR_INTERNAL_ERROR : UINT := 38063; (*internal error*) 7 | zipERR_SPACE : UINT := 38064; (*device is out of space*) 8 | zipERR_FILE_NOT_FOUND : UINT := 38065; (*file not found*) 9 | zipERR_FILE_WRITE_ERROR : UINT := 38066; (*could not write extracted file*) 10 | END_VAR 11 | -------------------------------------------------------------------------------- /Logical/Libraries/AsZip/SG4/AsZip.h: -------------------------------------------------------------------------------- 1 | /* Automation Studio generated header file */ 2 | /* Do not edit ! */ 3 | 4 | #ifndef _ASZIP_ 5 | #define _ASZIP_ 6 | #ifdef __cplusplus 7 | extern "C" 8 | { 9 | #endif 10 | 11 | #include 12 | 13 | #include 14 | 15 | #ifndef _BUR_PUBLIC 16 | #define _BUR_PUBLIC 17 | #endif 18 | /* Constants */ 19 | #ifdef _REPLACE_CONST 20 | #define zipERR_FILE_WRITE_ERROR 38066U 21 | #define zipERR_FILE_NOT_FOUND 38065U 22 | #define zipERR_SPACE 38064U 23 | #define zipERR_INTERNAL_ERROR 38063U 24 | #define zipERR_UNSUPPORTED_EXTENSION 38062U 25 | #define zipERR_INVALID_DEVICE 38061U 26 | #define zipERR_NULLPOINTER 38060U 27 | #else 28 | #ifndef _GLOBAL_CONST 29 | #define _GLOBAL_CONST _WEAK const 30 | #endif 31 | _GLOBAL_CONST unsigned short zipERR_FILE_WRITE_ERROR; 32 | _GLOBAL_CONST unsigned short zipERR_FILE_NOT_FOUND; 33 | _GLOBAL_CONST unsigned short zipERR_SPACE; 34 | _GLOBAL_CONST unsigned short zipERR_INTERNAL_ERROR; 35 | _GLOBAL_CONST unsigned short zipERR_UNSUPPORTED_EXTENSION; 36 | _GLOBAL_CONST unsigned short zipERR_INVALID_DEVICE; 37 | _GLOBAL_CONST unsigned short zipERR_NULLPOINTER; 38 | #endif 39 | 40 | 41 | 42 | 43 | /* Datatypes and datatypes of function blocks */ 44 | typedef struct zipArchive 45 | { 46 | /* VAR_INPUT (analog) */ 47 | unsigned long pArchiveDevice; 48 | unsigned long pArchiveFile; 49 | unsigned long pSrcDevice; 50 | unsigned long pSrcFile; 51 | unsigned long pOptions; 52 | /* VAR_OUTPUT (analog) */ 53 | unsigned short status; 54 | /* VAR (analog) */ 55 | unsigned short i_state; 56 | unsigned short i_result; 57 | /* VAR_INPUT (digital) */ 58 | plcbit enable; 59 | } zipArchive_typ; 60 | 61 | typedef struct zipExtract 62 | { 63 | /* VAR_INPUT (analog) */ 64 | unsigned long pArchiveDevice; 65 | unsigned long pArchiveFile; 66 | unsigned long pOutDevice; 67 | unsigned long pOutFolder; 68 | unsigned long pOptions; 69 | /* VAR_OUTPUT (analog) */ 70 | unsigned short status; 71 | /* VAR (analog) */ 72 | unsigned short i_state; 73 | unsigned short i_result; 74 | /* VAR_INPUT (digital) */ 75 | plcbit enable; 76 | } zipExtract_typ; 77 | 78 | 79 | 80 | /* Prototyping of functions and function blocks */ 81 | _BUR_PUBLIC void zipArchive(struct zipArchive* inst); 82 | _BUR_PUBLIC void zipExtract(struct zipExtract* inst); 83 | 84 | 85 | #ifdef __cplusplus 86 | }; 87 | #endif 88 | #endif /* _ASZIP_ */ 89 | 90 | -------------------------------------------------------------------------------- /Logical/Libraries/AsZip/binary.lby: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | AsZip.fun 6 | AsZip.typ 7 | AsZip.var 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Logical/Libraries/FileIO/FileIO.typ: -------------------------------------------------------------------------------- 1 | 2 | TYPE 3 | fiDIR_READ_DATA : STRUCT (*directory read structure*) 4 | Filename : ARRAY[0..259] OF USINT; (*file name*) 5 | Date : DATE_AND_TIME; (*date and time*) 6 | Filelength : UDINT; (*file length*) 7 | END_STRUCT; 8 | 9 | fiDIR_READ_EX_DATA : STRUCT (*directory read extended structure*) 10 | Filename : ARRAY[0..259] OF USINT; (*file name*) 11 | Date : DATE_AND_TIME; (*date and time*) 12 | Filelength : UDINT; (*file length*) 13 | Mode : UINT; (*mode*) 14 | END_STRUCT; 15 | 16 | fiFILE_INFO : STRUCT (*file information structure*) 17 | size : UDINT; (*size of file [bytes]*) 18 | linkCnt : UDINT; (*link count*) 19 | accTime : DATE_AND_TIME; (*time of last access*) 20 | modTime : DATE_AND_TIME; (*time of last data modification*) 21 | chgTime : DATE_AND_TIME; (*time of last file status change*) 22 | reserved : ARRAY[0..20] OF UDINT; (*reserved for future use*) 23 | END_STRUCT; 24 | END_TYPE 25 | -------------------------------------------------------------------------------- /Logical/Libraries/FileIO/FileIO.var: -------------------------------------------------------------------------------- 1 | 2 | VAR CONSTANT 3 | fiATTR_ARCHIVE : USINT := 32; (*attribute archive*) 4 | fiATTR_DIRECTORY : USINT := 16; (*attribute directory*) 5 | fiATTR_HIDDEN : USINT := 2; (*attribute hidden*) 6 | fiATTR_RDONLY : USINT := 1; (*attribute read only*) 7 | fiATTR_SYSTEM : USINT := 4; (*attribute system*) 8 | fiATTR_VOL_LABEL : USINT := 8; (*attribute volume label*) 9 | 10 | fiRECURSIVE : USINT := 1; (*option recursive*) 11 | fiOVERWRITE : USINT := 2; (*option overwrite*) 12 | 13 | fiREAD_ONLY : USINT := 0; (*access mode read only*) 14 | fiWRITE_ONLY : USINT := 1; (*access mode write only*) 15 | fiREAD_WRITE : USINT := 2; (*access mode read and write*) 16 | 17 | fiFILE : USINT := 0; (*directory read files only*) 18 | fiDIRECTORY : USINT := 1; (*directory read directories only*) 19 | fiBOTH : USINT := 2; (*directory read files and directories*) 20 | 21 | fiTruncate : UDINT := 1; (*truncate file*) 22 | 23 | fiERR_INVALID_PATH : UINT := 20700; (*error invalid path*) 24 | fiERR_DATA_SIZE : UINT := 20701; (*error data size*) 25 | fiERR_NO_MORE_ENTRIES : UINT := 20702; (*error no more entries*) 26 | fiERR_NOT_SUPPORTED : UINT := 20703; (*error not supported*) 27 | fiERR_INVALID_TYP : UINT := 20704; (*error invalid type*) 28 | fiERR_EXIST : UINT := 20705; (*error exist*) 29 | fiERR_ACCESS : UINT := 20706; (*error access*) 30 | fiERR_MODE : UINT := 20707; (*error mode*) 31 | fiERR_FILE_NOT_FOUND : UINT := 20708; (*error file not found*) 32 | fiERR_FILE_DEVICE : UINT := 20709; (*error file device*) 33 | fiERR_SPACE : UINT := 20710; (*error space*) 34 | fiERR_SEEK : UINT := 20711; (*error seek*) 35 | fiERR_FILE : UINT := 20712; (*error file*) 36 | fiERR_LESS_VIRTUAL_MEMORY : UINT := 20713; (*error less virtual memory*) 37 | fiERR_COM_FILE_OPEN : UINT := 20714; (*error file open*) 38 | fiERR_COM_FILE_CLOSE : UINT := 20715; (*error file close*) 39 | fiERR_COM_FILE_READ : UINT := 20716; (*error file read*) 40 | fiERR_COM_FILE_WRITE : UINT := 20717; (*error file write*) 41 | fiERR_COM_FILE_IOCTL : UINT := 20718; (*error fiel ioctl*) 42 | fiERR_DATA : UINT := 20719; (*error data*) 43 | fiERR_ASYNC_MANAGER : UINT := 20720; (*error asynchron manager*) 44 | fiERR_FILE_NOT_OPENED : UINT := 20721; (*error file not opened*) 45 | fiERR_INVALID_DIRECTORY : UINT := 20722; (*error invalid directory*) 46 | fiERR_DIR_NOT_EXIST : UINT := 20723; (*error directory not exists*) 47 | fiERR_DIR_NOT_EMPTY : UINT := 20724; (*error directory not empty*) 48 | fiERR_DIR_ALREADY_EXIST : UINT := 20725; (*error directory already exists*) 49 | fiERR_DETMEMINFO : UINT := 20726; (*error dedect memory info*) 50 | fiERR_NOT_ENOUGH_FREEMEM : UINT := 20727; (*error not enough free memory*) 51 | fiERR_DIR_INVALID_HANDLE : UINT := 20728; (*error invalid directory handle*) 52 | fiERR_PARAMETER : UINT := 20729; (*error parameter*) 53 | fiERR_DEVICE_ALREADY_EXIST : UINT := 20730; (*error device already exists*) 54 | fiERR_DEVICE_INVALID_HANDLE : UINT := 20731; (*error invalid device handle*) 55 | fiERR_NETIO_IP_UNEQUAL : UINT := 20732; (*ungleiche IP bei identischem Hostnamen - IP-overwrite nicht gesetzt*) 56 | fiERR_NETIO_PORT : UINT := 20733; (*error port not supported*) 57 | fiERR_NETIO_USER : UINT := 20734; (*error user or password*) 58 | fiERR_INVALID_NBYTES : UINT := 20735; (*error invalid number of bytes*) 59 | 60 | fiERR_INIT : UINT := 20796; (*error init*) 61 | fiERR_DEVICE_DRIVER : UINT := 20797; (*error device driver*) 62 | fiERR_DEVICE_MANAGER : UINT := 20798; (*error device manager*) 63 | fiERR_SYSTEM : UINT := 20799; (*error system*) 64 | 65 | 66 | ATTR_ARCHIVE : USINT := 32; (*obsolete*) 67 | ATTR_DIRECTORY : USINT := 16; (*obsolete*) 68 | ATTR_HIDDEN : USINT := 2; (*obsolete*) 69 | ATTR_RDONLY : USINT := 1; (*obsolete*) 70 | ATTR_SYSTEM : USINT := 4; (*obsolete*) 71 | ATTR_VOL_LABEL : USINT := 8; (*obsolete*) 72 | DIR_OW : USINT := 1; (*obsolete*) 73 | FILE_ALL : USINT := 2; (*obsolete*) 74 | FILE_DIR : USINT := 1; (*obsolete*) 75 | FILE_FILE : USINT := 0; (*obsolete*) 76 | FILE_ONCE : USINT := 0; (*obsolete*) 77 | FILE_DETMEM : USINT := 1; (*obsolete*) 78 | FILE_OW_DETMEM : USINT := 2; (*obsolete*) 79 | FILE_OW_ONCE : USINT := 3; (*obsolete*) 80 | FILE_R : USINT := 0; (*obsolete*) 81 | FILE_W : USINT := 1; (*obsolete*) 82 | FILE_RW : USINT := 2; (*obsolete*) 83 | SET_RECURSIVE : USINT := 1; (*obsolete*) 84 | END_VAR 85 | -------------------------------------------------------------------------------- /Logical/Libraries/FileIO/binary.lby: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | FileIO.fun 6 | FileIO.typ 7 | FileIO.var 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Logical/Libraries/IecCheck/IEC.lby: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | IecCheck.fun 6 | IecCheck.st 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Logical/Libraries/IecCheck/IecCheck.fun: -------------------------------------------------------------------------------- 1 | FUNCTION CheckDivSint : SINT (* Check divisor for SINT division *) 2 | VAR_INPUT 3 | divisor : SINT; 4 | END_VAR 5 | END_FUNCTION 6 | 7 | FUNCTION CheckDivUsint : USINT (* Check divisor for USINT division *) 8 | VAR_INPUT 9 | divisor : USINT; 10 | END_VAR 11 | END_FUNCTION 12 | 13 | FUNCTION CheckDivInt : INT (* Check divisor for INT division *) 14 | VAR_INPUT 15 | divisor : INT; 16 | END_VAR 17 | END_FUNCTION 18 | 19 | FUNCTION CheckDivUint : UINT (* Check divisor for UINT division *) 20 | VAR_INPUT 21 | divisor : UINT; 22 | END_VAR 23 | END_FUNCTION 24 | 25 | FUNCTION CheckDivDint : DINT (* Check divisor for DINT division *) 26 | VAR_INPUT 27 | divisor : DINT; 28 | END_VAR 29 | END_FUNCTION 30 | 31 | FUNCTION CheckDivUdint : UDINT (* Check divisor for UDINT division *) 32 | VAR_INPUT 33 | divisor : UDINT; 34 | END_VAR 35 | END_FUNCTION 36 | 37 | FUNCTION CheckDivReal : REAL (* Check divisor for REAL division *) 38 | VAR_INPUT 39 | divisor : REAL; 40 | END_VAR 41 | END_FUNCTION 42 | 43 | FUNCTION CheckDivLReal : LREAL (* Check divisor for LREAL division, not available for SG3 and SGC *) 44 | VAR_INPUT 45 | divisor : LREAL; 46 | END_VAR 47 | END_FUNCTION 48 | 49 | FUNCTION CheckBounds : DINT (* Check range for array access *) 50 | VAR_INPUT 51 | index : DINT; 52 | lower : DINT; 53 | upper : DINT; 54 | END_VAR 55 | END_FUNCTION 56 | 57 | FUNCTION CheckRange : DINT (* Check range for enumeration *) 58 | VAR_INPUT 59 | value : DINT; 60 | lower : DINT; 61 | upper : DINT; 62 | END_VAR 63 | END_FUNCTION 64 | 65 | FUNCTION CheckSignedSubrange : DINT (* Check range for subrange of signed data types *) 66 | VAR_INPUT 67 | value : DINT; 68 | lower : DINT; 69 | upper : DINT; 70 | END_VAR 71 | END_FUNCTION 72 | 73 | FUNCTION CheckUnsignedSubrange : UDINT (* Check range for subrange of unsigned data types *) 74 | VAR_INPUT 75 | value : UDINT; 76 | lower : UDINT; 77 | upper : UDINT; 78 | END_VAR 79 | END_FUNCTION 80 | 81 | FUNCTION CheckReadAccess : UDINT (* Check address when reading dynamic variables *) 82 | VAR_INPUT 83 | address : UDINT; 84 | END_VAR 85 | END_FUNCTION 86 | 87 | FUNCTION CheckWriteAccess : UDINT (* Check address when writing dynamic variables *) 88 | VAR_INPUT 89 | address : UDINT; 90 | END_VAR 91 | END_FUNCTION 92 | 93 | FUNCTION MakeEntry : UDINT (* Makes an entry (log book entry) in the error log book *) 94 | VAR 95 | taskname : STRING[30]; 96 | group : USINT; 97 | status_name : UINT; 98 | out_text : STRING[80]; 99 | END_VAR 100 | VAR_INPUT 101 | number : UINT; 102 | index : DINT; 103 | text : STRING[50]; 104 | END_VAR 105 | END_FUNCTION 106 | -------------------------------------------------------------------------------- /Logical/Libraries/IecCheck/IecCheck.st: -------------------------------------------------------------------------------- 1 | (* Check divisor for SINT division *) 2 | FUNCTION CheckDivSint 3 | IF divisor=0 THEN 4 | CheckDivSint:=1; 5 | MakeEntry(55555,divisor,'CheckDivSint'); 6 | ELSE 7 | CheckDivSint:=divisor; 8 | END_IF 9 | END_FUNCTION 10 | 11 | (* Check divisor for USINT division *) 12 | FUNCTION CheckDivUsint 13 | IF divisor=0 THEN 14 | CheckDivUsint:=1; 15 | MakeEntry(55555,divisor,'CheckDivUsint'); 16 | ELSE 17 | CheckDivUsint:=divisor; 18 | END_IF 19 | END_FUNCTION 20 | 21 | (* Check divisor for INT division *) 22 | FUNCTION CheckDivInt 23 | IF divisor=0 THEN 24 | CheckDivInt:=1; 25 | MakeEntry(55555,divisor,'CheckDivInt'); 26 | ELSE 27 | CheckDivInt:=divisor; 28 | END_IF 29 | END_FUNCTION 30 | 31 | (* Check divisor for UINT division *) 32 | FUNCTION CheckDivUint 33 | IF divisor=0 THEN 34 | CheckDivUint:=1; 35 | MakeEntry(55555,divisor,'CheckDivUint'); 36 | ELSE 37 | CheckDivUint:=divisor; 38 | END_IF 39 | END_FUNCTION 40 | 41 | (* Check divisor for DINT division *) 42 | FUNCTION CheckDivDint 43 | IF divisor=0 THEN 44 | CheckDivDint:=1; 45 | MakeEntry(55555,divisor,'CheckDivDint'); 46 | ELSE 47 | CheckDivDint:=divisor; 48 | END_IF 49 | END_FUNCTION 50 | 51 | (* Check divisor for UDINT division *) 52 | FUNCTION CheckDivUdint 53 | IF divisor=0 THEN 54 | CheckDivUdint:=1; 55 | MakeEntry(55555,divisor,'CheckDivUdint'); 56 | ELSE 57 | CheckDivUdint:=divisor; 58 | END_IF 59 | END_FUNCTION 60 | 61 | (* Check divisor for REAL division *) 62 | FUNCTION CheckDivReal 63 | IF divisor=0 THEN 64 | CheckDivReal:=1; 65 | MakeEntry(55555,0,'CheckDivReal'); 66 | ELSE 67 | CheckDivReal:=divisor; 68 | END_IF 69 | END_FUNCTION 70 | 71 | (* Check divisor for LREAL division *) 72 | FUNCTION CheckDivLReal 73 | IF divisor=0 THEN 74 | CheckDivLReal:=1; 75 | MakeEntry(55555,0,'CheckDivLReal'); 76 | ELSE 77 | CheckDivLReal:=divisor; 78 | END_IF 79 | END_FUNCTION 80 | 81 | (* Check range for array access *) 82 | FUNCTION CheckBounds 83 | IF index < lower THEN 84 | CheckBounds := lower; 85 | MakeEntry(55555,index,'CheckBounds'); 86 | ELSIF index > upper THEN 87 | CheckBounds := upper; 88 | MakeEntry(55555,index,'CheckBounds'); 89 | ELSE 90 | CheckBounds := index; 91 | END_IF 92 | END_FUNCTION 93 | 94 | (* Check range for enumeration *) 95 | FUNCTION CheckRange 96 | IF value < lower THEN 97 | CheckRange := lower; 98 | MakeEntry(55555,value,'CheckRange'); 99 | ELSIF value > upper THEN 100 | CheckRange := upper; 101 | MakeEntry(55555,value,'CheckRange'); 102 | ELSE 103 | CheckRange := value; 104 | END_IF 105 | END_FUNCTION 106 | 107 | (* Check range for subrange of signed data types *) 108 | FUNCTION CheckSignedSubrange 109 | IF value < lower THEN 110 | CheckSignedSubrange := lower; 111 | MakeEntry(55555,value,'CheckSignedSubrange'); 112 | ELSIF value > upper THEN 113 | CheckSignedSubrange := upper; 114 | MakeEntry(55555,value,'CheckSignedSubrange'); 115 | ELSE 116 | CheckSignedSubrange := value; 117 | END_IF 118 | END_FUNCTION 119 | 120 | (* Check range for subrange of unsigned data types *) 121 | FUNCTION CheckUnsignedSubrange 122 | IF value < lower THEN 123 | CheckUnsignedSubrange := lower; 124 | MakeEntry(55555,value,'CheckUnsignedSubrange'); 125 | ELSIF value > upper THEN 126 | CheckUnsignedSubrange := upper; 127 | MakeEntry(55555,value,'CheckUnsignedSubrange'); 128 | ELSE 129 | CheckUnsignedSubrange := value; 130 | END_IF 131 | END_FUNCTION 132 | 133 | (* Check address when reading dynamic variables *) 134 | FUNCTION CheckReadAccess 135 | IF address=0 THEN 136 | (* TODO: Insert an appropriate code, see AutomationStudio help for further information *) 137 | MakeEntry(55555,address,'Read from NULL'); 138 | END_IF 139 | 140 | CheckReadAccess:=0; 141 | END_FUNCTION 142 | 143 | (* Check address when writing dynamic variables *) 144 | FUNCTION CheckWriteAccess 145 | IF address=0 THEN 146 | (* TODO: Insert an appropriate code, see AutomationStudio help for further information *) 147 | MakeEntry(55555,address,'Write to NULL'); 148 | END_IF 149 | 150 | CheckWriteAccess:=0; 151 | END_FUNCTION 152 | 153 | (* Makes an entry (log book entry) in the error log book *) 154 | FUNCTION MakeEntry 155 | status_name := ST_name(0,ADR(taskname),ADR(group)); 156 | 157 | brsstrcpy(ADR(out_text),ADR(text)); 158 | brsstrcat(ADR(out_text),ADR(' > in task > ')); 159 | brsstrcat(ADR(out_text),ADR(taskname)); 160 | MakeEntry := ADR(out_text); 161 | ERRxfatal(number,index,ADR(out_text)); 162 | END_FUNCTION 163 | -------------------------------------------------------------------------------- /Logical/Libraries/Package.pkg: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | operator 6 | runtime 7 | astime 8 | AsIecCon 9 | FileIO 10 | AsBrStr 11 | AsUSB 12 | standard 13 | IecCheck 14 | sys_lib 15 | AsHttp 16 | AsMem 17 | AsARCfg 18 | AsZip 19 | AsICMP 20 | 21 | -------------------------------------------------------------------------------- /Logical/Libraries/astime/SG3/astime.h: -------------------------------------------------------------------------------- 1 | /* Automation Studio generated header file */ 2 | /* Do not edit ! */ 3 | 4 | #ifndef _ASTIME_ 5 | #define _ASTIME_ 6 | #ifdef __cplusplus 7 | extern "C" 8 | { 9 | #endif 10 | 11 | #include 12 | 13 | #include 14 | 15 | #ifndef _IEC_CONST 16 | #define _IEC_CONST _WEAK const 17 | #endif 18 | 19 | /* Constants */ 20 | #ifdef _REPLACE_CONST 21 | #define timERR_AR 33213U 22 | #define timERR_INVALID_DTSTRUCTURE 33212U 23 | #define timERR_INVALID_LEN 33211U 24 | #define timERR_INVALID_PARAMETER 33210U 25 | #define timTIME_SERVER 2U 26 | #define timREAL_TIME_CLOCK 1U 27 | #define timNO_DST 3U 28 | #define timDAYLIGHT_SAVING_TIME 2U 29 | #define timNORMAL_TIME 1U 30 | #define TIME_MAX 2073600000 31 | #define TIME_MIN (-2073600000) 32 | #define DATE_AND_TIME_MAX 4102444799U 33 | #define timEXSETTIME_NO_OPTION 0U 34 | #define timEXSETTIME_NO_LOGENTRY 1U 35 | #else 36 | _IEC_CONST unsigned short timERR_AR = 33213U; 37 | _IEC_CONST unsigned short timERR_INVALID_DTSTRUCTURE = 33212U; 38 | _IEC_CONST unsigned short timERR_INVALID_LEN = 33211U; 39 | _IEC_CONST unsigned short timERR_INVALID_PARAMETER = 33210U; 40 | _IEC_CONST unsigned char timTIME_SERVER = 2U; 41 | _IEC_CONST unsigned char timREAL_TIME_CLOCK = 1U; 42 | _IEC_CONST unsigned char timNO_DST = 3U; 43 | _IEC_CONST unsigned char timDAYLIGHT_SAVING_TIME = 2U; 44 | _IEC_CONST unsigned char timNORMAL_TIME = 1U; 45 | _IEC_CONST signed long TIME_MAX = 2073600000; 46 | _IEC_CONST signed long TIME_MIN = -2073600000; 47 | _IEC_CONST unsigned long DATE_AND_TIME_MAX = 4102444799U; 48 | _IEC_CONST unsigned char timEXSETTIME_NO_OPTION = 0U; 49 | _IEC_CONST unsigned char timEXSETTIME_NO_LOGENTRY = 1U; 50 | #endif 51 | 52 | 53 | 54 | 55 | /* Datatypes and datatypes of function blocks */ 56 | typedef struct TIMEStructure 57 | { signed char day; 58 | unsigned char hour; 59 | unsigned char minute; 60 | unsigned char second; 61 | unsigned short millisec; 62 | unsigned short microsec; 63 | } TIMEStructure; 64 | 65 | typedef struct DTStructure 66 | { unsigned short year; 67 | unsigned char month; 68 | unsigned char day; 69 | unsigned char wday; 70 | unsigned char hour; 71 | unsigned char minute; 72 | unsigned char second; 73 | unsigned short millisec; 74 | unsigned short microsec; 75 | } DTStructure; 76 | 77 | typedef struct DTExSetTime 78 | { 79 | /* VAR_INPUT (analog) */ 80 | plcdt DT1; 81 | unsigned char Option; 82 | /* VAR_OUTPUT (analog) */ 83 | unsigned short status; 84 | /* VAR_INPUT (digital) */ 85 | plcbit enable; 86 | } DTExSetTime_typ; 87 | 88 | typedef struct DTSetTime 89 | { 90 | /* VAR_INPUT (analog) */ 91 | plcdt DT1; 92 | /* VAR_OUTPUT (analog) */ 93 | unsigned short status; 94 | /* VAR_INPUT (digital) */ 95 | plcbit enable; 96 | } DTSetTime_typ; 97 | 98 | typedef struct DTGetTime 99 | { 100 | /* VAR_OUTPUT (analog) */ 101 | unsigned short status; 102 | plcdt DT1; 103 | /* VAR_INPUT (digital) */ 104 | plcbit enable; 105 | } DTGetTime_typ; 106 | 107 | 108 | 109 | /* Prototyping of functions and function blocks */ 110 | void DTExSetTime(struct DTExSetTime* inst); 111 | void DTSetTime(struct DTSetTime* inst); 112 | void DTGetTime(struct DTGetTime* inst); 113 | unsigned long ascTIMEStructure(unsigned long pTIMEStructure, unsigned long pStr, unsigned long len); 114 | unsigned long ascDTStructure(unsigned long pDTStructure, unsigned long pStr, unsigned long len); 115 | unsigned long ascTIME(plctime TIME1, unsigned long pStr, unsigned long len); 116 | unsigned long ascDT(plcdt DT1, unsigned long pStr, unsigned long len); 117 | plctime TIMEStructure_TO_TIME(unsigned long pTIMEStructure); 118 | unsigned long TIME_TO_TIMEStructure(plctime TIME1, unsigned long pTIMEStructure); 119 | plcdt DTStructure_TO_DT(unsigned long pDTStructure); 120 | unsigned long DT_TO_DTStructure(plcdt DT1, unsigned long pDTStructure); 121 | unsigned long DiffT(plctime TIME2, plctime TIME1); 122 | unsigned long DiffDT(plcdt DT2, plcdt DT1); 123 | 124 | 125 | #ifdef __cplusplus 126 | }; 127 | #endif 128 | #endif /* _ASTIME_ */ 129 | 130 | 131 | -------------------------------------------------------------------------------- /Logical/Libraries/astime/SGC/astime.h: -------------------------------------------------------------------------------- 1 | /* Automation Studio generated header file */ 2 | /* Do not edit ! */ 3 | 4 | #ifndef _ASTIME_ 5 | #define _ASTIME_ 6 | #ifdef __cplusplus 7 | extern "C" 8 | { 9 | #endif 10 | 11 | #include 12 | 13 | #include 14 | 15 | #ifndef _IEC_CONST 16 | #define _IEC_CONST _WEAK const 17 | #endif 18 | 19 | /* Constants */ 20 | #ifdef _REPLACE_CONST 21 | #define timERR_AR 33213U 22 | #define timERR_INVALID_DTSTRUCTURE 33212U 23 | #define timERR_INVALID_LEN 33211U 24 | #define timERR_INVALID_PARAMETER 33210U 25 | #define timTIME_SERVER 2U 26 | #define timREAL_TIME_CLOCK 1U 27 | #define timNO_DST 3U 28 | #define timDAYLIGHT_SAVING_TIME 2U 29 | #define timNORMAL_TIME 1U 30 | #define TIME_MAX 2073600000 31 | #define TIME_MIN (-2073600000) 32 | #define DATE_AND_TIME_MAX 4102444799U 33 | #define timEXSETTIME_NO_OPTION 0U 34 | #define timEXSETTIME_NO_LOGENTRY 1U 35 | #else 36 | _IEC_CONST unsigned short timERR_AR = 33213U; 37 | _IEC_CONST unsigned short timERR_INVALID_DTSTRUCTURE = 33212U; 38 | _IEC_CONST unsigned short timERR_INVALID_LEN = 33211U; 39 | _IEC_CONST unsigned short timERR_INVALID_PARAMETER = 33210U; 40 | _IEC_CONST unsigned char timTIME_SERVER = 2U; 41 | _IEC_CONST unsigned char timREAL_TIME_CLOCK = 1U; 42 | _IEC_CONST unsigned char timNO_DST = 3U; 43 | _IEC_CONST unsigned char timDAYLIGHT_SAVING_TIME = 2U; 44 | _IEC_CONST unsigned char timNORMAL_TIME = 1U; 45 | _IEC_CONST signed long TIME_MAX = 2073600000; 46 | _IEC_CONST signed long TIME_MIN = -2073600000; 47 | _IEC_CONST unsigned long DATE_AND_TIME_MAX = 4102444799U; 48 | _IEC_CONST unsigned char timEXSETTIME_NO_OPTION = 0U; 49 | _IEC_CONST unsigned char timEXSETTIME_NO_LOGENTRY = 1U; 50 | #endif 51 | 52 | 53 | 54 | 55 | /* Datatypes and datatypes of function blocks */ 56 | typedef struct TIMEStructure 57 | { signed char day; 58 | unsigned char hour; 59 | unsigned char minute; 60 | unsigned char second; 61 | unsigned short millisec; 62 | unsigned short microsec; 63 | } TIMEStructure; 64 | 65 | typedef struct DTStructure 66 | { unsigned short year; 67 | unsigned char month; 68 | unsigned char day; 69 | unsigned char wday; 70 | unsigned char hour; 71 | unsigned char minute; 72 | unsigned char second; 73 | unsigned short millisec; 74 | unsigned short microsec; 75 | } DTStructure; 76 | 77 | typedef struct DTExSetTime 78 | { 79 | /* VAR_INPUT (analog) */ 80 | plcdt DT1; 81 | unsigned char Option; 82 | /* VAR_OUTPUT (analog) */ 83 | unsigned short status; 84 | /* VAR_INPUT (digital) */ 85 | plcbit enable; 86 | } DTExSetTime_typ; 87 | 88 | typedef struct DTSetTime 89 | { 90 | /* VAR_INPUT (analog) */ 91 | plcdt DT1; 92 | /* VAR_OUTPUT (analog) */ 93 | unsigned short status; 94 | /* VAR_INPUT (digital) */ 95 | plcbit enable; 96 | } DTSetTime_typ; 97 | 98 | typedef struct DTGetTime 99 | { 100 | /* VAR_OUTPUT (analog) */ 101 | unsigned short status; 102 | plcdt DT1; 103 | /* VAR_INPUT (digital) */ 104 | plcbit enable; 105 | } DTGetTime_typ; 106 | 107 | 108 | 109 | /* Prototyping of functions and function blocks */ 110 | void DTExSetTime(struct DTExSetTime* inst); 111 | void DTSetTime(struct DTSetTime* inst); 112 | void DTGetTime(struct DTGetTime* inst); 113 | unsigned long ascTIMEStructure(unsigned long pTIMEStructure, unsigned long pStr, unsigned long len); 114 | unsigned long ascDTStructure(unsigned long pDTStructure, unsigned long pStr, unsigned long len); 115 | unsigned long ascTIME(plctime TIME1, unsigned long pStr, unsigned long len); 116 | unsigned long ascDT(plcdt DT1, unsigned long pStr, unsigned long len); 117 | plctime TIMEStructure_TO_TIME(unsigned long pTIMEStructure); 118 | unsigned long TIME_TO_TIMEStructure(plctime TIME1, unsigned long pTIMEStructure); 119 | plcdt DTStructure_TO_DT(unsigned long pDTStructure); 120 | unsigned long DT_TO_DTStructure(plcdt DT1, unsigned long pDTStructure); 121 | unsigned long DiffT(plctime TIME2, plctime TIME1); 122 | unsigned long DiffDT(plcdt DT2, plcdt DT1); 123 | 124 | 125 | #ifdef __cplusplus 126 | }; 127 | #endif 128 | #endif /* _ASTIME_ */ 129 | 130 | 131 | -------------------------------------------------------------------------------- /Logical/Libraries/astime/astime.typ: -------------------------------------------------------------------------------- 1 | 2 | TYPE 3 | TIMEStructure : STRUCT (*time structure*) 4 | day : SINT ; (*day (1-31)*) 5 | hour : USINT ; (*hours (0-23)*) 6 | minute : USINT ; (*minutes (0-59)*) 7 | second : USINT ; (*seconds (0-59)*) 8 | millisec : UINT ; (*milliseconds (0-999)*) 9 | microsec : UINT ; (*microseconds (0-999)*) 10 | END_STRUCT; 11 | DTStructure : STRUCT (*date structure*) 12 | year : UINT ; (*year*) 13 | month : USINT ; (*month (1-12)*) 14 | day : USINT ; (*day (1-31)*) 15 | wday : USINT ; (*day of the week (0-6), e.g. 0 = Sunday, 6 = Saturday*) 16 | hour : USINT ; (*hours (0-23)*) 17 | minute : USINT ; (*minutes (0-59)*) 18 | second : USINT ; (*seconds (0-59)*) 19 | millisec : UINT ; (*milliseconds (0-999)*) 20 | microsec : UINT ; (*microseconds (0-999)*) 21 | END_STRUCT; 22 | END_TYPE 23 | -------------------------------------------------------------------------------- /Logical/Libraries/astime/astime.var: -------------------------------------------------------------------------------- 1 | 2 | VAR CONSTANT 3 | timEXSETTIME_NO_LOGENTRY : USINT := 1; 4 | timEXSETTIME_NO_OPTION : USINT := 0; 5 | DATE_AND_TIME_MAX : UDINT := 4102444799; 6 | TIME_MIN : DINT := -2073600000; 7 | TIME_MAX : DINT := 2073600000; 8 | timNORMAL_TIME : USINT := 1; 9 | timDAYLIGHT_SAVING_TIME : USINT := 2; 10 | timNO_DST : USINT := 3; 11 | timREAL_TIME_CLOCK : USINT := 1; 12 | timTIME_SERVER : USINT := 2; 13 | timREDUND_INTERFACE : USINT := 3; 14 | timERR_INVALID_PARAMETER : UINT := 33210; 15 | timERR_INVALID_LEN : UINT := 33211; 16 | timERR_INVALID_DTSTRUCTURE : UINT := 33212; 17 | timERR_AR : UINT := 33213; 18 | END_VAR 19 | -------------------------------------------------------------------------------- /Logical/Libraries/astime/binary.lby: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | astime.fun 6 | astime.typ 7 | astime.var 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Logical/Libraries/operator/SG3/operator.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************/ 2 | /* */ 3 | /* operator.h */ 4 | /* */ 5 | /* Automation Studio */ 6 | /* Copyright Bernecker&Rainer 1998-1999 */ 7 | /* */ 8 | /****************************************************************************/ 9 | 10 | /* This library does not contain C code */ 11 | 12 | -------------------------------------------------------------------------------- /Logical/Libraries/operator/SG4/operator.h: -------------------------------------------------------------------------------- 1 | /* This library does not contain C code */ 2 | 3 | -------------------------------------------------------------------------------- /Logical/Libraries/operator/SGC/operator.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************/ 2 | /* */ 3 | /* operator.h */ 4 | /* */ 5 | /* Automation Studio */ 6 | /* Copyright Bernecker&Rainer 1998-1999 */ 7 | /* */ 8 | /****************************************************************************/ 9 | 10 | /* This library does not contain C code */ 11 | 12 | -------------------------------------------------------------------------------- /Logical/Libraries/operator/binary.lby: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | operator.fun 6 | operator.typ 7 | operator.var 8 | 9 | -------------------------------------------------------------------------------- /Logical/Libraries/operator/operator.typ: -------------------------------------------------------------------------------- 1 | 2 | TYPE 3 | 4 | END_TYPE 5 | -------------------------------------------------------------------------------- /Logical/Libraries/operator/operator.var: -------------------------------------------------------------------------------- 1 | 2 | VAR CONSTANT 3 | 4 | END_VAR 5 | -------------------------------------------------------------------------------- /Logical/Libraries/runtime/SG3/runtime.h: -------------------------------------------------------------------------------- 1 | /* Automation Studio generated header file */ 2 | /* Do not edit ! */ 3 | 4 | #ifndef _RUNTIME_ 5 | #define _RUNTIME_ 6 | #ifdef __cplusplus 7 | extern "C" { 8 | #endif 9 | 10 | #include 11 | 12 | #ifndef _IEC_CONST 13 | #define _IEC_CONST _WEAK const 14 | #endif 15 | 16 | /* Constants */ 17 | #ifdef _REPLACE_CONST 18 | #define ERR_OK 0 19 | #define ERR_NOTIMPLEMENTED 9999 20 | #define ERR_FUB_ENABLE_FALSE 0xFFFE 21 | #define ERR_FUB_BUSY 0xFFFF 22 | 23 | /* IEC 61131-3 Datentypen */ 24 | #define IEC_DATATYPE_BOOL 1 25 | #define IEC_DATATYPE_SINT 2 26 | #define IEC_DATATYPE_INT 3 27 | #define IEC_DATATYPE_DINT 4 28 | #define IEC_DATATYPE_USINT 5 29 | #define IEC_DATATYPE_UINT 6 30 | #define IEC_DATATYPE_UDINT 7 31 | #define IEC_DATATYPE_REAL 8 32 | #define IEC_DATATYPE_STRING 9 33 | #define IEC_DATATYPE_ULINT 10 34 | #define IEC_DATATYPE_DATE_AND_TIME 11 35 | #define IEC_DATATYPE_TIME 12 36 | #define IEC_DATATYPE_DATE 13 37 | #define IEC_DATATYPE_LREAL 14 38 | #define IEC_DATATYPE_TIME_OF_DAY 16 39 | #define IEC_DATATYPE_BYTE 17 40 | #define IEC_DATATYPE_WORD 18 41 | #define IEC_DATATYPE_DWORD 19 42 | #define IEC_DATATYPE_LWORD 20 43 | #define IEC_DATATYPE_WSTRING 21 44 | #define IEC_DATATYPE_LINT 23 45 | 46 | #else 47 | _IEC_CONST unsigned short ERR_OK = 0U; 48 | _IEC_CONST unsigned short ERR_NOTIMPLEMENTED = 9999U; 49 | _IEC_CONST unsigned short ERR_FUB_ENABLE_FALSE = 0xFFFEU; 50 | _IEC_CONST unsigned short ERR_FUB_BUSY = 0xFFFFU; 51 | 52 | /* IEC 61131-3 Datentypen */ 53 | _IEC_CONST unsigned short IEC_DATATYPE_BOOL = 1; 54 | _IEC_CONST unsigned short IEC_DATATYPE_SINT = 2; 55 | _IEC_CONST unsigned short IEC_DATATYPE_INT = 3; 56 | _IEC_CONST unsigned short IEC_DATATYPE_DINT = 4; 57 | _IEC_CONST unsigned short IEC_DATATYPE_USINT = 5; 58 | _IEC_CONST unsigned short IEC_DATATYPE_UINT = 6; 59 | _IEC_CONST unsigned short IEC_DATATYPE_UDINT = 7; 60 | _IEC_CONST unsigned short IEC_DATATYPE_REAL = 8; 61 | _IEC_CONST unsigned short IEC_DATATYPE_STRING = 9; 62 | _IEC_CONST unsigned short IEC_DATATYPE_ULINT = 10; 63 | _IEC_CONST unsigned short IEC_DATATYPE_DATE_AND_TIME = 11; 64 | _IEC_CONST unsigned short IEC_DATATYPE_TIME = 12; 65 | _IEC_CONST unsigned short IEC_DATATYPE_DATE = 13; 66 | _IEC_CONST unsigned short IEC_DATATYPE_LREAL = 14; 67 | _IEC_CONST unsigned short IEC_DATATYPE_TIME_OF_DAY = 16; 68 | _IEC_CONST unsigned short IEC_DATATYPE_BYTE = 17; 69 | _IEC_CONST unsigned short IEC_DATATYPE_WORD = 18; 70 | _IEC_CONST unsigned short IEC_DATATYPE_DWORD = 19; 71 | _IEC_CONST unsigned short IEC_DATATYPE_LWORD = 20; 72 | _IEC_CONST unsigned short IEC_DATATYPE_WSTRING = 21; 73 | _IEC_CONST unsigned short IEC_DATATYPE_LINT = 23; 74 | #endif 75 | 76 | #ifdef __cplusplus 77 | }; 78 | #endif 79 | #endif /* _RUNTIME_ */ 80 | 81 | -------------------------------------------------------------------------------- /Logical/Libraries/runtime/SGC/runtime.h: -------------------------------------------------------------------------------- 1 | /* Automation Studio generated header file */ 2 | /* Do not edit ! */ 3 | 4 | #ifndef _RUNTIME_ 5 | #define _RUNTIME_ 6 | #ifdef __cplusplus 7 | extern "C" { 8 | #endif 9 | 10 | #include 11 | 12 | #ifndef _IEC_CONST 13 | #define _IEC_CONST _WEAK const 14 | #endif 15 | 16 | /* Constants */ 17 | #ifdef _REPLACE_CONST 18 | #define ERR_OK 0 19 | #define ERR_NOTIMPLEMENTED 9999 20 | #define ERR_FUB_ENABLE_FALSE 0xFFFE 21 | #define ERR_FUB_BUSY 0xFFFF 22 | 23 | /* IEC 61131-3 Datentypen */ 24 | #define IEC_DATATYPE_BOOL 1 25 | #define IEC_DATATYPE_SINT 2 26 | #define IEC_DATATYPE_INT 3 27 | #define IEC_DATATYPE_DINT 4 28 | #define IEC_DATATYPE_USINT 5 29 | #define IEC_DATATYPE_UINT 6 30 | #define IEC_DATATYPE_UDINT 7 31 | #define IEC_DATATYPE_REAL 8 32 | #define IEC_DATATYPE_STRING 9 33 | #define IEC_DATATYPE_ULINT 10 34 | #define IEC_DATATYPE_DATE_AND_TIME 11 35 | #define IEC_DATATYPE_TIME 12 36 | #define IEC_DATATYPE_DATE 13 37 | #define IEC_DATATYPE_LREAL 14 38 | #define IEC_DATATYPE_TIME_OF_DAY 16 39 | #define IEC_DATATYPE_BYTE 17 40 | #define IEC_DATATYPE_WORD 18 41 | #define IEC_DATATYPE_DWORD 19 42 | #define IEC_DATATYPE_LWORD 20 43 | #define IEC_DATATYPE_WSTRING 21 44 | #define IEC_DATATYPE_LINT 23 45 | 46 | #else 47 | _IEC_CONST unsigned short ERR_OK = 0U; 48 | _IEC_CONST unsigned short ERR_NOTIMPLEMENTED = 9999U; 49 | _IEC_CONST unsigned short ERR_FUB_ENABLE_FALSE = 0xFFFEU; 50 | _IEC_CONST unsigned short ERR_FUB_BUSY = 0xFFFFU; 51 | 52 | /* IEC 61131-3 Datentypen */ 53 | _IEC_CONST unsigned short IEC_DATATYPE_BOOL = 1; 54 | _IEC_CONST unsigned short IEC_DATATYPE_SINT = 2; 55 | _IEC_CONST unsigned short IEC_DATATYPE_INT = 3; 56 | _IEC_CONST unsigned short IEC_DATATYPE_DINT = 4; 57 | _IEC_CONST unsigned short IEC_DATATYPE_USINT = 5; 58 | _IEC_CONST unsigned short IEC_DATATYPE_UINT = 6; 59 | _IEC_CONST unsigned short IEC_DATATYPE_UDINT = 7; 60 | _IEC_CONST unsigned short IEC_DATATYPE_REAL = 8; 61 | _IEC_CONST unsigned short IEC_DATATYPE_STRING = 9; 62 | _IEC_CONST unsigned short IEC_DATATYPE_ULINT = 10; 63 | _IEC_CONST unsigned short IEC_DATATYPE_DATE_AND_TIME = 11; 64 | _IEC_CONST unsigned short IEC_DATATYPE_TIME = 12; 65 | _IEC_CONST unsigned short IEC_DATATYPE_DATE = 13; 66 | _IEC_CONST unsigned short IEC_DATATYPE_LREAL = 14; 67 | _IEC_CONST unsigned short IEC_DATATYPE_TIME_OF_DAY = 16; 68 | _IEC_CONST unsigned short IEC_DATATYPE_BYTE = 17; 69 | _IEC_CONST unsigned short IEC_DATATYPE_WORD = 18; 70 | _IEC_CONST unsigned short IEC_DATATYPE_DWORD = 19; 71 | _IEC_CONST unsigned short IEC_DATATYPE_LWORD = 20; 72 | _IEC_CONST unsigned short IEC_DATATYPE_WSTRING = 21; 73 | _IEC_CONST unsigned short IEC_DATATYPE_LINT = 23; 74 | #endif 75 | 76 | #ifdef __cplusplus 77 | }; 78 | #endif 79 | #endif /* _RUNTIME_ */ 80 | 81 | -------------------------------------------------------------------------------- /Logical/Libraries/runtime/binary.lby: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | runtime.fun 6 | runtime.typ 7 | runtime.var 8 | 9 | -------------------------------------------------------------------------------- /Logical/Libraries/runtime/runtime.typ: -------------------------------------------------------------------------------- 1 | 2 | TYPE 3 | SFCActionType : STRUCT (*internal use*) 4 | x : BOOL; 5 | _x : BOOL; 6 | t : TIME; 7 | _t : TIME; 8 | AC : SFCActionControl; 9 | END_STRUCT; 10 | SFCActionType2 : STRUCT (*internal use*) 11 | x : BOOL; 12 | _x : BOOL; 13 | AC : SFCAC2; 14 | END_STRUCT; 15 | SFCActionCType : STRUCT (*internal use*) 16 | x : BOOL; 17 | _x : BOOL; 18 | force : BOOL; 19 | _force : BOOL; 20 | active : BOOL; 21 | _active : BOOL; 22 | error : BOOL; 23 | AC : SFCActionControl; 24 | END_STRUCT; 25 | SFCActionCType2 : STRUCT (*internal use*) 26 | x : BOOL; 27 | _x : BOOL; 28 | force : BOOL; 29 | _force : BOOL; 30 | active : BOOL; 31 | _active : BOOL; 32 | error : BOOL; 33 | AC : SFCAC2; 34 | END_STRUCT; 35 | SFCActionCType3 : STRUCT (*internal use*) 36 | t : LREAL; 37 | _t : LREAL; 38 | tp : LREAL; 39 | x : BOOL; 40 | _x : BOOL; 41 | force : BOOL; 42 | _force : BOOL; 43 | active : BOOL; 44 | _active : BOOL; 45 | error : BOOL; 46 | AC : SFCAC3; 47 | END_STRUCT; 48 | SFCStepType : STRUCT (*internal use*) 49 | x : BOOL; 50 | t : TIME; 51 | _x : BOOL; 52 | _t : TIME; 53 | END_STRUCT; 54 | SFCStepCType : STRUCT (*internal use*) 55 | t : TIME; 56 | _t : TIME; 57 | inactive_actions : UDINT; 58 | _inactive_actions : UDINT; 59 | error_actions : UDINT; 60 | x : BOOL; 61 | _x : BOOL; 62 | x_activate : BOOL; 63 | force : BOOL; 64 | _force : BOOL; 65 | active : BOOL; 66 | _active : BOOL; 67 | error : BOOL; 68 | tip : BOOL; 69 | tip_disable_duration: BOOL; 70 | tip_disable_action : BOOL; 71 | END_STRUCT; 72 | SFCStepCType3 : STRUCT (*internal use*) 73 | t : LREAL; 74 | _t : LREAL; 75 | tp : LREAL; 76 | inactive_actions : UDINT; 77 | _inactive_actions : UDINT; 78 | error_actions : UDINT; 79 | x : BOOL; 80 | _x : BOOL; 81 | x_activate : {REDUND_UNREPLICABLE} BOOL; 82 | force : BOOL; 83 | _force : BOOL; 84 | active : BOOL; 85 | _active : BOOL; 86 | error : BOOL; 87 | tip : BOOL; 88 | tip_disable_duration : BOOL; 89 | tip_disable_action : BOOL; 90 | END_STRUCT; 91 | SFCSimpleStepCType : STRUCT (*internal use*) 92 | t : TIME; 93 | _t : TIME; 94 | x : BOOL; 95 | _x : BOOL; 96 | x_activate : BOOL; 97 | force : BOOL; 98 | _force : BOOL; 99 | active : BOOL; 100 | _active : BOOL; 101 | error : BOOL; 102 | tip : BOOL; 103 | tip_disable_duration : BOOL; 104 | tip_disable_action : BOOL; 105 | END_STRUCT; 106 | SFCSimpleStepCType3 : STRUCT (*internal use*) 107 | t : LREAL; 108 | _t : LREAL; 109 | tp : LREAL; 110 | x : BOOL; 111 | _x : BOOL; 112 | x_activate : {REDUND_UNREPLICABLE} BOOL; 113 | force : BOOL; 114 | _force : BOOL; 115 | active : BOOL; 116 | _active : BOOL; 117 | error : BOOL; 118 | tip : BOOL; 119 | tip_disable_duration : BOOL; 120 | tip_disable_action : BOOL; 121 | END_STRUCT; 122 | SFCTransitionCType : STRUCT (*internal use*) 123 | force : BOOL; 124 | _force : BOOL; 125 | active : BOOL; 126 | _active : BOOL; 127 | END_STRUCT; 128 | TimerType : STRUCT (*internal use*) 129 | ptime : LREAL; 130 | etime : LREAL; 131 | start : LREAL; 132 | in : USINT; 133 | q : USINT; 134 | END_STRUCT; 135 | 136 | ArFBStateInternalType : STRUCT (*fb state machine internal context*) 137 | ExecuteRef : UDINT; 138 | BusyRef : UDINT; 139 | DoneRef : UDINT; 140 | ErrorRef : UDINT; 141 | ActiveRef : UDINT; 142 | StatusRef : UDINT; 143 | FBCyclic : UDINT; 144 | AsyfumaState : UDINT; 145 | FBResetOut : UDINT; 146 | Argument : UDINT; 147 | State : UDINT; 148 | ExecutePrev : BOOL; 149 | END_STRUCT; 150 | 151 | ArFBAsyFuMaInternalType : STRUCT (*asynchronous function manager internal context*) 152 | State : UINT; 153 | Result : DINT; 154 | END_STRUCT; 155 | 156 | END_TYPE 157 | -------------------------------------------------------------------------------- /Logical/Libraries/runtime/runtime.var: -------------------------------------------------------------------------------- 1 | 2 | (*Common Functionblock Status*) 3 | VAR CONSTANT 4 | ERR_OK : UINT := 0; (*no error*) 5 | ERR_NOTIMPLEMENTED : UINT := 9999; (*function or function block not implemented*) 6 | ERR_FUB_ENABLE_FALSE : UINT := 16#FFFE; (*function block parameter "enable" is FALSE*) 7 | ERR_FUB_BUSY : UINT := 16#FFFF; (*function block still working*) 8 | ERR_FUB_REDUNDANT : UINT := 35688; (*This FUB can not be used on the standby CPU*) 9 | ERR_FB_NOT_IMPLEMENTED: DINT := -1070585592;(*function or function block not implemented for the target system*) 10 | END_VAR 11 | 12 | (*IEC 61131-3 Datatypes*) 13 | VAR CONSTANT 14 | IEC_DATATYPE_BOOL : UINT := 1; (*8 Bit containing a boolean value FALSE=0 or TRUE=1*) 15 | IEC_DATATYPE_SINT : UINT := 2; (*8 Bit signed integer*) 16 | IEC_DATATYPE_INT : UINT := 3; (*16 Bit signed integer*) 17 | IEC_DATATYPE_DINT : UINT := 4; (*32 Bit signed integer*) 18 | IEC_DATATYPE_USINT : UINT := 5; (*8 Bit unsigned integer*) 19 | IEC_DATATYPE_UINT : UINT := 6; (*16 Bit unsigned integer*) 20 | IEC_DATATYPE_UDINT : UINT := 7; (*32 Bit unsigned integer*) 21 | IEC_DATATYPE_REAL : UINT := 8; (*32 Bit floating point number*) 22 | IEC_DATATYPE_STRING : UINT := 9; (*Variable-length single-byte character string*) 23 | IEC_DATATYPE_ULINT : UINT := 10; (*64 Bit unsigned integer*) 24 | IEC_DATATYPE_DATE_AND_TIME : UINT := 11; (*32 Bit of Date in Seconds since 01.01.1970 00:00:00*) 25 | IEC_DATATYPE_TIME : UINT := 12; (*32 Bit of Time in ms*) 26 | IEC_DATATYPE_DATE : UINT := 13; (*32 Bit of Date (only)*) 27 | IEC_DATATYPE_LREAL : UINT := 14; (*64 Bit floating point number*) 28 | IEC_DATATYPE_TIME_OF_DAY: UINT := 16; (*32 Bit Time of day (only)*) 29 | IEC_DATATYPE_BYTE : UINT := 17; (*Bit string of length 8*) 30 | IEC_DATATYPE_WORD : UINT := 18; (*Bit string of length 16*) 31 | IEC_DATATYPE_DWORD : UINT := 19; (*Bit string of length 32*) 32 | IEC_DATATYPE_LWORD : UINT := 20; (*Bit string of length 64*) 33 | IEC_DATATYPE_WSTRING : UINT := 21; (*Variable-length double-byte character string*) 34 | IEC_DATATYPE_LINT : UINT := 23; (*64 Bit signed integer*) 35 | END_VAR 36 | -------------------------------------------------------------------------------- /Logical/Libraries/standard/binary.lby: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | standard.fun 6 | standard.typ 7 | standard.var 8 | 9 | -------------------------------------------------------------------------------- /Logical/Libraries/standard/standard.typ: -------------------------------------------------------------------------------- 1 | 2 | TYPE 3 | 4 | END_TYPE 5 | -------------------------------------------------------------------------------- /Logical/Libraries/standard/standard.var: -------------------------------------------------------------------------------- 1 | 2 | VAR CONSTANT 3 | 4 | END_VAR 5 | -------------------------------------------------------------------------------- /Logical/Libraries/sys_lib/binary.lby: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | sys_lib.fun 6 | sys_lib.typ 7 | sys_lib.var 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Logical/Libraries/sys_lib/sys_lib.typ: -------------------------------------------------------------------------------- 1 | 2 | TYPE 3 | MoVerStruc_typ : STRUCT 4 | version : ARRAY[0..9] OF USINT ; 5 | year : UINT ; 6 | month : USINT ; 7 | day : USINT ; 8 | reserve : USINT ; 9 | hour : USINT ; 10 | minute : USINT ; 11 | second : USINT ; 12 | END_STRUCT; 13 | ERR_xtyp : STRUCT 14 | err_nr : UINT ; 15 | err_info : UDINT ; 16 | t_name : ARRAY[0..4] OF SINT ; 17 | err_type : USINT ; 18 | err_year : UINT ; 19 | err_month : USINT ; 20 | err_day : USINT ; 21 | err_reserve : USINT ; 22 | err_hour : USINT ; 23 | err_minute : USINT ; 24 | err_second : USINT ; 25 | err_millisec : UINT ; 26 | err_microsec : UINT ; 27 | err_string : ARRAY[0..33] OF USINT ; 28 | END_STRUCT; 29 | ERR_typ : STRUCT 30 | err_nr : UINT ; 31 | err_info : UDINT ; 32 | t_name : ARRAY[0..4] OF SINT ; 33 | err_type : USINT ; 34 | err_year : UINT ; 35 | err_month : USINT ; 36 | err_day : USINT ; 37 | err_reserve : USINT ; 38 | err_hour : USINT ; 39 | err_minute : USINT ; 40 | err_second : USINT ; 41 | err_millisec : UINT ; 42 | err_microsec : UINT ; 43 | END_STRUCT; 44 | PV_xList_typ : STRUCT 45 | name : ARRAY[0..32] OF SINT ; (*name of the process variable*) 46 | data_typ : USINT ; (*PV data type (see PV_info())*) 47 | data_len : UDINT ; (*length of the PV in bytes*) 48 | dimension : UDINT ; (*number of array elements*) 49 | adress : UDINT ; (*physical address of the PV (for dynamic access)*) 50 | END_STRUCT; 51 | PV_List_typ : STRUCT 52 | name : ARRAY[0..13] OF SINT ; (*name of the PV*) 53 | tcnr : USINT ; (*PV resource*) 54 | grp : USINT ; (*group number of the PV (standard = 0)*) 55 | ident : UDINT ; (*PV ID number*) 56 | adress : UDINT ; (*physical address of the PV (for dynamic access)*) 57 | END_STRUCT; 58 | MO_List_typ : STRUCT 59 | name : ARRAY[0..13] OF SINT ; 60 | grp : USINT ; 61 | type : USINT ; 62 | state : USINT ; 63 | reserve : USINT ; 64 | adress : UDINT ; 65 | memtype : UDINT ; 66 | END_STRUCT; 67 | SYSxinfo_typ : STRUCT 68 | aws_name : ARRAY[0..5] OF SINT ; 69 | aws_type : ARRAY[0..1] OF SINT ; 70 | cpu_info : UDINT ; 71 | ma_globl_len : UINT ; 72 | md_globl_len : UINT ; 73 | os_len : UDINT ; 74 | user_len : UDINT ; 75 | tmp_len : UDINT ; 76 | eprom_len : UDINT ; 77 | fix_ram_len : UDINT ; 78 | END_STRUCT; 79 | RTCtime_typ : STRUCT 80 | year : UINT ; 81 | month : USINT ; 82 | day : USINT ; 83 | reserve : USINT ; 84 | hour : USINT ; 85 | minute : USINT ; 86 | second : USINT ; 87 | millisec : UINT ; 88 | microsec : UINT ; 89 | END_STRUCT; 90 | END_TYPE 91 | -------------------------------------------------------------------------------- /Logical/Libraries/sys_lib/sys_lib.var: -------------------------------------------------------------------------------- 1 | 2 | (*error codes of the SYS_LIB services*) 3 | VAR CONSTANT 4 | ERR_BUR_WRROW : UINT := 2061; (*illegal row*) 5 | ERR_BUR_WRCOL : UINT := 2062; (*illegal column*) 6 | ERR_BUR_WR_CHAR : UINT := 2063; (*invalid ASCII character*) 7 | ERR_BUR_NORTC : UINT := 2073; (*RTC not existing or uninitialized*) 8 | 9 | ERR_BUR_MO_NOTFOUND : UINT := 3019; (*module not found*) 10 | ERR_BUR_NOMEM : UINT := 3030; (*out of memory*) 11 | ERR_BUR_MEMVWBUSY : UINT := 3035; (*memory management busy*) 12 | ERR_BUR_ILLPTR : UINT := 3104; (*illegal data pointer in MEM_free*) 13 | 14 | ERR_BUR_ILLTKNR : UINT := 3300; (*illegal task-class number*) 15 | ERR_BUR_WROFFSET : UINT := 3301; (*illegal offset*) 16 | ERR_BUR_ILLSTATE : UINT := 3302; (*illegal state of object*) 17 | ERR_BUR_NOMSG : UINT := 3303; (*no message sent/received*) 18 | ERR_BUR_DUPOBJ : UINT := 3305; (*object exists*) 19 | ERR_BUR_TIMEOUT : UINT := 3304; (*timeout error*) 20 | ERR_BUR_EXISTS : UINT := 3306; (*entry exists*) 21 | ERR_BUR_LCOUNT : UINT := 3307; (*Linkcnt <> 0 in AVT_cancel ()*) 22 | ERR_BUR_BURNING : UINT := 3308; (*error burning module*) 23 | ERR_BUR_INVALIDMBX : UINT := 3309; (*invalid mailbox*) 24 | 25 | ERR_BUR_ILLBPTR : UINT := 3310; (*invalid base pointer*) 26 | ERR_BUR_ILLTYP : UINT := 3311; (*invalid I/O type*) 27 | ERR_BUR_ILLEXT : UINT := 3312; (*invalid ext. bit*) 28 | ERR_BUR_ILLVER : UINT := 3313; (*invalid version, e.g. BURTRAP V1.10 to SPSSW V1.05*) 29 | ERR_BUR_ILLLEN : UINT := 3314; (*invalid data length*) 30 | ERR_BUR_MAX_LCOUNT : UINT := 3315; (*AVT_attach: LCOUNT > 127*) 31 | ERR_BUR_AVT_FREE : UINT := 3316; (*AVT_release:LCOUNT = 0*) 32 | ERR_BUR_ILLPAR : UINT := 3317; (*illegal parameter*) 33 | ERR_BUR_INSTALL : UINT := 3318; (*error install datamodule*) 34 | ERR_BUR_WRONG_MODTYP : UINT := 3319; (*wrong module type*) 35 | 36 | ERR_BUR_OBJDEL : UINT := 3320; (*object already deleted*) 37 | ERR_BUR_ILLOBJ : UINT := 3324; (*object does not exist*) 38 | ERR_BUR_ILLOBJTYP : UINT := 3328; (*invalid object type*) 39 | ERR_BUR_NOENTRY : UINT := 3332; (*no entry*) 40 | ERR_BUR_TOOLONG_PVNAME : UINT := 3333; (*too long PV name*) 41 | ERR_BUR_ILLIDENT : UINT := 3336; (*illegal ident*) 42 | ERR_BUR_NOSMBUF : UINT := 3560; (*no more semaphore buffers*) 43 | ERR_BUR_NOSM : UINT := 3564; (*semaphore not available*) 44 | ERR_BUR_SMDEL : UINT := 3568; (*semaphore deleted*) 45 | ERR_BUR_NOTIME : UINT := 3584; (*time not available*) 46 | ERR_BUR_ILLDATE : UINT := 3588; (*date : out of range*) 47 | ERR_BUR_ILLTIME : UINT := 3592; (*time : out of range*) 48 | ERR_BUR_ILLTICKS : UINT := 3596; (*ticks : out of range*) 49 | 50 | ERR_BUR_MEM_ALLOC : UINT := 3600; (*not enough continuous memory*) 51 | ERR_BUR_TMP_ALLOC : UINT := 3601; (*not enough continuous memory*) 52 | ERR_BUR_MEM_FREE : UINT := 3700; (*invalid pointer/length*) 53 | ERR_BUR_TMP_FREE : UINT := 3701; (*invalid pointer/length*) 54 | END_VAR 55 | 56 | (*state for object PLC task*) 57 | VAR CONSTANT 58 | Z_ST_created : UINT := 1; (*object installed*) 59 | Z_ST_running : UINT := 2; (*object running*) 60 | Z_ST_blocked : UINT := 3; (*object stopped*) 61 | Z_ST_exist : UINT := 16#00; (*object exists*) 62 | Z_ST_installed : UINT := 16#82; (*temporary status during installation*) 63 | Z_ST_PVinstalled : UINT := 16#83; (*temporary status during installation*) 64 | Z_ST_IOinstalled : UINT := 16#84; (*temporary status during installation*) 65 | Z_ST_IOdeinstalled : UINT := 16#85; (*temporary status during installation*) 66 | Z_ST_PVdeinstalled : UINT := 16#86; (*temporary status during installation*) 67 | Z_ST_delete : UINT := 16#87; (*temporary status during installation*) 68 | Z_ST_stdebug : UINT := 16#88; (*temporary status during installation*) 69 | Z_ST_tmp_suspended : UINT := 16#90; (*object temporarily stopped*) 70 | END_VAR 71 | 72 | (*PV data types*) 73 | VAR CONSTANT 74 | PB_DT_STRUCT : UINT := 0; (*structure*) 75 | PB_DT_BOOL : UINT := 1; (*boolean*) 76 | PB_DT_INT8 : UINT := 2; (*integer8*) 77 | PB_DT_INT16 : UINT := 3; (*integer16*) 78 | PB_DT_INT32 : UINT := 4; (*integer32*) 79 | PB_DT_BYTE : UINT := 5; (*unsigned integer8*) 80 | PB_DT_WORD : UINT := 6; (*unsigned integer16*) 81 | PB_DT_LONG : UINT := 7; (*unsigned integer32*) 82 | PB_DT_FLOAT : UINT := 8; (*floating point*) 83 | PB_DT_VIS : UINT := 9; (*visible string*) 84 | PB_DT_OCTET : UINT := 10; (*octet string*) 85 | PB_DT_DATE : UINT := 11; (*date*) 86 | PB_DT_TIME : UINT := 12; (*time of day*) 87 | PB_DT_DIFF : UINT := 13; (*time difference*) 88 | PB_DT_BIT : UINT := 14; (*bit string*) 89 | PB_DT_ARRAY : UINT := 15; (*array*) 90 | END_VAR 91 | 92 | (*memory types*) 93 | VAR CONSTANT 94 | SYS_RAM : UINT := 1; (*RAM*) 95 | USER_ROM1 : UINT := 2; (*EPROM*) 96 | FIX_RAM : UINT := 5; (*fixed RAM*) 97 | END_VAR 98 | -------------------------------------------------------------------------------- /Logical/NETdevice/NetDevice/IEC.prg: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Main.st 6 | Variables.var 7 | 8 | -------------------------------------------------------------------------------- /Logical/NETdevice/NetDevice/Main.st: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/archive-br-automation-com/mappView-File-Explorer/70e2e9382c762073cd21ee18b4355a0e1b007424/Logical/NETdevice/NetDevice/Main.st -------------------------------------------------------------------------------- /Logical/NETdevice/NetDevice/Variables.var: -------------------------------------------------------------------------------- 1 | (*----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*) 2 | (*Local functions*) 3 | VAR 4 | DevLink_0 : DevLink; (*Link network device*) 5 | DevUnlink_0 : DevUnlink; (*Unlink network device*) 6 | IcmpPing_0 : IcmpPing; (*Ping network share*) 7 | PingTimer : TON_10ms; 8 | END_VAR 9 | (*----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*) 10 | (*Local variables*) 11 | VAR 12 | state_machine : netSTATE; 13 | device_param : STRING[200]; (*Connection path of network device*) 14 | END_VAR 15 | -------------------------------------------------------------------------------- /Logical/NETdevice/NetTypes.typ: -------------------------------------------------------------------------------- 1 | 2 | TYPE 3 | netSTATE : 4 | ( 5 | NET_WAIT, (*Function step: Wait for starting the Function chain*) 6 | NET_LINK_DEVICE, (*Function step: Link file device*) 7 | NET_UNLINK_DEVICE, (*Function step: Unlink the File Device from specific path*) 8 | NET_ERROR (*Function step: Jump to this step in every case of Error occuring in the Function chain*) 9 | ); 10 | netCMD : STRUCT 11 | connect : BOOL; (*Connect to network share*) 12 | disconnect : BOOL; (*Disconnect from network share*) 13 | error_reset : BOOL; (*Reset error*) 14 | END_STRUCT; 15 | netPAR : STRUCT 16 | server_name : STRING[80]; (*Use server name*) 17 | server_ip : STRING[80] := '192.168.0.10'; (*or IP address*) 18 | server_port : STRING[80]; (*Uses default port when empty*) 19 | server_protocol : STRING[80] := 'cifs'; (*Type of network connection*) 20 | server_domain : STRING[80]; (*Domain name*) 21 | server_share : STRING[80] := 'share'; (*Name of the shared folder*) 22 | user_name : STRING[80] := 'user'; (*User name*) 23 | user_password : STRING[80] := 'password'; (*User password*) 24 | enable_connect : BOOL; (*Enable button connect*) 25 | can_ping : BOOL; (*Indicates that the network share can be pinged*) 26 | is_linked : BOOL; (*Network share is connected*) 27 | END_STRUCT; 28 | netERR : STRUCT 29 | state : netSTATE; 30 | text : STRING[80]; (*Error text*) 31 | END_STRUCT; 32 | netMAIN : STRUCT 33 | CMD : netCMD; (*Command structure*) 34 | PAR : netPAR; (*Parameter structure*) 35 | ERR : netERR; (*Error structure*) 36 | status : UINT; 37 | END_STRUCT; 38 | END_TYPE 39 | -------------------------------------------------------------------------------- /Logical/NETdevice/NetVariables.var: -------------------------------------------------------------------------------- 1 | VAR 2 | PING_TIMEOUT : UINT := 200; (*Timeout for ping response*) 3 | NET : netMAIN; 4 | END_VAR 5 | -------------------------------------------------------------------------------- /Logical/NETdevice/Package.pkg: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | NetTypes.typ 6 | NetVariables.var 7 | NetDevice 8 | changelog.txt 9 | 10 | -------------------------------------------------------------------------------- /Logical/NETdevice/changelog.txt: -------------------------------------------------------------------------------- 1 | Next Version 2 | - Improved reconnecting process 3 | 4 | Version 0.3 5 | - Remove state variable from PAR structure 6 | - Added status variable to main structure 7 | - Added disconnect command 8 | - Ping is now executed all the time to detect connection interruption 9 | 10 | Version 0.2 11 | - Added ping support 12 | 13 | Version 0.1 14 | - First public release -------------------------------------------------------------------------------- /Logical/Package.pkg: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Global.typ 6 | Global.var 7 | Libraries 8 | mappView 9 | mappFileExplorer 10 | USBdevice 11 | NETdevice 12 | 13 | -------------------------------------------------------------------------------- /Logical/USBdevice/Package.pkg: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | UsbTypes.typ 6 | UsbVariables.var 7 | UsbDevice 8 | changelog.txt 9 | 10 | -------------------------------------------------------------------------------- /Logical/USBdevice/UsbDevice/IEC.prg: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | USBdevice.st 6 | USBdevice.var 7 | 8 | -------------------------------------------------------------------------------- /Logical/USBdevice/UsbDevice/USBdevice.var: -------------------------------------------------------------------------------- 1 | (*----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*) 2 | (*Local functions*) 3 | VAR 4 | TON_10ms_01 : TON_10ms; 5 | UsbNodeListGet_0 : UsbNodeListGet; (*Type of FUB UsbNodeListGet*) 6 | UsbNodeGet_0 : UsbNodeGet; (*Type of FUB UsbNodeGet*) 7 | DevLink_0 : DevLink; (*Type of FUB DevLink*) 8 | DevUnlink_0 : DevUnlink; (*Type of FUB DevUnlink*) 9 | END_VAR 10 | (*----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*) 11 | (*Local variables*) 12 | VAR 13 | state_machine : usbSTATE; (*State machine*) 14 | device_param : STRING[80]; (*Connection path of USB device*) 15 | device_name : STRING[40]; (*Connection path of USB device*) 16 | link_handle : ARRAY[1..USB_MAX_CNT] OF UDINT; (*Link handle for USB device*) 17 | usb_data : ARRAY[1..USB_MAX_CNT] OF usbNode_typ; (*Data of all available USB devices*) 18 | usb_data_old : ARRAY[1..USB_MAX_CNT] OF usbNode_typ; (*Old data of all available USB devices*) 19 | node_id_buffer : ARRAY[1..USB_MAX_CNT] OF UDINT; (*Different nodeIDs saved in array-elements*) 20 | is_linked : BOOL; (*Helper variable that indicates that a USB stick is linked*) 21 | node : USINT; (*Node number*) 22 | idx : USINT; 23 | tmpSTR : STRING[10]; 24 | END_VAR 25 | (*----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*) 26 | (*Local constants*) 27 | VAR CONSTANT 28 | BRvendorId : UINT := 1615; (*B&R vendor id*) 29 | BRproductId : UINT := 1001; (*B&R dongle product id*) 30 | END_VAR 31 | VAR 32 | ERR_MAX_DEVICE : UINT := 50000; (*Maximum number of dongles reached*) 33 | END_VAR 34 | -------------------------------------------------------------------------------- /Logical/USBdevice/UsbTypes.typ: -------------------------------------------------------------------------------- 1 | 2 | TYPE 3 | usbSTATE : 4 | ( 5 | USB_WAIT, (*Wait for starting the Function chain*) 6 | USB_CREATE_NODE_ID_LIST, (*Create a list of Node-IDs from all active USB devices*) 7 | USB_READ_DEVICE_DATA, (*Read out the specific data from the Node-IDs*) 8 | USB_CHECK_LINKED, (*Check if device is still connected*) 9 | USB_LINK_NEW, 10 | USB_LINK_DEVICE, (*Link file device*) 11 | USB_UNLINK_DEVICE, (*Unlink the File Device from specific path*) 12 | USB_ERROR (*Jump to this step in every case of Error occuring in the Function chain*) 13 | ); 14 | usbCMD : STRUCT 15 | auto_scan : BOOL := TRUE; (*Scan USB ports automatically*) 16 | error_reset : BOOL; (*Reset error*) 17 | END_STRUCT; 18 | usbPAR : STRUCT 19 | ignore_dongle : BOOL := TRUE; (*Ignoe B&R license dongle*) 20 | refresh_interval : UINT := 300; (*Intervall timer for USB device refresh*) 21 | is_connected : ARRAY[1..USB_MAX_CNT]OF BOOL; (*Shows if a USB stick is connected*) 22 | END_STRUCT; 23 | usbERR : STRUCT 24 | state : usbSTATE; (*State where the error occured*) 25 | text : STRING[80]; (*Error text*) 26 | END_STRUCT; 27 | usbMAIN : STRUCT 28 | CMD : usbCMD; (*Command structure*) 29 | PAR : usbPAR; (*Parameter structure*) 30 | ERR : usbERR; (*Error structure*) 31 | status : UINT; (*Current status*) 32 | END_STRUCT; 33 | END_TYPE 34 | -------------------------------------------------------------------------------- /Logical/USBdevice/UsbVariables.var: -------------------------------------------------------------------------------- 1 | VAR 2 | USB : usbMAIN; 3 | END_VAR 4 | VAR CONSTANT 5 | USB_MAX_CNT : USINT := 5; (*Maximum number of keys that are supported*) 6 | END_VAR 7 | -------------------------------------------------------------------------------- /Logical/USBdevice/changelog.txt: -------------------------------------------------------------------------------- 1 | Version 0.4 2 | - Remove state variable from PAR structure 3 | - Added status variable to main structure 4 | - Fixed USB reconnect issue 5 | 6 | Version 0.3 7 | - Fixed USB reconnect issue 8 | 9 | Version 0.2 10 | - Support for multiple usb sticks 11 | 12 | Version 0.1 13 | - First public release -------------------------------------------------------------------------------- /Logical/VCShared/AlarmGroups/AlarmSystem.alcfg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /Logical/VCShared/DataSources/DataSource.dso: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Logical/VCShared/Languages.vcr: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /Logical/VCShared/Package.vcp: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Logical/VCShared/TextGroups/AlarmAcknowledgeState.txtgrp: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /Logical/VCShared/TextGroups/AlarmBypassState.txtgrp: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Logical/VCShared/TextGroups/AlarmEvent.txtgrp: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /Logical/VCShared/TextGroups/AlarmState.txtgrp: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Logical/VCShared/TextGroups/DateTimeFormats.txtgrp: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /Logical/VCShared/TextGroups/httpURL_SDM.txtgrp: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /Logical/VCShared/UnitGroups/Mass.vcug: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | -------------------------------------------------------------------------------- /Logical/VCShared/UnitGroups/Memory.vcug: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | -------------------------------------------------------------------------------- /Logical/VCShared/UnitGroups/Power.vcug: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | -------------------------------------------------------------------------------- /Logical/mappFileExplorer/ExplorerTypes.typ: -------------------------------------------------------------------------------- 1 | 2 | TYPE 3 | ClientInfoType : STRUCT 4 | userId : WSTRING[80]; 5 | isValid : BOOL; 6 | ipAddress : WSTRING[15]; 7 | languageId : WSTRING[2]; 8 | screenResolution : WSTRING[32]; 9 | slotId : SINT; 10 | END_STRUCT; 11 | expSTATE : 12 | ( (*Explorer state machine*) 13 | EXP_WAIT, 14 | EXP_READ_DIR, 15 | EXP_READ_DIR_1, 16 | EXP_READ_DIR_2, 17 | EXP_READ_DIR_3, 18 | EXP_READ_DIR_4, 19 | EXP_DIR_CHANGE, 20 | EXP_COPY_ALL, 21 | EXP_FILE_COPY, 22 | EXP_FILE_DELETE, 23 | EXP_FILE_RENAME, 24 | EXP_FILE_VIEW, 25 | EXP_FILE_DOWNLOAD, 26 | EXP_FILE_DOWNLOAD_1, 27 | EXP_FILE_DOWNLOAD_2, 28 | EXP_FILE_DOWNLOAD_3, 29 | EXP_FILE_DOWNLOAD_4, 30 | EXP_FILE_DOWNLOAD_5, 31 | EXP_FILE_DOWNLOAD_DIR, 32 | EXP_FILE_UPLOAD, 33 | EXP_FILE_UPLOAD_1, 34 | EXP_FILE_UPLOAD_2, 35 | EXP_FILE_UPLOAD_3, 36 | EXP_FILE_UPLOAD_4, 37 | EXP_DIR_COPY, 38 | EXP_DIR_CREATE, 39 | EXP_DIR_DELETE, 40 | EXP_DIR_RENAME, 41 | EXP_OVERWRITE_1, 42 | EXP_OVERWRITE_2 43 | ); 44 | expERR : STRUCT (*Sub structure error*) 45 | text : STRING[150]; (* Error text *) 46 | state : expSTATE; (* Error step *) 47 | END_STRUCT; 48 | expCMD : STRUCT (*Sub structure commands*) 49 | refresh : BOOL; (*Read directory and file names from devices *) 50 | dir_change : BOOL; (*Change current directory *) 51 | dir_create : BOOL; (*Create a new directory *) 52 | copy : BOOL; (*Copy selected item from device a TO device b *) 53 | copy_all : BOOL; (*Copy all items from device a TO device b *) 54 | view_file : BOOL; (*View selected file in mappView*) 55 | delete : BOOL; (*Delete selected file *) 56 | rename : BOOL; (*Rename selected file*) 57 | download : BOOL; (*Download selected file*) 58 | upload : BOOL; (*Upload file to target*) 59 | END_STRUCT; 60 | expPAR : STRUCT (*Sub structure parameters*) 61 | device_active : STRING[40]; (*Active device name *) 62 | device_list : ARRAY[0..6]OF STRING[40]; (*List of all devices*) 63 | item_filter : STRING[EXPL_ITEM_LENGTH]; (*Only show files with this extension *) 64 | new_name : STRING[EXPL_ITEM_LENGTH]; (*Name for for directory create and rename*) 65 | dir_path : STRING[EXPL_DIR_PATH_LENGTH]; (*Current directory path *) 66 | END_STRUCT; 67 | expDAT : STRUCT (*Sub structure data*) 68 | item_list : ARRAY[0..EXPL_LIST_NUM]OF STRING[EXPL_ITEM_LENGTH]; (*List with file names *) 69 | item_size : ARRAY[0..EXPL_LIST_NUM]OF STRING[EXPL_SIZE_LENGTH]; (*List with file sizes*) 70 | item_num : UINT; (*Number of files displayed*) 71 | device_free : UINT; (*Free memory on device in MB*) 72 | device_size : UINT; (*Total memory size of device in MB*) 73 | END_STRUCT; 74 | expVIS : STRUCT (*Sub structure visualization*) 75 | item_selected : UINT; (*Current selected file *) 76 | enable_button_set_1 : BOOL; (*Enable or disable buttons copy and delete*) 77 | enable_button_set_2 : BOOL; (*Enable or disable buttons refresh and create*) 78 | view_file_path : STRING[EXPL_DIR_PATH_LENGTH]; (*Full path for viewing file*) 79 | view_file : BOOL; (*Show message box on error*) 80 | download_file_url : STRING[200]; (*File upload and download url*) 81 | upload_overwrite_request : BOOL; (*Show message box to overwrite file*) 82 | upload_overwrite_response : USINT; (*Response from message box overwrite file*) 83 | reload_upload : BOOL; (*Reload upload button*) 84 | double_click_event : USINT; (*Helper variable for double click in item list*) 85 | device_list : ARRAY[0..6]OF STRING[80]; (* Device name *) 86 | END_STRUCT; 87 | expMAIN : STRUCT (*Main explorer structure*) 88 | CMD : ARRAY[0..1]OF expCMD; (* Command structure *) 89 | PAR : ARRAY[0..1]OF expPAR; (* Parameter structure *) 90 | DAT : ARRAY[0..1]OF expDAT; (*Data structure*) 91 | VIS : ARRAY[0..1]OF expVIS; (*Visualization structure*) 92 | ERR : expERR; (* Error structure *) 93 | status_no : UINT; (*Shows the status as number*) 94 | status_text : STRING[50]; (*Shows the status as text*) 95 | END_STRUCT; 96 | END_TYPE 97 | -------------------------------------------------------------------------------- /Logical/mappFileExplorer/ExplorerVariables.var: -------------------------------------------------------------------------------- 1 | VAR CONSTANT 2 | EXPL_DIR_PATH_LENGTH : UINT := 200; (*Maximum length for the complete path *) 3 | EXPL_LIST_NUM : UINT := 100; (*Maximum number if files and folders that can be listed *) 4 | EXPL_ITEM_LENGTH : USINT := 50; (*Maximum length for a file or folder name *) 5 | EXPL_SIZE_LENGTH : USINT := 15; (*Maximum length for a file or folder size*) 6 | EXPL_UPLOAD_DOWNLOAD_SIZE : UDINT := 5000000; (*Maximum size of memory allocated for uploading and downloading files*) 7 | EXPL_DEVICE_LIST : ARRAY[0..6] OF STRING[40] := ['USER','SYSTEM','USB_DEVICE1','USB_DEVICE2','USB_DEVICE3','NET_DEVICE','']; (*List of predefined devices *) 8 | END_VAR 9 | VAR 10 | EXPL_VIEW_FILTER : ARRAY[0..9] OF STRING[5] := ['csv','xml','txt','bmp','jpg',5('')]; (*Files extensions than can be used with the view command*) 11 | EXPL : expMAIN; (*Explorer main structure*) 12 | END_VAR 13 | -------------------------------------------------------------------------------- /Logical/mappFileExplorer/FileExplorer/IEC.prg: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Main.st 6 | Variables.var 7 | LocalFunctions.fun 8 | LocalFunctions.st 9 | 10 | -------------------------------------------------------------------------------- /Logical/mappFileExplorer/FileExplorer/LocalFunctions.fun: -------------------------------------------------------------------------------- 1 | 2 | FUNCTION ReplaceString : BOOL 3 | VAR_INPUT 4 | dataSTR : UDINT; 5 | searchSTR : UDINT; 6 | replaceSTR : UDINT; 7 | first : BOOL; 8 | END_VAR 9 | VAR 10 | idx : UDINT; 11 | END_VAR 12 | END_FUNCTION 13 | 14 | FUNCTION IsInstr : BOOL 15 | VAR_INPUT 16 | string1 : UDINT; 17 | string2 : UDINT; 18 | END_VAR 19 | VAR 20 | idx : UDINT; 21 | END_VAR 22 | END_FUNCTION 23 | 24 | FUNCTION FindInMem : DINT 25 | VAR_INPUT 26 | data1 : UDINT; 27 | len1 : UDINT; 28 | data2 : UDINT; 29 | len2 : UDINT; 30 | direction : BOOL; 31 | END_VAR 32 | VAR 33 | idx : UDINT; 34 | END_VAR 35 | END_FUNCTION 36 | 37 | {REDUND_ERROR} FUNCTION CreateError : expSTATE (*TODO: Add your comment here*) (*$GROUP=User,$CAT=User,$GROUPICON=User.png,$CATICON=User.png*) 38 | VAR_INPUT 39 | nr : UINT; 40 | side : BOOL; 41 | step : expSTATE; 42 | text : STRING[150]; 43 | EXPL : REFERENCE TO expMAIN; 44 | END_VAR 45 | END_FUNCTION 46 | 47 | FUNCTION InsertRecName : BOOL 48 | VAR_INPUT 49 | EXPL : REFERENCE TO expMAIN; 50 | new_name : STRING[EXPL_ITEM_LENGTH]; 51 | size : STRING[15]; 52 | side : BOOL; 53 | END_VAR 54 | VAR 55 | idx : DINT; 56 | idy : DINT; 57 | lSort : DINT; 58 | END_VAR 59 | END_FUNCTION 60 | 61 | FUNCTION WorkingStatus : USINT 62 | VAR_INPUT 63 | EXPL : REFERENCE TO expMAIN; 64 | str : UDINT; 65 | animation : USINT; 66 | END_VAR 67 | END_FUNCTION 68 | 69 | FUNCTION CreateCompletePath : BOOL 70 | VAR_INPUT 71 | path : STRING[EXPL_DIR_PATH_LENGTH]; 72 | target : STRING[EXPL_ITEM_LENGTH]; 73 | return_path : UDINT; 74 | END_VAR 75 | VAR 76 | tmp : STRING[EXPL_ITEM_LENGTH]; 77 | END_VAR 78 | END_FUNCTION 79 | 80 | FUNCTION String2DataProvider : BOOL 81 | VAR_INPUT 82 | SourceString : UDINT; 83 | TargetString : UDINT; 84 | END_VAR 85 | END_FUNCTION 86 | -------------------------------------------------------------------------------- /Logical/mappFileExplorer/FileExplorer/Variables.var: -------------------------------------------------------------------------------- 1 | (*Local constants*) 2 | VAR CONSTANT 3 | OK : USINT := 0; (*Status OK *) 4 | FILTER_AUTO_REFRESH : BOOL := TRUE; (*Auto refresh when filter changes *) 5 | COPY_AUTO_SELECT : USINT := 1; (*Select target item after copying *) 6 | COPY_AUTO_REFRESH : USINT := 1; (*Refresh items after copying *) 7 | END_VAR 8 | (*Local Variables*) 9 | VAR 10 | side : BOOL := FALSE; (*Current side *) 11 | step : expSTATE := (0); (*Main step index *) 12 | animation : USINT := 0; (*Animation for working status *) 13 | do_select : USINT := 0; (*Select item after copying *) 14 | old_filter : ARRAY[0..1] OF STRING[EXPL_ITEM_LENGTH]; (*Track filter change *) 15 | has_oversized_items : BOOL; 16 | tmp_str1 : STRING[EXPL_DIR_PATH_LENGTH]; (* Temporary STRING variable *) 17 | tmp_str2 : STRING[EXPL_DIR_PATH_LENGTH]; (* Temporary STRING variable *) 18 | tmp_str3 : STRING[EXPL_DIR_PATH_LENGTH]; (* Temporary STRING variable *) 19 | tmp_str4 : STRING[EXPL_DIR_PATH_LENGTH]; (* Temporary STRING variable *) 20 | lx : UDINT := 0; (* Index *) 21 | ly : UINT; 22 | double_click_timer : TON_10ms; 23 | device_active_old : ARRAY[0..1] OF STRING[40]; 24 | response_header : httpResponseHeader_t; 25 | response_header_data : STRING[300]; 26 | download_timeout : TON_10ms; 27 | upload_delay : TON_10ms; 28 | upload_response : ARRAY[0..1] OF STRING[600]; 29 | file_name_start : UDINT; 30 | file_name_len : UDINT; 31 | file_data_start : UDINT; 32 | file_data_len : UDINT; 33 | dir_path : STRING[EXPL_DIR_PATH_LENGTH]; 34 | device_active : STRING[40]; 35 | item_name : STRING[EXPL_DIR_PATH_LENGTH]; 36 | END_VAR 37 | (*Local function calls*) 38 | VAR 39 | DInfo : DirInfo; 40 | DOpen : DirOpen; 41 | DRead : DirReadEx; 42 | DClose : DirClose; 43 | FWrite : FileWrite; 44 | FCreate : FileCreate; 45 | FOpen : FileOpen; 46 | FRead : FileReadEx; 47 | FClose : FileClose; 48 | FCopy : FileCopy; 49 | FDelete : FileDelete; 50 | FRename : FileRename; 51 | DCopy : DirCopy; 52 | DCreate : DirCreate; 53 | DDelete : DirDeleteEx; 54 | DRename : DirRename; 55 | DMemInfo : DevMemInfo; 56 | DevLink_0 : DevLink; 57 | lDirReadData : fiDIR_READ_EX_DATA; 58 | AsMemPartCreate_0 : AsMemPartCreate; 59 | AsMemPartAllocClear_0 : AsMemPartAllocClear; 60 | WebServiceUpload : ARRAY[0..1] OF httpService := [2((0))]; 61 | WebserviceDownload : httpService := (0); 62 | zipArchive_0 : zipArchive; 63 | END_VAR 64 | (*Local constants*) 65 | VAR CONSTANT 66 | YES : USINT := 1; 67 | NO : USINT := 2; 68 | SKIP : USINT := 3; 69 | ERR_EMPTY_ITEM : UINT := 50000; (*Selected item name is empty *) 70 | ERR_INVALID_ITEM_NAME : UINT := 50001; (*This is not a valid item name*) 71 | ERR_DEVICE_UNDEFINED : UINT := 50010; (*Device is not defined*) 72 | ERR_MAX_FILES_REACHED : UINT := 50100; (*Maximum number of files reached*) 73 | ERR_NAME_EXCEEDS_MAX : UINT := 50200; (*File name exceeds maximum length*) 74 | ERR_DIR_EXCEEDS_MAX : UINT := 50201; (*Directory name exceeds maximum length*) 75 | ERR_PATH_EXCEEDS_MAX : UINT := 50202; (*Directory path exceeds maximum length*) 76 | ERR_PATH_CRITICAL : UINT := 50203; (*Directory path critical error*) 77 | ERR_PATH_RECURSIVE : UINT := 50204; (*Can not copy directory into itself*) 78 | ERR_MEM_ALLOC : UINT := 50300; (*Memory allocation for file upload and download failed*) 79 | ERR_MEM_DOWNLOAD : UINT := 50310; (*Size of download file exceeds maximum*) 80 | ERR_TIMEOUT_DOWNLOAD : UINT := 50320; (*Download response timed out*) 81 | ERR_DIR_DOWNLOAD_INVALID : UINT := 50331; (*This is not a valid directory for downloading*) 82 | ERR_POS_NAME_UPLOAD : UINT := 50400; (*Can not find filename in upload response*) 83 | ERR_SIZE_NAME_UPLOAD : UINT := 50401; (*Can not determine end of filename in upload response*) 84 | ERR_LEN_NAME_UPLOAD : UINT := 50402; (*Filename is too long in upload response*) 85 | ERR_POS_DATA_UPLOAD : UINT := 50403; (*Can not find data in upload response*) 86 | ERR_SIZE_DATA_UPLOAD : UINT := 50404; (*Can not determine end of data in upload response*) 87 | ERR_MEM_UPLOAD : UINT := 50410; (*Size of upload file exceeds maximum size*) 88 | END_VAR 89 | -------------------------------------------------------------------------------- /Logical/mappFileExplorer/HowToImport.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/archive-br-automation-com/mappView-File-Explorer/70e2e9382c762073cd21ee18b4355a0e1b007424/Logical/mappFileExplorer/HowToImport.pdf -------------------------------------------------------------------------------- /Logical/mappFileExplorer/Package.pkg: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | ExplorerTypes.typ 6 | ExplorerVariables.var 7 | FileExplorer 8 | changelog.txt 9 | HowToImport.pdf 10 | 11 | -------------------------------------------------------------------------------- /Logical/mappFileExplorer/changelog.txt: -------------------------------------------------------------------------------- 1 | Version 1.9 2 | - Update to Automation Studio AS 4.12 and mapp 5.24 3 | 4 | Version 1.8 5 | - Update to Automation Studio AS 4.9 and runtime D4.90 6 | - Revert fix from build 1.7 since bug in AsHTTP is fixed in D4.90 7 | 8 | Version 1.7 9 | - Fixed data start offset in upload was not correct 10 | - Fixed upload file name can exceed EXPL_ITEM_LENGTH 11 | - Fixed upload crashing CPU when it exceeds EXPL_UPLOAD_DOWNLOAD_SIZE 12 | 13 | Version 1.6 14 | - Fixed reset button was disabled for network and USB 15 | - Fixed network root directory is showing all as directories 16 | - Fixed copy directory does not report error 17 | - Added ping OK button to network share configuration page 18 | - Network can now be disconnected with the Reset / Abort button 19 | 20 | Version 1.5 21 | - Update USB helper task 22 | - Update NET helper task 23 | - Prevent user from copying directories recursively 24 | 25 | Version 1.4 26 | - Added support for folder download 27 | - Renamed status to status_text and added status_no to show busy state and error numbers 28 | 29 | Version 1.3 30 | - Code cleanup 31 | - UI Tweaks 32 | - Added file device memory information 33 | - Added current directory entry to be compatible with network shares 34 | - Change from static IP to DHCP 35 | - Fixed filter text field and button is disabled when no files are visible 36 | - Fixed file size calculation 37 | - Fixed ReplaceString function call 38 | - Fixed error is not showing up in wait state 39 | - Fixed dir read and file write error is not reported 40 | 41 | Version 1.2 42 | - Fixed download not working when downloading the same file again 43 | - Fixed upload not working with large files > 1 MB 44 | 45 | Version 1.1 46 | - Fixed file open click event 47 | - Added support multiple USB sticks 48 | - Added message box when uploading or copying file that exists on target 49 | - Fixed button rename is not disabled when command is running 50 | 51 | Version 1.0 52 | - Added support for file download over mappView 53 | - Added support for file upload over mappView 54 | - Code cleanup 55 | 56 | Version 0.9 57 | - Added function to view files by double click or command 58 | 59 | Version 0.8 60 | - Added function for generating list box data provider 61 | - Fixed typos, cleaned up binding file 62 | - Created individual packages for NET and USB 63 | - Fixed enable/disable 64 | - Added message box before deleting an item 65 | 66 | Version 0.7 67 | - New function rename file or folder 68 | - Fixed memory leak when last entry in list is used 69 | - Code optimizations 70 | 71 | Version 0.6 72 | - Changed upper limit of USB polling interval 73 | - Removed obsolete error numbers 74 | - Replaced error numbers with constants 75 | - Removed obsolete variables 76 | - Fixed old_filter variable size 77 | - Fixed file size added to file name 78 | - Disable file device and filter during operation 79 | 80 | Version 0.5 81 | - Main task ported to structure text 82 | - Allow oversized names for files and folders 83 | - Fixed variables types 84 | - Applied python naming convention to all code 85 | 86 | Version 0.2 87 | - Added configuration for network connections 88 | - Code cleanup 89 | 90 | Version 0.1 91 | - First public release -------------------------------------------------------------------------------- /Logical/mappView/Layouts/Layout.layout: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Logical/mappView/Layouts/Package.pkg: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Layout.layout 6 | 7 | -------------------------------------------------------------------------------- /Logical/mappView/Package.pkg: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Layouts 6 | Widgets 7 | Resources 8 | Visualization 9 | 10 | -------------------------------------------------------------------------------- /Logical/mappView/Resources/Media/Package.pkg: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | screenshot_main.png 6 | screenshot_cfg.png 7 | 8 | -------------------------------------------------------------------------------- /Logical/mappView/Resources/Media/screenshot_cfg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/archive-br-automation-com/mappView-File-Explorer/70e2e9382c762073cd21ee18b4355a0e1b007424/Logical/mappView/Resources/Media/screenshot_cfg.png -------------------------------------------------------------------------------- /Logical/mappView/Resources/Media/screenshot_main.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/archive-br-automation-com/mappView-File-Explorer/70e2e9382c762073cd21ee18b4355a0e1b007424/Logical/mappView/Resources/Media/screenshot_main.png -------------------------------------------------------------------------------- /Logical/mappView/Resources/Package.pkg: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Texts 6 | Snippets 7 | Themes 8 | Media 9 | 10 | -------------------------------------------------------------------------------- /Logical/mappView/Resources/Snippets/Package.pkg: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Logical/mappView/Resources/Texts/Package.pkg: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Logical/mappView/Resources/Themes/BuRTheme1/BuRTheme1.theme: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Logical/mappView/Resources/Themes/BuRTheme1/Package.pkg: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | BuRTheme1.theme 6 | brease 7 | 8 | -------------------------------------------------------------------------------- /Logical/mappView/Resources/Themes/BuRTheme1/brease/BuRTheme1.stylesset: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /Logical/mappView/Resources/Themes/BuRTheme1/brease/Charts.styles: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 |