30 #include "rt_pwr_msg.h"
31 #include "rt_qcom_msg.h"
32 #include "rt_ini_event.h"
75 qAttr.type = qcom_eQtype_private;
127 bool first_scan =
true;
133 }
catch (co_error& e) {
146 tmo = (int)(appl.scantime() * 1000 - 1);
149 get.maxSize =
sizeof(mp);
152 if (sts == QCOM__TMO || sts == QCOM__QEMPTY) {
156 ini_mEvent new_event;
159 new_event.m = ep->mask;
160 if (new_event.b.oldPlcStop && !swap) {
164 }
else if (new_event.b.swapDone && swap) {
168 }
else if (new_event.b.terminate) {
Advanced c++ application example.
pwr_tStatus aproc_TimeStamp(float scantime, float maxdelay)
Set application timestamp. The timestamp is supervised by the event monitor and if the timestamp is d...
pwr_tStatus aproc_RegisterObject(pwr_tOid)
Register Application object. The Application object is stored in the $Node object and be opened from ...
void errh_Error(const char *msg,...)
Log an error message. The function has a variable argument list similar to sprintf.
pwr_tStatus errh_Init(const char *programName, errh_eAnix anix)
Initialize errh. Set up a queue to write to, set application name.
void errh_SetStatus(pwr_tStatus sts)
Set application status. The application status is showed in the Node graph. The application can set t...
void errh_Fatal(const char *msg,...)
Log a fatal message. The function has a variable argument list similar to sprintf.
pwr_tStatus gdh_Init(const char *name)
Initialize the process to the Proview runtime environment.
pwr_tStatus gdh_NameToObjid(const char *objectName, pwr_tObjid *objid)
Get the object identity of an object with name 'name'.
pwr_tBoolean qcom_Bind(pwr_tStatus *sts, const qcom_sQid *myQ, const qcom_sQid *toQ)
Bind one queue to another.
pwr_tBoolean qcom_CreateQ(pwr_tStatus *sts, qcom_sQid *myQ, qcom_sQattr *attr, const char *qname)
Create a queue and make an implicit connect to it.
void * qcom_Get(pwr_tStatus *sts, const qcom_sQid *myQ, qcom_sGet *get, int tmo_ms)
Get a new message.
pwr_tBoolean qcom_Init(pwr_tStatus *sts, qcom_sAid *aid, const char *aname)
Connect to QCom.
Basic type definitions. This include file contains the Proview basic type definitions.
#define EVEN(a)
Check if value is even.
int pwr_tStatus
Status type.
Include file for AProc Application process interface.
Include file for Errh System log messages.
Include file for Gdh Global Data Handler.