Switched to AS3.081 + new AR

Changed A10 from DI9322 to DM8324

Moved Heating Valve to A10

Added lightning for DG-EBS + Bad
This commit is contained in:
Michael Rest
2011-08-27 18:28:08 +02:00
parent 2947ccf2ef
commit 9755c0284f
176 changed files with 12089 additions and 10978 deletions

View File

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<?AutomationStudio Version=3.0.80.31 SP01?>
<?AutomationStudio Version=3.0.81.27 SP05?>
<ProjectSettings xmlns="http://br-automation.co.at/AS/ProjectSettings">
<Print Footer="%cPage: %p" Header="%lProject: %n%c%x" />
</ProjectSettings>

View File

@@ -76,19 +76,19 @@ Position X=0 Y=0 Width=0 Height=0 TabWidth Name=116 Type=142 Scope=71 Force=40 I
month USINT 0 " 0" 2 5 1 10 0 0
day USINT 0 " 0" 2 5 1 10 0 0
wday USINT 0 " 0" 2 5 1 10 0 0
hour USINT 0 " 15" 2 5 1 10 0 0
minute USINT 0 " 20" 2 5 1 10 0 0
hour USINT 0 " 19" 2 5 1 10 0 0
minute USINT 0 " 0" 2 5 1 10 0 0
second USINT 0 " 0" 2 5 1 10 0 0
millisec UINT 0 " 0" 2 6 1 10 0 0
microsec UINT 0 " 0" 2 6 1 10 0 0
bOn BOOL[0..9] 0 " *" 0 1 10 0 0 1
bOn[0] BOOL 0 " TRUE" 1 1 1 2 0 0
bOn[1] BOOL 0 " *" 1 1 1 2 0 0
bOn[2] BOOL 0 " *" 1 1 1 2 0 0
bOn[3] BOOL 0 " *" 1 1 1 2 0 0
bOn[4] BOOL 0 " *" 1 1 1 2 0 0
bOn[5] BOOL 0 " *" 1 1 1 2 0 0
bOn[6] BOOL 0 " *" 1 1 1 2 0 0
bOn[7] BOOL 0 " *" 1 1 1 2 0 0
bOn[8] BOOL 0 " *" 1 1 1 2 0 0
bOn[9] BOOL 0 " *" 1 1 1 2 0 0
bOn[1] BOOL 0 " FALSE" 1 1 1 2 0 0
bOn[2] BOOL 0 " FALSE" 1 1 1 2 0 0
bOn[3] BOOL 0 " FALSE" 1 1 1 2 0 0
bOn[4] BOOL 0 " FALSE" 1 1 1 2 0 0
bOn[5] BOOL 0 " FALSE" 1 1 1 2 0 0
bOn[6] BOOL 0 " FALSE" 1 1 1 2 0 0
bOn[7] BOOL 0 " FALSE" 1 1 1 2 0 0
bOn[8] BOOL 0 " FALSE" 1 1 1 2 0 0
bOn[9] BOOL 0 " FALSE" 1 1 1 2 0 0

View File

@@ -1,13 +1,16 @@
WATCH Ver=2.00 PLCName=PLC1 CPUName=CPU TaskName=heat
Position X=0 Y=0 Width=0 Height=0 TabWidth Name=231 Type=142 Scope=71 Force=40 Index=5 ASCIIString=0
Position X=0 Y=0 Width=0 Height=0 TabWidth Name=231 Type=142 Scope=71 Force=40 Index=11 ASCIIString=0
name type force value level type len format place expand specs
QPump BOOL 0 " FALSE" 0 1 1 2 1 0
iAITempAussen INT 1 " 209" 0 3 1 10 0 0
iAITempMWZ INT 1 " 238" 0 3 1 10 0 0
iAITempMBad INT 1 " 240" 0 3 1 10 0 0
iAITempMGang INT 1 " 241" 0 3 1 10 0 0
iAITempMKuch INT 1 " 244" 0 3 1 10 0 0
ldiQPumpStarts DINT 0 " 33" 0 4 1 10 1 0
ldiQPumpRuntimeHour DINT 0 " 715" 0 4 1 10 1 0
ldiQPumpRuntimeMS DINT 0 " 3387900" 0 4 1 10 1 0
iAITempAussen INT 1 " 264" 0 3 1 10 0 0
iAITempMWZ INT 1 " 258" 0 3 1 10 0 0
iAITempMBad INT 1 " 264" 0 3 1 10 0 0
iAITempMGang INT 1 " 271" 0 3 1 10 0 0
iAITempMKuch INT 1 " 263" 0 3 1 10 0 0
ldiQPumpStarts DINT 0 " 0" 0 4 1 10 1 0
ldiQPumpRuntimeHour DINT 0 " 0" 0 4 1 10 1 0
ldiQPumpRuntimeMS DINT 0 " 0" 0 4 1 10 1 0
A6 DO12Module 0 " *" 0 100 1 0 0 1
DOu BOOL[0..11] 0 " *" 1 1 12 0 0 1
DOu[8] BOOL 3 " FALSE" 2 1 1 2 0 0
gbPump BOOL 0 " FALSE" 0 1 1 2 0 0

View File

@@ -0,0 +1,3 @@
WATCH Ver=2.00 PLCName=PLC1 CPUName=CPU TaskName=m_OG
Position X=0 Y=0 Width=0 Height=0 TabWidth Name=109 Type=131 Scope=71 Force=40 Index=0 ASCIIString=0
name type force value level type len format place expand specs

View File

@@ -0,0 +1,7 @@
WATCH Ver=2.00 PLCName=PLC1 CPUName=CPU TaskName=m_bad1
Position X=0 Y=0 Width=0 Height=0 TabWidth Name=109 Type=131 Scope=71 Force=40 Index=4 ASCIIString=0
name type force value level type len format place expand specs
Q_Light BOOL 0 " TRUE" 0 1 1 2 1 0
A5 DO12Module 0 " *" 0 100 1 0 0 1
DOu BOOL[0..11] 0 " *" 1 1 12 0 0 1
DOu[11] BOOL 3 " TRUE" 2 1 1 2 0 0

View File

@@ -0,0 +1,3 @@
WATCH Ver=2.00 PLCName=PLC1 CPUName=CPU TaskName=th1
Position X=0 Y=0 Width=0 Height=0 TabWidth Name=116 Type=142 Scope=71 Force=40 Index=0 ASCIIString=0
name type force value level type len format place expand specs

View File

@@ -0,0 +1,3 @@
WATCH Ver=2.00 PLCName=PLC1 CPUName=CPU TaskName=w_sz
Position X=0 Y=0 Width=0 Height=0 TabWidth Name=109 Type=131 Scope=71 Force=40 Index=0 ASCIIString=0
name type force value level type len format place expand specs

View File

@@ -1,46 +1,53 @@
TYPE
DI12Module : STRUCT
bModuleOk :BOOL;
DIn :ARRAY[0..11] OF BOOL;
DI12Module : STRUCT
bModuleOk : BOOL;
DIn : ARRAY[0..11] OF BOOL;
END_STRUCT;
DO12Module : STRUCT
bModuleOk :BOOL;
DOu :ARRAY[0..11] OF BOOL;
DOuStat :ARRAY[0..11] OF BOOL;
DO12Module : STRUCT
bModuleOk : BOOL;
DOu : ARRAY[0..11] OF BOOL;
DOuStat : ARRAY[0..11] OF BOOL;
END_STRUCT;
DO6Module : STRUCT
bModuleOk :BOOL;
DOu :ARRAY[0..5] OF BOOL;
DOuStat :ARRAY[0..5] OF BOOL;
DMDI8DO4Module : STRUCT
bModuleOk : BOOL;
DIn : ARRAY[0..7] OF BOOL;
DOu : ARRAY[0..3] OF BOOL;
DOuStat : ARRAY[0..3] OF BOOL;
END_STRUCT;
Temp4Module : STRUCT
bModuleOk :BOOL;
iTemp :ARRAY[0..3] OF INT;
DO6Module : STRUCT
bModuleOk : BOOL;
DOu : ARRAY[0..5] OF BOOL;
DOuStat : ARRAY[0..5] OF BOOL;
END_STRUCT;
ethSTATISTICS_typ : STRUCT
bytesrecv :UDINT;
bytessend :UDINT;
packetsrecv :UDINT;
packetssend :UDINT;
mcpacketsrecv :UDINT;
mcpacketssend :UDINT;
errorrecv :UDINT;
errorsend :UDINT;
errorframe :UDINT;
errorcrc :UDINT;
collisions :UDINT;
latecollision :UDINT;
drops :UDINT;
lostcarrier :UDINT;
underflow :UDINT;
retry :UDINT;
noproto :UDINT;
intrecv :UDINT;
intsend :UDINT;
bufferrecv :UDINT;
buffersend :UDINT;
broadcasts :UDINT;
broadcaststop :UDINT;
reserve :ARRAY[0..9] OF UDINT;
Temp4Module : STRUCT
bModuleOk : BOOL;
iTemp : ARRAY[0..3] OF INT;
END_STRUCT;
ethSTATISTICS_typ : STRUCT
bytesrecv : UDINT;
bytessend : UDINT;
packetsrecv : UDINT;
packetssend : UDINT;
mcpacketsrecv : UDINT;
mcpacketssend : UDINT;
errorrecv : UDINT;
errorsend : UDINT;
errorframe : UDINT;
errorcrc : UDINT;
collisions : UDINT;
latecollision : UDINT;
drops : UDINT;
lostcarrier : UDINT;
underflow : UDINT;
retry : UDINT;
noproto : UDINT;
intrecv : UDINT;
intsend : UDINT;
bufferrecv : UDINT;
buffersend : UDINT;
broadcasts : UDINT;
broadcaststop : UDINT;
reserve : ARRAY[0..9] OF UDINT;
END_STRUCT;
END_TYPE

View File

@@ -7,7 +7,7 @@ VAR
A6 : DO12Module;
A7 : DI12Module;
A9 : Temp4Module;
A10 : DI12Module;
A10 : DMDI8DO4Module;
iAITempAussen : INT; (*Aussentemperatur*)
iAITempMWZ : INT; (*Michi Wohnzimmertemperatur*)
iAITempMBad : INT; (*Michi Badtemperatur*)

View File

@@ -1,5 +1,15 @@
FUNCTION_BLOCK CfgGetInaNode (*reads the node number from the AR registry for a INA device; asynchronous execution*)
VAR_INPUT
(********************************************************************
* COPYRIGHT -- Bernecker + Rainer
********************************************************************
* Library: AsARCfg
* File: AsARCfg.fun
* Author: B+R
********************************************************************
* Functions and function blocks of library AsARCfg
********************************************************************)
FUNCTION_BLOCK CfgGetInaNode (*reads the node number from the AR registry for a INA device; asynchronous execution*)
VAR_INPUT
enable : BOOL; (*enables execution*)
pDevice : UDINT; (*INA device name given as pointer (syntax: SL<x>.SS<y>.IF<z>)*)
END_VAR
@@ -55,7 +65,7 @@ FUNCTION_BLOCK CfgGetIPAddr (*reads IP address from the AR registry for Ether
END_FUNCTION_BLOCK
FUNCTION_BLOCK CfgSetIPAddr (*enters IP address into the AR registry for Ethernet device; asynchronous execution*)
VAR_INPUT
VAR_INPUT
enable : BOOL; (*enables execution*)
pDevice : UDINT; (*INA device name given as pointer (syntax: SL<x>.SS<y>.IF<z>)*)
pIPAddr : UDINT; (*IP address given as pointer, valid range "1.0.0.1" - "247.255.255.255"*)
@@ -92,8 +102,8 @@ FUNCTION_BLOCK CfgGetSubnetMask (*reads subnet mask from the AR registry for E
END_VAR
END_FUNCTION_BLOCK
FUNCTION_BLOCK CfgSetSubnetMask (*enters subnet mask into the AR registry for Ethernet device; asynchronous execution*)
VAR_INPUT
FUNCTION_BLOCK CfgSetSubnetMask (*enters subnet mask into the AR registry for Ethernet device; asynchronous execution*)
VAR_INPUT
enable : BOOL; (*enables execution*)
pDevice : UDINT; (*INA device name given as pointer (syntax: SL<x>.SS<y>.IF<z>)*)
pSubnetMask : UDINT; (*subnet mask given as a pointer, valid range "1.0.0.1" - "255.255.255.254"*)
@@ -446,13 +456,13 @@ FUNCTION_BLOCK CfgGetSntpsData (*returns whether the SNTP server is active*)
END_VAR
END_FUNCTION_BLOCK
FUNCTION_BLOCK CfgGetTimeZone
FUNCTION_BLOCK CfgGetTimeZone
VAR_INPUT
enable : BOOL; (*enables execution*)
END_VAR
VAR_OUTPUT
timezoneID : UINT;
timezoneID : UINT;
status : UINT; (*execution status: ERR_OK, ERR_FUB_ENABLE_FALSE, ERR_FUB_BUSY, 0xXXXX = see help*)
END_VAR
@@ -463,11 +473,11 @@ FUNCTION_BLOCK CfgGetTimeZone
END_VAR
END_FUNCTION_BLOCK
FUNCTION_BLOCK CfgSetTimeZone
FUNCTION_BLOCK CfgSetTimeZone
VAR_INPUT
enable : BOOL; (*enables execution*)
timezoneID : UINT;
option : UDINT;
timezoneID : UINT;
option : UDINT;
END_VAR
VAR_OUTPUT
@@ -481,15 +491,15 @@ FUNCTION_BLOCK CfgSetTimeZone
END_VAR
END_FUNCTION_BLOCK
FUNCTION_BLOCK CfgGetTimeZoneInfo
FUNCTION_BLOCK CfgGetTimeZoneInfo
VAR_INPUT
enable : BOOL; (*enables execution*)
timezoneID : UINT;
timezoneID : UINT;
END_VAR
VAR_OUTPUT
gmt : INT;
gmtDst : INT;
gmt : INT;
gmtDst : INT;
status : UINT; (*execution status: ERR_OK, ERR_FUB_ENABLE_FALSE, ERR_FUB_BUSY, 0xXXXX = see help*)
END_VAR
@@ -500,16 +510,16 @@ FUNCTION_BLOCK CfgGetTimeZoneInfo
END_VAR
END_FUNCTION_BLOCK
FUNCTION_BLOCK CfgGetTimeZoneEntry
FUNCTION_BLOCK CfgGetTimeZoneEntry
VAR_INPUT
enable : BOOL; (*enables execution*)
timezoneID : UINT;
year : UINT;
timezoneID : UINT;
year : UINT;
END_VAR
VAR_OUTPUT
dateDst : DATE_AND_TIME;
dateNormal : DATE_AND_TIME;
dateDst : DATE_AND_TIME;
dateNormal : DATE_AND_TIME;
status : UINT; (*execution status: ERR_OK, ERR_FUB_ENABLE_FALSE, ERR_FUB_BUSY, 0xXXXX = see help*)
END_VAR
@@ -520,13 +530,13 @@ FUNCTION_BLOCK CfgGetTimeZoneEntry
END_VAR
END_FUNCTION_BLOCK
FUNCTION_BLOCK CfgGetDst
FUNCTION_BLOCK CfgGetDst
VAR_INPUT
enable : BOOL; (*enables execution*)
END_VAR
VAR_OUTPUT
dst : BOOL;
dst : BOOL;
status : UINT; (*execution status: ERR_OK, ERR_FUB_ENABLE_FALSE, ERR_FUB_BUSY, 0xXXXX = see help*)
END_VAR
@@ -537,11 +547,11 @@ FUNCTION_BLOCK CfgGetDst
END_VAR
END_FUNCTION_BLOCK
FUNCTION_BLOCK CfgSetDst
FUNCTION_BLOCK CfgSetDst
VAR_INPUT
enable : BOOL; (*enables execution*)
dst : BOOL;
option : UDINT;
dst : BOOL;
option : UDINT;
END_VAR
VAR_OUTPUT
@@ -575,7 +585,7 @@ FUNCTION_BLOCK CfgGetCIFSDomain (*cifs - reads domain name from the AR regist
END_FUNCTION_BLOCK
FUNCTION_BLOCK CfgSetCIFSDomain (*cifs - enters domain into the AR registry; asynchronous execution*)
VAR_INPUT
VAR_INPUT
enable : BOOL; (*enables execution*)
pDomain : UDINT; (*Domainname given as pointer*)
isWorkgroup : USINT; (*specifies if Workgroup or Domain cfgOPTION_NON_WORKGROUP, cfgOPTION_WORKGROUP*)
@@ -614,7 +624,7 @@ FUNCTION_BLOCK CfgGetCIFSDefaultuser (*cifs - reads default user from the AR reg
END_FUNCTION_BLOCK
FUNCTION_BLOCK CfgSetCIFSDefaultuser (*cifs - enters default user into the AR registry; asynchronous execution*)
VAR_INPUT
VAR_INPUT
enable : BOOL; (*enables execution*)
pDefaultuser : UDINT; (*Default Username given as pointer*)
pDefaultpassword : UDINT; (*Default Password given as a pointer*)
@@ -633,7 +643,7 @@ FUNCTION_BLOCK CfgSetCIFSDefaultuser (*cifs - enters default user into the AR re
END_FUNCTION_BLOCK
FUNCTION_BLOCK CfgSetDhcpServer (*dhcp - starts or stops dhcp server*)
VAR_INPUT
VAR_INPUT
enable : BOOL; (*enables execution*)
start : UDINT; (*1 = start server; 0 = stop server*)
option : UDINT; (*options: cfgOPTION_VOLATILE, cfgOPTION_NON_VOLATILE*)
@@ -651,7 +661,7 @@ FUNCTION_BLOCK CfgSetDhcpServer (*dhcp - starts or stops dhcp server*)
END_FUNCTION_BLOCK
FUNCTION_BLOCK CfgSetDhcpsData (*dhcp - configures dhcp server*)
VAR_INPUT
VAR_INPUT
enable : BOOL; (*enables execution*)
pInterfaceList : UDINT; (*provided interfaces*)
pLeases : UDINT; (*provided leases*)
@@ -671,7 +681,7 @@ FUNCTION_BLOCK CfgSetDhcpsData (*dhcp - configures dhcp server*)
END_FUNCTION_BLOCK
FUNCTION_BLOCK CfgGetDhcpsData (*dhcp - reads configuration of dhcp server*)
VAR_INPUT
VAR_INPUT
enable : BOOL; (*enables execution*)
pInterfaceList : UDINT; (*provided interfaces*)
len : UDINT; (*length of the string (pInterfaces)*)
@@ -726,3 +736,282 @@ FUNCTION_BLOCK CfgGetSdmStatus (*returns whether the system diagnostics manage
i_tmp : UDINT; (*internal variable*)
END_VAR
END_FUNCTION_BLOCK
FUNCTION CfgClearNV : UINT (*clear non volatile data*)
END_FUNCTION
FUNCTION_BLOCK CfgSetSdmColor (*set the system diagnostics manager color scheme*)
VAR_INPUT
enable : BOOL; (*enables execution*)
red : UDINT; (*red value (0-255)*)
green : UDINT; (*green value (0-255)*)
blue : UDINT; (*blue value (0-255)*)
Option : UDINT; (*options: cfgOPTION_VOLATILE, cfgOPTION_NON_VOLATILE*)
END_VAR
VAR_OUTPUT
status : UINT; (*execution status: ERR_OK, ERR_FUB_ENABLE_FALSE, 0xXXXX = see help*)
END_VAR
VAR
i_state : UINT; (*internal variable*)
i_result : UINT; (*internal variable*)
i_tmp : UDINT; (*internal variable*)
END_VAR
END_FUNCTION_BLOCK
FUNCTION_BLOCK CfgGetSdmColor (*get the system diagnostics manager color scheme*)
VAR_INPUT
enable : BOOL; (*enables execution*)
END_VAR
VAR_OUTPUT
status : UINT; (*execution status: ERR_OK, ERR_FUB_ENABLE_FALSE, 0xXXXX = see help*)
red : UDINT; (*red value (0-255)*)
green : UDINT; (*green value (0-255)*)
blue : UDINT; (*blue value (0-255)*)
END_VAR
VAR
i_state : UINT; (*internal variable*)
i_result : UINT; (*internal variable*)
i_tmp : UDINT; (*internal variable*)
END_VAR
END_FUNCTION_BLOCK
FUNCTION_BLOCK CfgGetSdmCustomData1 (*sdm - get custom data 1 *)
VAR_INPUT
enable : BOOL; (*enables execution*)
pDevice : UDINT; (*Devicename given as a pointer*)
lenDevice : UDINT; (*length of the string (pDevice) -> ideally, Len = 255*)
pFile : UDINT; (*Filename given as a pointer*)
lenFile : UDINT; (*length of the string (pFile) -> ideally, Len = 255*)
pDatamodule : UDINT; (*Datamodulename given as a pointer*)
lenDatamodule : UDINT; (*length of the string (pDatamodule) -> ideally, Len = 255*)
END_VAR
VAR_OUTPUT
status : UINT; (*execution status: ERR_OK, ERR_FUB_ENABLE_FALSE, ERR_FUB_BUSY, 0xXXXX = see help*)
END_VAR
VAR
i_state : UINT; (*internal variable*)
i_result : UINT; (*internal variable*)
i_tmp : UDINT; (*internal variable*)
END_VAR
END_FUNCTION_BLOCK
FUNCTION_BLOCK CfgSetSdmCustomData1 (*sdm - set custom data 1 *)
VAR_INPUT
enable : BOOL; (*enables execution*)
pDevice : UDINT; (*Devicename given as a pointer*)
pFile : UDINT; (*Filename given as a pointer*)
pDatamodule : UDINT; (*Datamodulename given as a pointer*)
Option : UDINT; (*options: cfgOPTION_VOLATILE, cfgOPTION_NON_VOLATILE*)
END_VAR
VAR_OUTPUT
status : UINT; (*execution status: ERR_OK, ERR_FUB_ENABLE_FALSE, ERR_FUB_BUSY, 0xXXXX = see help*)
END_VAR
VAR
i_state : UINT; (*internal variable*)
i_result : UINT; (*internal variable*)
i_tmp : UDINT; (*internal variable*)
END_VAR
END_FUNCTION_BLOCK
FUNCTION_BLOCK CfgGetSdmCustomData2 (*sdm - get custom data 2 *)
VAR_INPUT
enable : BOOL; (*enables execution*)
pDevice : UDINT; (*Devicename given as a pointer*)
lenDevice : UDINT; (*length of the string (pDevice) -> ideally, Len = 255*)
pFile : UDINT; (*Filename given as a pointer*)
lenFile : UDINT; (*length of the string (pFile) -> ideally, Len = 255*)
pDatamodule : UDINT; (*Datamodulename given as a pointer*)
lenDatamodule : UDINT; (*length of the string (pDatamodule) -> ideally, Len = 255*)
END_VAR
VAR_OUTPUT
status : UINT; (*execution status: ERR_OK, ERR_FUB_ENABLE_FALSE, ERR_FUB_BUSY, 0xXXXX = see help*)
END_VAR
VAR
i_state : UINT; (*internal variable*)
i_result : UINT; (*internal variable*)
i_tmp : UDINT; (*internal variable*)
END_VAR
END_FUNCTION_BLOCK
FUNCTION_BLOCK CfgSetSdmCustomData2 (*sdm - set custom data 2 *)
VAR_INPUT
enable : BOOL; (*enables execution*)
pDevice : UDINT; (*Devicename given as a pointer*)
pFile : UDINT; (*Filename given as a pointer*)
pDatamodule : UDINT; (*Datamodulename given as a pointer*)
Option : UDINT; (*options: cfgOPTION_VOLATILE, cfgOPTION_NON_VOLATILE*)
END_VAR
VAR_OUTPUT
status : UINT; (*execution status: ERR_OK, ERR_FUB_ENABLE_FALSE, ERR_FUB_BUSY, 0xXXXX = see help*)
END_VAR
VAR
i_state : UINT; (*internal variable*)
i_result : UINT; (*internal variable*)
i_tmp : UDINT; (*internal variable*)
END_VAR
END_FUNCTION_BLOCK
FUNCTION_BLOCK CfgGetWebMimeType (*webserver - set mime type *)
VAR_INPUT
enable : BOOL; (*enables execution*)
pFileExtension : UDINT; (*Fileextension gives a pointer*)
pMimeType : UDINT; (*MimeType given as a pointer*)
len : UDINT; (*length of the string (pMimeType) -> ideally, Len = 255*)
END_VAR
VAR_OUTPUT
status : UINT; (*execution status: ERR_OK, ERR_FUB_ENABLE_FALSE, ERR_FUB_BUSY, 0xXXXX = see help*)
END_VAR
VAR
i_state : UINT; (*internal variable*)
i_result : UINT; (*internal variable*)
i_tmp : UDINT; (*internal variable*)
END_VAR
END_FUNCTION_BLOCK
FUNCTION_BLOCK CfgSetWebMimeType (*webserver - get mime type*)
VAR_INPUT
enable : BOOL; (*enables execution*)
mode : BOOL; (*cfgWEB_MODE_MIME_DEL(0) or cfgWEB_MODE_MIME_ADD(1)*)
pFileExtension : UDINT; (*Fileextension gives a pointer*)
pMimeType : UDINT; (*MimeType given as a pointer*)
Option : UDINT; (*options: cfgOPTION_VOLATILE, cfgOPTION_NON_VOLATILE*)
END_VAR
VAR_OUTPUT
status : UINT; (*execution status: ERR_OK, ERR_FUB_ENABLE_FALSE, ERR_FUB_BUSY, 0xXXXX = see help*)
END_VAR
VAR
i_state : UINT; (*internal variable*)
i_result : UINT; (*internal variable*)
i_tmp : UDINT; (*internal variable*)
END_VAR
END_FUNCTION_BLOCK
FUNCTION_BLOCK CfgGetWebServerPort (*webserver - get port number*)
VAR_INPUT
enable : BOOL; (*enables execution*)
END_VAR
VAR_OUTPUT
status : UINT; (*execution status: ERR_OK, ERR_FUB_ENABLE_FALSE, ERR_FUB_BUSY, 0xXXXX = see help*)
port : UINT; (*port number*)
END_VAR
VAR
i_state : UINT; (*internal variable*)
i_result : UINT; (*internal variable*)
i_tmp : UDINT; (*internal variable*)
END_VAR
END_FUNCTION_BLOCK
FUNCTION_BLOCK CfgGetWebServerDevice (*webserver - get webserver root directory*)
VAR_INPUT
enable : BOOL; (*enables execution*)
pDevice : UDINT; (*Root directory name given as pointer*)
len : UDINT; (*length of the string (pDevice) -> ideally, Len = 255*)
END_VAR
VAR_OUTPUT
status : UINT; (*execution status: ERR_OK, ERR_FUB_ENABLE_FALSE, ERR_FUB_BUSY, 0xXXXX = see help*)
END_VAR
VAR
i_state : UINT; (*internal variable*)
i_result : UINT; (*internal variable*)
i_tmp : UDINT; (*internal variable*)
END_VAR
END_FUNCTION_BLOCK
FUNCTION_BLOCK CfgGetWebAspGoform (*webserver - get webserver ASP form*)
VAR_INPUT
enable : BOOL; (*enables execution*)
END_VAR
VAR_OUTPUT
status : UINT; (*execution status: ERR_OK, ERR_FUB_ENABLE_FALSE, ERR_FUB_BUSY, 0xXXXX = see help*)
mode : UINT; (*webserver - get webserver ASP form*)
END_VAR
VAR
i_state : UINT; (*internal variable*)
i_result : UINT; (*internal variable*)
i_tmp : UDINT; (*internal variable*)
END_VAR
END_FUNCTION_BLOCK
FUNCTION_BLOCK CfgSetWebAspGoform (*webserver - set webserver ASP form*)
VAR_INPUT
enable : BOOL; (*enables execution*)
mode : UINT; (*webserver - set webserver ASP form*)
Option : UDINT; (*options: cfgOPTION_VOLATILE, cfgOPTION_NON_VOLATILE*)
END_VAR
VAR_OUTPUT
status : UINT; (*execution status: ERR_OK, ERR_FUB_ENABLE_FALSE, ERR_FUB_BUSY, 0xXXXX = see help*)
END_VAR
VAR
i_state : UINT; (*internal variable*)
i_result : UINT; (*internal variable*)
i_tmp : UDINT; (*internal variable*)
END_VAR
END_FUNCTION_BLOCK
FUNCTION_BLOCK CfgGetWebServerStatus (*webserver - get webserver status*)
VAR_INPUT
enable : BOOL; (*enables execution*)
END_VAR
VAR_OUTPUT
status : UINT; (*execution status: ERR_OK, ERR_FUB_ENABLE_FALSE, ERR_FUB_BUSY, 0xXXXX = see help*)
mode : UINT; (*cfgWEB_MODE_DISABLED(0) cfgWEB_MODE_ENABLED(1)*)
END_VAR
VAR
i_state : UINT; (*internal variable*)
i_result : UINT; (*internal variable*)
i_tmp : UDINT; (*internal variable*)
END_VAR
END_FUNCTION_BLOCK
FUNCTION_BLOCK CfgSetWebServerStatus (*webserver - set webserver status*)
VAR_INPUT
enable : BOOL; (*enables execution*)
mode : UINT; (*cfgWEB_MODE_DISABLED(0) cfgWEB_MODE_ENABLED(1)*)
Option : UDINT; (*options: cfgOPTION_VOLATILE, cfgOPTION_NON_VOLATILE*)
END_VAR
VAR_OUTPUT
status : UINT; (*execution status: ERR_OK, ERR_FUB_ENABLE_FALSE, ERR_FUB_BUSY, 0xXXXX = see help*)
END_VAR
VAR
i_state : UINT; (*internal variable*)
i_result : UINT; (*internal variable*)
i_tmp : UDINT; (*internal variable*)
END_VAR
END_FUNCTION_BLOCK

View File

@@ -1,4 +1,14 @@
TYPE
(********************************************************************
* COPYRIGHT -- Bernecker + Rainer
********************************************************************
* Library: AsARCfg
* File: AsARCfg.typ
* Author: B+R
********************************************************************
* Data types of library AsARCfg
********************************************************************)
TYPE
cfgLease_typ : STRUCT (*lease structure*)
name : STRING[8]; (*name of lease (max 8)*)
startAdr : STRING[16]; (*start address of lease*)

View File

@@ -1,3 +1,13 @@
(********************************************************************
* COPYRIGHT -- Bernecker + Rainer
********************************************************************
* Library: AsARCfg
* File: AsARCfg.var
* Author: B+R
********************************************************************
* Local variables of library AsARCfg
********************************************************************)
VAR CONSTANT
cfgERR_DEVICE_NOT_EXIST : UINT := 29000; (*device doesn't exist or device not configured*)
cfgERR_DEVICE_INVALID : UINT := 29001; (*FBK "pDevice" parameter invalid (e.g. pDevice = 0)*)
@@ -25,12 +35,14 @@ VAR CONSTANT
cfgERR_LEASE_EXISTS : UINT := 29023; (*leasename already exists*)
cfgERR_LEASE_TIMEOUT : UINT := 29024; (*invalid lease timeout*)
cfgERR_SDM_FUNCTION_NOT_FOUND : UINT := 29026; (*used arsdm function was not found*)
cfgERR_CLEAR_NV_DATA : UINT := 29027; (*could not clear NV data*)
cfgETHBAUDRATE_AUTO : UDINT := 0; (*auto-detect*)
cfgETHBAUDRATE_10 : UDINT := 10; (*10 MBaud, half-duplex*)
cfgETHBAUDRATE_10FD : UDINT := 11; (*10 MBaud, full-duplex*)
cfgETHBAUDRATE_100 : UDINT := 100; (*100 MBaud, half-duplex*)
cfgETHBAUDRATE_100FD : UDINT := 101; (*100 MBaud, full-duplex*)
cfgETHBAUDRATE_1000FD : UDINT := 1001; (*1 GBaud, full-duplex*)
cfgOPTION_NON_VOLATILE : UDINT := 1; (*permanently sets parameters*)
cfgOPTION_VOLATILE : UDINT := 0; (*temporarily sets parameters*)
@@ -49,4 +61,14 @@ VAR CONSTANT
cfgSTATUS_SDM_ENABLED : USINT := 1; (*sdm is enabled*)
cfgSTATUS_SDM_DISABLED : USINT := 2; (*sdm is disabled*)
cfgWEB_MODE_GOFORM_DISABLE : UINT := 0; (*Webserver Goform disabled*)
cfgWEB_MODE_GOFORM_ENABLE : UINT := 1; (*Webserver Goform enabled*)
cfgWEB_MODE_GOFORM_NO_WRITE : UINT := 2; (*Webserver Goform readonly*)
cfgWEB_MODE_MIME_DEL : UINT := 0; (*Webserver delete MimeType*)
cfgWEB_MODE_MIME_ADD : UINT := 1; (*Webserver set MimeType*)
cfgWEB_MODE_DISABLED : UINT := 0; (*Webserver disabled*)
cfgWEB_MODE_ENABLED : UINT := 1; (*Webserver enabled*)
END_VAR

View File

@@ -31,6 +31,7 @@
#define cfgETHBAUDRATE_10FD 11U
#define cfgETHBAUDRATE_10 10U
#define cfgETHBAUDRATE_AUTO 0U
#define cfgERR_CLEAR_NV_DATA 29027U
#define cfgERR_SDM_FUNCTION_NOT_FOUND 29026U
#define cfgERR_LEASE_TIMEOUT 29024U
#define cfgERR_LEASE_EXISTS 29023U
@@ -75,6 +76,7 @@
_IEC_CONST unsigned long cfgETHBAUDRATE_10FD = 11U;
_IEC_CONST unsigned long cfgETHBAUDRATE_10 = 10U;
_IEC_CONST unsigned long cfgETHBAUDRATE_AUTO = 0U;
_IEC_CONST unsigned short cfgERR_CLEAR_NV_DATA = 29027U;
_IEC_CONST unsigned short cfgERR_SDM_FUNCTION_NOT_FOUND = 29026U;
_IEC_CONST unsigned short cfgERR_LEASE_TIMEOUT = 29024U;
_IEC_CONST unsigned short cfgERR_LEASE_EXISTS = 29023U;

View File

@@ -3,6 +3,10 @@
#ifndef _ASARCFG_
#define _ASARCFG_
#ifdef __cplusplus
extern "C"
{
#endif
#include <bur/plctypes.h>
@@ -14,6 +18,13 @@
/* Constants */
#ifdef _REPLACE_CONST
#define cfgWEB_MODE_ENABLED 1U
#define cfgWEB_MODE_DISABLED 0U
#define cfgWEB_MODE_MIME_ADD 1U
#define cfgWEB_MODE_MIME_DEL 0U
#define cfgWEB_MODE_GOFORM_NO_WRITE 2U
#define cfgWEB_MODE_GOFORM_ENABLE 1U
#define cfgWEB_MODE_GOFORM_DISABLE 0U
#define cfgSTATUS_SDM_DISABLED 2U
#define cfgSTATUS_SDM_ENABLED 1U
#define cfgOPTION_DISABLE_SDM 2U
@@ -26,11 +37,13 @@
#define cfgCONFIGMODE_MANUALLY 0U
#define cfgOPTION_VOLATILE 0U
#define cfgOPTION_NON_VOLATILE 1U
#define cfgETHBAUDRATE_1000FD 1001U
#define cfgETHBAUDRATE_100FD 101U
#define cfgETHBAUDRATE_100 100U
#define cfgETHBAUDRATE_10FD 11U
#define cfgETHBAUDRATE_10 10U
#define cfgETHBAUDRATE_AUTO 0U
#define cfgERR_CLEAR_NV_DATA 29027U
#define cfgERR_SDM_FUNCTION_NOT_FOUND 29026U
#define cfgERR_LEASE_TIMEOUT 29024U
#define cfgERR_LEASE_EXISTS 29023U
@@ -58,6 +71,13 @@
#define cfgERR_DEVICE_INVALID 29001U
#define cfgERR_DEVICE_NOT_EXIST 29000U
#else
_IEC_CONST unsigned short cfgWEB_MODE_ENABLED = 1U;
_IEC_CONST unsigned short cfgWEB_MODE_DISABLED = 0U;
_IEC_CONST unsigned short cfgWEB_MODE_MIME_ADD = 1U;
_IEC_CONST unsigned short cfgWEB_MODE_MIME_DEL = 0U;
_IEC_CONST unsigned short cfgWEB_MODE_GOFORM_NO_WRITE = 2U;
_IEC_CONST unsigned short cfgWEB_MODE_GOFORM_ENABLE = 1U;
_IEC_CONST unsigned short cfgWEB_MODE_GOFORM_DISABLE = 0U;
_IEC_CONST unsigned char cfgSTATUS_SDM_DISABLED = 2U;
_IEC_CONST unsigned char cfgSTATUS_SDM_ENABLED = 1U;
_IEC_CONST unsigned char cfgOPTION_DISABLE_SDM = 2U;
@@ -70,11 +90,13 @@
_IEC_CONST unsigned long cfgCONFIGMODE_MANUALLY = 0U;
_IEC_CONST unsigned long cfgOPTION_VOLATILE = 0U;
_IEC_CONST unsigned long cfgOPTION_NON_VOLATILE = 1U;
_IEC_CONST unsigned long cfgETHBAUDRATE_1000FD = 1001U;
_IEC_CONST unsigned long cfgETHBAUDRATE_100FD = 101U;
_IEC_CONST unsigned long cfgETHBAUDRATE_100 = 100U;
_IEC_CONST unsigned long cfgETHBAUDRATE_10FD = 11U;
_IEC_CONST unsigned long cfgETHBAUDRATE_10 = 10U;
_IEC_CONST unsigned long cfgETHBAUDRATE_AUTO = 0U;
_IEC_CONST unsigned short cfgERR_CLEAR_NV_DATA = 29027U;
_IEC_CONST unsigned short cfgERR_SDM_FUNCTION_NOT_FOUND = 29026U;
_IEC_CONST unsigned short cfgERR_LEASE_TIMEOUT = 29024U;
_IEC_CONST unsigned short cfgERR_LEASE_EXISTS = 29023U;
@@ -104,13 +126,11 @@
#endif
/* Variables */
/* Datatypes and datatypes of function blocks */
typedef struct cfgLease_typ
{
plcstring name[9];
{ plcstring name[9];
plcstring startAdr[17];
plcstring stopAdr[17];
plcstring subnetMask[17];
@@ -726,6 +746,227 @@ typedef struct CfgGetSdmStatus
plcbit enable;
} CfgGetSdmStatus_typ;
typedef struct CfgSetSdmColor
{
/* VAR_INPUT (analog) */
unsigned long red;
unsigned long green;
unsigned long blue;
unsigned long Option;
/* VAR_OUTPUT (analog) */
unsigned short status;
/* VAR (analog) */
unsigned short i_state;
unsigned short i_result;
unsigned long i_tmp;
/* VAR_INPUT (digital) */
plcbit enable;
} CfgSetSdmColor_typ;
typedef struct CfgGetSdmColor
{
/* VAR_OUTPUT (analog) */
unsigned short status;
unsigned long red;
unsigned long green;
unsigned long blue;
/* VAR (analog) */
unsigned short i_state;
unsigned short i_result;
unsigned long i_tmp;
/* VAR_INPUT (digital) */
plcbit enable;
} CfgGetSdmColor_typ;
typedef struct CfgGetSdmCustomData1
{
/* VAR_INPUT (analog) */
unsigned long pDevice;
unsigned long lenDevice;
unsigned long pFile;
unsigned long lenFile;
unsigned long pDatamodule;
unsigned long lenDatamodule;
/* VAR_OUTPUT (analog) */
unsigned short status;
/* VAR (analog) */
unsigned short i_state;
unsigned short i_result;
unsigned long i_tmp;
/* VAR_INPUT (digital) */
plcbit enable;
} CfgGetSdmCustomData1_typ;
typedef struct CfgSetSdmCustomData1
{
/* VAR_INPUT (analog) */
unsigned long pDevice;
unsigned long pFile;
unsigned long pDatamodule;
unsigned long Option;
/* VAR_OUTPUT (analog) */
unsigned short status;
/* VAR (analog) */
unsigned short i_state;
unsigned short i_result;
unsigned long i_tmp;
/* VAR_INPUT (digital) */
plcbit enable;
} CfgSetSdmCustomData1_typ;
typedef struct CfgGetSdmCustomData2
{
/* VAR_INPUT (analog) */
unsigned long pDevice;
unsigned long lenDevice;
unsigned long pFile;
unsigned long lenFile;
unsigned long pDatamodule;
unsigned long lenDatamodule;
/* VAR_OUTPUT (analog) */
unsigned short status;
/* VAR (analog) */
unsigned short i_state;
unsigned short i_result;
unsigned long i_tmp;
/* VAR_INPUT (digital) */
plcbit enable;
} CfgGetSdmCustomData2_typ;
typedef struct CfgSetSdmCustomData2
{
/* VAR_INPUT (analog) */
unsigned long pDevice;
unsigned long pFile;
unsigned long pDatamodule;
unsigned long Option;
/* VAR_OUTPUT (analog) */
unsigned short status;
/* VAR (analog) */
unsigned short i_state;
unsigned short i_result;
unsigned long i_tmp;
/* VAR_INPUT (digital) */
plcbit enable;
} CfgSetSdmCustomData2_typ;
typedef struct CfgGetWebMimeType
{
/* VAR_INPUT (analog) */
unsigned long pFileExtension;
unsigned long pMimeType;
unsigned long len;
/* VAR_OUTPUT (analog) */
unsigned short status;
/* VAR (analog) */
unsigned short i_state;
unsigned short i_result;
unsigned long i_tmp;
/* VAR_INPUT (digital) */
plcbit enable;
} CfgGetWebMimeType_typ;
typedef struct CfgSetWebMimeType
{
/* VAR_INPUT (analog) */
unsigned long pFileExtension;
unsigned long pMimeType;
unsigned long Option;
/* VAR_OUTPUT (analog) */
unsigned short status;
/* VAR (analog) */
unsigned short i_state;
unsigned short i_result;
unsigned long i_tmp;
/* VAR_INPUT (digital) */
plcbit enable;
plcbit mode;
} CfgSetWebMimeType_typ;
typedef struct CfgGetWebServerPort
{
/* VAR_OUTPUT (analog) */
unsigned short status;
unsigned short port;
/* VAR (analog) */
unsigned short i_state;
unsigned short i_result;
unsigned long i_tmp;
/* VAR_INPUT (digital) */
plcbit enable;
} CfgGetWebServerPort_typ;
typedef struct CfgGetWebServerDevice
{
/* VAR_INPUT (analog) */
unsigned long pDevice;
unsigned long len;
/* VAR_OUTPUT (analog) */
unsigned short status;
/* VAR (analog) */
unsigned short i_state;
unsigned short i_result;
unsigned long i_tmp;
/* VAR_INPUT (digital) */
plcbit enable;
} CfgGetWebServerDevice_typ;
typedef struct CfgGetWebAspGoform
{
/* VAR_OUTPUT (analog) */
unsigned short status;
unsigned short mode;
/* VAR (analog) */
unsigned short i_state;
unsigned short i_result;
unsigned long i_tmp;
/* VAR_INPUT (digital) */
plcbit enable;
} CfgGetWebAspGoform_typ;
typedef struct CfgSetWebAspGoform
{
/* VAR_INPUT (analog) */
unsigned short mode;
unsigned long Option;
/* VAR_OUTPUT (analog) */
unsigned short status;
/* VAR (analog) */
unsigned short i_state;
unsigned short i_result;
unsigned long i_tmp;
/* VAR_INPUT (digital) */
plcbit enable;
} CfgSetWebAspGoform_typ;
typedef struct CfgGetWebServerStatus
{
/* VAR_OUTPUT (analog) */
unsigned short status;
unsigned short mode;
/* VAR (analog) */
unsigned short i_state;
unsigned short i_result;
unsigned long i_tmp;
/* VAR_INPUT (digital) */
plcbit enable;
} CfgGetWebServerStatus_typ;
typedef struct CfgSetWebServerStatus
{
/* VAR_INPUT (analog) */
unsigned short mode;
unsigned long Option;
/* VAR_OUTPUT (analog) */
unsigned short status;
/* VAR (analog) */
unsigned short i_state;
unsigned short i_result;
unsigned long i_tmp;
/* VAR_INPUT (digital) */
plcbit enable;
} CfgSetWebServerStatus_typ;
/* Prototyping of functions and function blocks */
@@ -768,8 +1009,26 @@ void CfgSetDhcpsData(struct CfgSetDhcpsData* inst);
void CfgGetDhcpsData(struct CfgGetDhcpsData* inst);
void CfgSetSdmStatus(struct CfgSetSdmStatus* inst);
void CfgGetSdmStatus(struct CfgGetSdmStatus* inst);
void CfgSetSdmColor(struct CfgSetSdmColor* inst);
void CfgGetSdmColor(struct CfgGetSdmColor* inst);
void CfgGetSdmCustomData1(struct CfgGetSdmCustomData1* inst);
void CfgSetSdmCustomData1(struct CfgSetSdmCustomData1* inst);
void CfgGetSdmCustomData2(struct CfgGetSdmCustomData2* inst);
void CfgSetSdmCustomData2(struct CfgSetSdmCustomData2* inst);
void CfgGetWebMimeType(struct CfgGetWebMimeType* inst);
void CfgSetWebMimeType(struct CfgSetWebMimeType* inst);
void CfgGetWebServerPort(struct CfgGetWebServerPort* inst);
void CfgGetWebServerDevice(struct CfgGetWebServerDevice* inst);
void CfgGetWebAspGoform(struct CfgGetWebAspGoform* inst);
void CfgSetWebAspGoform(struct CfgSetWebAspGoform* inst);
void CfgGetWebServerStatus(struct CfgGetWebServerStatus* inst);
void CfgSetWebServerStatus(struct CfgSetWebServerStatus* inst);
unsigned short CfgClearNV();
#ifdef __cplusplus
};
#endif
#endif /* _ASARCFG_ */

View File

@@ -3,6 +3,10 @@
#ifndef _ASARCFG_
#define _ASARCFG_
#ifdef __cplusplus
extern "C"
{
#endif
#include <bur/plctypes.h>
@@ -26,11 +30,13 @@
#define cfgCONFIGMODE_MANUALLY 0U
#define cfgOPTION_VOLATILE 0U
#define cfgOPTION_NON_VOLATILE 1U
#define cfgETHBAUDRATE_1000FD 1001U
#define cfgETHBAUDRATE_100FD 101U
#define cfgETHBAUDRATE_100 100U
#define cfgETHBAUDRATE_10FD 11U
#define cfgETHBAUDRATE_10 10U
#define cfgETHBAUDRATE_AUTO 0U
#define cfgERR_CLEAR_NV_DATA 29027U
#define cfgERR_SDM_FUNCTION_NOT_FOUND 29026U
#define cfgERR_LEASE_TIMEOUT 29024U
#define cfgERR_LEASE_EXISTS 29023U
@@ -70,11 +76,13 @@
_IEC_CONST unsigned long cfgCONFIGMODE_MANUALLY = 0U;
_IEC_CONST unsigned long cfgOPTION_VOLATILE = 0U;
_IEC_CONST unsigned long cfgOPTION_NON_VOLATILE = 1U;
_IEC_CONST unsigned long cfgETHBAUDRATE_1000FD = 1001U;
_IEC_CONST unsigned long cfgETHBAUDRATE_100FD = 101U;
_IEC_CONST unsigned long cfgETHBAUDRATE_100 = 100U;
_IEC_CONST unsigned long cfgETHBAUDRATE_10FD = 11U;
_IEC_CONST unsigned long cfgETHBAUDRATE_10 = 10U;
_IEC_CONST unsigned long cfgETHBAUDRATE_AUTO = 0U;
_IEC_CONST unsigned short cfgERR_CLEAR_NV_DATA = 29027U;
_IEC_CONST unsigned short cfgERR_SDM_FUNCTION_NOT_FOUND = 29026U;
_IEC_CONST unsigned short cfgERR_LEASE_TIMEOUT = 29024U;
_IEC_CONST unsigned short cfgERR_LEASE_EXISTS = 29023U;
@@ -104,13 +112,11 @@
#endif
/* Variables */
/* Datatypes and datatypes of function blocks */
typedef struct cfgLease_typ
{
plcstring name[9];
{ plcstring name[9];
plcstring startAdr[17];
plcstring stopAdr[17];
plcstring subnetMask[17];
@@ -258,6 +264,9 @@ void CfgSetDefaultGateway(struct CfgSetDefaultGateway* inst);
void CfgGetMacAddr(struct CfgGetMacAddr* inst);
#ifdef __cplusplus
};
#endif
#endif /* _ASARCFG_ */

View File

@@ -2,7 +2,10 @@
/* do not change */
#ifndef ASSTRING_H_
#define ASSTRING_H_
#define _WEAK __attribute__((__weak__))
#ifdef __cplusplus
extern "C" {
#endif
#include <bur/plc.h>
@@ -23,5 +26,8 @@ unsigned short itoa(signed long value, unsigned long pString);
float atof(unsigned long pString);
signed long atoi(unsigned long pString);
#ifdef __cplusplus
};
#endif
#endif /* ASSTRING_H_ */

View File

@@ -2,7 +2,10 @@
/* do not change */
#ifndef ASSTRING_H_
#define ASSTRING_H_
#define _WEAK __attribute__((__weak__))
#ifdef __cplusplus
extern "C" {
#endif
#include <bur/plc.h>
@@ -23,5 +26,8 @@ unsigned short itoa(signed long value, unsigned long pString);
float atof(unsigned long pString);
signed long atoi(unsigned long pString);
#ifdef __cplusplus
};
#endif
#endif /* ASSTRING_H_ */

View File

@@ -2,7 +2,10 @@
/* do not change */
#ifndef ASSTRING_H_
#define ASSTRING_H_
#define _WEAK __attribute__((__weak__))
#ifdef __cplusplus
extern "C" {
#endif
#include <bur/plc.h>
@@ -23,5 +26,8 @@ unsigned short itoa(signed long value, unsigned long pString);
float atof(unsigned long pString);
signed long atoi(unsigned long pString);
#ifdef __cplusplus
};
#endif
#endif /* ASSTRING_H_ */

View File

@@ -1,12 +1,13 @@
(********************************************************************
* COPYRIGHT (C) BERNECKER + RAINER, AUSTRIA, A-5142 EGGELSBERG
* COPYRIGHT -- Bernecker + Rainer
********************************************************************
* Library: AsString
* File: AsString.fun
* Created: 11.11.2003
* Library: asstring
* File: asstring.fun
* Author: B+R
********************************************************************
* Functions and function blocks of library AsString
* Functions and function blocks of library asstring
********************************************************************)
FUNCTION ftoa : UINT (*converts a REAL value into a character string*)
VAR_INPUT
value :REAL; (*REAL (FLOAT) value to be converted into a character string*)

View File

@@ -1,14 +1,13 @@
(********************************************************************
* COPYRIGHT -- Bernecker + Rainer
********************************************************************
* Library: AsTcp
* File: AsTcp.fun
* Author: feinerr
* Created: 09.08.2006
* Library: AsTCP
* File: AsTCP.fun
* Author: B+R
********************************************************************
* Functions and function blocks of library AsTcp
* Functions and function blocks of library AsTCP
********************************************************************)
FUNCTION_BLOCK TcpOpen (*opens a TCP socket; asynchronous execution*)
VAR_INPUT
enable : BOOL; (*enables execution*)

View File

@@ -1,14 +1,13 @@
(********************************************************************
* COPYRIGHT -- Bernecker + Rainer
********************************************************************
* Library: AsTcp
* File: AsTcp.typ
* Author: feinerr
* Created: 09.08.2006
* Library: AsTCP
* File: AsTCP.typ
* Author: B+R
********************************************************************
* Data types of library AsTcp
* Data types of library AsTCP
********************************************************************)
TYPE
tcpLINGER_typ : STRUCT (*linger*)
lOnOff : UDINT; (*linger on/off*)

View File

@@ -1,14 +1,13 @@
(********************************************************************
* COPYRIGHT -- Bernecker + Rainer
********************************************************************
* Library: AsTcp
* File: AsTcp.var
* Author: feinerr
* Created: 09.08.2006
* Library: AsTCP
* File: AsTCP.var
* Author: B+R
********************************************************************
* Local variables of library AsTcp
* Local variables of library AsTCP
********************************************************************)
VAR CONSTANT
tcpERR_INVALID_IDENT : UINT := 32600; (*invalid ident*)
tcpERR_NOMORE_IDENTS : UINT := 32601; (*no more idents*)

View File

@@ -3,6 +3,10 @@
#ifndef _ASTCP_
#define _ASTCP_
#ifdef __cplusplus
extern "C"
{
#endif
#include <bur/plctypes.h>
@@ -104,19 +108,16 @@
#endif
/* Variables */
/* Datatypes and datatypes of function blocks */
typedef struct tcpLINGER_typ
{
unsigned long lOnOff;
{ unsigned long lOnOff;
unsigned long lLinger;
} tcpLINGER_typ;
typedef struct tcpSO_ADDRESS_typ
{
unsigned long pPort;
{ unsigned long pPort;
unsigned long pIpAddr;
} tcpSO_ADDRESS_typ;
@@ -252,6 +253,9 @@ void TcpRecv(struct TcpRecv* inst);
void TcpIoctl(struct TcpIoctl* inst);
#ifdef __cplusplus
};
#endif
#endif /* _ASTCP_ */

View File

@@ -3,6 +3,10 @@
#ifndef _ASTCP_
#define _ASTCP_
#ifdef __cplusplus
extern "C"
{
#endif
#include <bur/plctypes.h>
@@ -104,19 +108,16 @@
#endif
/* Variables */
/* Datatypes and datatypes of function blocks */
typedef struct tcpLINGER_typ
{
unsigned long lOnOff;
{ unsigned long lOnOff;
unsigned long lLinger;
} tcpLINGER_typ;
typedef struct tcpSO_ADDRESS_typ
{
unsigned long pPort;
{ unsigned long pPort;
unsigned long pIpAddr;
} tcpSO_ADDRESS_typ;
@@ -252,6 +253,9 @@ void TcpRecv(struct TcpRecv* inst);
void TcpIoctl(struct TcpIoctl* inst);
#ifdef __cplusplus
};
#endif
#endif /* _ASTCP_ */

View File

@@ -3,6 +3,10 @@
#ifndef _ASTIME_
#define _ASTIME_
#ifdef __cplusplus
extern "C"
{
#endif
#include <bur/plctypes.h>
@@ -46,13 +50,11 @@
#endif
/* Variables */
/* Datatypes and datatypes of function blocks */
typedef struct TIMEStructure
{
signed char day;
{ signed char day;
unsigned char hour;
unsigned char minute;
unsigned char second;
@@ -61,8 +63,7 @@ typedef struct TIMEStructure
} TIMEStructure;
typedef struct DTStructure
{
unsigned short year;
{ unsigned short year;
unsigned char month;
unsigned char day;
unsigned char wday;
@@ -303,6 +304,21 @@ typedef struct DstGetInfo
plcbit enable;
} DstGetInfo_typ;
typedef struct DstGetInfoDT
{
/* VAR_INPUT (analog) */
plcdt DT1;
/* VAR_OUTPUT (analog) */
unsigned char dstState;
unsigned short status;
/* VAR (analog) */
unsigned short i_state;
unsigned short i_result;
unsigned long i_tmp;
/* VAR_INPUT (digital) */
plcbit enable;
} DstGetInfoDT_typ;
/* Prototyping of functions and function blocks */
@@ -324,6 +340,7 @@ void UtcDTStructure_TO_LocalDT(struct UtcDTStructure_TO_LocalDT* inst);
void LocalDTStructure_TO_UtcDT(struct LocalDTStructure_TO_UtcDT* inst);
void TimeDeviceGetInfo(struct TimeDeviceGetInfo* inst);
void DstGetInfo(struct DstGetInfo* inst);
void DstGetInfoDT(struct DstGetInfoDT* inst);
plctime clock_ms();
unsigned long ascTIMEStructure(unsigned long pTIMEStructure, unsigned long pStr, unsigned long len);
unsigned long ascDTStructure(unsigned long pDTStructure, unsigned long pStr, unsigned long len);
@@ -337,6 +354,9 @@ unsigned long DiffT(plctime TIME2, plctime TIME1);
unsigned long DiffDT(plcdt DT2, plcdt DT1);
#ifdef __cplusplus
};
#endif
#endif /* _ASTIME_ */

View File

@@ -3,6 +3,10 @@
#ifndef _ASTIME_
#define _ASTIME_
#ifdef __cplusplus
extern "C"
{
#endif
#include <bur/plctypes.h>
@@ -46,13 +50,11 @@
#endif
/* Variables */
/* Datatypes and datatypes of function blocks */
typedef struct TIMEStructure
{
signed char day;
{ signed char day;
unsigned char hour;
unsigned char minute;
unsigned char second;
@@ -61,8 +63,7 @@ typedef struct TIMEStructure
} TIMEStructure;
typedef struct DTStructure
{
unsigned short year;
{ unsigned short year;
unsigned char month;
unsigned char day;
unsigned char wday;
@@ -121,6 +122,9 @@ unsigned long DiffT(plctime TIME2, plctime TIME1);
unsigned long DiffDT(plcdt DT2, plcdt DT1);
#ifdef __cplusplus
};
#endif
#endif /* _ASTIME_ */

View File

@@ -1,12 +1,13 @@
(********************************************************************
* COPYRIGHT (C) BERNECKER + RAINER, AUSTRIA, A-5142 EGGELSBERG
* COPYRIGHT -- Bernecker + Rainer
********************************************************************
* Library: AsTime
* File: AsTime.fun
* Created: 11.11.2003
* Library: astime
* File: astime.fun
* Author: B+R
********************************************************************
* Functions and function blocks of library AsTime
* Functions and function blocks of library astime
********************************************************************)
FUNCTION_BLOCK DTExSetTime (*sets the current time using the DATE_AND_TIME data type*)
VAR_INPUT
enable :BOOL; (*enables execution*)
@@ -271,8 +272,8 @@ END_FUNCTION
FUNCTION DT_TO_DTStructure : UDINT (*converts the DATE_AND_TIME data type to a "date" structure*)
VAR_INPUT
DT1 :DATE_AND_TIME; (*address of the calendar structure*)
pDTStructure :UDINT; (*date and time*)
DT1 :DATE_AND_TIME; (*date and time*)
pDTStructure :UDINT; (*address of the calendar structure*)
END_VAR
END_FUNCTION
@@ -323,3 +324,19 @@ FUNCTION_BLOCK DstGetInfo (*read information about time device*)
i_tmp :UDINT; (*internal variable*)
END_VAR
END_FUNCTION_BLOCK
FUNCTION_BLOCK DstGetInfoDT (*read information about time device*)
VAR_INPUT
enable :BOOL; (*enables execution*)
DT1 :DATE_AND_TIME; (*date and time in UTC*)
END_VAR
VAR_OUTPUT
dstState :USINT; (*timDAYLIGHT_SAVING_TIME, timNORMAL_TIME or timNO_DST*)
status :UINT; (*execution status: ERR_OK, ERR_FUB_ENABLE_FALSE, ERR_FUB_BUSY, 0xXXXX = see help*)
END_VAR
VAR
i_state :UINT; (*internal variable*)
i_result :UINT; (*internal variable*)
i_tmp :UDINT; (*internal variable*)
END_VAR
END_FUNCTION_BLOCK

View File

@@ -1,12 +1,13 @@
(********************************************************************
* COPYRIGHT (C) BERNECKER + RAINER, AUSTRIA, A-5142 EGGELSBERG
* COPYRIGHT -- Bernecker + Rainer
********************************************************************
* Library: AsTime
* File: AsTime.typ
* Created: 11.11.2003
* Library: astime
* File: astime.typ
* Author: B+R
********************************************************************
* Global data types of library AsTime
* Data types of library astime
********************************************************************)
TYPE
TIMEStructure : STRUCT (*time structure*)
day : SINT ; (*day (1-31)*)

View File

@@ -1,12 +1,13 @@
(********************************************************************
* COPYRIGHT (C) BERNECKER + RAINER, AUSTRIA, A-5142 EGGELSBERG
* COPYRIGHT -- Bernecker + Rainer
********************************************************************
* Library: AsTime
* File: AsTime.var
* Created: 11.11.2003
* Library: astime
* File: astime.var
* Author: B+R
********************************************************************
* Constants of library AsTime
* Local variables of library astime
********************************************************************)
VAR CONSTANT
timEXSETTIME_NO_LOGENTRY : USINT := 1;
timEXSETTIME_NO_OPTION : USINT := 0;

View File

@@ -1,12 +1,13 @@
(********************************************************************
* COPYRIGHT (C) BERNECKER + RAINER, AUSTRIA, A-5142 EGGELSBERG 120
* COPYRIGHT -- Bernecker + Rainer
********************************************************************
* Library: Convert
* File: Convert.fun
* Created: 11.11.2003
* Author: B+R
********************************************************************
* Functions and function blocks of library Convert
*******************************************************************.*)
FUNCTION swapDT : DATE_AND_TIME (*swaps the byte order of a DATE_AND_TIME value*)
VAR_INPUT
IN :DATE_AND_TIME; (*input value*)

View File

@@ -2,7 +2,10 @@
/* do not change */
#ifndef CONVERT_H_
#define CONVERT_H_
#define _WEAK __attribute__((__weak__))
#ifdef __cplusplus
extern "C" {
#endif
#include <bur/plc.h>
@@ -39,6 +42,8 @@ unsigned long swapUDINT(unsigned long IN);
float swapREAL(float IN);
#ifdef __cplusplus
};
#endif
#endif /* CONVERT_H_ */

View File

@@ -2,7 +2,10 @@
/* do not change */
#ifndef CONVERT_H_
#define CONVERT_H_
#define _WEAK __attribute__((__weak__))
#ifdef __cplusplus
extern "C" {
#endif
#include <bur/plc.h>
@@ -39,6 +42,8 @@ unsigned long swapUDINT(unsigned long IN);
float swapREAL(float IN);
#ifdef __cplusplus
};
#endif
#endif /* CONVERT_H_ */

View File

@@ -2,7 +2,10 @@
/* do not change */
#ifndef CONVERT_H_
#define CONVERT_H_
#define _WEAK __attribute__((__weak__))
#ifdef __cplusplus
extern "C" {
#endif
#include <bur/plc.h>
@@ -39,6 +42,8 @@ unsigned long swapUDINT(unsigned long IN);
float swapREAL(float IN);
#ifdef __cplusplus
};
#endif
#endif /* CONVERT_H_ */

View File

@@ -1,12 +1,13 @@
(********************************************************************
* COPYRIGHT (C) BERNECKER + RAINER, AUSTRIA, A-5142 EGGELSBERG
* COPYRIGHT -- Bernecker + Rainer
********************************************************************
* Library: Operator
* File: Operator.fun
* Created: 11.11.2003
* Library: operator
* File: operator.fun
* Author: B+R
********************************************************************
* Functions and function blocks of library Operator
* Functions and function blocks of library operator
********************************************************************)
FUNCTION SIZEOF : UDINT (*determines the size of a variable in bytes*)
VAR_INPUT
in :ANY; (*input value*)
@@ -71,13 +72,13 @@ FUNCTION MUL : ANY_NUM (*multiplies 2 or more variables*)
INx :ANY_NUM; (*input values*)
END_VAR
END_FUNCTION
FUNCTION SUB : ANY (*subtracts one variable from another variable*)
FUNCTION SUB : ANY (*subtracts one or more variables from another variable*)
VAR_INPUT
IN1 :ANY; (*value 1*)
IN2 :ANY; (*value 2*)
END_VAR
END_FUNCTION
FUNCTION DIV : ANY_NUM (*divides a variable by another variable*)
FUNCTION DIV : ANY_NUM (*divides a variable by one or more variables*)
VAR_INPUT
IN1 :ANY_NUM; (*dividend*)
IN2 :ANY_NUM; (*divisor*)
@@ -89,18 +90,18 @@ FUNCTION MOD : ANY_INT (*makes a remainder when dividing a variable by anothe
IN2 :ANY_INT; (*divisor*)
END_VAR
END_FUNCTION
FUNCTION MOVE : ANY (*copies the contents of the input variable to the output variable*)
FUNCTION MOVE : ANY (*copies the contents of the input variables to the corresponding output variables*)
VAR_INPUT
IN :ANY; (*input variable*)
END_VAR
END_FUNCTION
FUNCTION MAX : ANY (*determines the maximum value of two values*)
FUNCTION MAX : ANY (*determines the maximum value of two or more values*)
VAR_INPUT
IN1 :ANY; (*input value 1*)
IN2 :ANY; (*input value 2*)
END_VAR
END_FUNCTION
FUNCTION MIN : ANY (*determines the lowest value of two values*)
FUNCTION MIN : ANY (*determines the lowest value of two or more values*)
VAR_INPUT
IN1 :ANY; (*input value 1*)
IN2 :ANY; (*input value 2*)
@@ -126,31 +127,31 @@ FUNCTION MUX : ANY (*selects a value from several values*)
INx :ANY; (*input values*)
END_VAR
END_FUNCTION
FUNCTION GE : BOOL (*compares whether value 1 is greater or equal than value 2*)
FUNCTION GE : BOOL (*checks if the input values are in decreasing order*)
VAR_INPUT
IN1 :ANY; (*comparison value 1*)
IN2 :ANY; (*comparison value 2*)
END_VAR
END_FUNCTION
FUNCTION EQ : BOOL (*compares two values whether they are equal*)
FUNCTION EQ : BOOL (*compares two or more values whether they are equal*)
VAR_INPUT
IN1 :ANY; (*comparison value 1*)
IN2 :ANY; (*comparison value 2*)
END_VAR
END_FUNCTION
FUNCTION GT : BOOL (*compares whether value 1 is greater than value 2*)
FUNCTION GT : BOOL (*checks if the input values are in decreasing order*)
VAR_INPUT
IN1 :ANY; (*comparison value 1*)
IN2 :ANY; (*comparison value 2*)
END_VAR
END_FUNCTION
FUNCTION LE : BOOL (*compares whether value 1 is less or equal than value 2*)
FUNCTION LE : BOOL (*checks if the input values are in increasing order*)
VAR_INPUT
IN1 :ANY; (*comparison value 1*)
IN2 :ANY; (*comparison value 2*)
END_VAR
END_FUNCTION
FUNCTION LT : BOOL (*compares whether value 1 is less than value 2*)
FUNCTION LT : BOOL (*checks if the input values are in increasing order*)
VAR_INPUT
IN1 :ANY; (*comparison value 1*)
IN2 :ANY; (*comparison value 2*)

View File

@@ -9,10 +9,10 @@
/****************************************************************************/
#ifndef _SYS_LIB_H_
#define _SYS_LIB_H_
#ifdef __cplusplus
extern "C" {
#endif
#define _SYS_LIB_H_
#include <bur/plctypes.h>
@@ -657,7 +657,7 @@ void Bit2Byte (Bit2Byte_typ* Bit2Byte_ptr);
void Byte2Bit (Byte2Bit_typ* Byte2Bit_ptr);
#ifdef __cplusplus
}
};
#endif
#endif /* _SYS_LIB_H_ */

View File

@@ -9,10 +9,11 @@
/****************************************************************************/
#ifndef _SYS_LIB_H_
#ifdef __cplusplus
extern "C" {
#endif
#define _SYS_LIB_H_
#ifdef __cplusplus
extern "C"
{
#endif
#include <bur/plctypes.h>
@@ -154,6 +155,25 @@ typedef struct MO_List_typ {
UDINT memtype; /* memory type (0=OTP,1=RAM,2=EPROM,3=FLASH */
} MO_List_typ; /* 5=FIXRAM) */
/* structure for MO_info */
typedef struct MO_info
{
/* VAR_INPUT (analog) */
unsigned long pName;
unsigned char grp;
/* VAR_OUTPUT (analog) */
unsigned short status;
unsigned char type;
unsigned char state;
unsigned long memType;
unsigned long address;
unsigned long size;
unsigned char version[10];
struct RTCtime_typ date;
/* VAR_INPUT (digital) */
plcbit enable;
} MO_info_typ;
/* structure for PV_list */
typedef struct PV_List_typ {
char name[14]; /* name of the PV (ASCII) */
@@ -574,6 +594,7 @@ UINT SYSreset (BOOL enable, USINT mode);
USINT SYS_battery (void);
UINT MO_list (UINT prev_index, UINT *index, MO_List_typ *mol_p);
void MO_info (struct MO_info* pInst);
UINT KEY_enadis (BOOL mode);
UINT KEY_read (USINT keys[4]);
@@ -657,7 +678,8 @@ void Bit2Byte (Bit2Byte_typ* Bit2Byte_ptr);
void Byte2Bit (Byte2Bit_typ* Byte2Bit_ptr);
#ifdef __cplusplus
}
};
#endif
#endif /* _SYS_LIB_H_ */

View File

@@ -9,10 +9,11 @@
/****************************************************************************/
#ifndef _SYS_LIB_H_
#ifdef __cplusplus
extern "C" {
#endif
#define _SYS_LIB_H_
#ifdef __cplusplus
extern "C"
{
#endif
#include <bur/plctypes.h>
@@ -154,6 +155,25 @@ typedef struct MO_List_typ {
UDINT memtype; /* memory type (0=OTP,1=RAM,2=EPROM,3=FLASH */
} MO_List_typ; /* 5=FIXRAM) */
/* structure for MO_info */
typedef struct MO_info
{
/* VAR_INPUT (analog) */
unsigned long pName;
unsigned char grp;
/* VAR_OUTPUT (analog) */
unsigned short status;
unsigned char type;
unsigned char state;
unsigned long memType;
unsigned long address;
unsigned long size;
unsigned char version[10];
struct RTCtime_typ date;
/* VAR_INPUT (digital) */
plcbit enable;
} MO_info_typ;
/* structure for PV_list */
typedef struct PV_List_typ {
char name[14]; /* name of the PV (ASCII) */
@@ -574,7 +594,7 @@ UINT SYSreset (BOOL enable, USINT mode);
USINT SYS_battery (void);
UINT MO_list (UINT prev_index, UINT *index, MO_List_typ *mol_p);
void MO_info (struct MO_info* pInst);
UINT KEY_enadis (BOOL mode);
UINT KEY_read (USINT keys[4]);
@@ -657,7 +677,7 @@ void Bit2Byte (Bit2Byte_typ* Bit2Byte_ptr);
void Byte2Bit (Byte2Bit_typ* Byte2Bit_ptr);
#ifdef __cplusplus
}
};
#endif
#endif /* _SYS_LIB_H_ */

View File

@@ -1,12 +1,13 @@
(********************************************************************
* COPYRIGHT (C) BERNECKER + RAINER, AUSTRIA, A-5142 EGGELSBERG
* COPYRIGHT -- Bernecker + Rainer
********************************************************************
* Library: Sys_lib
* File: Sys_lib.fun
* Created: 11.11.2003
* Library: sys_lib
* File: sys_lib.fun
* Author: B+R
********************************************************************
* Functions and function blocks of library Sys_lib
* Functions and function blocks of library sys_lib
********************************************************************)
FUNCTION_BLOCK Byte2Bit (*converts a byte array into a bit array*)
VAR_INPUT
byteadr :UDINT; (*byte array address*)
@@ -494,6 +495,24 @@ FUNCTION MO_list : UINT (*browses all the B&R modules on the target system*)
END_VAR
END_FUNCTION
FUNCTION_BLOCK MO_info (*reads information of a B&R module on the target system*)
VAR_INPUT
enable :BOOL; (*enables execution*)
pName :UDINT; (*pointer to name of the B&R module*)
grp :USINT; (*group number for the object (standard = 0)*)
END_VAR
VAR_OUTPUT
status :UINT; (*execution status: ERR_OK, ERR_FUB_ENABLE_FALSE, 0xXXXX = see help*)
type :USINT; (*B&R module type*)
state :USINT; (*B&R module status*)
memType :UDINT; (*memory of the B&R module*)
address :UDINT; (*physical address of the B&R module*)
size :UDINT; (*size of the B&R module*)
version :ARRAY[0..9] OF USINT; (*B&R module version*)
date :RTCtime_typ; (*B&R module date*)
END_VAR
END_FUNCTION_BLOCK
FUNCTION SYS_battery : USINT (*indicates the status of the standard/rechargeable battery in the CPU and the battery in the APM*)
VAR_INPUT
dummy_input :USINT; (*required for operation in ladder diagram*)

View File

@@ -1,12 +1,13 @@
(********************************************************************
* COPYRIGHT (C) BERNECKER + RAINER, AUSTRIA, A-5142 EGGELSBERG
* COPYRIGHT -- Bernecker + Rainer
********************************************************************
* Library: Sys_lib
* File: Sys_lib.typ
* Created: 11.11.2003
* Library: sys_lib
* File: sys_lib.typ
* Author: B+R
********************************************************************
* Global data types of library Sys_lib
* Data types of library sys_lib
********************************************************************)
TYPE
MoVerStruc_typ : STRUCT
version : ARRAY[0..9] OF USINT ;

View File

@@ -3,6 +3,10 @@
#ifndef _BRSYSTEM_
#define _BRSYSTEM_
#ifdef __cplusplus
extern "C"
{
#endif
#include <bur/plctypes.h>
@@ -26,6 +30,8 @@
#define brC300 8U
#define brADDON 7U
#define brPANEL 6U
#define brGLOBAL_REMANENT_PV 5U
#define brLOCAL_REMANENT_PV 4U
#define brUSRROM 3U
#define brSYSROM 2U
#define brUSRRAM 1U
@@ -68,6 +74,8 @@
_IEC_CONST unsigned char brC300 = 8U;
_IEC_CONST unsigned char brADDON = 7U;
_IEC_CONST unsigned char brPANEL = 6U;
_IEC_CONST unsigned long brGLOBAL_REMANENT_PV = 5U;
_IEC_CONST unsigned long brLOCAL_REMANENT_PV = 4U;
_IEC_CONST unsigned long brUSRROM = 3U;
_IEC_CONST unsigned long brSYSROM = 2U;
_IEC_CONST unsigned long brUSRRAM = 1U;
@@ -100,7 +108,6 @@
#endif
/* Variables */
/* Datatypes and datatypes of function blocks */
@@ -243,6 +250,9 @@ void SysconfSet(struct SysconfSet* inst);
void BatteryInfo(struct BatteryInfo* inst);
#ifdef __cplusplus
};
#endif
#endif /* _BRSYSTEM_ */

View File

@@ -3,6 +3,10 @@
#ifndef _BRSYSTEM_
#define _BRSYSTEM_
#ifdef __cplusplus
extern "C"
{
#endif
#include <bur/plctypes.h>
@@ -26,6 +30,8 @@
#define brC300 8U
#define brADDON 7U
#define brPANEL 6U
#define brGLOBAL_REMANENT_PV 5U
#define brLOCAL_REMANENT_PV 4U
#define brUSRROM 3U
#define brSYSROM 2U
#define brUSRRAM 1U
@@ -68,6 +74,8 @@
_IEC_CONST unsigned char brC300 = 8U;
_IEC_CONST unsigned char brADDON = 7U;
_IEC_CONST unsigned char brPANEL = 6U;
_IEC_CONST unsigned long brGLOBAL_REMANENT_PV = 5U;
_IEC_CONST unsigned long brLOCAL_REMANENT_PV = 4U;
_IEC_CONST unsigned long brUSRROM = 3U;
_IEC_CONST unsigned long brSYSROM = 2U;
_IEC_CONST unsigned long brUSRRAM = 1U;
@@ -100,7 +108,6 @@
#endif
/* Variables */
/* Datatypes and datatypes of function blocks */
@@ -223,6 +230,9 @@ void PMemPut(struct PMemPut* inst);
void PMemSize(struct PMemSize* inst);
#ifdef __cplusplus
};
#endif
#endif /* _BRSYSTEM_ */

View File

@@ -1,13 +1,13 @@
(********************************************************************
* COPYRIGHT (C) BERNECKER + RAINER, AUSTRIA, A-5142 EGGELSBERG
* COPYRIGHT -- Bernecker + Rainer
********************************************************************
* Library: BrSystem
* File: BrSystem.fun
* Created: 11.11.2003
* Library: brsystem
* File: brsystem.fun
* Author: B+R
********************************************************************
* Functions and function blocks of library BrSystem
* Functions and function blocks of library brsystem
********************************************************************)
FUNCTION_BLOCK MEMInfo (*returns information about the memory areas available on the system*)
VAR_INPUT
enable :BOOL; (*enables execution*)

View File

@@ -1,12 +1,13 @@
(********************************************************************
* COPYRIGHT (C) BERNECKER + RAINER, AUSTRIA, A-5142 EGGELSBERG
* COPYRIGHT -- Bernecker + Rainer
********************************************************************
* Library: BrSystem
* File: BrSystem.var
* Created: 11.11.2003
* Library: brsystem
* File: brsystem.var
* Author: B+R
********************************************************************
* Constants of library BrSystem
* Local variables of library brsystem
********************************************************************)
VAR CONSTANT
brSYSCONF_SET_NON_VOLATILE : BOOL := TRUE; (*set permanent value*)
brERR_INVALID_PARAMETER : UINT := 27251; (*invalid parameter transferred*)
@@ -37,6 +38,8 @@ VAR CONSTANT
brUSRRAM : UDINT := 1; (*USRRAM memory type*)
brSYSROM : UDINT := 2; (*SYSROM memory type*)
brUSRROM : UDINT := 3; (*USRROM memory type*)
brLOCAL_REMANENT_PV : UDINT := 4; (*local REMMEM memory type*)
brGLOBAL_REMANENT_PV : UDINT := 5; (*global REMMEM memory type*)
brPANEL : USINT := 6; (*series recognition*)
brADDON : USINT := 7; (*series recognition*)
brC300 : USINT := 8; (*series recognition*)

View File

@@ -3,6 +3,9 @@
#ifndef _RUNTIME_
#define _RUNTIME_
#ifdef __cplusplus
extern "C" {
#endif
#include <bur/plctypes.h>
@@ -70,5 +73,8 @@
_IEC_CONST unsigned short IEC_DATATYPE_LINT = 23;
#endif
#ifdef __cplusplus
};
#endif
#endif /* _RUNTIME_ */

View File

@@ -3,6 +3,9 @@
#ifndef _RUNTIME_
#define _RUNTIME_
#ifdef __cplusplus
extern "C" {
#endif
#include <bur/plctypes.h>
@@ -70,5 +73,8 @@
_IEC_CONST unsigned short IEC_DATATYPE_LINT = 23;
#endif
#ifdef __cplusplus
};
#endif
#endif /* _RUNTIME_ */

View File

@@ -3,6 +3,9 @@
#ifndef _RUNTIME_
#define _RUNTIME_
#ifdef __cplusplus
extern "C" {
#endif
#include <bur/plctypes.h>
@@ -70,5 +73,8 @@
_IEC_CONST unsigned short IEC_DATATYPE_LINT = 23;
#endif
#ifdef __cplusplus
};
#endif
#endif /* _RUNTIME_ */

View File

@@ -1,12 +1,13 @@
(********************************************************************
* COPYRIGHT (C) BERNECKER + RAINER, AUSTRIA, A-5142 EGGELSBERG
* COPYRIGHT -- Bernecker + Rainer
********************************************************************
* Library: Runtime
* File: Runtime.fun
* Created: 11.11.2003
* Library: runtime
* File: runtime.fun
* Author: B+R
********************************************************************
* Functions and function blocks of library Runtime
* Functions and function blocks of library runtime
********************************************************************)
FUNCTION_BLOCK r_trig (*for internal use only - do not use this function in user programs*)
VAR_INPUT
CLK :BOOL;
@@ -114,3 +115,75 @@ FUNCTION_BLOCK SFCActionControl (*for internal use only - do not use this functi
dummy8 :USINT;
END_VAR
END_FUNCTION_BLOCK
FUNCTION_BLOCK SFCAC2 (*for internal use only - do not use this function in user programs*)
VAR_INPUT
N :BOOL;
R0 :BOOL;
S0 :BOOL;
L :BOOL;
D :BOOL;
P :BOOL;
P1 :BOOL;
P0 :BOOL;
SD :BOOL;
DS :BOOL;
SL :BOOL;
T :TIME;
END_VAR
VAR_OUTPUT
Q :BOOL;
A :BOOL;
END_VAR
VAR
S_FF_SET :USINT;
S_FF_R1 :USINT;
S_FF_Q :USINT;
L_TMR_PT :TIME;
L_TMR_ET :TIME;
L_TMR_STAR :TIME;
L_TMR_IN :USINT;
L_TMR_Q :USINT;
L_TMR_M :USINT;
D_TMR_PT :TIME;
D_TMR_ET :TIME;
D_TMR_STAR :TIME;
D_TMR_IN :USINT;
D_TMR_Q :USINT;
D_TMR_M :USINT;
SD_TMR_PT :TIME;
SD_TMR_ET :TIME;
SD_TMR_STA :TIME;
SD_TMR_IN :USINT;
SD_TMR_Q :USINT;
SD_TMR_M :USINT;
SD_FF_SET :USINT;
SD_FF_R1 :USINT;
SD_FF_Q1 :USINT;
DS_FF_SET :USINT;
DS_FF_R1 :USINT;
DS_FF_Q1 :USINT;
DS_TMR_PT :TIME;
DS_TMR_ET :TIME;
DS_TMR_STA :TIME;
DS_TMR_IN :USINT;
DS_TMR_Q :USINT;
DS_TMR_M :USINT;
SL_FF_SET :USINT;
SL_FF_R1 :USINT;
SL_FF_Q :USINT;
SL_TMR_PT :TIME;
SL_TMR_ET :TIME;
SL_TMR_STA :TIME;
SL_TMR_IN :USINT;
SL_TMR_Q :USINT;
SL_TMR_M :USINT;
P_TRIG_Q :USINT;
P_TRIG_M :USINT;
Q_TRIG_Q :USINT;
Q_TRIG_M :USINT;
P1_TRIG_Q :USINT;
P1_TRIG_M :USINT;
P0_TRIG_Q :USINT;
P0_TRIG_M :USINT;
END_VAR
END_FUNCTION_BLOCK

View File

@@ -1,12 +1,13 @@
(********************************************************************
* COPYRIGHT (C) BERNECKER + RAINER, AUSTRIA, A-5142 EGGELSBERG
* COPYRIGHT -- Bernecker + Rainer
********************************************************************
* Library: Runtime
* File: Runtime.typ
* Created: 11.11.2003
* Library: runtime
* File: runtime.typ
* Author: B+R
********************************************************************
* Data types of library Runtime
* Data types of library runtime
********************************************************************)
TYPE
SFCActionType : STRUCT (*internal use*)
x : BOOL ;
@@ -15,10 +16,63 @@ TYPE
_t : TIME ;
AC : SFCActionControl;
END_STRUCT;
SFCActionType2 : STRUCT (*internal use*)
x : BOOL ;
_x : BOOL ;
AC : SFCAC2 ;
END_STRUCT;
SFCActionCType : STRUCT (*internal use*)
x : BOOL ;
_x : BOOL ;
force : BOOL ;
_force : BOOL ;
active : BOOL ;
_active : BOOL ;
AC : SFCActionControl ;
END_STRUCT;
SFCActionCType2 : STRUCT (*internal use*)
x : BOOL ;
_x : BOOL ;
force : BOOL ;
_force : BOOL ;
active : BOOL ;
_active : BOOL ;
AC : SFCAC2 ;
END_STRUCT;
SFCStepType : STRUCT (*internal use*)
x : BOOL ;
t : TIME ;
_x : BOOL ;
_t : TIME ;
END_STRUCT;
SFCStepCType : STRUCT (*internal use*)
t : TIME ;
_t : TIME ;
inactive_actions : UDINT ;
_inactive_actions : UDINT ;
x : BOOL ;
_x : BOOL ;
force : BOOL ;
_force : BOOL ;
active : BOOL ;
_active : BOOL ;
error : BOOL ;
END_STRUCT;
SFCSimpleStepCType : STRUCT (*internal use*)
t : TIME ;
_t : TIME ;
x : BOOL ;
_x : BOOL ;
force : BOOL ;
_force : BOOL ;
active : BOOL ;
_active : BOOL ;
error : BOOL ;
END_STRUCT;
SFCTransitionCType : STRUCT (*internal use*)
force : BOOL ;
_force : BOOL ;
active : BOOL ;
_active : BOOL ;
END_STRUCT;
END_TYPE

View File

@@ -1,12 +1,13 @@
(********************************************************************
* COPYRIGHT (C) BERNECKER + RAINER, AUSTRIA, A-5142 EGGELSBERG
* COPYRIGHT -- Bernecker + Rainer
********************************************************************
* Library: Runtime
* File: Runtime.var
* Created: 09.08.2007
* Library: runtime
* File: runtime.var
* Author: B+R
********************************************************************
* Functions and function blocks of library Runtime
* Local variables of library runtime
********************************************************************)
(*Common Functionblock Status*)
VAR CONSTANT
ERR_OK : UINT := 0; (*no error*)

View File

@@ -2,7 +2,10 @@
/* do not change */
#ifndef STANDARD_H_
#define STANDARD_H_
#define _WEAK __attribute__((__weak__))
#ifdef __cplusplus
extern "C" {
#endif
#include <bur/plc.h>
@@ -252,6 +255,8 @@ void CTUD(CTUD_typ* inst);
void RF_TRIG(RF_TRIG_typ* inst);
#ifdef __cplusplus
};
#endif
#endif /* STANDARD_H_ */

View File

@@ -2,7 +2,10 @@
/* do not change */
#ifndef STANDARD_H_
#define STANDARD_H_
#define _WEAK __attribute__((__weak__))
#ifdef __cplusplus
extern "C" {
#endif
#include <bur/plc.h>
@@ -252,6 +255,8 @@ void CTUD(CTUD_typ* inst);
void RF_TRIG(RF_TRIG_typ* inst);
#ifdef __cplusplus
};
#endif
#endif /* STANDARD_H_ */

View File

@@ -2,7 +2,10 @@
/* do not change */
#ifndef STANDARD_H_
#define STANDARD_H_
#define _WEAK __attribute__((__weak__))
#ifdef __cplusplus
extern "C" {
#endif
#include <bur/plc.h>
@@ -252,6 +255,8 @@ void CTUD(CTUD_typ* inst);
void RF_TRIG(RF_TRIG_typ* inst);
#ifdef __cplusplus
};
#endif
#endif /* STANDARD_H_ */

View File

@@ -1,12 +1,13 @@
(********************************************************************
* COPYRIGHT (C) BERNECKER + RAINER, AUSTRIA, A-5142 EGGELSBERG
* COPYRIGHT -- Bernecker + Rainer
********************************************************************
* Library: Standard
* File: Standard.fun
* Created: 11.11.2003
* Library: standard
* File: standard.fun
* Author: B+R
********************************************************************
* Functions and function blocks of library Standard
* Functions and function blocks of library standard
********************************************************************)
FUNCTION_BLOCK RF_TRIG (*recognizes both edges of BOOL values*)
VAR_INPUT
CLK :BOOL; (*input signal of the edge to be recognized*)

View File

@@ -59,7 +59,7 @@ if ldiQPumpRuntimeMS >= 3600000 then
endif
A6.DOu[8] = TON_QPump.Q;
A10.DOu[0] = TON_QPump.Q;
gbPump = TON_QPump.Q;
END_PROGRAM

View File

@@ -4,8 +4,11 @@ FT_Speicher.CLK = A5.DOu[5]
FT_Speicher FUB F_TRIG()
;Mapping DI on local VAR
INKeyOnOff = A3.DIn[6] ;Toggle On / Off
INKeyOn = bM_CentralOff or bW_CentralOff or FT_Speicher.Q ;Bei Speicher Aus auch Einschalten
INKeyOnOff = A3.DIn[6] ;Toggle On / Off
INKeyOn = A10.DIn[2] or \\
bM_CentralOff or \\
bW_CentralOff or \\
(FT_Speicher.Q and bOn[1]);Bei Speicher Aus auch Einschalten
INKeyOff = False
;Build RT

View File

@@ -1,12 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<?AutomationStudio Version="2.4"?>
<DataPointTree xmlns="http://br-automation.co.at/AS/VC/Project">
<DataSourceRef Name="Local">
<Property Name="Description" Value=""/>
<Property Name="Reference" Value="Source[global].DataSource[Local].Item[]"/>
</DataSourceRef>
<DataSourceRef Name="Internal">
<Property Name="Description" Value=""/>
<Property Name="Reference" Value="Source[global].DataSource[Internal].Item[]"/>
</DataSourceRef>
</DataPointTree>

View File

@@ -1,7 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<?AutomationStudio Version="2.4"?>
<DataPoints xmlns="http://br-automation.co.at/AS/VC/Project" Name="Internal">
<Property Name="DefaultUpdateTime" Value="200"/>
<Property Name="Description" Value=""/>
<Property Name="TextGroup" Value="None"/>
</DataPoints>

View File

@@ -1,5 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<?AutomationStudio Version="2.4"?>
<DataSource xmlns="http://br-automation.co.at/AS/VC/Project" Name="Internal">
<Property Name="ClassId" Value="0x00000221"/>
<Property Name="IsIntern" Value="True" />
<Property Name="DefaultUpdateTime" Value="200" />
<Property Name="Description" Value="" />
<Property Name="TextGroup" Value="None" />
<DataPoints />
</DataSource>

View File

@@ -1,142 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<?AutomationStudio Version="2.4"?>
<DataPoints xmlns="http://br-automation.co.at/AS/VC/Project" Name="Local">
<Property Name="DefaultUpdateTime" Value="200"/>
<Property Name="Description" Value=""/>
<Property Name="TextGroup" Value="None"/>
<DataPoint Name="iAITempAussen">
<Property Name="DataPointConnections" Value="0"/>
<Property Name="DataType" Value="INTEGER"/>
<Property Name="Description" Value=""/>
<Property Name="TargetType" Value="INT"/>
<Property Name="UpdateTime" Value="Default"/>
<Property Name="UserID" Value="None"/>
</DataPoint>
<DataPoint Name="iAITempMWZ">
<Property Name="DataPointConnections" Value="0"/>
<Property Name="DataType" Value="INTEGER"/>
<Property Name="Description" Value=""/>
<Property Name="TargetType" Value="INT"/>
<Property Name="UpdateTime" Value="Default"/>
<Property Name="UserID" Value="None"/>
</DataPoint>
<DataPoint Name="iAITempMBad">
<Property Name="DataPointConnections" Value="0"/>
<Property Name="DataType" Value="INTEGER"/>
<Property Name="Description" Value=""/>
<Property Name="TargetType" Value="INT"/>
<Property Name="UpdateTime" Value="Default"/>
<Property Name="UserID" Value="None"/>
</DataPoint>
<DataPoint Name="iAITempMGang">
<Property Name="DataPointConnections" Value="0"/>
<Property Name="DataType" Value="INTEGER"/>
<Property Name="Description" Value=""/>
<Property Name="TargetType" Value="INT"/>
<Property Name="UpdateTime" Value="Default"/>
<Property Name="UserID" Value="None"/>
</DataPoint>
<DataPoint Name="iAITempMKuch">
<Property Name="DataPointConnections" Value="0"/>
<Property Name="DataType" Value="INTEGER"/>
<Property Name="Description" Value=""/>
<Property Name="TargetType" Value="INT"/>
<Property Name="UpdateTime" Value="Default"/>
<Property Name="UserID" Value="None"/>
</DataPoint>
<DataPoint Name="bM_CentralOff">
<Property Name="DataPointConnections" Value="0"/>
<Property Name="DataType" Value="BOOL"/>
<Property Name="Description" Value=""/>
<Property Name="TargetType" Value="BOOL"/>
<Property Name="UpdateTime" Value="Default"/>
<Property Name="UserID" Value="None"/>
</DataPoint>
<Folder Name="visualization">
<Property Name="Description" Value=""/>
<Property Name="FolderType" Value="Program"/>
<DataPoint Name="rTempAussen">
<Property Name="DPLimit" Value="Default"/>
<Property Name="DataPointConnections" Value="2"/>
<Property Name="DataType" Value="SCALED"/>
<Property Name="Description" Value=""/>
<Property Name="PLCUnit" Value="Source[relative:UnitGroup].Unit[Celsius]"/>
<Property Name="TargetType" Value="REAL"/>
<Property Name="UnitGroup" Value="Source[global].UnitGroup[Temperatures]"/>
<Property Name="UpdateTime" Value="Default"/>
<Property Name="UserID" Value="None"/>
</DataPoint>
<DataPoint Name="rTempMBad">
<Property Name="DPLimit" Value="Default"/>
<Property Name="DataPointConnections" Value="2"/>
<Property Name="DataType" Value="SCALED"/>
<Property Name="Description" Value=""/>
<Property Name="PLCUnit" Value="Source[relative:UnitGroup].Unit[Celsius]"/>
<Property Name="TargetType" Value="REAL"/>
<Property Name="UnitGroup" Value="Source[global].UnitGroup[Temperatures]"/>
<Property Name="UpdateTime" Value="Default"/>
<Property Name="UserID" Value="None"/>
</DataPoint>
<DataPoint Name="rTempMGang">
<Property Name="DPLimit" Value="Default"/>
<Property Name="DataPointConnections" Value="2"/>
<Property Name="DataType" Value="SCALED"/>
<Property Name="Description" Value=""/>
<Property Name="PLCUnit" Value="Source[relative:UnitGroup].Unit[Celsius]"/>
<Property Name="TargetType" Value="REAL"/>
<Property Name="UnitGroup" Value="Source[global].UnitGroup[Temperatures]"/>
<Property Name="UpdateTime" Value="Default"/>
<Property Name="UserID" Value="None"/>
</DataPoint>
<DataPoint Name="rTempMKuch">
<Property Name="DPLimit" Value="Default"/>
<Property Name="DataPointConnections" Value="2"/>
<Property Name="DataType" Value="SCALED"/>
<Property Name="Description" Value=""/>
<Property Name="PLCUnit" Value="Source[relative:UnitGroup].Unit[Celsius]"/>
<Property Name="TargetType" Value="REAL"/>
<Property Name="UnitGroup" Value="Source[global].UnitGroup[Temperatures]"/>
<Property Name="UpdateTime" Value="Default"/>
<Property Name="UserID" Value="None"/>
</DataPoint>
<DataPoint Name="rTempMWZ">
<Property Name="DPLimit" Value="Default"/>
<Property Name="DataPointConnections" Value="2"/>
<Property Name="DataType" Value="SCALED"/>
<Property Name="Description" Value=""/>
<Property Name="PLCUnit" Value="Source[relative:UnitGroup].Unit[Celsius]"/>
<Property Name="TargetType" Value="REAL"/>
<Property Name="UnitGroup" Value="Source[global].UnitGroup[Temperatures]"/>
<Property Name="UpdateTime" Value="Default"/>
<Property Name="UserID" Value="None"/>
</DataPoint>
</Folder>
<Folder Name="Wohnung">
<Property Name="Description" Value=""/>
<Property Name="FolderType" Value="Package"/>
<Folder Name="m_OG">
<Property Name="Description" Value=""/>
<Property Name="FolderType" Value="Program"/>
<DataPoint Name="INKeyOnOff">
<Property Name="DataPointConnections" Value="1"/>
<Property Name="DataType" Value="BOOL"/>
<Property Name="Description" Value=""/>
<Property Name="TargetType" Value="BOOL"/>
<Property Name="UpdateTime" Value="Default"/>
<Property Name="UserID" Value="None"/>
</DataPoint>
</Folder>
<Folder Name="m_wz">
<Property Name="Description" Value=""/>
<Property Name="FolderType" Value="Program"/>
<DataPoint Name="INKeyOnOff">
<Property Name="DataPointConnections" Value="0"/>
<Property Name="DataType" Value="BOOL"/>
<Property Name="Description" Value=""/>
<Property Name="TargetType" Value="BOOL"/>
<Property Name="UpdateTime" Value="Default"/>
<Property Name="UserID" Value="None"/>
</DataPoint>
</Folder>
</Folder>
</DataPoints>

View File

@@ -1,5 +1,158 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<?AutomationStudio Version="2.4"?>
<DataSource xmlns="http://br-automation.co.at/AS/VC/Project" Name="Local">
<Property Name="ClassId" Value="0x00000200"/>
<Property Name="IsIntern" Value="False" />
<Property Name="DefaultUpdateTime" Value="200" />
<Property Name="Description" Value="" />
<Property Name="TextGroup" Value="None" />
<DataPoints>
<DataPoint Name="iAITempAussen">
<Property Name="VCType" Value="INTEGER" />
<Property Name="Description" Value="" />
<Property Name="PLCType" Value="INT" />
<Property Name="UpdateTime" Value="Default" />
<Property Name="UserID" Value="None" />
<Property Name="ConnectingVisus" Value="" />
<Property Name="ConnectedBySharedResource" Value="False" />
</DataPoint>
<DataPoint Name="iAITempMWZ">
<Property Name="VCType" Value="INTEGER" />
<Property Name="Description" Value="" />
<Property Name="PLCType" Value="INT" />
<Property Name="UpdateTime" Value="Default" />
<Property Name="UserID" Value="None" />
<Property Name="ConnectingVisus" Value="" />
<Property Name="ConnectedBySharedResource" Value="False" />
</DataPoint>
<DataPoint Name="iAITempMBad">
<Property Name="VCType" Value="INTEGER" />
<Property Name="Description" Value="" />
<Property Name="PLCType" Value="INT" />
<Property Name="UpdateTime" Value="Default" />
<Property Name="UserID" Value="None" />
<Property Name="ConnectingVisus" Value="" />
<Property Name="ConnectedBySharedResource" Value="False" />
</DataPoint>
<DataPoint Name="iAITempMGang">
<Property Name="VCType" Value="INTEGER" />
<Property Name="Description" Value="" />
<Property Name="PLCType" Value="INT" />
<Property Name="UpdateTime" Value="Default" />
<Property Name="UserID" Value="None" />
<Property Name="ConnectingVisus" Value="" />
<Property Name="ConnectedBySharedResource" Value="False" />
</DataPoint>
<DataPoint Name="iAITempMKuch">
<Property Name="VCType" Value="INTEGER" />
<Property Name="Description" Value="" />
<Property Name="PLCType" Value="INT" />
<Property Name="UpdateTime" Value="Default" />
<Property Name="UserID" Value="None" />
<Property Name="ConnectingVisus" Value="" />
<Property Name="ConnectedBySharedResource" Value="False" />
</DataPoint>
<DataPoint Name="bM_CentralOff">
<Property Name="VCType" Value="BOOL" />
<Property Name="Description" Value="" />
<Property Name="PLCType" Value="BOOL" />
<Property Name="UpdateTime" Value="Default" />
<Property Name="UserID" Value="None" />
<Property Name="ConnectingVisus" Value="" />
<Property Name="ConnectedBySharedResource" Value="False" />
</DataPoint>
<Folder Name="visualization">
<Property Name="Description" Value="" />
<Property Name="FolderType" Value="Program" />
<DataPoint Name="rTempAussen">
<Property Name="DPLimit" Value="Default" />
<Property Name="VCType" Value="SCALED" />
<Property Name="Description" Value="" />
<Property Name="PLCUnit" Value="Source[relative:UnitGroup].Unit[Celsius]" />
<Property Name="PLCType" Value="REAL" />
<Property Name="UnitGroup" Value="Source[global].UnitGroup[Temperatures]" />
<Property Name="UpdateTime" Value="Default" />
<Property Name="UserID" Value="None" />
<Property Name="ConnectingVisus" Value="Visu" />
<Property Name="ConnectedBySharedResource" Value="False" />
</DataPoint>
<DataPoint Name="rTempMBad">
<Property Name="DPLimit" Value="Default" />
<Property Name="VCType" Value="SCALED" />
<Property Name="Description" Value="" />
<Property Name="PLCUnit" Value="Source[relative:UnitGroup].Unit[Celsius]" />
<Property Name="PLCType" Value="REAL" />
<Property Name="UnitGroup" Value="Source[global].UnitGroup[Temperatures]" />
<Property Name="UpdateTime" Value="Default" />
<Property Name="UserID" Value="None" />
<Property Name="ConnectingVisus" Value="Visu" />
<Property Name="ConnectedBySharedResource" Value="False" />
</DataPoint>
<DataPoint Name="rTempMGang">
<Property Name="DPLimit" Value="Default" />
<Property Name="VCType" Value="SCALED" />
<Property Name="Description" Value="" />
<Property Name="PLCUnit" Value="Source[relative:UnitGroup].Unit[Celsius]" />
<Property Name="PLCType" Value="REAL" />
<Property Name="UnitGroup" Value="Source[global].UnitGroup[Temperatures]" />
<Property Name="UpdateTime" Value="Default" />
<Property Name="UserID" Value="None" />
<Property Name="ConnectingVisus" Value="Visu" />
<Property Name="ConnectedBySharedResource" Value="False" />
</DataPoint>
<DataPoint Name="rTempMKuch">
<Property Name="DPLimit" Value="Default" />
<Property Name="VCType" Value="SCALED" />
<Property Name="Description" Value="" />
<Property Name="PLCUnit" Value="Source[relative:UnitGroup].Unit[Celsius]" />
<Property Name="PLCType" Value="REAL" />
<Property Name="UnitGroup" Value="Source[global].UnitGroup[Temperatures]" />
<Property Name="UpdateTime" Value="Default" />
<Property Name="UserID" Value="None" />
<Property Name="ConnectingVisus" Value="Visu" />
<Property Name="ConnectedBySharedResource" Value="False" />
</DataPoint>
<DataPoint Name="rTempMWZ">
<Property Name="DPLimit" Value="Default" />
<Property Name="VCType" Value="SCALED" />
<Property Name="Description" Value="" />
<Property Name="PLCUnit" Value="Source[relative:UnitGroup].Unit[Celsius]" />
<Property Name="PLCType" Value="REAL" />
<Property Name="UnitGroup" Value="Source[global].UnitGroup[Temperatures]" />
<Property Name="UpdateTime" Value="Default" />
<Property Name="UserID" Value="None" />
<Property Name="ConnectingVisus" Value="Visu" />
<Property Name="ConnectedBySharedResource" Value="False" />
</DataPoint>
</Folder>
<Folder Name="Wohnung">
<Property Name="Description" Value="" />
<Property Name="FolderType" Value="Package" />
<Folder Name="m_OG">
<Property Name="Description" Value="" />
<Property Name="FolderType" Value="Program" />
<DataPoint Name="INKeyOnOff">
<Property Name="VCType" Value="BOOL" />
<Property Name="Description" Value="" />
<Property Name="PLCType" Value="BOOL" />
<Property Name="UpdateTime" Value="Default" />
<Property Name="UserID" Value="None" />
<Property Name="ConnectingVisus" Value="Visu" />
<Property Name="ConnectedBySharedResource" Value="False" />
</DataPoint>
</Folder>
<Folder Name="m_wz">
<Property Name="Description" Value="" />
<Property Name="FolderType" Value="Program" />
<DataPoint Name="INKeyOnOff">
<Property Name="VCType" Value="BOOL" />
<Property Name="Description" Value="" />
<Property Name="PLCType" Value="BOOL" />
<Property Name="UpdateTime" Value="Default" />
<Property Name="UserID" Value="None" />
<Property Name="ConnectingVisus" Value="" />
<Property Name="ConnectedBySharedResource" Value="False" />
</DataPoint>
</Folder>
</Folder>
</DataPoints>
</DataSource>

View File

@@ -1,32 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<?AutomationStudio Version="2.4"?>
<Project xmlns="http://br-automation.co.at/AS/VC/Project">
<Property Name="EnableEvents" Value="False"/>
<Property Name="EnableEvents" Value="False" />
<SourceFiles>
<Source File="Languages.vcr"/>
<Source File="TextGroups\AlarmState_long.txtgrp"/>
<Source File="TextGroups\DateTimeFormats.txtgrp"/>
<Source File="TextGroups\AcknowledgeState_long.txtgrp"/>
<Source File="TextGroups\AcknowledgeState_short.txtgrp"/>
<Source File="TextGroups\AlarmState_short.txtgrp"/>
<Source File="TextGroups\BypassState_long.txtgrp"/>
<Source File="TextGroups\BypassState_short.txtgrp"/>
<Source File="TextGroups\AlarmEvent_long.txtgrp"/>
<Source File="TextGroups\AlarmEvent_short.txtgrp"/>
<Source File="UnitGroups\Length.vcug"/>
<Source File="UnitGroups\Mass.vcug"/>
<Source File="UnitGroups\Volume.vcug"/>
<Source File="UnitGroups\Power.vcug"/>
<Source File="UnitGroups\Memory.vcug"/>
<Source File="UnitGroups\Pressure.vcug"/>
<Source File="UnitGroups\Temperatures.vcug"/>
<Source File="AlarmGroups\AlarmSystem.alcfg"/>
<Source File="AlarmGroups\SystemAlarms.algrp"/>
<Source File="DataSources\Local.dpo"/>
<Source File="DataSources\Local.dso"/>
<Source File="DataSources\Internal.dpo"/>
<Source File="DataSources\Internal.dso"/>
<Source File="DataSources\DataPointList.dpt"/>
<Source File="ControlVersion.cvinfo"/>
<Source File="Languages.vcr" />
<Source File="TextGroups\AlarmState_long.txtgrp" />
<Source File="TextGroups\DateTimeFormats.txtgrp" />
<Source File="TextGroups\AcknowledgeState_long.txtgrp" />
<Source File="TextGroups\AcknowledgeState_short.txtgrp" />
<Source File="TextGroups\AlarmState_short.txtgrp" />
<Source File="TextGroups\BypassState_long.txtgrp" />
<Source File="TextGroups\BypassState_short.txtgrp" />
<Source File="TextGroups\AlarmEvent_long.txtgrp" />
<Source File="TextGroups\AlarmEvent_short.txtgrp" />
<Source File="UnitGroups\Length.vcug" />
<Source File="UnitGroups\Mass.vcug" />
<Source File="UnitGroups\Volume.vcug" />
<Source File="UnitGroups\Power.vcug" />
<Source File="UnitGroups\Memory.vcug" />
<Source File="UnitGroups\Pressure.vcug" />
<Source File="UnitGroups\Temperatures.vcug" />
<Source File="AlarmGroups\AlarmSystem.alcfg" />
<Source File="AlarmGroups\SystemAlarms.algrp" />
<Source File="DataSources\Local.dso" />
<Source File="DataSources\Internal.dso" />
<Source File="ControlVersion.cvinfo" />
</SourceFiles>
</Project>

View File

@@ -1,174 +1,174 @@
<?xml version="1.0" encoding="UTF-8"?>
<?AutomationStudio Version="2.4"?>
<?xml version="1.0" encoding="UTF-8"?>
<?AutomationStudio Version="3.0.81.27 SP05"?>
<Project xmlns="http://br-automation.co.at/AS/VC/Project">
<Property Name="Backlight" Value="False"/>
<Property Name="BacklightIgnoreFirst" Value="False"/>
<Property Name="BeepKey" Value="False"/>
<Property Name="BeepTouch" Value="False"/>
<Property Name="ColorMode" Value="8Bit"/>
<Property Name="ConnectionErrorPage" Value="None"/>
<Property Name="DefaultKeyLevelNumeric" Value="0"/>
<Property Name="DefaultKeyLevelString" Value="0"/>
<Property Name="DefaultLanguage" Value="de"/>
<Property Name="DefaultPage" Value="Source[local].Page[Init_Page]"/>
<Property Name="DefaultStyleSheet" Value="Source[local].StyleSheet[Color]"/>
<Property Name="FontAntialiasing" Value="Off"/>
<Property Name="KeyLevelChangeDatapoint" Value="None"/>
<Property Name="KeyLevelCurrentDatapoint" Value="None"/>
<Property Name="KeyMatrix" Value="None"/>
<Property Name="KeyRepeatDelay" Value="300"/>
<Property Name="KeyRepeatRate" Value="50"/>
<Property Name="LEDMatrix" Value="None"/>
<Property Name="LanguageChangeDatapoint" Value="None"/>
<Property Name="LanguageCurrentDatapoint" Value="None"/>
<Property Name="LifeSignDatapoint" Value="None"/>
<Property Name="ManualStart" Value="False"/>
<Property Name="PageChangeDatapoint" Value="None"/>
<Property Name="PageCurrentDatapoint" Value="None"/>
<Property Name="ScreenSaver_Activate" Value="False"/>
<Property Name="TextLengthOverrunBackColor" Value="None"/>
<Property Name="TextLengthOverrunCut" Value="False"/>
<Property Name="TextLengthOverrunForeColor" Value="None"/>
<Property Name="TouchPadCancel" Value="Default"/>
<Property Name="VCCVersion" Value="7"/>
<Property Name="Backlight" Value="False" />
<Property Name="BacklightIgnoreFirst" Value="False" />
<Property Name="BeepKey" Value="False" />
<Property Name="BeepTouch" Value="False" />
<Property Name="ColorMode" Value="8Bit" />
<Property Name="ConnectionErrorPage" Value="None" />
<Property Name="DefaultKeyLevelNumeric" Value="0" />
<Property Name="DefaultKeyLevelString" Value="0" />
<Property Name="DefaultLanguage" Value="de" />
<Property Name="DefaultPage" Value="Source[local].Page[Init_Page]" />
<Property Name="DefaultStyleSheet" Value="Source[local].StyleSheet[Color]" />
<Property Name="FontAntialiasing" Value="Off" />
<Property Name="KeyLevelChangeDatapoint" Value="None" />
<Property Name="KeyLevelCurrentDatapoint" Value="None" />
<Property Name="KeyMatrix" Value="None" />
<Property Name="KeyRepeatDelay" Value="300" />
<Property Name="KeyRepeatRate" Value="50" />
<Property Name="LEDMatrix" Value="None" />
<Property Name="LanguageChangeDatapoint" Value="None" />
<Property Name="LanguageCurrentDatapoint" Value="None" />
<Property Name="LifeSignDatapoint" Value="None" />
<Property Name="ManualStart" Value="False" />
<Property Name="PageChangeDatapoint" Value="None" />
<Property Name="PageCurrentDatapoint" Value="None" />
<Property Name="ScreenSaver_Activate" Value="False" />
<Property Name="TextLengthOverrunBackColor" Value="None" />
<Property Name="TextLengthOverrunCut" Value="False" />
<Property Name="TextLengthOverrunForeColor" Value="None" />
<Property Name="TouchPadCancel" Value="Default" />
<Property Name="VCCVersion" Value="7" />
<SourceFiles>
<Source File="Fonts\DefaultFont.fninfo"/>
<Source File="Fonts\Arial9px.fninfo"/>
<Source File="Fonts\Arial9pxBold.fninfo"/>
<Source File="Fonts\Arial10pxBold.fninfo"/>
<Source File="Fonts\Arial12px.fninfo"/>
<Source File="Fonts\Arial9pxValue.fninfo"/>
<Source File="Bitmaps\AlphaPadQVGA1.bminfo"/>
<Source File="Bitmaps\AlphaPadQVGA2.bminfo"/>
<Source File="Bitmaps\AlphaPadQVGA3.bminfo"/>
<Source File="Bitmaps\AlphaPadVGA_pressed.bminfo"/>
<Source File="Bitmaps\AlphaPadQVGA2_pressed.bminfo"/>
<Source File="Bitmaps\AlphaPadQVGA3_pressed.bminfo"/>
<Source File="Bitmaps\AlphaPadQVGA1_pressed.bminfo"/>
<Source File="Bitmaps\AlphaPadVGA.bminfo"/>
<Source File="Bitmaps\NumPad_pressed.bminfo"/>
<Source File="Bitmaps\NumPad.bminfo"/>
<Source File="Bitmaps\AcknowledgeReset.bminfo"/>
<Source File="Bitmaps\AlarmActive.bminfo"/>
<Source File="Bitmaps\AlarmBypassOFF.bminfo"/>
<Source File="Bitmaps\AlarmBypassON.bminfo"/>
<Source File="Bitmaps\AlarmInactive.bminfo"/>
<Source File="Bitmaps\AlarmLatched.bminfo"/>
<Source File="Bitmaps\AlarmNotQuit.bminfo"/>
<Source File="Bitmaps\AlarmQuit.bminfo"/>
<Source File="Bitmaps\Reset.bminfo"/>
<Source File="Bitmaps\ResetAcknowledge.bminfo"/>
<Source File="Bitmaps\Triggered.bminfo"/>
<Source File="Bitmaps\ListPadHor.bminfo"/>
<Source File="Bitmaps\ListPadHor_pressed.bminfo"/>
<Source File="Bitmaps\ListPadVer.bminfo"/>
<Source File="Bitmaps\ListPadVer_pressed.bminfo"/>
<Source File="Bitmaps\backward_active.bminfo"/>
<Source File="Bitmaps\backward_pressed.bminfo"/>
<Source File="Bitmaps\global_area_active.bminfo"/>
<Source File="Bitmaps\global_area_pressed.bminfo"/>
<Source File="Bitmaps\forward_active.bminfo"/>
<Source File="Bitmaps\forward_pressed.bminfo"/>
<Source File="Bitmaps\control_button_active.bminfo"/>
<Source File="Bitmaps\control_button_pressed.bminfo"/>
<Source File="Bitmaps\right_active.bminfo"/>
<Source File="Bitmaps\right_pressed.bminfo"/>
<Source File="Bitmaps\left_active.bminfo"/>
<Source File="Bitmaps\left_pressed.bminfo"/>
<Source File="Bitmaps\up_active.bminfo"/>
<Source File="Bitmaps\up_pressed.bminfo"/>
<Source File="Bitmaps\down_active.bminfo"/>
<Source File="Bitmaps\down_pressed.bminfo"/>
<Source File="Bitmaps\multi_up_active.bminfo"/>
<Source File="Bitmaps\multi_up_pressed.bminfo"/>
<Source File="Bitmaps\multi_down_active.bminfo"/>
<Source File="Bitmaps\multi_down_pressed.bminfo"/>
<Source File="Bitmaps\ProgressBorder.bminfo"/>
<Source File="Bitmaps\down_active_control.bminfo"/>
<Source File="Bitmaps\down_pressed_control.bminfo"/>
<Source File="Bitmaps\up_active_control.bminfo"/>
<Source File="Bitmaps\global_area_gradient_upside.bminfo"/>
<Source File="Bitmaps\global_area_gradient_downside.bminfo"/>
<Source File="Bitmaps\frame_header.bminfo"/>
<Source File="Bitmaps\up_pressed_control.bminfo"/>
<Source File="Bitmaps\EditPadVGA.bminfo"/>
<Source File="Bitmaps\EditPadVGA_pressed.bminfo"/>
<Source File="Bitmaps\zuneNumPad_released.bminfo"/>
<Source File="Bitmaps\zuneListPadVer_released.bminfo"/>
<Source File="Bitmaps\zuneAlphaPad_pressed.bminfo"/>
<Source File="Bitmaps\zuneAlphaPad_released.bminfo"/>
<Source File="Bitmaps\zuneAlphaPadQVGA1_pressed.bminfo"/>
<Source File="Bitmaps\zuneAlphaPadQVGA1_released.bminfo"/>
<Source File="Bitmaps\zuneAlphaPadQVGA2_pressed.bminfo"/>
<Source File="Bitmaps\zuneAlphaPadQVGA3_pressed.bminfo"/>
<Source File="Bitmaps\zuneEditpadQVGA2_released.bminfo"/>
<Source File="Bitmaps\zuneEditPadQVGA3_released.bminfo"/>
<Source File="Bitmaps\zuneEditPadVga_pressed.bminfo"/>
<Source File="Bitmaps\zuneEditPadVga_released.bminfo"/>
<Source File="Bitmaps\zuneListPadHor_pressed.bminfo"/>
<Source File="Bitmaps\zuneListPadHor_released.bminfo"/>
<Source File="Bitmaps\zuneListPadVer_pressed.bminfo"/>
<Source File="Bitmaps\zuneNumPad_pressed.bminfo"/>
<Source File="BitmapGroups\AlphaPadQVGA.bmgrp"/>
<Source File="BitmapGroups\NumPad.bmgrp"/>
<Source File="BitmapGroups\AlphaPad.bmgrp"/>
<Source File="BitmapGroups\AlarmEvent.bmgrp"/>
<Source File="BitmapGroups\AlarmState.bmgrp"/>
<Source File="BitmapGroups\BypassState.bmgrp"/>
<Source File="BitmapGroups\AcknowledgeState.bmgrp"/>
<Source File="BitmapGroups\NavigationPad.bmgrp"/>
<Source File="BitmapGroups\Borders.bmgrp"/>
<Source File="Pages\Init_Page.page"/>
<Source File="StyleSheets\Gray.vcs"/>
<Source File="StyleSheets\Color.vcs"/>
<Source File="Borders\Raised.bdr"/>
<Source File="Borders\Sunken.bdr"/>
<Source File="Borders\Etched.bdr"/>
<Source File="Borders\Bump.bdr"/>
<Source File="Borders\SunkenOuter.bdr"/>
<Source File="Borders\RaisedInner.bdr"/>
<Source File="Borders\Flat_black.bdr"/>
<Source File="Borders\Flat_grey.bdr"/>
<Source File="Borders\BackwardActive.bdr"/>
<Source File="Borders\BackwardPressed.bdr"/>
<Source File="Borders\ControlActive.bdr"/>
<Source File="Borders\ControlPressed.bdr"/>
<Source File="Borders\DownActiveControl.bdr"/>
<Source File="Borders\DownPressedControl.bdr"/>
<Source File="Borders\ForwardActive.bdr"/>
<Source File="Borders\ForwardPressed.bdr"/>
<Source File="Borders\GlobalAreaActive.bdr"/>
<Source File="Borders\GlobalAreaPressed.bdr"/>
<Source File="Borders\MultiScrollDownActive.bdr"/>
<Source File="Borders\MultiScrollDownPressed.bdr"/>
<Source File="Borders\MultiScrollUpActive.bdr"/>
<Source File="Borders\MultiScrollUpPressed.bdr"/>
<Source File="Borders\ProgressBarBorder.bdr"/>
<Source File="Borders\ScrollDownActive.bdr"/>
<Source File="Borders\ScrollDownPressed.bdr"/>
<Source File="Borders\ScrollUpActive.bdr"/>
<Source File="Borders\ScrollUpPressed.bdr"/>
<Source File="Borders\ScrollLeftActive.bdr"/>
<Source File="Borders\ScrollLeftPressed.bdr"/>
<Source File="Borders\ScrollRightActive.bdr"/>
<Source File="Borders\ScrollRightPressed.bdr"/>
<Source File="Borders\UpActiveControl.bdr"/>
<Source File="Borders\UpPressedControl.bdr"/>
<Source File="Borders\FrameHeader.bdr"/>
<Source File="TouchPads\NumPad.tpr"/>
<Source File="TouchPads\AlphaPadQVGA.tpr"/>
<Source File="TouchPads\AlphaPad.tpr"/>
<Source File="TouchPads\NavigationPad_ver.tpr"/>
<Source File="TouchPads\NavigationPad_hor.tpr"/>
<Source File="TouchPads\EditPad.tpr"/>
<Source File="Trends\TrendData.tdc"/>
<Source File="Trends\TrendData_1.trd"/>
<Source File="Trends\TrendData_2.trd"/>
<Source File="Trends\TrendData_3.trd"/>
<Source File="Trends\TrendData_4.trd"/>
<Source File="Trends\TrendData_5.trd"/>
<Source File="Trends\Trend_1.tre"/>
<Source File="VirtualKeys.vcvk"/>
<Source File="Palette.vcr"/>
<Source File="Fonts\DefaultFont.fninfo" />
<Source File="Fonts\Arial9px.fninfo" />
<Source File="Fonts\Arial9pxBold.fninfo" />
<Source File="Fonts\Arial10pxBold.fninfo" />
<Source File="Fonts\Arial12px.fninfo" />
<Source File="Fonts\Arial9pxValue.fninfo" />
<Source File="Bitmaps\AlphaPadQVGA1.bminfo" />
<Source File="Bitmaps\AlphaPadQVGA2.bminfo" />
<Source File="Bitmaps\AlphaPadQVGA3.bminfo" />
<Source File="Bitmaps\AlphaPadVGA_pressed.bminfo" />
<Source File="Bitmaps\AlphaPadQVGA2_pressed.bminfo" />
<Source File="Bitmaps\AlphaPadQVGA3_pressed.bminfo" />
<Source File="Bitmaps\AlphaPadQVGA1_pressed.bminfo" />
<Source File="Bitmaps\AlphaPadVGA.bminfo" />
<Source File="Bitmaps\NumPad_pressed.bminfo" />
<Source File="Bitmaps\NumPad.bminfo" />
<Source File="Bitmaps\AcknowledgeReset.bminfo" />
<Source File="Bitmaps\AlarmActive.bminfo" />
<Source File="Bitmaps\AlarmBypassOFF.bminfo" />
<Source File="Bitmaps\AlarmBypassON.bminfo" />
<Source File="Bitmaps\AlarmInactive.bminfo" />
<Source File="Bitmaps\AlarmLatched.bminfo" />
<Source File="Bitmaps\AlarmNotQuit.bminfo" />
<Source File="Bitmaps\AlarmQuit.bminfo" />
<Source File="Bitmaps\Reset.bminfo" />
<Source File="Bitmaps\ResetAcknowledge.bminfo" />
<Source File="Bitmaps\Triggered.bminfo" />
<Source File="Bitmaps\ListPadHor.bminfo" />
<Source File="Bitmaps\ListPadHor_pressed.bminfo" />
<Source File="Bitmaps\ListPadVer.bminfo" />
<Source File="Bitmaps\ListPadVer_pressed.bminfo" />
<Source File="Bitmaps\backward_active.bminfo" />
<Source File="Bitmaps\backward_pressed.bminfo" />
<Source File="Bitmaps\global_area_active.bminfo" />
<Source File="Bitmaps\global_area_pressed.bminfo" />
<Source File="Bitmaps\forward_active.bminfo" />
<Source File="Bitmaps\forward_pressed.bminfo" />
<Source File="Bitmaps\control_button_active.bminfo" />
<Source File="Bitmaps\control_button_pressed.bminfo" />
<Source File="Bitmaps\right_active.bminfo" />
<Source File="Bitmaps\right_pressed.bminfo" />
<Source File="Bitmaps\left_active.bminfo" />
<Source File="Bitmaps\left_pressed.bminfo" />
<Source File="Bitmaps\up_active.bminfo" />
<Source File="Bitmaps\up_pressed.bminfo" />
<Source File="Bitmaps\down_active.bminfo" />
<Source File="Bitmaps\down_pressed.bminfo" />
<Source File="Bitmaps\multi_up_active.bminfo" />
<Source File="Bitmaps\multi_up_pressed.bminfo" />
<Source File="Bitmaps\multi_down_active.bminfo" />
<Source File="Bitmaps\multi_down_pressed.bminfo" />
<Source File="Bitmaps\ProgressBorder.bminfo" />
<Source File="Bitmaps\down_active_control.bminfo" />
<Source File="Bitmaps\down_pressed_control.bminfo" />
<Source File="Bitmaps\up_active_control.bminfo" />
<Source File="Bitmaps\global_area_gradient_upside.bminfo" />
<Source File="Bitmaps\global_area_gradient_downside.bminfo" />
<Source File="Bitmaps\frame_header.bminfo" />
<Source File="Bitmaps\up_pressed_control.bminfo" />
<Source File="Bitmaps\EditPadVGA.bminfo" />
<Source File="Bitmaps\EditPadVGA_pressed.bminfo" />
<Source File="Bitmaps\zuneNumPad_released.bminfo" />
<Source File="Bitmaps\zuneListPadVer_released.bminfo" />
<Source File="Bitmaps\zuneAlphaPad_pressed.bminfo" />
<Source File="Bitmaps\zuneAlphaPad_released.bminfo" />
<Source File="Bitmaps\zuneAlphaPadQVGA1_pressed.bminfo" />
<Source File="Bitmaps\zuneAlphaPadQVGA1_released.bminfo" />
<Source File="Bitmaps\zuneAlphaPadQVGA2_pressed.bminfo" />
<Source File="Bitmaps\zuneAlphaPadQVGA3_pressed.bminfo" />
<Source File="Bitmaps\zuneEditpadQVGA2_released.bminfo" />
<Source File="Bitmaps\zuneEditPadQVGA3_released.bminfo" />
<Source File="Bitmaps\zuneEditPadVga_pressed.bminfo" />
<Source File="Bitmaps\zuneEditPadVga_released.bminfo" />
<Source File="Bitmaps\zuneListPadHor_pressed.bminfo" />
<Source File="Bitmaps\zuneListPadHor_released.bminfo" />
<Source File="Bitmaps\zuneListPadVer_pressed.bminfo" />
<Source File="Bitmaps\zuneNumPad_pressed.bminfo" />
<Source File="BitmapGroups\AlphaPadQVGA.bmgrp" />
<Source File="BitmapGroups\NumPad.bmgrp" />
<Source File="BitmapGroups\AlphaPad.bmgrp" />
<Source File="BitmapGroups\AlarmEvent.bmgrp" />
<Source File="BitmapGroups\AlarmState.bmgrp" />
<Source File="BitmapGroups\BypassState.bmgrp" />
<Source File="BitmapGroups\AcknowledgeState.bmgrp" />
<Source File="BitmapGroups\NavigationPad.bmgrp" />
<Source File="BitmapGroups\Borders.bmgrp" />
<Source File="Pages\Init_Page.page" />
<Source File="StyleSheets\Gray.vcs" />
<Source File="StyleSheets\Color.vcs" />
<Source File="Borders\Raised.bdr" />
<Source File="Borders\Sunken.bdr" />
<Source File="Borders\Etched.bdr" />
<Source File="Borders\Bump.bdr" />
<Source File="Borders\SunkenOuter.bdr" />
<Source File="Borders\RaisedInner.bdr" />
<Source File="Borders\Flat_black.bdr" />
<Source File="Borders\Flat_grey.bdr" />
<Source File="Borders\BackwardActive.bdr" />
<Source File="Borders\BackwardPressed.bdr" />
<Source File="Borders\ControlActive.bdr" />
<Source File="Borders\ControlPressed.bdr" />
<Source File="Borders\DownActiveControl.bdr" />
<Source File="Borders\DownPressedControl.bdr" />
<Source File="Borders\ForwardActive.bdr" />
<Source File="Borders\ForwardPressed.bdr" />
<Source File="Borders\GlobalAreaActive.bdr" />
<Source File="Borders\GlobalAreaPressed.bdr" />
<Source File="Borders\MultiScrollDownActive.bdr" />
<Source File="Borders\MultiScrollDownPressed.bdr" />
<Source File="Borders\MultiScrollUpActive.bdr" />
<Source File="Borders\MultiScrollUpPressed.bdr" />
<Source File="Borders\ProgressBarBorder.bdr" />
<Source File="Borders\ScrollDownActive.bdr" />
<Source File="Borders\ScrollDownPressed.bdr" />
<Source File="Borders\ScrollUpActive.bdr" />
<Source File="Borders\ScrollUpPressed.bdr" />
<Source File="Borders\ScrollLeftActive.bdr" />
<Source File="Borders\ScrollLeftPressed.bdr" />
<Source File="Borders\ScrollRightActive.bdr" />
<Source File="Borders\ScrollRightPressed.bdr" />
<Source File="Borders\UpActiveControl.bdr" />
<Source File="Borders\UpPressedControl.bdr" />
<Source File="Borders\FrameHeader.bdr" />
<Source File="TouchPads\NumPad.tpr" />
<Source File="TouchPads\AlphaPadQVGA.tpr" />
<Source File="TouchPads\AlphaPad.tpr" />
<Source File="TouchPads\NavigationPad_ver.tpr" />
<Source File="TouchPads\NavigationPad_hor.tpr" />
<Source File="TouchPads\EditPad.tpr" />
<Source File="Trends\TrendData.tdc" />
<Source File="Trends\TrendData_1.trd" />
<Source File="Trends\TrendData_2.trd" />
<Source File="Trends\TrendData_3.trd" />
<Source File="Trends\TrendData_4.trd" />
<Source File="Trends\TrendData_5.trd" />
<Source File="Trends\Trend_1.tre" />
<Source File="VirtualKeys.vcvk" />
<Source File="Palette.vcr" />
</SourceFiles>
</Project>

View File

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<?AutomationStudio Version=3.0.80.31 SP01?>
<?AutomationStudio Version=3.0.81.27 SP05?>
<Package xmlns="http://br-automation.co.at/AS/Package">
<Objects>
<Object Type="Program" Language="IEC">m_main</Object>
@@ -15,5 +15,7 @@
<Object Type="Program" Language="IEC" Description="Michi AZ">m_az</Object>
<Object Type="Program" Language="IEC" Description="Michi GZ">m_gz</Object>
<Object Type="Program" Language="IEC" Description="Michi OG 1">m_OG</Object>
<Object Type="Program" Language="IEC" Description="Michi OG Bad">m_OGbad</Object>
<Object Type="Program" Language="IEC" Description="Michi OG EBS">m_OGEBS</Object>
</Objects>
</Package>

View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<?AutomationStudio Version=3.0.81.27 SP05?>
<Program xmlns="http://br-automation.co.at/AS/Program">
<Files>
<File Private="true">m_og.var</File>
<File>m_ogInit.ab</File>
<File>m_ogCyclic.ab</File>
</Files>
</Program>

View File

@@ -0,0 +1,11 @@
VAR RETAIN
INKeyOn :BOOL;
INKeyOff :BOOL;
lStairFunction :BOOL;
RT_OnOff :R_TRIG;
INKeyOnOff :BOOL;
Q_Light :BOOL;
xms :DINT;
iStairFunction :INT;
ims :DINT; (* s *)
END_VAR

View File

@@ -0,0 +1,39 @@
PROGRAM _CYCLIC
(* cyclic program *)
;Mapping DI on local VAR
INKeyOnOff = A10.DIn[3] ;Toggle On / Off
INKeyOn = False
INKeyOff = False
;Build RT
RT_OnOff.CLK = INKeyOnOff
RT_OnOff FUB R_TRIG()
if RT_OnOff.Q then
Q_Light = not Q_Light
endif
if INKeyOn then
Q_Light = True
endif
if INKeyOff then
Q_Light = False
endif
if Q_Light and lStairFunction then
ims = ims + xms
else
ims = 0
endif
if ims > (dint (iStairFunction) * 1000) then
Q_Light = False
endif
;Map local Out to DO
A10.DOu[1] = Q_Light
END_PROGRAM

View File

@@ -0,0 +1,7 @@
PROGRAM _INIT
(* init program *)
xms = 100 ; 100ms Task
lStairFunction = true
iStairFunction = 600 ; sec
END_PROGRAM

View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<?AutomationStudio Version=3.0.81.27 SP05?>
<Program xmlns="http://br-automation.co.at/AS/Program">
<Files>
<File Private="true">m_og.var</File>
<File>m_ogInit.ab</File>
<File>m_ogCyclic.ab</File>
</Files>
</Program>

View File

@@ -0,0 +1,11 @@
VAR RETAIN
INKeyOn :BOOL;
INKeyOff :BOOL;
lStairFunction :BOOL;
RT_OnOff :R_TRIG;
INKeyOnOff :BOOL;
Q_Light :BOOL;
xms :DINT;
iStairFunction :INT;
ims :DINT; (* s *)
END_VAR

View File

@@ -0,0 +1,39 @@
PROGRAM _CYCLIC
(* cyclic program *)
;Mapping DI on local VAR
INKeyOnOff = A10.DIn[1] ;Toggle On / Off
INKeyOn = False
INKeyOff = False
;Build RT
RT_OnOff.CLK = INKeyOnOff
RT_OnOff FUB R_TRIG()
if RT_OnOff.Q then
Q_Light = not Q_Light
endif
if INKeyOn then
Q_Light = True
endif
if INKeyOff then
Q_Light = False
endif
if Q_Light and lStairFunction then
ims = ims + xms
else
ims = 0
endif
if ims > (dint (iStairFunction) * 1000) then
Q_Light = False
endif
;Map local Out to DO
A6.DOu[8] = Q_Light
END_PROGRAM

View File

@@ -0,0 +1,7 @@
PROGRAM _INIT
(* init program *)
xms = 100 ; 100ms Task
lStairFunction = true
iStairFunction = 240 ; sec
END_PROGRAM

View File

@@ -21,7 +21,8 @@ A6.DOu[10] = A5.DOu[2] or\\
A5.DOu[8] or\\
A5.DOu[9] or\\
A5.DOu[10] or \\
A5.DOu[11]
A5.DOu[11] or \\
A10.DOu[0]
;A4.DOu[11] or\\
;A5.DOu[0] or\\
;A5.DOu[1] or\\

View File

@@ -12,54 +12,6 @@ spi: OBJEKTID=1
{5.3}
klasse: "HC_Moduluebersicht.Class"
name: _PRJ-Moduluebersicht
[42.1]
[42.100]
moduladr: 0
verbunden: 3
station: 1
busart: 6
version: 1.0.1.0
[42.101]
[42.1824]
{42.1856}
klasse: "X20DI9371"
comparam:
[43.1]
[43.100]
moduladr: 0
verbunden: 3
station: 2
busart: 6
version: 1.0.1.0
[43.101]
[43.1824]
{43.1856}
klasse: "X20DI9371"
comparam:
[44.1]
[44.100]
moduladr: 0
verbunden: 3
station: 3
busart: 6
version: 1.0.1.0
[44.101]
[44.1824]
{44.1856}
klasse: "X20DI9371"
comparam:
[45.1]
[45.100]
moduladr: 0
verbunden: 3
station: 7
busart: 6
version: 1.0.1.0
[45.101]
[45.1824]
{45.1856}
klasse: "X20DI9371"
comparam:
[22.1]
[22.100]
moduladr: 0
@@ -139,34 +91,54 @@ version: 1.0.2.0
{11.1856}
klasse: "X20DO9322"
comparam:
[23.1]
[23.100]
[42.1]
[42.100]
moduladr: 0
verbunden: 3
station: 10
station: 1
busart: 6
version: 1.0.1.0
[23.101]
[23.1824]
{23.1856}
version: 1.0.1.1
[42.101]
[42.1824]
{42.1856}
klasse: "X20DI9371"
comparam:
[43.1]
[43.100]
moduladr: 0
verbunden: 3
station: 2
busart: 6
version: 1.0.1.1
[43.101]
[43.1824]
{43.1856}
klasse: "X20DI9371"
comparam:
[44.1]
[44.100]
moduladr: 0
verbunden: 3
station: 3
busart: 6
version: 1.0.1.1
[44.101]
[44.1824]
{44.1856}
klasse: "X20DI9371"
comparam:
[45.1]
[45.100]
moduladr: 0
verbunden: 3
station: 7
busart: 6
version: 1.0.1.1
[45.101]
[45.1824]
{45.1856}
klasse: "X20DI9371"
comparam:
[1.1]
spi: OBJEKTID=2
spi: OBJEKTID=42
spi: OBJEKTID=43
spi: OBJEKTID=44
spi: OBJEKTID=9
spi: OBJEKTID=10
spi: OBJEKTID=11
spi: OBJEKTID=45
spi: OBJEKTID=22
spi: OBJEKTID=21
spi: OBJEKTID=23
{1.2}
klasse: "HC_SPS.Class"
familie: 20
modulname: PLC1
[3.1]
[3.100]
moduladr: 1
@@ -185,8 +157,7 @@ anschlussinfo: NUMMER=6, MODULID=11, FLAGS=1
anschlussinfo: NUMMER=7, MODULID=45, FLAGS=1
anschlussinfo: NUMMER=8, MODULID=22, FLAGS=1
anschlussinfo: NUMMER=9, MODULID=21, FLAGS=1
anschlussinfo: NUMMER=10, MODULID=23, FLAGS=1
anschlussinfo: NUMMER=11, MODULID=0, FLAGS=0
anschlussinfo: NUMMER=10, MODULID=46, FLAGS=1
[3.101]
[3.1840]
comparam_x2x4: SYNCUSAGE=50, IOSIZE=8, RESPTIME=100, BUSLENGTH=1000, STATIONS=64, ASYNCPAYLOAD=80
@@ -198,3 +169,31 @@ cfgparam_eth2: SOCKETCNT=16, DESCRCNT=16, MEMBUFCNT=453, ARPTBLENTRCNT=16, PAGEC
[3.1824]
{3.108}
klasse: "X20CP0292"
[46.1]
[46.100]
moduladr: 0
verbunden: 3
station: 10
busart: 6
version: 1.0.1.0
[46.101]
[46.1824]
{46.1856}
klasse: "X20DM9324"
comparam:
[1.1]
spi: OBJEKTID=2
spi: OBJEKTID=42
spi: OBJEKTID=43
spi: OBJEKTID=44
spi: OBJEKTID=9
spi: OBJEKTID=10
spi: OBJEKTID=11
spi: OBJEKTID=45
spi: OBJEKTID=22
spi: OBJEKTID=21
spi: OBJEKTID=46
{1.2}
klasse: "HC_SPS.Class"
familie: 20
modulname: PLC1

View File

@@ -129,15 +129,6 @@
</Selector>
</Module>
<Module ID="IF4" Hardware="X20CP0292 (X2x)" />
<Module ID="IF4.ST10" Hardware="X20DI9371">
<Selector ID="FunctionModel" Value="Standard">
<Group ID="General">
<Parameter ID="Supervision" Value="off" />
<Parameter ID="ModuleInfo" Value="off" />
<Parameter ID="InputFilter" Value="10" />
</Group>
</Selector>
</Module>
<Module ID="IF4.ST6" Hardware="X20DO9322">
<Selector ID="FunctionModel" Value="Standard">
<Group ID="General">
@@ -148,4 +139,14 @@
</Group>
</Selector>
</Module>
<Module ID="IF4.ST10" Hardware="X20DM9324">
<Selector ID="FunctionModel" Value="Standard">
<Group ID="General">
<Parameter ID="Supervision" Value="off" />
<Parameter ID="ModuleInfo" Value="off" />
<Parameter ID="StatusInfo" Value="on" />
<Parameter ID="InputFilter" Value="10" />
</Group>
</Selector>
</Module>
</RuntimeConfiguration>

View File

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<?AutomationStudio Version=3.0.80.31 SP01?>
<?AutomationStudio Version=3.0.81.27 SP05?>
<SwConfiguration CpuAddress="" xmlns="http://br-automation.co.at/AS/SwConfiguration">
<TaskClass Name="Cyclic#1">
<Task Name="c_munin" Source="Communication.c_munin.prg" Memory="UserROM" Language="ANSIC" Debugging="true" />
@@ -32,6 +32,8 @@
<Task Name="m_az" Source="Wohnung.m_az.prg" Memory="UserROM" Language="IEC" AnsiToAscii="true" Version="1.00.0" />
<Task Name="m_gz" Source="Wohnung.m_gz.prg" Memory="UserROM" Language="IEC" AnsiToAscii="true" Version="1.00.0" />
<Task Name="m_OG" Source="Wohnung.m_OG.prg" Memory="UserROM" Language="IEC" />
<Task Name="m_OGbad" Source="Wohnung.m_OGbad.prg" Memory="UserROM" Language="IEC" />
<Task Name="m_OGEBS" Source="Wohnung.m_OGEBS.prg" Memory="UserROM" Language="IEC" />
<Task Name="th1" Source="Treppenhaus.th1.prg" Memory="UserROM" Language="IEC" AnsiToAscii="true" Version="1.00.0" />
<Task Name="th2" Source="Treppenhaus.th2.prg" Memory="UserROM" Language="IEC" AnsiToAscii="true" Version="1.00.0" />
<Task Name="w_kuch1" Source="Apartment.w_kuch1.prg" Memory="UserROM" Language="IEC" AnsiToAscii="true" Version="1.00.0" />
@@ -47,10 +49,10 @@
<VcDataObjects />
<Binaries>
<BinaryObject Name="gcloader" Source="" Memory="UserROM" Language="Binary" />
<BinaryObject Name="arconfig" Source="" Memory="UserROM" Language="Binary" />
<BinaryObject Name="asfw" Source="" Memory="UserROM" Language="Binary" />
<BinaryObject Name="iomap" Source="" Memory="UserROM" Language="Binary" />
<BinaryObject Name="sysconf" Source="" Memory="SystemROM" Language="Binary" />
<BinaryObject Name="iomap" Source="" Memory="UserROM" Language="Binary" />
<BinaryObject Name="asfw" Source="" Memory="UserROM" Language="Binary" />
<BinaryObject Name="arconfig" Source="" Memory="UserROM" Language="Binary" />
</Binaries>
<Libraries>
<LibraryObject Name="SYS_LIB" Source="Libraries.SYS_LIB.lby" Memory="UserROM" Language="Binary" />

View File

@@ -106,7 +106,6 @@ VAR_CONFIG
A9.iTemp[1] AT %IW.IF4.ST9.Temperature02;
A9.iTemp[2] AT %IW.IF4.ST9.Temperature03;
A9.iTemp[3] AT %IW.IF4.ST9.Temperature04;
A10.bModuleOk AT %IX.IF4.ST10.ModuleOk;
A10.DIn[0] AT %IX.IF4.ST10.DigitalInput01;
A10.DIn[1] AT %IX.IF4.ST10.DigitalInput02;
A10.DIn[2] AT %IX.IF4.ST10.DigitalInput03;
@@ -115,8 +114,8 @@ VAR_CONFIG
A10.DIn[5] AT %IX.IF4.ST10.DigitalInput06;
A10.DIn[6] AT %IX.IF4.ST10.DigitalInput07;
A10.DIn[7] AT %IX.IF4.ST10.DigitalInput08;
A10.DIn[8] AT %IX.IF4.ST10.DigitalInput09;
A10.DIn[9] AT %IX.IF4.ST10.DigitalInput10;
A10.DIn[10] AT %IX.IF4.ST10.DigitalInput11;
A10.DIn[11] AT %IX.IF4.ST10.DigitalInput12;
A10.DOu[0] AT %QX.IF4.ST10.DigitalOutput01;
A10.DOu[1] AT %QX.IF4.ST10.DigitalOutput02;
A10.DOu[2] AT %QX.IF4.ST10.DigitalOutput03;
A10.DOu[3] AT %QX.IF4.ST10.DigitalOutput04;
END_VAR

View File

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<?AutomationStudio Version=3.0.80.31 SP01?>
<?AutomationStudio Version=3.0.81.27 SP05?>
<PLC xmlns="http://br-automation.co.at/AS/PLC">
<Objects>
<Object Type="File" Description="Software configuration">Cpu.sw</Object>
@@ -13,14 +13,14 @@
<Object Type="File">sysconf.br</Object>
</Objects>
<CpuModules>
<CpuModule LocalVariablesMemory="MemoryPool" GeneratePPCode="false" HasNcOperatingSystem="true" Target="SGC" Address="SL1" ModuleID="CP0292" ClassID="X20CP0292" GccVersion="V2.95.3" OnlineConfigurationName="TCPIP_HOME">
<CpuModule LocalVariablesMemory="MemoryPool" GeneratePPCode="false" HasNcOperatingSystem="true" Target="SGC" ModuleID="CP0292" ClassID="X20CP0292" GccVersion="V2.95.3" OnlineConfigurationName="TCPIP_HOME">
<DefaultTargetMemory Tasks="UserROM" Libraries="UserROM" DataObjects="UserROM" />
<DefaultTaskClass Name="Cyclic4" />
<IO DefaultTaskClass="Automatic" ArConfigDataModule="false" ArConfigDataModulePath="$(AS_CPU_PATH)\AS\CfgData.br" IoMapDataModule="false" IoMapDataModulePath="$(AS_CPU_PATH)\AS\IomData.br" />
<OS Version="2.31.0" Status="B" />
<OS Version="2.31.0" Status="G" />
<Transfer DownloadMode="Overload" PromptBeforeProject="false" PromptBeforeTask="false" PackedArConfig="false" PackedIoMap="false" IgnoreTargetOnlyObjects="false" GeneratePviTransferList="true" TransferOnlyRelevantChanges="false" AllowWarmRestart="true" IgnoreBrDependencies="false" />
<Build />
<VC FirmwareVersion="V3.63.8" />
<VC FirmwareVersion="V3.73.4" />
<OPC />
</CpuModule>
</CpuModules>

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

Some files were not shown because too many files have changed in this diff Show More