Reduced Greasetime

Modified Cylindertimes
This commit is contained in:
Michael Rest
2014-12-02 09:50:28 +01:00
parent 60a01050b1
commit 46ad4b6b79
27 changed files with 1505 additions and 26 deletions

View File

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

View File

@@ -40,7 +40,7 @@ PROGRAM _CYCLIC
END_IF
TON_Grease.IN := bGrease;
TON_Grease.PT := t#60s;
TON_Grease.PT := t#10s;
TON_Grease ();
IF TON_Grease.Q THEN

View File

@@ -13,8 +13,8 @@ VAR
udSteptime : UDINT; (*0.1s*)
END_VAR
VAR RETAIN
udDelayCylinder1 : UDINT := 2000; (*ms*)
udDelayCylinder2 : UDINT := 2000; (*ms*)
udDelayCylinder1 : UDINT := 3000; (*ms*)
udDelayCylinder2 : UDINT := 3000; (*ms*)
udDelayCylinder3 : UDINT := 2000; (*ms*)
END_VAR
VAR

View File

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<?AutomationStudio Version=3.0.90.24 SP06?>
<?AutomationStudio Version=3.0.90.25 SP07?>
<Package xmlns="http://br-automation.co.at/AS/Package">
<Objects>
<Object Type="Library" Language="Binary" Description="This library contains function interfaces for IEC1131-3 operator functions. For the most part, these are mathematical and logical functions.">Operator</Object>
@@ -19,5 +19,6 @@
<Object Type="Library" Language="Binary" Description="This library contains standard function blocks and funtions for IEC 1131-3.">standard</Object>
<Object Type="Library" Language="Binary" Description="This library integrates mathematical functions such as angle functions, rounding off, etc. into the program.">AsMath</Object>
<Object Type="Library" Language="Binary" Description="The AsArLog library can be used to collect additional error information and for further processing.">AsArLog</Object>
<Object Type="Library" Language="Binary" Description="The Visapi library provides support to access and control visualizations at runtime.">visapi</Object>
</Objects>
</Package>

View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<?AutomationStudio Version=3.0.90.25 SP07?>
<Library Description="The Visapi library provides support to access and control visualizations at runtime." xmlns="http://br-automation.co.at/AS/Library">
<Files>
<File>Visapi.typ</File>
<File>Visapi.fun</File>
<File>Visapi.var</File>
</Files>
</Library>

View File

@@ -0,0 +1,5 @@
Just for internal use. Do not modify or delete this file!!
This file indicates that the default library structure for Ar dependent libraries will be irgnored and the libary is treated as versioned library.
Therefore if a library folder contains this file but no library versions the library isn't valid anymore.

View File

@@ -0,0 +1,6 @@
Just for internal use. Do not modify or delete this file!!
This file indicates that the default library structure for versioned libraries will be ignored and the libary is treated as Ar or Vc dependent library.
Only counts for AS 3.00.80.xx or higher versions.
Therefore if a library folder contains this file but no library declaration files the library isn't valid anymore.

View File

@@ -0,0 +1,208 @@
/* Automation Studio generated header file */
/* Do not edit ! */
#ifndef _VISAPI_
#define _VISAPI_
#ifdef __cplusplus
extern "C"
{
#endif
#include <bur/plctypes.h>
#ifndef _IEC_CONST
#define _IEC_CONST _WEAK const
#endif
/* Constants */
#ifdef _REPLACE_CONST
#define vaALS_CURRENT 65536U
#define vaALS_NOTBYPASSSED 512U
#define vaALS_BYPASSSED 256U
#define vaALS_NOTACKNOWLEDGED 32U
#define vaALS_ACKNOWLEDGED 16U
#define vaALS_ACTIVE 2U
#define vaALS_INACTIVE 1U
#define vaERR_EMPTY_HISTORYLIST 248U
#define vaERR_BUSY 7000U
#define vaERR_EMPTY_ALARMLIST 240U
#define vaERR_NOALARMQUIT 245U
#define vaERR_DELHISLIST 246U
#define vaERR_BUSY_ALARMSYSTEM 247U
#define vaERR_INTERPRETER_NOT_READY 7010U
#define vaERR_DRIVER_NOT_FOUND 7020U
#define vaERR_WRONG_MODULE_NAME 7030U
#define vaERR_UNDEFINED_ERROR_CODE 7050U
#define vaERR_FONTMODULE_NOT_FOUND 7060U
#define vaERR_KEYMATRIX_NOT_VALID 7070U
#define vaERR_NOT_SUPPORTED 7080U
#define vaERR_PARAMETER 7090U
#define vaERR_CREATE_TASK_FAILED 7100U
#define vaERR_EXISTS 7101U
#define vaERR_NO_ACCESS 7110U
#define vaERR_ACCESS 7111U
#define vaERR_OVERFLOW 7120U
#define vaERR_CONNECTION_LOST 7130U
#define vaERR_TIMEOUT 7140U
#define vaERR_ARGUMENT 7150U
#define vaERR_VERSION 7160U
#define vaERR_MEMORY 7170U
#define vaERR_RESOURCES 7180U
#define vaERR_ALREADY 7190U
#define vaERR_NO_MORE 7195U
#define vaERR_RESOURCE_NOT_FOUND 7196U
#define vaERR_RESOURCE_WRONG_FORMAT 7197U
#define vaERR_VISAPI_NOT_INITIALIZED 100U
#else
_IEC_CONST unsigned long vaALS_CURRENT = 65536U;
_IEC_CONST unsigned long vaALS_NOTBYPASSSED = 512U;
_IEC_CONST unsigned long vaALS_BYPASSSED = 256U;
_IEC_CONST unsigned long vaALS_NOTACKNOWLEDGED = 32U;
_IEC_CONST unsigned long vaALS_ACKNOWLEDGED = 16U;
_IEC_CONST unsigned long vaALS_ACTIVE = 2U;
_IEC_CONST unsigned long vaALS_INACTIVE = 1U;
_IEC_CONST unsigned short vaERR_EMPTY_HISTORYLIST = 248U;
_IEC_CONST unsigned short vaERR_BUSY = 7000U;
_IEC_CONST unsigned short vaERR_EMPTY_ALARMLIST = 240U;
_IEC_CONST unsigned short vaERR_NOALARMQUIT = 245U;
_IEC_CONST unsigned short vaERR_DELHISLIST = 246U;
_IEC_CONST unsigned short vaERR_BUSY_ALARMSYSTEM = 247U;
_IEC_CONST unsigned short vaERR_INTERPRETER_NOT_READY = 7010U;
_IEC_CONST unsigned short vaERR_DRIVER_NOT_FOUND = 7020U;
_IEC_CONST unsigned short vaERR_WRONG_MODULE_NAME = 7030U;
_IEC_CONST unsigned short vaERR_UNDEFINED_ERROR_CODE = 7050U;
_IEC_CONST unsigned short vaERR_FONTMODULE_NOT_FOUND = 7060U;
_IEC_CONST unsigned short vaERR_KEYMATRIX_NOT_VALID = 7070U;
_IEC_CONST unsigned short vaERR_NOT_SUPPORTED = 7080U;
_IEC_CONST unsigned short vaERR_PARAMETER = 7090U;
_IEC_CONST unsigned short vaERR_CREATE_TASK_FAILED = 7100U;
_IEC_CONST unsigned short vaERR_EXISTS = 7101U;
_IEC_CONST unsigned short vaERR_NO_ACCESS = 7110U;
_IEC_CONST unsigned short vaERR_ACCESS = 7111U;
_IEC_CONST unsigned short vaERR_OVERFLOW = 7120U;
_IEC_CONST unsigned short vaERR_CONNECTION_LOST = 7130U;
_IEC_CONST unsigned short vaERR_TIMEOUT = 7140U;
_IEC_CONST unsigned short vaERR_ARGUMENT = 7150U;
_IEC_CONST unsigned short vaERR_VERSION = 7160U;
_IEC_CONST unsigned short vaERR_MEMORY = 7170U;
_IEC_CONST unsigned short vaERR_RESOURCES = 7180U;
_IEC_CONST unsigned short vaERR_ALREADY = 7190U;
_IEC_CONST unsigned short vaERR_NO_MORE = 7195U;
_IEC_CONST unsigned short vaERR_RESOURCE_NOT_FOUND = 7196U;
_IEC_CONST unsigned short vaERR_RESOURCE_WRONG_FORMAT = 7197U;
_IEC_CONST unsigned short vaERR_VISAPI_NOT_INITIALIZED = 100U;
#endif
/* Datatypes and datatypes of function blocks */
typedef struct display_info
{ unsigned short width;
unsigned short height;
unsigned long func1;
unsigned long func2;
unsigned char bpp;
} display_info;
typedef struct VCHANDLE
{
} VCHANDLE;
typedef struct TouchAction
{ unsigned long status;
unsigned long y;
unsigned long x;
} TouchAction;
typedef struct sVCBitmap
{ unsigned long vpInternalData;
unsigned long vpData;
signed long iBPP;
signed long iHeight;
signed long iWidth;
} sVCBitmap;
/* Prototyping of functions and function blocks */
unsigned short VA_Attach(plcbit enable, unsigned long VCHandle, unsigned long uiType, unsigned long uiPara);
unsigned short VA_BlitBitmap(plcbit enable, unsigned long VCHandle, unsigned long pBitmap, signed long iDestX, signed long iDestY, signed long iClipX1, signed long iClipY1, signed long iClipX2, signed long iClipY2, unsigned long uiFlags);
unsigned short VA_Configure(plcbit enable, plcstring* ucProjectName, unsigned long uiOption, unsigned long uiValue);
unsigned short VA_CopyScreenRect(plcbit enable, unsigned long VCHandle, unsigned short x1, unsigned short y1, unsigned short x2, unsigned short y2, signed short dx, signed short dy);
unsigned short VA_DelAlarmHistory(plcbit enable, unsigned long VCHandle);
unsigned short VA_GetActiveAlarmCount(plcbit enable, unsigned long VCHandle, unsigned long AlarmCount);
unsigned short VA_GetAlarmCount(plcbit enable, unsigned long VCHandle, unsigned long filter, unsigned long AlarmCount);
unsigned short VA_Detach(plcbit enable, unsigned long VCHandle);
unsigned short VA_DrawBitmap(plcbit enable, unsigned long VCHandle, unsigned short index, unsigned short x, unsigned short y);
unsigned short VA_Ellipse(plcbit enable, unsigned long VCHandle, unsigned short x, unsigned short y, unsigned short heigth, unsigned short width, unsigned short fill, unsigned short color);
unsigned short VA_ExchangeFont(plcbit enable, unsigned long VCHandle, unsigned char cIndex, unsigned char cNewIndex);
unsigned short VA_ExtractKeyMatrix(plcbit enable, unsigned long VCHandle, unsigned long pKeyMatrix, unsigned long uiKeysToRead, unsigned long puiKeyRead, unsigned long uiTimeoutInMsec, unsigned long puiAgeInMsec);
unsigned short VA_FreeBitmap(plcbit enable, unsigned long VCHandle, unsigned long pBitmap);
unsigned short VA_GetActAlarmList(plcbit enable, unsigned long VCHandle, signed long pcAlarmLine, signed long plLen, unsigned short iFunction, unsigned char cSeperator, unsigned char cDateTimeFormat);
unsigned short VA_GetAlCurPos(plcbit enable, unsigned long VCHandle, signed long pGroupNumber, signed long pAlarmNumber);
unsigned short VA_GetAlarmList(plcbit enable, unsigned long VCHandle, signed long pcAlarmLine, signed long plLen, unsigned short iFunction);
unsigned short VA_GetBrightness(plcbit enable, unsigned long VCHandle, unsigned long pValue);
unsigned short VA_GetCalStatus(plcbit enable, unsigned long VCHandle);
unsigned short VA_GetContrast(plcbit enable, unsigned long VCHandle);
unsigned short VA_GetDisplayInfo(plcbit enable, unsigned long VCHandle, unsigned long InfoType, unsigned long pValue);
unsigned short VA_GetExAlarmList(plcbit enable, unsigned long VCHandle, signed long pcAlarmLine, signed long plLen, unsigned short iFunction, unsigned char cSeperator, unsigned char cDateTimeFormat);
unsigned short VA_GetKeyMatrix(plcbit enable, unsigned long VCHandle, unsigned long pKeyMatrix, unsigned long KeysToRead, unsigned long pKeysRead);
unsigned long VA_GetPaletteColor(plcbit enable, unsigned long VCHandle, unsigned char uiIndex);
unsigned short VA_GetPanelStatus(plcbit enable, unsigned long VCHandle, unsigned long puiPanelStatus);
unsigned short VA_GetTextByTextGroup(plcbit enable, unsigned long VCHandle, unsigned long TG_id, unsigned short TGT_id, unsigned long pcText, unsigned long psTextlength);
unsigned short VA_GetTouchAction(plcbit enable, unsigned long VCHandle, unsigned long uiType, unsigned long pStatus);
unsigned short VA_LangIsAvailable(plcbit enable, unsigned long VCHandle, unsigned long uiIndex, unsigned long pucIsInstalled);
unsigned short VA_Line(plcbit enable, unsigned long VCHandle, unsigned short x1, unsigned short y1, unsigned short x2, unsigned short y2, unsigned short color);
unsigned short VA_LoadBitmap(plcbit enable, unsigned long VCHandle, plcstring* ucDevice, plcstring* ucPath, unsigned long ppBitmap);
unsigned short VA_NGetAlCurPos(plcbit enable, unsigned long VCHandle, signed long pGroupNumber, signed long pAlarmNumber);
unsigned short VA_NGetCalStatus(plcbit enable, unsigned long VCHandle, unsigned long pValue);
unsigned short VA_NGetContrast(plcbit enable, unsigned long VCHandle, unsigned long pValue);
unsigned long VA_NGetPaletteColor(plcbit enable, unsigned long VCHandle, unsigned char uiIndex, unsigned long pValue);
unsigned short VA_Quit(plcbit enable, unsigned long VCHandle, unsigned short usGroupNumber, unsigned short usAlarmNumber);
unsigned short VA_QuitAlarms(plcbit enable, unsigned long VCHandle, unsigned short wGroupNumber);
unsigned short VA_Rect(plcbit enable, unsigned long VCHandle, unsigned short x1, unsigned short y1, unsigned short width, unsigned short height, unsigned short fill, unsigned short color);
unsigned short VA_Redraw(plcbit enable, unsigned long VCHandle);
unsigned short VA_Saccess(plcbit enable, unsigned long VCHandle);
unsigned short VA_SaveSettings(plcbit enable, unsigned long VCHandle, unsigned short uiAction);
unsigned short VA_SetBacklight(plcbit enable, unsigned long VCHandle, plcbit bSet);
unsigned short VA_SetBrightness(plcbit enable, unsigned long VCHandle, unsigned long uiPercent);
unsigned short VA_SetClipRegion(plcbit enable, unsigned long VCHandle, unsigned long uiX1, unsigned long uiY1, unsigned long uiX2, unsigned long uiY2);
unsigned short VA_SetContrast(plcbit enable, unsigned long VCHandle, unsigned long uiPercent);
unsigned short VA_SetPaletteColor(plcbit enable, unsigned long VCHandle, unsigned char index, unsigned long color);
unsigned short VA_SetUserParam(plcbit enable, unsigned long VCHandle, unsigned char Type, unsigned long pParameter);
unsigned long VA_Setup(plcbit enable, plcstring* pProjectName);
unsigned short VA_SetupX(plcbit enable, unsigned long VCHandle, plcstring* pProjectName);
unsigned short VA_Shutdown(plcbit enable, unsigned long VCHandle);
unsigned short VA_Srelease(plcbit enable, unsigned long VCHandle);
unsigned short VA_StartProject(plcbit enable, unsigned long VCHandle);
unsigned short VA_StartVisuByName(plcbit enable, plcstring* pProjectName);
unsigned short VA_StartTouchCal(plcbit enable, unsigned long VCHandle);
unsigned short VA_StopProject(plcbit enable, unsigned long VCHandle);
unsigned short VA_Textout(plcbit enable, unsigned long VCHandle, unsigned short font_index, unsigned short x, unsigned short y, unsigned char fC, unsigned char bC, plcstring* pText);
unsigned short VA_TimeSynchronize(plcbit enable, unsigned long VC_Handle);
unsigned short VA_wcAlarmGetList(plcbit enable, unsigned long VCHandle, signed long pcAlarmLine, signed long plLen, unsigned short iFunction);
unsigned short VA_wcGetActAlarmList(plcbit enable, unsigned long VCHandle, signed long pcAlarmLine, signed long plLen, unsigned short iFunction, unsigned short usSeperator, unsigned char cDateTimeFormat);
unsigned short VA_wcGetExAlarmList(plcbit enable, unsigned long VCHandle, signed long pcAlarmLine, signed long plLen, unsigned short iFunction, unsigned short usSeperator, unsigned char cDateTimeFormat);
unsigned short VA_wcGetTextByTextGroup(plcbit enable, unsigned long VCHandle, unsigned long TG_id, unsigned short TGT_id, unsigned long pwText, unsigned long psTextLength);
unsigned short VA_wcTextout(plcbit enable, unsigned long VCHandle, unsigned short font_index, unsigned short x, unsigned short y, unsigned char fC, unsigned char bC, unsigned long pwText);
unsigned short VA_GetActualLang();
unsigned short VA_ClearTouchEventBuffer();
unsigned short VA_RegisterClient();
unsigned short VA_StartProcess(plcbit enable, unsigned long VCHandle, unsigned long uiProcessID, unsigned long psArguments, unsigned long puiExtendedErrorCode);
unsigned short VA_TerminateProcess(plcbit enable, unsigned long VCHandle, unsigned long uiProcessID, unsigned long puiExtendedErrorCode);
unsigned short VA_GetProcessExitCode(plcbit enable, unsigned long VCHandle, unsigned long uiProcessID, unsigned long puiExitCode, unsigned long puiExtendedErrorCode);
unsigned short VA_SetProcessZOrder(plcbit enable, unsigned long VCHandle, unsigned long uiProcessID, unsigned long uiZOrderFlags);
unsigned short VA_SetVisualizationZOrder(plcbit enable, unsigned long VCHandle, unsigned long uiZOrderFlags);
unsigned short VA_RunJScript(plcbit enable, unsigned long VCHandle, unsigned long uiJSStatusDP, unsigned long pScriptName);
__asm__(".section \".plc\"");
__asm__(".previous");
#ifdef __cplusplus
};
#endif
#endif /* _VISAPI_ */

View File

@@ -0,0 +1,208 @@
/* Automation Studio generated header file */
/* Do not edit ! */
#ifndef _VISAPI_
#define _VISAPI_
#ifdef __cplusplus
extern "C"
{
#endif
#include <bur/plctypes.h>
#ifndef _IEC_CONST
#define _IEC_CONST _WEAK const
#endif
/* Constants */
#ifdef _REPLACE_CONST
#define vaALS_CURRENT 65536U
#define vaALS_NOTBYPASSSED 512U
#define vaALS_BYPASSSED 256U
#define vaALS_NOTACKNOWLEDGED 32U
#define vaALS_ACKNOWLEDGED 16U
#define vaALS_ACTIVE 2U
#define vaALS_INACTIVE 1U
#define vaERR_EMPTY_HISTORYLIST 248U
#define vaERR_BUSY 7000U
#define vaERR_EMPTY_ALARMLIST 240U
#define vaERR_NOALARMQUIT 245U
#define vaERR_DELHISLIST 246U
#define vaERR_BUSY_ALARMSYSTEM 247U
#define vaERR_INTERPRETER_NOT_READY 7010U
#define vaERR_DRIVER_NOT_FOUND 7020U
#define vaERR_WRONG_MODULE_NAME 7030U
#define vaERR_UNDEFINED_ERROR_CODE 7050U
#define vaERR_FONTMODULE_NOT_FOUND 7060U
#define vaERR_KEYMATRIX_NOT_VALID 7070U
#define vaERR_NOT_SUPPORTED 7080U
#define vaERR_PARAMETER 7090U
#define vaERR_CREATE_TASK_FAILED 7100U
#define vaERR_EXISTS 7101U
#define vaERR_NO_ACCESS 7110U
#define vaERR_ACCESS 7111U
#define vaERR_OVERFLOW 7120U
#define vaERR_CONNECTION_LOST 7130U
#define vaERR_TIMEOUT 7140U
#define vaERR_ARGUMENT 7150U
#define vaERR_VERSION 7160U
#define vaERR_MEMORY 7170U
#define vaERR_RESOURCES 7180U
#define vaERR_ALREADY 7190U
#define vaERR_NO_MORE 7195U
#define vaERR_RESOURCE_NOT_FOUND 7196U
#define vaERR_RESOURCE_WRONG_FORMAT 7197U
#define vaERR_VISAPI_NOT_INITIALIZED 100U
#else
_IEC_CONST unsigned long vaALS_CURRENT = 65536U;
_IEC_CONST unsigned long vaALS_NOTBYPASSSED = 512U;
_IEC_CONST unsigned long vaALS_BYPASSSED = 256U;
_IEC_CONST unsigned long vaALS_NOTACKNOWLEDGED = 32U;
_IEC_CONST unsigned long vaALS_ACKNOWLEDGED = 16U;
_IEC_CONST unsigned long vaALS_ACTIVE = 2U;
_IEC_CONST unsigned long vaALS_INACTIVE = 1U;
_IEC_CONST unsigned short vaERR_EMPTY_HISTORYLIST = 248U;
_IEC_CONST unsigned short vaERR_BUSY = 7000U;
_IEC_CONST unsigned short vaERR_EMPTY_ALARMLIST = 240U;
_IEC_CONST unsigned short vaERR_NOALARMQUIT = 245U;
_IEC_CONST unsigned short vaERR_DELHISLIST = 246U;
_IEC_CONST unsigned short vaERR_BUSY_ALARMSYSTEM = 247U;
_IEC_CONST unsigned short vaERR_INTERPRETER_NOT_READY = 7010U;
_IEC_CONST unsigned short vaERR_DRIVER_NOT_FOUND = 7020U;
_IEC_CONST unsigned short vaERR_WRONG_MODULE_NAME = 7030U;
_IEC_CONST unsigned short vaERR_UNDEFINED_ERROR_CODE = 7050U;
_IEC_CONST unsigned short vaERR_FONTMODULE_NOT_FOUND = 7060U;
_IEC_CONST unsigned short vaERR_KEYMATRIX_NOT_VALID = 7070U;
_IEC_CONST unsigned short vaERR_NOT_SUPPORTED = 7080U;
_IEC_CONST unsigned short vaERR_PARAMETER = 7090U;
_IEC_CONST unsigned short vaERR_CREATE_TASK_FAILED = 7100U;
_IEC_CONST unsigned short vaERR_EXISTS = 7101U;
_IEC_CONST unsigned short vaERR_NO_ACCESS = 7110U;
_IEC_CONST unsigned short vaERR_ACCESS = 7111U;
_IEC_CONST unsigned short vaERR_OVERFLOW = 7120U;
_IEC_CONST unsigned short vaERR_CONNECTION_LOST = 7130U;
_IEC_CONST unsigned short vaERR_TIMEOUT = 7140U;
_IEC_CONST unsigned short vaERR_ARGUMENT = 7150U;
_IEC_CONST unsigned short vaERR_VERSION = 7160U;
_IEC_CONST unsigned short vaERR_MEMORY = 7170U;
_IEC_CONST unsigned short vaERR_RESOURCES = 7180U;
_IEC_CONST unsigned short vaERR_ALREADY = 7190U;
_IEC_CONST unsigned short vaERR_NO_MORE = 7195U;
_IEC_CONST unsigned short vaERR_RESOURCE_NOT_FOUND = 7196U;
_IEC_CONST unsigned short vaERR_RESOURCE_WRONG_FORMAT = 7197U;
_IEC_CONST unsigned short vaERR_VISAPI_NOT_INITIALIZED = 100U;
#endif
/* Datatypes and datatypes of function blocks */
typedef struct display_info
{ unsigned short width;
unsigned short height;
unsigned long func1;
unsigned long func2;
unsigned char bpp;
} display_info;
typedef struct VCHANDLE
{
} VCHANDLE;
typedef struct TouchAction
{ unsigned long status;
unsigned long y;
unsigned long x;
} TouchAction;
typedef struct sVCBitmap
{ unsigned long vpInternalData;
unsigned long vpData;
signed long iBPP;
signed long iHeight;
signed long iWidth;
} sVCBitmap;
/* Prototyping of functions and function blocks */
unsigned short VA_Attach(plcbit enable, unsigned long VCHandle, unsigned long uiType, unsigned long uiPara);
unsigned short VA_BlitBitmap(plcbit enable, unsigned long VCHandle, unsigned long pBitmap, signed long iDestX, signed long iDestY, signed long iClipX1, signed long iClipY1, signed long iClipX2, signed long iClipY2, unsigned long uiFlags);
unsigned short VA_Configure(plcbit enable, plcstring* ucProjectName, unsigned long uiOption, unsigned long uiValue);
unsigned short VA_CopyScreenRect(plcbit enable, unsigned long VCHandle, unsigned short x1, unsigned short y1, unsigned short x2, unsigned short y2, signed short dx, signed short dy);
unsigned short VA_DelAlarmHistory(plcbit enable, unsigned long VCHandle);
unsigned short VA_GetActiveAlarmCount(plcbit enable, unsigned long VCHandle, unsigned long AlarmCount);
unsigned short VA_GetAlarmCount(plcbit enable, unsigned long VCHandle, unsigned long filter, unsigned long AlarmCount);
unsigned short VA_Detach(plcbit enable, unsigned long VCHandle);
unsigned short VA_DrawBitmap(plcbit enable, unsigned long VCHandle, unsigned short index, unsigned short x, unsigned short y);
unsigned short VA_Ellipse(plcbit enable, unsigned long VCHandle, unsigned short x, unsigned short y, unsigned short heigth, unsigned short width, unsigned short fill, unsigned short color);
unsigned short VA_ExchangeFont(plcbit enable, unsigned long VCHandle, unsigned char cIndex, unsigned char cNewIndex);
unsigned short VA_ExtractKeyMatrix(plcbit enable, unsigned long VCHandle, unsigned long pKeyMatrix, unsigned long uiKeysToRead, unsigned long puiKeyRead, unsigned long uiTimeoutInMsec, unsigned long puiAgeInMsec);
unsigned short VA_FreeBitmap(plcbit enable, unsigned long VCHandle, unsigned long pBitmap);
unsigned short VA_GetActAlarmList(plcbit enable, unsigned long VCHandle, signed long pcAlarmLine, signed long plLen, unsigned short iFunction, unsigned char cSeperator, unsigned char cDateTimeFormat);
unsigned short VA_GetAlCurPos(plcbit enable, unsigned long VCHandle, signed long pGroupNumber, signed long pAlarmNumber);
unsigned short VA_GetAlarmList(plcbit enable, unsigned long VCHandle, signed long pcAlarmLine, signed long plLen, unsigned short iFunction);
unsigned short VA_GetBrightness(plcbit enable, unsigned long VCHandle, unsigned long pValue);
unsigned short VA_GetCalStatus(plcbit enable, unsigned long VCHandle);
unsigned short VA_GetContrast(plcbit enable, unsigned long VCHandle);
unsigned short VA_GetDisplayInfo(plcbit enable, unsigned long VCHandle, unsigned long InfoType, unsigned long pValue);
unsigned short VA_GetExAlarmList(plcbit enable, unsigned long VCHandle, signed long pcAlarmLine, signed long plLen, unsigned short iFunction, unsigned char cSeperator, unsigned char cDateTimeFormat);
unsigned short VA_GetKeyMatrix(plcbit enable, unsigned long VCHandle, unsigned long pKeyMatrix, unsigned long KeysToRead, unsigned long pKeysRead);
unsigned long VA_GetPaletteColor(plcbit enable, unsigned long VCHandle, unsigned char uiIndex);
unsigned short VA_GetPanelStatus(plcbit enable, unsigned long VCHandle, unsigned long puiPanelStatus);
unsigned short VA_GetTextByTextGroup(plcbit enable, unsigned long VCHandle, unsigned long TG_id, unsigned short TGT_id, unsigned long pcText, unsigned long psTextlength);
unsigned short VA_GetTouchAction(plcbit enable, unsigned long VCHandle, unsigned long uiType, unsigned long pStatus);
unsigned short VA_LangIsAvailable(plcbit enable, unsigned long VCHandle, unsigned long uiIndex, unsigned long pucIsInstalled);
unsigned short VA_Line(plcbit enable, unsigned long VCHandle, unsigned short x1, unsigned short y1, unsigned short x2, unsigned short y2, unsigned short color);
unsigned short VA_LoadBitmap(plcbit enable, unsigned long VCHandle, plcstring* ucDevice, plcstring* ucPath, unsigned long ppBitmap);
unsigned short VA_NGetAlCurPos(plcbit enable, unsigned long VCHandle, signed long pGroupNumber, signed long pAlarmNumber);
unsigned short VA_NGetCalStatus(plcbit enable, unsigned long VCHandle, unsigned long pValue);
unsigned short VA_NGetContrast(plcbit enable, unsigned long VCHandle, unsigned long pValue);
unsigned long VA_NGetPaletteColor(plcbit enable, unsigned long VCHandle, unsigned char uiIndex, unsigned long pValue);
unsigned short VA_Quit(plcbit enable, unsigned long VCHandle, unsigned short usGroupNumber, unsigned short usAlarmNumber);
unsigned short VA_QuitAlarms(plcbit enable, unsigned long VCHandle, unsigned short wGroupNumber);
unsigned short VA_Rect(plcbit enable, unsigned long VCHandle, unsigned short x1, unsigned short y1, unsigned short width, unsigned short height, unsigned short fill, unsigned short color);
unsigned short VA_Redraw(plcbit enable, unsigned long VCHandle);
unsigned short VA_Saccess(plcbit enable, unsigned long VCHandle);
unsigned short VA_SaveSettings(plcbit enable, unsigned long VCHandle, unsigned short uiAction);
unsigned short VA_SetBacklight(plcbit enable, unsigned long VCHandle, plcbit bSet);
unsigned short VA_SetBrightness(plcbit enable, unsigned long VCHandle, unsigned long uiPercent);
unsigned short VA_SetClipRegion(plcbit enable, unsigned long VCHandle, unsigned long uiX1, unsigned long uiY1, unsigned long uiX2, unsigned long uiY2);
unsigned short VA_SetContrast(plcbit enable, unsigned long VCHandle, unsigned long uiPercent);
unsigned short VA_SetPaletteColor(plcbit enable, unsigned long VCHandle, unsigned char index, unsigned long color);
unsigned short VA_SetUserParam(plcbit enable, unsigned long VCHandle, unsigned char Type, unsigned long pParameter);
unsigned long VA_Setup(plcbit enable, plcstring* pProjectName);
unsigned short VA_SetupX(plcbit enable, unsigned long VCHandle, plcstring* pProjectName);
unsigned short VA_Shutdown(plcbit enable, unsigned long VCHandle);
unsigned short VA_Srelease(plcbit enable, unsigned long VCHandle);
unsigned short VA_StartProject(plcbit enable, unsigned long VCHandle);
unsigned short VA_StartVisuByName(plcbit enable, plcstring* pProjectName);
unsigned short VA_StartTouchCal(plcbit enable, unsigned long VCHandle);
unsigned short VA_StopProject(plcbit enable, unsigned long VCHandle);
unsigned short VA_Textout(plcbit enable, unsigned long VCHandle, unsigned short font_index, unsigned short x, unsigned short y, unsigned char fC, unsigned char bC, plcstring* pText);
unsigned short VA_TimeSynchronize(plcbit enable, unsigned long VC_Handle);
unsigned short VA_wcAlarmGetList(plcbit enable, unsigned long VCHandle, signed long pcAlarmLine, signed long plLen, unsigned short iFunction);
unsigned short VA_wcGetActAlarmList(plcbit enable, unsigned long VCHandle, signed long pcAlarmLine, signed long plLen, unsigned short iFunction, unsigned short usSeperator, unsigned char cDateTimeFormat);
unsigned short VA_wcGetExAlarmList(plcbit enable, unsigned long VCHandle, signed long pcAlarmLine, signed long plLen, unsigned short iFunction, unsigned short usSeperator, unsigned char cDateTimeFormat);
unsigned short VA_wcGetTextByTextGroup(plcbit enable, unsigned long VCHandle, unsigned long TG_id, unsigned short TGT_id, unsigned long pwText, unsigned long psTextLength);
unsigned short VA_wcTextout(plcbit enable, unsigned long VCHandle, unsigned short font_index, unsigned short x, unsigned short y, unsigned char fC, unsigned char bC, unsigned long pwText);
unsigned short VA_GetActualLang();
unsigned short VA_ClearTouchEventBuffer();
unsigned short VA_RegisterClient();
unsigned short VA_StartProcess(plcbit enable, unsigned long VCHandle, unsigned long uiProcessID, unsigned long psArguments, unsigned long puiExtendedErrorCode);
unsigned short VA_TerminateProcess(plcbit enable, unsigned long VCHandle, unsigned long uiProcessID, unsigned long puiExtendedErrorCode);
unsigned short VA_GetProcessExitCode(plcbit enable, unsigned long VCHandle, unsigned long uiProcessID, unsigned long puiExitCode, unsigned long puiExtendedErrorCode);
unsigned short VA_SetProcessZOrder(plcbit enable, unsigned long VCHandle, unsigned long uiProcessID, unsigned long uiZOrderFlags);
unsigned short VA_SetVisualizationZOrder(plcbit enable, unsigned long VCHandle, unsigned long uiZOrderFlags);
unsigned short VA_RunJScript(plcbit enable, unsigned long VCHandle, unsigned long uiJSStatusDP, unsigned long pScriptName);
__asm__(".section \".plc\"");
__asm__(".previous");
#ifdef __cplusplus
};
#endif
#endif /* _VISAPI_ */

View File

@@ -0,0 +1,208 @@
/* Automation Studio generated header file */
/* Do not edit ! */
#ifndef _VISAPI_
#define _VISAPI_
#ifdef __cplusplus
extern "C"
{
#endif
#include <bur/plctypes.h>
#ifndef _IEC_CONST
#define _IEC_CONST _WEAK const
#endif
/* Constants */
#ifdef _REPLACE_CONST
#define vaALS_CURRENT 65536U
#define vaALS_NOTBYPASSSED 512U
#define vaALS_BYPASSSED 256U
#define vaALS_NOTACKNOWLEDGED 32U
#define vaALS_ACKNOWLEDGED 16U
#define vaALS_ACTIVE 2U
#define vaALS_INACTIVE 1U
#define vaERR_EMPTY_HISTORYLIST 248U
#define vaERR_BUSY 7000U
#define vaERR_EMPTY_ALARMLIST 240U
#define vaERR_NOALARMQUIT 245U
#define vaERR_DELHISLIST 246U
#define vaERR_BUSY_ALARMSYSTEM 247U
#define vaERR_INTERPRETER_NOT_READY 7010U
#define vaERR_DRIVER_NOT_FOUND 7020U
#define vaERR_WRONG_MODULE_NAME 7030U
#define vaERR_UNDEFINED_ERROR_CODE 7050U
#define vaERR_FONTMODULE_NOT_FOUND 7060U
#define vaERR_KEYMATRIX_NOT_VALID 7070U
#define vaERR_NOT_SUPPORTED 7080U
#define vaERR_PARAMETER 7090U
#define vaERR_CREATE_TASK_FAILED 7100U
#define vaERR_EXISTS 7101U
#define vaERR_NO_ACCESS 7110U
#define vaERR_ACCESS 7111U
#define vaERR_OVERFLOW 7120U
#define vaERR_CONNECTION_LOST 7130U
#define vaERR_TIMEOUT 7140U
#define vaERR_ARGUMENT 7150U
#define vaERR_VERSION 7160U
#define vaERR_MEMORY 7170U
#define vaERR_RESOURCES 7180U
#define vaERR_ALREADY 7190U
#define vaERR_NO_MORE 7195U
#define vaERR_RESOURCE_NOT_FOUND 7196U
#define vaERR_RESOURCE_WRONG_FORMAT 7197U
#define vaERR_VISAPI_NOT_INITIALIZED 100U
#else
_IEC_CONST unsigned long vaALS_CURRENT = 65536U;
_IEC_CONST unsigned long vaALS_NOTBYPASSSED = 512U;
_IEC_CONST unsigned long vaALS_BYPASSSED = 256U;
_IEC_CONST unsigned long vaALS_NOTACKNOWLEDGED = 32U;
_IEC_CONST unsigned long vaALS_ACKNOWLEDGED = 16U;
_IEC_CONST unsigned long vaALS_ACTIVE = 2U;
_IEC_CONST unsigned long vaALS_INACTIVE = 1U;
_IEC_CONST unsigned short vaERR_EMPTY_HISTORYLIST = 248U;
_IEC_CONST unsigned short vaERR_BUSY = 7000U;
_IEC_CONST unsigned short vaERR_EMPTY_ALARMLIST = 240U;
_IEC_CONST unsigned short vaERR_NOALARMQUIT = 245U;
_IEC_CONST unsigned short vaERR_DELHISLIST = 246U;
_IEC_CONST unsigned short vaERR_BUSY_ALARMSYSTEM = 247U;
_IEC_CONST unsigned short vaERR_INTERPRETER_NOT_READY = 7010U;
_IEC_CONST unsigned short vaERR_DRIVER_NOT_FOUND = 7020U;
_IEC_CONST unsigned short vaERR_WRONG_MODULE_NAME = 7030U;
_IEC_CONST unsigned short vaERR_UNDEFINED_ERROR_CODE = 7050U;
_IEC_CONST unsigned short vaERR_FONTMODULE_NOT_FOUND = 7060U;
_IEC_CONST unsigned short vaERR_KEYMATRIX_NOT_VALID = 7070U;
_IEC_CONST unsigned short vaERR_NOT_SUPPORTED = 7080U;
_IEC_CONST unsigned short vaERR_PARAMETER = 7090U;
_IEC_CONST unsigned short vaERR_CREATE_TASK_FAILED = 7100U;
_IEC_CONST unsigned short vaERR_EXISTS = 7101U;
_IEC_CONST unsigned short vaERR_NO_ACCESS = 7110U;
_IEC_CONST unsigned short vaERR_ACCESS = 7111U;
_IEC_CONST unsigned short vaERR_OVERFLOW = 7120U;
_IEC_CONST unsigned short vaERR_CONNECTION_LOST = 7130U;
_IEC_CONST unsigned short vaERR_TIMEOUT = 7140U;
_IEC_CONST unsigned short vaERR_ARGUMENT = 7150U;
_IEC_CONST unsigned short vaERR_VERSION = 7160U;
_IEC_CONST unsigned short vaERR_MEMORY = 7170U;
_IEC_CONST unsigned short vaERR_RESOURCES = 7180U;
_IEC_CONST unsigned short vaERR_ALREADY = 7190U;
_IEC_CONST unsigned short vaERR_NO_MORE = 7195U;
_IEC_CONST unsigned short vaERR_RESOURCE_NOT_FOUND = 7196U;
_IEC_CONST unsigned short vaERR_RESOURCE_WRONG_FORMAT = 7197U;
_IEC_CONST unsigned short vaERR_VISAPI_NOT_INITIALIZED = 100U;
#endif
/* Datatypes and datatypes of function blocks */
typedef struct display_info
{ unsigned short width;
unsigned short height;
unsigned long func1;
unsigned long func2;
unsigned char bpp;
} display_info;
typedef struct VCHANDLE
{
} VCHANDLE;
typedef struct TouchAction
{ unsigned long status;
unsigned long y;
unsigned long x;
} TouchAction;
typedef struct sVCBitmap
{ unsigned long vpInternalData;
unsigned long vpData;
signed long iBPP;
signed long iHeight;
signed long iWidth;
} sVCBitmap;
/* Prototyping of functions and function blocks */
unsigned short VA_Attach(plcbit enable, unsigned long VCHandle, unsigned long uiType, unsigned long uiPara);
unsigned short VA_BlitBitmap(plcbit enable, unsigned long VCHandle, unsigned long pBitmap, signed long iDestX, signed long iDestY, signed long iClipX1, signed long iClipY1, signed long iClipX2, signed long iClipY2, unsigned long uiFlags);
unsigned short VA_Configure(plcbit enable, plcstring* ucProjectName, unsigned long uiOption, unsigned long uiValue);
unsigned short VA_CopyScreenRect(plcbit enable, unsigned long VCHandle, unsigned short x1, unsigned short y1, unsigned short x2, unsigned short y2, signed short dx, signed short dy);
unsigned short VA_DelAlarmHistory(plcbit enable, unsigned long VCHandle);
unsigned short VA_GetActiveAlarmCount(plcbit enable, unsigned long VCHandle, unsigned long AlarmCount);
unsigned short VA_GetAlarmCount(plcbit enable, unsigned long VCHandle, unsigned long filter, unsigned long AlarmCount);
unsigned short VA_Detach(plcbit enable, unsigned long VCHandle);
unsigned short VA_DrawBitmap(plcbit enable, unsigned long VCHandle, unsigned short index, unsigned short x, unsigned short y);
unsigned short VA_Ellipse(plcbit enable, unsigned long VCHandle, unsigned short x, unsigned short y, unsigned short heigth, unsigned short width, unsigned short fill, unsigned short color);
unsigned short VA_ExchangeFont(plcbit enable, unsigned long VCHandle, unsigned char cIndex, unsigned char cNewIndex);
unsigned short VA_ExtractKeyMatrix(plcbit enable, unsigned long VCHandle, unsigned long pKeyMatrix, unsigned long uiKeysToRead, unsigned long puiKeyRead, unsigned long uiTimeoutInMsec, unsigned long puiAgeInMsec);
unsigned short VA_FreeBitmap(plcbit enable, unsigned long VCHandle, unsigned long pBitmap);
unsigned short VA_GetActAlarmList(plcbit enable, unsigned long VCHandle, signed long pcAlarmLine, signed long plLen, unsigned short iFunction, unsigned char cSeperator, unsigned char cDateTimeFormat);
unsigned short VA_GetAlCurPos(plcbit enable, unsigned long VCHandle, signed long pGroupNumber, signed long pAlarmNumber);
unsigned short VA_GetAlarmList(plcbit enable, unsigned long VCHandle, signed long pcAlarmLine, signed long plLen, unsigned short iFunction);
unsigned short VA_GetBrightness(plcbit enable, unsigned long VCHandle, unsigned long pValue);
unsigned short VA_GetCalStatus(plcbit enable, unsigned long VCHandle);
unsigned short VA_GetContrast(plcbit enable, unsigned long VCHandle);
unsigned short VA_GetDisplayInfo(plcbit enable, unsigned long VCHandle, unsigned long InfoType, unsigned long pValue);
unsigned short VA_GetExAlarmList(plcbit enable, unsigned long VCHandle, signed long pcAlarmLine, signed long plLen, unsigned short iFunction, unsigned char cSeperator, unsigned char cDateTimeFormat);
unsigned short VA_GetKeyMatrix(plcbit enable, unsigned long VCHandle, unsigned long pKeyMatrix, unsigned long KeysToRead, unsigned long pKeysRead);
unsigned long VA_GetPaletteColor(plcbit enable, unsigned long VCHandle, unsigned char uiIndex);
unsigned short VA_GetPanelStatus(plcbit enable, unsigned long VCHandle, unsigned long puiPanelStatus);
unsigned short VA_GetTextByTextGroup(plcbit enable, unsigned long VCHandle, unsigned long TG_id, unsigned short TGT_id, unsigned long pcText, unsigned long psTextlength);
unsigned short VA_GetTouchAction(plcbit enable, unsigned long VCHandle, unsigned long uiType, unsigned long pStatus);
unsigned short VA_LangIsAvailable(plcbit enable, unsigned long VCHandle, unsigned long uiIndex, unsigned long pucIsInstalled);
unsigned short VA_Line(plcbit enable, unsigned long VCHandle, unsigned short x1, unsigned short y1, unsigned short x2, unsigned short y2, unsigned short color);
unsigned short VA_LoadBitmap(plcbit enable, unsigned long VCHandle, plcstring* ucDevice, plcstring* ucPath, unsigned long ppBitmap);
unsigned short VA_NGetAlCurPos(plcbit enable, unsigned long VCHandle, signed long pGroupNumber, signed long pAlarmNumber);
unsigned short VA_NGetCalStatus(plcbit enable, unsigned long VCHandle, unsigned long pValue);
unsigned short VA_NGetContrast(plcbit enable, unsigned long VCHandle, unsigned long pValue);
unsigned long VA_NGetPaletteColor(plcbit enable, unsigned long VCHandle, unsigned char uiIndex, unsigned long pValue);
unsigned short VA_Quit(plcbit enable, unsigned long VCHandle, unsigned short usGroupNumber, unsigned short usAlarmNumber);
unsigned short VA_QuitAlarms(plcbit enable, unsigned long VCHandle, unsigned short wGroupNumber);
unsigned short VA_Rect(plcbit enable, unsigned long VCHandle, unsigned short x1, unsigned short y1, unsigned short width, unsigned short height, unsigned short fill, unsigned short color);
unsigned short VA_Redraw(plcbit enable, unsigned long VCHandle);
unsigned short VA_Saccess(plcbit enable, unsigned long VCHandle);
unsigned short VA_SaveSettings(plcbit enable, unsigned long VCHandle, unsigned short uiAction);
unsigned short VA_SetBacklight(plcbit enable, unsigned long VCHandle, plcbit bSet);
unsigned short VA_SetBrightness(plcbit enable, unsigned long VCHandle, unsigned long uiPercent);
unsigned short VA_SetClipRegion(plcbit enable, unsigned long VCHandle, unsigned long uiX1, unsigned long uiY1, unsigned long uiX2, unsigned long uiY2);
unsigned short VA_SetContrast(plcbit enable, unsigned long VCHandle, unsigned long uiPercent);
unsigned short VA_SetPaletteColor(plcbit enable, unsigned long VCHandle, unsigned char index, unsigned long color);
unsigned short VA_SetUserParam(plcbit enable, unsigned long VCHandle, unsigned char Type, unsigned long pParameter);
unsigned long VA_Setup(plcbit enable, plcstring* pProjectName);
unsigned short VA_SetupX(plcbit enable, unsigned long VCHandle, plcstring* pProjectName);
unsigned short VA_Shutdown(plcbit enable, unsigned long VCHandle);
unsigned short VA_Srelease(plcbit enable, unsigned long VCHandle);
unsigned short VA_StartProject(plcbit enable, unsigned long VCHandle);
unsigned short VA_StartVisuByName(plcbit enable, plcstring* pProjectName);
unsigned short VA_StartTouchCal(plcbit enable, unsigned long VCHandle);
unsigned short VA_StopProject(plcbit enable, unsigned long VCHandle);
unsigned short VA_Textout(plcbit enable, unsigned long VCHandle, unsigned short font_index, unsigned short x, unsigned short y, unsigned char fC, unsigned char bC, plcstring* pText);
unsigned short VA_TimeSynchronize(plcbit enable, unsigned long VC_Handle);
unsigned short VA_wcAlarmGetList(plcbit enable, unsigned long VCHandle, signed long pcAlarmLine, signed long plLen, unsigned short iFunction);
unsigned short VA_wcGetActAlarmList(plcbit enable, unsigned long VCHandle, signed long pcAlarmLine, signed long plLen, unsigned short iFunction, unsigned short usSeperator, unsigned char cDateTimeFormat);
unsigned short VA_wcGetExAlarmList(plcbit enable, unsigned long VCHandle, signed long pcAlarmLine, signed long plLen, unsigned short iFunction, unsigned short usSeperator, unsigned char cDateTimeFormat);
unsigned short VA_wcGetTextByTextGroup(plcbit enable, unsigned long VCHandle, unsigned long TG_id, unsigned short TGT_id, unsigned long pwText, unsigned long psTextLength);
unsigned short VA_wcTextout(plcbit enable, unsigned long VCHandle, unsigned short font_index, unsigned short x, unsigned short y, unsigned char fC, unsigned char bC, unsigned long pwText);
unsigned short VA_GetActualLang();
unsigned short VA_ClearTouchEventBuffer();
unsigned short VA_RegisterClient();
unsigned short VA_StartProcess(plcbit enable, unsigned long VCHandle, unsigned long uiProcessID, unsigned long psArguments, unsigned long puiExtendedErrorCode);
unsigned short VA_TerminateProcess(plcbit enable, unsigned long VCHandle, unsigned long uiProcessID, unsigned long puiExtendedErrorCode);
unsigned short VA_GetProcessExitCode(plcbit enable, unsigned long VCHandle, unsigned long uiProcessID, unsigned long puiExitCode, unsigned long puiExtendedErrorCode);
unsigned short VA_SetProcessZOrder(plcbit enable, unsigned long VCHandle, unsigned long uiProcessID, unsigned long uiZOrderFlags);
unsigned short VA_SetVisualizationZOrder(plcbit enable, unsigned long VCHandle, unsigned long uiZOrderFlags);
unsigned short VA_RunJScript(plcbit enable, unsigned long VCHandle, unsigned long uiJSStatusDP, unsigned long pScriptName);
__asm__(".section \".plc\"");
__asm__(".previous");
#ifdef __cplusplus
};
#endif
#endif /* _VISAPI_ */

View File

@@ -0,0 +1,627 @@
(********************************************************************
* COPYRIGHT (C) BERNECKER + RAINER, AUSTRIA, A-5142 EGGELSBERG
********************************************************************
* Library: Visapi
* File: Visapi.fun
* Created: 11.11.2003
********************************************************************
* Functions and function blocks of library Visapi
********************************************************************)
FUNCTION VA_Attach : UINT (*attach to a VC SG4 drawbox control*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VCHandle : UDINT; (*handle of visualization object*)
uiType : UDINT; (*reserved for later use*)
uiPara : UDINT;(*pointer to STRING which specifies the location fo the drawbox control*)
END_VAR
END_FUNCTION
FUNCTION VA_BlitBitmap : UINT (*draw a part of a bitmap*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VCHandle : UDINT; (*handle of visualization object*)
pBitmap : UDINT; (*pointer to the bitmap structure*)
iDestX : DINT; (*x coordinate where the loaded graphic is drawn*)
iDestY : DINT; (*y coordinate where the loaded graphic is drawn*)
iClipX1 : DINT; (*x coordinate of the upper left corner of the clipping area*)
iClipY1 : DINT; (*y coordinate of the upper left corner of the clipping area*)
iClipX2 : DINT; (*x coordinate of the lower right corner of the clipping area*)
iClipY2 : DINT; (*y coordinate of the lower right corner of the clipping area*)
uiFlags : UDINT; (*flag that specifies whether the parameters are being evaluated for the clipping area*)
END_VAR
END_FUNCTION
FUNCTION VA_Configure : UINT (*function is only used internally*)
VAR_INPUT
enable : BOOL;
ucProjectName : STRING[80];
uiOption : UDINT;
uiValue : UDINT;
END_VAR
END_FUNCTION
FUNCTION VA_CopyScreenRect : UINT (*copy a screen content to another position*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VCHandle : UDINT; (*handle of visualization object*)
x1 : UINT; (*x coordinate of the upper left corner of the rectangle to be copied*)
y1 : UINT; (*y coordinate of the upper left corner of the rectangle to be copied*)
x2 : UINT; (*x coordinate of the lower right corner of the rectangle to be copied*)
y2 : UINT; (*y coordinate of the lower right corner of the rectangle to be copied*)
dx : INT; (*x coordinate of the lower right corner of the rectangle to be copied*)
dy : INT; (*number of pixels in Y direction in which the rectangle should be copied*)
END_VAR
END_FUNCTION
FUNCTION VA_DelAlarmHistory : UINT (*delete alarm history*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VCHandle : UDINT; (*handle of visualization object*)
END_VAR
END_FUNCTION
FUNCTION VA_GetActiveAlarmCount : UINT (*get active alarmcount*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VCHandle : UDINT; (*handle of visualization object*)
AlarmCount : UDINT; (*number of active alarms*)
END_VAR
END_FUNCTION
FUNCTION VA_GetAlarmCount : UINT (*get acknowledged alarmcount*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VCHandle : UDINT; (*handle of visualization object*)
filter:UDINT; (*filter*)
AlarmCount : UDINT; (*number of active alarms*)
END_VAR
END_FUNCTION
FUNCTION VA_Detach : UINT (*detach from a VC SG4 drawbox control*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VCHandle : UDINT; (*handle of visualization object*)
END_VAR
END_FUNCTION
FUNCTION VA_DrawBitmap : UINT (*draw a bitmap*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VCHandle : UDINT; (*handle of visualization object*)
index : UINT; (*index of the bitmap in the project*)
x : UINT; (*x coordinate of the upper left corner of the bitmap*)
y : UINT; (*y coordinate of the upper left corner of the bitmap*)
END_VAR
END_FUNCTION
FUNCTION VA_Ellipse : UINT (*draw an ellipse / circle*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VCHandle : UDINT; (*handle of visualization object*)
x : UINT; (*x coordinate of the middle point of the ellipse*)
y : UINT; (*y coordinate of the middle point of the ellipse*)
heigth : UINT; (*height of the ellipse in pixels*)
width : UINT; (*width of the ellipse in pixels*)
fill : UINT; (*ellipse fill color*)
color : UINT; (*ellipse border color*)
END_VAR
END_FUNCTION
FUNCTION VA_ExchangeFont : UINT (*function is only used internally*)
VAR_INPUT
enable : BOOL;
VCHandle : UDINT;
cIndex : USINT;
cNewIndex : USINT;
END_VAR
END_FUNCTION
FUNCTION VA_ExtractKeyMatrix : UINT (*read key matrix information and use of timeout*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VCHandle : UDINT; (*handle of visualization object*)
pKeyMatrix : UDINT; (*pointer to start address of the key address array*)
uiKeysToRead : UDINT; (*number of keys to be read*)
puiKeyRead : UDINT; (*number of keys read*)
uiTimeoutInMsec : UDINT; (*timeout in ms.*)
puiAgeInMsec : UDINT; (*pointer to integer where time is written how long it takes to read the key matrix*)
END_VAR
END_FUNCTION
FUNCTION VA_FreeBitmap : UINT (*release handle from a bitmap on the target*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VCHandle : UDINT; (*handle of visualization object*)
pBitmap : UDINT; (*pointer to the bitmap structure*)
END_VAR
END_FUNCTION
FUNCTION VA_GetActAlarmList : UINT (*read entry from actual alarm list*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VCHandle : UDINT; (*handle of visualization object*)
pcAlarmLine : DINT; (*pointer to STRING which should record the alarm line*)
plLen : DINT; (*pointer to DINT which contains the length of the alarm line*)
iFunction : UINT; (*function to execute 1 = Read First alarm, 2 = Read next alarm*)
cSeperator : USINT; (*separation character to be inserted into the alarm line*)
cDateTimeFormat : USINT; (*desired format for date and time output in the alarm list*)
END_VAR
END_FUNCTION
FUNCTION VA_GetAlCurPos : UINT (*get alarm control cursor position*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VCHandle : UDINT; (*handle of visualization object*)
pGroupNumber : DINT; (*pointer to DINT which contains the group number of the alarm entry at the current cursor position*)
pAlarmNumber : DINT; (*pointer to DINT which contains the alarm number of the alarm entry at the current cursor position*)
END_VAR
END_FUNCTION
FUNCTION VA_GetAlarmList : UINT (*read entry from historical alarm list*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VCHandle : UDINT; (*handle of visualization object*)
pcAlarmLine : DINT; (*pointer to STRING which should record the alarm line*)
plLen : DINT; (*pointer to DINT which contains the length of the alarm line*)
iFunction : UINT; (*function to execute 1 = read first alarm, 2 = read next alarm*)
END_VAR
END_FUNCTION
FUNCTION VA_GetBrightness : UINT (*get brightness of the display*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VCHandle : UDINT; (*handle of visualization object*)
pValue : UDINT; (*pointer to brightness value set for the display*)
END_VAR
END_FUNCTION
FUNCTION VA_GetCalStatus : UINT (*get calibration status while calibrating touch*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VCHandle : UDINT; (*handle of visualization object*)
END_VAR
END_FUNCTION
FUNCTION VA_GetContrast : UINT (*get display contrast*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VCHandle : UDINT; (*handle of visualization object*)
END_VAR
END_FUNCTION
FUNCTION VA_GetDisplayInfo : UINT (*read display information*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VCHandle : UDINT; (*handle of visualization object*)
InfoType : UDINT; (*type of info to read*)
pValue : UDINT; (*pointer to UDINT where the display information is written to*)
END_VAR
END_FUNCTION
FUNCTION VA_GetExAlarmList : UINT (*read entries from alarm list*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VCHandle : UDINT; (*handle of visualization object*)
pcAlarmLine : DINT; (*pointer to STRING which should record the alarm line*)
plLen : DINT; (*pointer to DINT which contains the length of the alarm line*)
iFunction : UINT; (*function to execute 1 = read first alarm, 2 = read next alarm*)
cSeperator : USINT; (*separation character to be inserted into the alarm line*)
cDateTimeFormat : USINT; (*desired format for date and time output in the alarm list*)
END_VAR
END_FUNCTION
FUNCTION VA_GetKeyMatrix : UINT (*read key matrix information*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VCHandle : UDINT; (*handle of visualization object*)
pKeyMatrix : UDINT; (*pointer to USINT array*)
KeysToRead : UDINT; (*number of keys to be read*)
pKeysRead : UDINT; (*pointer to integer containing the number of keys read*)
END_VAR
END_FUNCTION
FUNCTION VA_GetPaletteColor : UDINT (*get RGB value of the given color index*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VCHandle : UDINT; (*handle of visualization object*)
uiIndex : USINT; (*index of the color which should be retrieved (0-255)*)
END_VAR
END_FUNCTION
FUNCTION VA_GetPanelStatus : UINT (*get status of connected panel*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VCHandle : UDINT; (*handle of visualization object*)
puiPanelStatus : UDINT; (*pointer to UDINT variable containing the panel status*)
END_VAR
END_FUNCTION
FUNCTION VA_GetTextByTextGroup : UINT (*read text from textgroup of the active language*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VCHandle : UDINT; (*handle of visualization object*)
TG_id : UDINT; (*id number of the text group to be read*)
TGT_id : UINT; (*id number of the line to be read in the text group*)
pcText : UDINT; (*pointer to STRING containing the text of the textgroup*)
psTextlength : UDINT; (*pointer to UDINT variable*)
END_VAR
END_FUNCTION
FUNCTION VA_GetTouchAction : UINT (*get touch action of the display touch*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VCHandle : UDINT; (*handle of visualization object*)
uiType : UDINT; (*retrieval type 0 = processed, 1 = realtime*)
pStatus : UDINT; (*pointer to UDINT variable containing the status*)
END_VAR
END_FUNCTION
FUNCTION VA_LangIsAvailable : UINT (*check if language index is available.*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VCHandle : UDINT; (*handle of visualization object*)
uiIndex : UDINT; (*index of language*)
pucIsInstalled : UDINT; (*status whether the language on the target system is available*)
END_VAR
END_FUNCTION
FUNCTION VA_Line : UINT (*draw a line*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VCHandle : UDINT; (*handle of visualization object*)
x1 : UINT; (*x coordinate for the start position of the line*)
y1 : UINT; (*y coordinate for the start position of the line*)
x2 : UINT; (*x coordinate for the end position of the line*)
y2 : UINT; (*y coordinate for the end position of the line*)
color : UINT; (*line color*)
END_VAR
END_FUNCTION
FUNCTION VA_LoadBitmap : UINT (*get handle for a bitmap on the target*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VCHandle : UDINT;(*handle of visualization object*)
ucDevice : STRING[80]; (*pointer to STRING which contains the file device*)
ucPath : STRING[80]; (*pointer to STRING which contains the path of the PNG file*)
ppBitmap : UDINT; (*pointer to pointer to Bitmap structure*)
END_VAR
END_FUNCTION
FUNCTION VA_NGetAlCurPos : UINT (*get alarm control cursor position*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VCHandle : UDINT; (*handle of visualization object*)
pGroupNumber : DINT; (*pointer to DINT variable containing the group number*)
pAlarmNumber : DINT; (*pointer to DINT variable containing the alarm number*)
END_VAR
END_FUNCTION
FUNCTION VA_NGetCalStatus : UINT (*get calibration status while calibrating touch*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VCHandle : UDINT; (*handle of visualization object*)
pValue : UDINT; (*pointer to UDINT containing the current state*)
END_VAR
END_FUNCTION
FUNCTION VA_NGetContrast : UINT (*get display contrast*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VCHandle : UDINT; (*handle of visualization object*)
pValue : UDINT; (*pointer to UDINT containing contrast value*)
END_VAR
END_FUNCTION
FUNCTION VA_NGetPaletteColor : UDINT (*get RGB value of the given color index*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VCHandle : UDINT; (*handle of visualization object*)
uiIndex : USINT; (*index of the color which should be retrieved (0-255)*)
pValue : UDINT; (*pointer to UDINT containing color value*)
END_VAR
END_FUNCTION
FUNCTION VA_Quit : UINT (*quit single alarm*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VCHandle : UDINT; (*handle of visualization object*)
usGroupNumber : UINT; (*group number where the alarm to be acknowledged is located*)
usAlarmNumber : UINT; (*alarm number of the alarm which should be acknowledged*)
END_VAR
END_FUNCTION
FUNCTION VA_QuitAlarms : UINT (*quit all alarms of the given alarm group*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VCHandle : UDINT; (*handle of visualization object*)
wGroupNumber : UINT; (*group number which should be acknowledged*)
END_VAR
END_FUNCTION
FUNCTION VA_Rect : UINT (*draw a rectangle*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VCHandle : UDINT; (*handle of visualization object*)
x1 : UINT; (*x coordinate of the upper left corner of the rectangle*)
y1 : UINT; (*y coordinate of the upper left corner of the rectangle*)
width : UINT; (*width of the rectangle*)
height : UINT; (*height of the rectangle*)
fill : UINT; (*filling color of the rectangle*)
color : UINT; (*border color of the rectangle*)
END_VAR
END_FUNCTION
FUNCTION VA_Redraw : UINT (*redraw screen content / update VC SG4 drawbox control*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VCHandle : UDINT; (*handle of visualization object*)
END_VAR
END_FUNCTION
FUNCTION VA_Saccess : UINT (*get right to access device driver*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VCHandle : UDINT; (*handle of visualization object*)
END_VAR
END_FUNCTION
FUNCTION VA_SaveSettings : UINT (*save display settings*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VCHandle : UDINT; (*handle of visualization object*)
uiAction : UINT; (*action 1 = store, 2 = check whether storing is active*)
END_VAR
END_FUNCTION
FUNCTION VA_SetBacklight : UINT (*enable/disable display backlight*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VCHandle : UDINT; (*handle of visualization object*)
bSet : BOOL; (*0 = turn backlight off, 1 = turn backlight on*)
END_VAR
END_FUNCTION
FUNCTION VA_SetBrightness : UINT (*set the brightness of the display*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VCHandle : UDINT; (*handle of visualization object*)
uiPercent : UDINT; (*brightness intensity*)
END_VAR
END_FUNCTION
FUNCTION VA_SetClipRegion : UINT (*function is only used internally*)
VAR_INPUT
enable : BOOL;
VCHandle : UDINT;
uiX1 : UDINT;
uiY1 : UDINT;
uiX2 : UDINT;
uiY2 : UDINT;
END_VAR
END_FUNCTION
FUNCTION VA_SetContrast : UINT (*set the contrast of the display*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VCHandle : UDINT; (*handle of visualization object*)
uiPercent : UDINT; (*contrast intensity*)
END_VAR
END_FUNCTION
FUNCTION VA_SetPaletteColor : UINT (*set RGB value for a color index*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VCHandle : UDINT; (*handle of visualization object*)
index : USINT; (*index of color to be changed*)
color : UDINT; (*new color given as BRG value*)
END_VAR
END_FUNCTION
FUNCTION VA_SetUserParam : UINT (*modify internal driver parameters*)
VAR_INPUT
enable : BOOL;
VCHandle : UDINT;
Type : USINT;
pParameter : UDINT;
END_VAR
END_FUNCTION
FUNCTION VA_Setup : UDINT (*initializes the device driver*)
VAR_INPUT
enable : BOOL; (*enables execution*)
pProjectName : STRING[80]; (*pointer to STRING containing the name of visualization object*)
END_VAR
END_FUNCTION
FUNCTION VA_SetupX : UINT (*initializes the device driver*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VCHandle : UDINT; (*pointer to handle of visualization object*)
pProjectName : STRING[80]; (*pointer to STRING containing the name of visualization object*)
END_VAR
END_FUNCTION
FUNCTION VA_Shutdown : UINT (*deinitialize device driver*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VCHandle : UDINT; (*handle of visualization object*)
END_VAR
END_FUNCTION
FUNCTION VA_Srelease : UINT (*release device driver*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VCHandle : UDINT; (*pointer to handle of visualization object*)
END_VAR
END_FUNCTION
FUNCTION VA_StartProject : UINT (*start visualization*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VCHandle : UDINT; (*pointer to handle of visualization object*)
END_VAR
END_FUNCTION
FUNCTION VA_StartVisuByName : UINT (*start visualization*)
VAR_INPUT
enable : BOOL; (*enables execution*)
pProjectName : STRING[80]; (*pointer to STRING containing the name of visualization object*)
END_VAR
END_FUNCTION
FUNCTION VA_StartTouchCal : UINT (*start touch calibration*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VCHandle : UDINT; (*handle of visualization object*)
END_VAR
END_FUNCTION
FUNCTION VA_StopProject : UINT (*stop visualization*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VCHandle : UDINT; (*handle of visualization object*)
END_VAR
END_FUNCTION
FUNCTION VA_Textout : UINT (*output text*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VCHandle : UDINT; (*handle of visualization object*)
font_index : UINT; (*index of the font to be used*)
x : UINT; (*x coordinate of the text to be output*)
y : UINT; (*y coordinate of the text to be output*)
fC : USINT; (*foreground color of the text.*)
bC : USINT;(*background color of the text.*)
pText : STRING[80]; (*pointer to STRING containing the text to be output*)
END_VAR
END_FUNCTION
FUNCTION VA_TimeSynchronize : UINT (*synchronize time with server CPU.*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VC_Handle : UDINT; (*handle of visualization object*)
END_VAR
END_FUNCTION
FUNCTION VA_wcAlarmGetList : UINT (*read entry from historical alarm list (Unicode)*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VCHandle : UDINT; (*handle of visualization object*)
pcAlarmLine : DINT; (*pointer to STRING which should record the alarm line*)
plLen : DINT; (*pointer to DINT which contains the length of the alarm line*)
iFunction : UINT; (*function to execute 1 = read first alarm, 2 = read next alarm*)
END_VAR
END_FUNCTION
FUNCTION VA_wcGetActAlarmList : UINT (*read entry from actual alarm list (Unicode)*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VCHandle : UDINT; (*handle of visualization object*)
pcAlarmLine : DINT; (*pointer to STRING which should record the alarm line*)
plLen : DINT; (*pointer to DINT which contains the length of the alarm line*)
iFunction : UINT; (*function to execute 1 = read first alarm, 2 = read next alarm*)
usSeperator : UINT; (*separation character to be inserted into the alarm line*)
cDateTimeFormat : USINT; (*desired format for date and time output in the alarm list*)
END_VAR
END_FUNCTION
FUNCTION VA_wcGetExAlarmList : UINT (*read entry from historical alarm list with defined format (Unicode)*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VCHandle : UDINT; (*handle of visualization object*)
pcAlarmLine : DINT; (*pointer to STRING which should record the alarm line*)
plLen : DINT; (*pointer to DINT which contains the length of the alarm line*)
iFunction : UINT; (*function to execute 1 = read first alarm, 2 = read next alarm*)
usSeperator : UINT; (*separation character to be inserted into the alarm line*)
cDateTimeFormat : USINT; (*desired format for date and time output in the alarm list*)
END_VAR
END_FUNCTION
FUNCTION VA_wcGetTextByTextGroup : UINT (*read text from textgroup of the active language (Unicode)*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VCHandle : UDINT; (*handle of visualization object*)
TG_id : UDINT; (*id number of the text group to be read*)
TGT_id : UINT; (*id number of the line to be read in the text group*)
pwText : UDINT; (*pointer to UINT array where text group text is stored*)
psTextLength : UDINT; (*pointer to UDINT containing the text to be read*)
END_VAR
END_FUNCTION
FUNCTION VA_wcTextout : UINT (*output unicode text (Unicode)*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VCHandle : UDINT; (*handle of visualization object*)
font_index : UINT; (*index of the font to be used*)
x : UINT; (*x coordinate of the text to be output*)
y : UINT; (*y coordinate of the text to be output*)
fC : USINT; (*foreground color of the text.*)
bC : USINT; (*background color of the text*)
pwText : UDINT; (*pointer to STRING containg the text to be output*)
END_VAR
END_FUNCTION
FUNCTION VA_GetActualLang : UINT (*intern*)
END_FUNCTION
FUNCTION VA_ClearTouchEventBuffer : UINT (*intern*)
END_FUNCTION
FUNCTION VA_RegisterClient : UINT (*intern*)
END_FUNCTION
FUNCTION VA_StartProcess : UINT (*start process*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VCHandle : UDINT; (*handle of visualization object*)
uiProcessID : UDINT; (*id of process to start*)
psArguments : UDINT; (*optional arguments*)
puiExtendedErrorCode : UDINT; (*pointer to UDINT containing extended error code*)
END_VAR
END_FUNCTION
FUNCTION VA_TerminateProcess : UINT (*stop running process*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VCHandle : UDINT; (*handle of visualization object*)
uiProcessID : UDINT; (*id of process to stop*)
puiExtendedErrorCode : UDINT; (*pointer to UDINT containing extended error code*)
END_VAR
END_FUNCTION
FUNCTION VA_GetProcessExitCode : UINT (*get process exit code*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VCHandle : UDINT; (*handle of visualization object*)
uiProcessID : UDINT; (*id of process to stop*)
puiExitCode : UDINT; (*pointer to UDINT containing exit code*)
puiExtendedErrorCode : UDINT; (*pointer to UDINT containing extended error code*)
END_VAR
END_FUNCTION
FUNCTION VA_SetProcessZOrder : UINT (*set process windows z-order*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VCHandle : UDINT; (*handle of visualization object*)
uiProcessID : UDINT; (*id of process to stop*)
uiZOrderFlags : UDINT; (*z-order flags*)
END_VAR
END_FUNCTION
FUNCTION VA_SetVisualizationZOrder : UINT (*set visualization windows z-order*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VCHandle : UDINT; (*handle of visualization object*)
uiZOrderFlags : UDINT; (*z-order flags*)
END_VAR
END_FUNCTION
FUNCTION VA_RunJScript : UINT (*intern*)
VAR_INPUT
enable : BOOL; (*enables execution*)
VCHandle : UDINT; (*handle of visualization object*)
uiJSStatusDP : UDINT; (*number of the JSStatusDP*)
pScriptName : UDINT; (*filename of the java-script*)
END_VAR
END_FUNCTION

View File

@@ -0,0 +1,32 @@
(********************************************************************
* COPYRIGHT (C) BERNECKER + RAINER, AUSTRIA, A-5142 EGGELSBERG
********************************************************************
* Library: Visapi
* File: Visapi.typ
* Created: 11.11.2003
********************************************************************
* Global data types of library Visapi
********************************************************************)
TYPE
display_info : STRUCT
width : UINT ;
height : UINT ;
func1 : UDINT ;
func2 : UDINT ;
bpp : USINT ;
END_STRUCT;
VCHANDLE : STRUCT
END_STRUCT;
TouchAction : STRUCT
status : UDINT ;
y : UDINT ;
x : UDINT ;
END_STRUCT;
sVCBitmap : STRUCT
vpInternalData : UDINT;
vpData : UDINT;
iBPP : DINT;
iHeight : DINT;
iWidth : DINT;
END_STRUCT;
END_TYPE

View File

@@ -0,0 +1,49 @@
(********************************************************************
* COPYRIGHT -- Bernecker + Rainer
********************************************************************
* Library: Visapi
* File: Visapi.var
* Created: 11.11.2003
********************************************************************
*
********************************************************************)
VAR CONSTANT
vaERR_VISAPI_NOT_INITIALIZED : UINT := 100; (*visapi not initialized*)
vaERR_RESOURCE_WRONG_FORMAT : UINT := 7197; (*resource has wrong format*)
vaERR_RESOURCE_NOT_FOUND : UINT := 7196; (*resource not found*)
vaERR_NO_MORE : UINT := 7195; (*no data found*)
vaERR_ALREADY : UINT := 7190; (*connection already exists*)
vaERR_RESOURCES : UINT := 7180; (*resource error*)
vaERR_MEMORY : UINT := 7170; (*no memory*)
vaERR_VERSION : UINT := 7160; (*version conflict*)
vaERR_ARGUMENT : UINT := 7150; (*wrong arguments*)
vaERR_TIMEOUT : UINT := 7140; (*timeout*)
vaERR_CONNECTION_LOST : UINT := 7130; (*connection lost*)
vaERR_OVERFLOW : UINT := 7120; (*memory overflow*)
vaERR_ACCESS : UINT := 7111; (*access error*)
vaERR_NO_ACCESS : UINT := 7110; (*access error*)
vaERR_EXISTS : UINT := 7101; (*resource exists already*)
vaERR_CREATE_TASK_FAILED : UINT := 7100; (*create task failed*)
vaERR_PARAMETER : UINT := 7090; (*parameter error*)
vaERR_NOT_SUPPORTED : UINT := 7080; (*function not supported*)
vaERR_KEYMATRIX_NOT_VALID : UINT := 7070; (*keymatrix not valid*)
vaERR_FONTMODULE_NOT_FOUND : UINT := 7060; (*fontmodul no found*)
vaERR_UNDEFINED_ERROR_CODE : UINT := 7050; (*undefined error code*)
vaERR_WRONG_MODULE_NAME : UINT := 7030; (*wrong module name*)
vaERR_DRIVER_NOT_FOUND : UINT := 7020; (*driver not found*)
vaERR_INTERPRETER_NOT_READY : UINT := 7010; (*interpreter not ready*)
vaERR_BUSY_ALARMSYSTEM : UINT := 247; (*alarmsystem busy*)
vaERR_DELHISLIST : UINT := 246; (*error delting alarm history*)
vaERR_NOALARMQUIT : UINT := 245; (*error in quiting alarm*)
vaERR_EMPTY_ALARMLIST : UINT := 240; (*empty alarm list*)
vaERR_BUSY : UINT := 7000; (*busy*)
vaERR_EMPTY_HISTORYLIST : UINT := 248; (*empty alarm history*)
vaALS_INACTIVE :UDINT := 1; (*Filter for inactive alarms*)
vaALS_ACTIVE :UDINT := 2; (*Filter for active alarms*)
vaALS_ACKNOWLEDGED :UDINT := 16; (*Filter for acknowledged alarms*)
vaALS_NOTACKNOWLEDGED :UDINT := 32; (*Filter for not acknowledged alarms*)
vaALS_BYPASSSED :UDINT := 256; (*Filter for bypassed alarms*)
vaALS_NOTBYPASSSED :UDINT := 512; (*Filter for not bypassed alarms*)
vaALS_CURRENT :UDINT := 16#10000; (*Filter for current alarms*)
END_VAR

View File

@@ -1,9 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<?AutomationStudio Version=3.0.90.22 SP04?>
<?AutomationStudio Version=3.0.90.25 SP07?>
<Package xmlns="http://br-automation.co.at/AS/Package">
<Objects>
<Object Type="File">GlobalMachine.typ</Object>
<Object Type="File">GlobalMachine.var</Object>
<Object Type="Program" Language="IEC">machine</Object>
<Object Type="Program" Language="IEC" Description="TestProgram">test</Object>
</Objects>
</Package>

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<?AutomationStudio Version=3.0.90.25 SP07?>
<Program xmlns="http://br-automation.co.at/AS/Program">
<Files>
<File Description="Implementation code">test.st</File>
<File Description="Local variables" Private="true">test.var</File>
</Files>
</Program>

View File

@@ -0,0 +1,38 @@
(********************************************************************
* COPYRIGHT --
********************************************************************
* Program: test
* File: test.st
* Author: michi
* Created: April 15, 2013
********************************************************************
* Implementation of program test
********************************************************************)
PROGRAM _INIT
(* TODO : Add your code here *)
END_PROGRAM
PROGRAM _CYCLIC
IF NOT bReady THEN
udVCHandle := VA_Setup(1 , 'Visu');
IF (udVCHandle <> 0) THEN
bReady := TRUE;
END_IF
END_IF
IF bReady THEN
IF VA_Saccess (1, udVCHandle)= 0 THEN
VA_StartTouchCal (bStart, udVCHandle);
bStart := FALSE;
VA_Srelease(1, udVCHandle);
END_IF
END_IF
END_PROGRAM

View File

@@ -0,0 +1,6 @@
VAR
bStartCal : BOOL;
bReady : BOOL;
bStart : BOOL;
udVCHandle : UDINT;
END_VAR

Binary file not shown.

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<?AutomationStudio Version=3.0.90.22 SP04?>
<RuntimeConfiguration Version="4.2.11">
<?AutomationStudio Version=?>
<RuntimeConfiguration Version="4.2.12">
<Module ID="$root" Hardware="1A4000.00">
<Group ID="Logger">
<Group ID="LoggerSystem">
@@ -112,4 +112,16 @@
<Selector ID="ActivateModbus" Value="0" />
</Group>
</Module>
<Module ID="IF7.ST1" Hardware="VNCWVGA">
<Group ID="VNC">
<Parameter ID="MaxConnections" Value="1" />
<Parameter ID="RefreshRate" Value="1000" />
<Parameter ID="ConnectionTimeOut" Value="4" />
<Parameter ID="ClientTitle" />
<Group ID="VNCPasswords">
<Parameter ID="VNCPasswordView" Value="r" />
<Parameter ID="VNCPasswordControl" Value="w" />
</Group>
</Group>
</Module>
</RuntimeConfiguration>

View File

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<?AutomationStudio Version=3.0.90.23 SP05?>
<?AutomationStudio Version=3.0.90.25 SP07?>
<SwConfiguration CpuAddress="SL1" xmlns="http://br-automation.co.at/AS/SwConfiguration">
<TaskClass Name="Cyclic#1">
<Task Name="Axisctrl" Source="Axises.Axisctrl.prg" Memory="UserROM" Language="IEC" Debugging="true" />
@@ -7,6 +7,11 @@
<Task Name="Axisctrl2" Source="Axises.Axisctrl2.prg" Memory="UserROM" Language="IEC" Debugging="true" />
<Task Name="Axisctrl3" Source="Axises.Axisctrl3.prg" Memory="UserROM" Language="IEC" Debugging="true" />
<Task Name="Axisctrl4" Source="Axises.Axisctrl4.prg" Memory="UserROM" Language="IEC" Debugging="true" />
<Task Name="machine" Source="Machine.machine.prg" Memory="UserROM" Language="IEC" Debugging="true" />
<Task Name="PressCtrl" Source="Axises.PressCtrl.prg" Memory="UserROM" Language="IEC" Debugging="true" />
<Task Name="ToolCtrl" Source="Axises.ToolCtrl.prg" Memory="UserROM" Language="IEC" Debugging="true" />
<Task Name="ToolParam" Source="Axises.ToolParam.prg" Memory="UserROM" Language="IEC" Debugging="true" />
<Task Name="Tool1" Source="Axises.Tool1.prg" Memory="UserROM" Language="IEC" Debugging="true" />
</TaskClass>
<TaskClass Name="Cyclic#2" />
<TaskClass Name="Cyclic#3" />
@@ -23,8 +28,50 @@
<NcDataObject Name="motor_sim" Source="Axises.ACPPar.motor_sim.dob" Memory="UserROM" Language="Apt" />
<NcDataObject Name="axShaftSi" Source="Axises.Init.axShaftSi.dob" Memory="UserROM" Language="Ax" />
</NcDataObjects>
<VcDataObjects />
<VcDataObjects>
<VcDataObject Name="Visu" Source="Visualization.Visu.dob" Memory="UserROM" Language="Vc" WarningLevel="2" Compress="false" />
</VcDataObjects>
<Binaries>
<BinaryObject Name="vcctext" Source="" Memory="UserROM" Language="Binary" />
<BinaryObject Name="vcmgr" Source="" Memory="UserROM" Language="Binary" />
<BinaryObject Name="arialbd" Source="" Memory="UserROM" Language="Binary" />
<BinaryObject Name="Visu01" Source="" Memory="UserROM" Language="Binary" />
<BinaryObject Name="vcxml" Source="" Memory="UserROM" Language="Binary" />
<BinaryObject Name="vcdsint" Source="" Memory="UserROM" Language="Binary" />
<BinaryObject Name="vccshape" Source="" Memory="UserROM" Language="Binary" />
<BinaryObject Name="vcgclass" Source="" Memory="UserROM" Language="Binary" />
<BinaryObject Name="vcnet" Source="" Memory="UserROM" Language="Binary" />
<BinaryObject Name="vcdsloc" Source="" Memory="UserROM" Language="Binary" />
<BinaryObject Name="vcfntttf" Source="" Memory="UserROM" Language="Binary" />
<BinaryObject Name="vccovl" Source="" Memory="UserROM" Language="Binary" />
<BinaryObject Name="vctcal" Source="" Memory="UserROM" Language="Binary" />
<BinaryObject Name="vcshared" Source="" Memory="UserROM" Language="Binary" />
<BinaryObject Name="vcrt" Source="" Memory="UserROM" Language="Binary" />
<BinaryObject Name="vccbmp" Source="" Memory="UserROM" Language="Binary" />
<BinaryObject Name="vcbclass" Source="" Memory="UserROM" Language="Binary" />
<BinaryObject Name="vcfile" Source="" Memory="UserROM" Language="Binary" />
<BinaryObject Name="vccbtn" Source="" Memory="UserROM" Language="Binary" />
<BinaryObject Name="vccslider" Source="" Memory="UserROM" Language="Binary" />
<BinaryObject Name="vcresman" Source="" Memory="UserROM" Language="Binary" />
<BinaryObject Name="vccddbox" Source="" Memory="UserROM" Language="Binary" />
<BinaryObject Name="visvc" Source="" Memory="UserROM" Language="Binary" />
<BinaryObject Name="vcalarm" Source="" Memory="UserROM" Language="Binary" />
<BinaryObject Name="Visu02" Source="" Memory="UserROM" Language="Binary" />
<BinaryObject Name="vccnum" Source="" Memory="UserROM" Language="Binary" />
<BinaryObject Name="vcpdsw" Source="" Memory="UserROM" Language="Binary" />
<BinaryObject Name="vcpdvnc" Source="" Memory="UserROM" Language="Binary" />
<BinaryObject Name="arial" Source="" Memory="UserROM" Language="Binary" />
<BinaryObject Name="vccalarm" Source="" Memory="UserROM" Language="Binary" />
<BinaryObject Name="vccline" Source="" Memory="UserROM" Language="Binary" />
<BinaryObject Name="vccpopup" Source="" Memory="UserROM" Language="Binary" />
<BinaryObject Name="vcpfar00" Source="" Memory="UserROM" Language="Binary" />
<BinaryObject Name="vccstr" Source="" Memory="UserROM" Language="Binary" />
<BinaryObject Name="vcchtml" Source="" Memory="UserROM" Language="Binary" />
<BinaryObject Name="vcctrend" Source="" Memory="UserROM" Language="Binary" />
<BinaryObject Name="vcclbox" Source="" Memory="UserROM" Language="Binary" />
<BinaryObject Name="vccbar" Source="" Memory="UserROM" Language="Binary" />
<BinaryObject Name="vccurl" Source="" Memory="UserROM" Language="Binary" />
<BinaryObject Name="Visu03" Source="" Memory="UserROM" Language="Binary" />
<BinaryObject Name="Acp10cfg" Source="" Memory="UserROM" Language="Binary" />
<BinaryObject Name="Acp10map" Source="" Memory="UserROM" Language="Binary" />
<BinaryObject Name="asfw" Source="" Memory="SystemROM" Language="Binary" />
@@ -46,5 +93,8 @@
<LibraryObject Name="asieccon" Source="" Memory="UserROM" Language="Binary" Debugging="true" />
<LibraryObject Name="powerlnk" Source="" Memory="UserROM" Language="Binary" Debugging="true" />
<LibraryObject Name="astime" Source="" Memory="UserROM" Language="Binary" Debugging="true" />
<LibraryObject Name="standard" Source="" Memory="UserROM" Language="Binary" Debugging="true" />
<LibraryObject Name="dataobj" Source="" Memory="UserROM" Language="Binary" />
<LibraryObject Name="visapi" Source="" Memory="UserROM" Language="Binary" />
</Libraries>
</SwConfiguration>

View File

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<?AutomationStudio Version=3.0.90.23 SP05?>
<?AutomationStudio Version=3.0.90.25 SP07?>
<PLC xmlns="http://br-automation.co.at/AS/PLC">
<Objects>
<Object Type="File" Description="Software configuration">Cpu.sw</Object>
@@ -10,9 +10,10 @@
<Object Type="File" Description="CPU system configuration">sysconf.br</Object>
<Object Type="File" Description="CPU system configuration">sysconf.syc</Object>
<Object Type="Package">Motion</Object>
<Object Type="File" Description="VC Mapping File">Visual.vcm</Object>
</Objects>
<CpuModules>
<CpuModule LocalVariablesMemory="MemoryPool" GeneratePPCode="false" HasNcOperatingSystem="true" Target="SG4" ModuleID="AR000" ClassID="1A4000.00" GccVersion="V4.1.2" OnlineConfigurationName="NewARsimConnection">
<CpuModule LocalVariablesMemory="MemoryPool" GeneratePPCode="false" HasNcOperatingSystem="true" Target="SG4" ModuleID="AR000" ClassID="1A4000.00" GccVersion="V4.1.2">
<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" />

View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<?AutomationStudio Version=3.0.90.25 SP07?>
<VcMapping>
<Row Address="IF7.ST1" ObjectName="Visu" KeyPriority="Lower Cyclic #8" Description="VNC-Viewer-WVGA" />
</VcMapping>

View File

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<?AutomationStudio Version=3.0.90.24 SP06?>
<?AutomationStudio Version=3.0.90.25 SP07?>
<SwConfiguration CpuAddress="SL1" xmlns="http://br-automation.co.at/AS/SwConfiguration">
<TaskClass Name="Cyclic#1">
<Task Name="MAxTrace" Source="Axises.MAxTrace.prg" Memory="UserROM" Language="IEC" Debugging="true" />
@@ -24,7 +24,9 @@
<Task Name="ToolCtrl" Source="Axises.ToolCtrl.prg" Memory="UserROM" Language="IEC" Debugging="true" />
<Task Name="ToolParam" Source="Axises.ToolParam.prg" Memory="UserROM" Language="IEC" Debugging="true" />
</TaskClass>
<TaskClass Name="Cyclic#5" />
<TaskClass Name="Cyclic#5">
<Task Name="test" Source="Machine.test.prg" Memory="UserROM" Language="IEC" Debugging="true" />
</TaskClass>
<TaskClass Name="Cyclic#6" />
<TaskClass Name="Cyclic#7">
<Task Name="PartCount" Source="Axises.PartCount.prg" Memory="UserROM" Language="IEC" Debugging="true" />
@@ -88,13 +90,15 @@
<BinaryObject Name="vcpfmtcx" Source="" Memory="UserROM" Language="Binary" />
<BinaryObject Name="Visu03" Source="" Memory="UserROM" Language="Binary" />
<BinaryObject Name="vccslider" Source="" Memory="UserROM" Language="Binary" />
<BinaryObject Name="iomap" Source="" Memory="UserROM" Language="Binary" />
<BinaryObject Name="sysconf" Source="" Memory="SystemROM" Language="Binary" />
<BinaryObject Name="ashwd" Source="" Memory="SystemROM" Language="Binary" />
<BinaryObject Name="asfw" Source="" Memory="SystemROM" Language="Binary" />
<BinaryObject Name="arconfig" Source="" Memory="SystemROM" Language="Binary" />
<BinaryObject Name="Acp10cfg" Source="" Memory="UserROM" Language="Binary" />
<BinaryObject Name="vccddbox" Source="" Memory="UserROM" Language="Binary" />
<BinaryObject Name="vccpopup" Source="" Memory="UserROM" Language="Binary" />
<BinaryObject Name="Acp10map" Source="" Memory="UserROM" Language="Binary" />
<BinaryObject Name="Acp10cfg" Source="" Memory="UserROM" Language="Binary" />
<BinaryObject Name="arconfig" Source="" Memory="SystemROM" Language="Binary" />
<BinaryObject Name="asfw" Source="" Memory="SystemROM" Language="Binary" />
<BinaryObject Name="ashwd" Source="" Memory="SystemROM" Language="Binary" />
<BinaryObject Name="sysconf" Source="" Memory="SystemROM" Language="Binary" />
<BinaryObject Name="iomap" Source="" Memory="UserROM" Language="Binary" />
<BinaryObject Name="vccscale" Source="" Memory="UserROM" Language="Binary" />
</Binaries>
<Libraries>
@@ -117,5 +121,6 @@
<LibraryObject Name="standard" Source="Libraries.standard.lby" Memory="UserROM" Language="Binary" Debugging="true" />
<LibraryObject Name="AsMath" Source="Libraries.AsMath.lby" Memory="UserROM" Language="Binary" Debugging="true" />
<LibraryObject Name="AsArLog" Source="Libraries.AsArLog.lby" Memory="UserROM" Language="Binary" Debugging="true" />
<LibraryObject Name="visapi" Source="Libraries.visapi.lby" Memory="UserROM" Language="Binary" Debugging="true" />
</Libraries>
</SwConfiguration>

View File

@@ -39,7 +39,6 @@ VAR_CONFIG
gbInTool1Cyl1Fw AT %IX.SL1.IF1.ST5.IF1.ST10.DigitalInput01;
gbInTool1Cyl1Bw AT %IX.SL1.IF1.ST5.IF1.ST10.DigitalInput02;
gbInTool1Cyl2Fw AT %IX.SL1.IF1.ST5.IF1.ST10.DigitalInput03;
gbInTool1Cyl2Bw AT %IX.SL1.IF1.ST5.IF1.ST10.DigitalInput04;
gbInTool1Cyl3Fw AT %IX.SL1.IF1.ST5.IF1.ST10.DigitalInput05;
gbInTool1Cyl3Bw AT %IX.SL1.IF1.ST5.IF1.ST10.DigitalInput06;
gbInToolAirsuspensionFw AT %IX.SL1.IF1.ST5.IF1.ST10.DigitalInput07;
@@ -75,4 +74,5 @@ VAR_CONFIG
gbOuUE410Power AT %QX.SL1.IF1.ST5.IF1.ST5.DigitalOutput05;
gbInResetKeyTool1 AT %IX.SL1.IF1.ST5.IF1.ST2.DigitalInput12;
gudST10ModuleSerial AT %ID.SL1.IF1.ST5.IF1.ST10.SerialNumber;
gbInTool1Cyl2Bw AT %IX.SL1.IF1.ST5.IF1.ST10.DigitalInput04;
END_VAR

File diff suppressed because one or more lines are too long

View File

@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<?AutomationStudio Version=3.0.90.23 SP05?>
<?AutomationStudio Version=3.0.90.25 SP07?>
<Project Description="Presse" Version="1.00.0" Edition="Standard" EditionComment="Standard" xmlns="http://br-automation.co.at/AS/Project">
<Communication />
<IEC KeywordsAsStructureMembers="false" Pointers="true" ExtendedConstants="true" NamingConventions="true" IecExtendedComments="true" Preprocessor="false" />
<Project StoreRuntimeInProject="true" />
<IEC KeywordsAsStructureMembers="false" NamingConventions="true" Pointers="true" ExtendedConstants="true" IecExtendedComments="true" Preprocessor="false" />
<Motion RestartInitParameter="true" RestartAcoposParameter="true" />
<Variables DefaultInitValue="0" DefaultVolatile="true" DefaultRetain="false" />
<ANSIC DefaultIncludes="true" />
<Project StoreRuntimeInProject="true" />
</Project>

View File

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