RequestData (STRUCT) ¶ TYPE RequestData : STRUCT InOut: Name Type Comment dwTransactionId DWORD xIgnoreResult BOOL Indicates, whether the result of the request has to be evaluated (FALSE) or can be ignored (TRUE). This flag is necessary, because method UpdateRequest is called both from the monitoring and the request to write variables bFinished BOOL bAdditionalChannel BOOL eReplyState PlcConnectionState The required state the reply must have after the request has been sent. This will be used to determine later whether the reply is available.
ReturnValues (GVL) ¶ InOut: Scope Name Type Initial Constant ERR_OK UDINT 16#0 ERR_FAILED UDINT 16#1 ERR_PARAMETER UDINT 16#2 ERR_NOTINITIALIZED UDINT 16#3 ERR_NOBUFFER UDINT 16#6 ERR_PENDING UDINT 16#A ERR_NOTIMPLEMENTED UDINT 16#C ERR_INVALIDID UDINT 16#D
StandardMonitoringInit_Base (STRUCT) ¶ TYPE StandardMonitoringInit_Base : STRUCT InOut: Name Type Comment stPlcAddr STRING credentials PlcCredentials udiInitialCommBufferSize UDINT pServiceBuffer POINTER TO BYTE ServiceBufferSize UDINT pServiceBufferAdd POINTER TO BYTE If no memory is configured here, then we will only use one channel to connect to the plc otherwise we will try to open two channels, one for reading and one for writing ServiceBufferAddSize UDINT
StandardMonitoring_Base (FB) ¶ FUNCTION_BLOCK StandardMonitoring_Base Properties: CredentialsNeeded LastError LastServiceSentItemsCount NextServiceItemStartOffset ReadListId State WriteListId abstrInitFlags abstrWishedMonitoringFinishedState prvNextTransactionId Methods: AssignCredentials Connecting GetReadItems GetRequestResult GetSetting GetWriteItems IsSwappingNeeded ProcessDataServerReply ProcessDataServerRequest ReadRequest ReadRequest2 Reset ShutdownFinished ShuttingDown StartConnect StartShutdown UpdateRequest WriteRequest WriteRequest2 abstrAfterConnectionInit abstrAssignMonitoringProvider abstrExecuteMonitoringReply abstrSendReadRequest abstrSendWriteRequest intSetMappedLastError prvCheckedUpdateState prvConnecting prvDeriveConnectedState prvFindFreeConection prvFindTransaction prvInitConnection prvSetMappedLastError prvShuttingDown prvTryCreateChannel Structure: AssignCredentials (Method) Connecting (Method) CredentialsNeeded (Property) GetReadItems (Method) GetRequestResult (Method) GetSetting (Method) GetWriteItems (Method) IsSwappingNeeded (Method) LastError (Property) LastServiceSentItemsCount (Property) NextServiceItemStartOffset (Property) ProcessDataServerReply (Method) ProcessDataServerRequest (Method) ReadListId (Property) ReadRequest (Method) ReadRequest2 (Method) Reset (Method) ShutdownFinished (Method) ShuttingDown (Method) StartConnect (Method) StartShutdown (Method) State (Property) UpdateRequest (Method) WriteListId (Property) WriteRequest (Method) WriteRequest2 (Method) abstrAfterConnectionInit (Method) abstrAssignMonitoringProvider (Method) abstrExecuteMonitoringReply (Method) abstrInitFlags (Property) abstrSendReadRequest (Method) abstrSendWriteRequest (Method) abstrWishedMonitoringFinishedState (Property) intSetMappedLastError (Method) prvCheckedUpdateState (Method) prvConnecting (Method) prvDeriveConnectedState (Method) prvFindFreeConection (Method) prvFindTransaction (Method) prvInitConnection (Method) prvNextTransactionId (Property) prvSetMappedLastError (Method) prvShuttingDown (Method) prvTryCreateChannel (Method)
StandardMonitoring_Base.AssignCredentials (METH) ¶ METHOD AssignCredentials : UDINT InOut: Scope Name Type Return AssignCredentials UDINT Input stUsername STRING stPassword STRING
DSD_StandardSymbolicMonitoring.abstrSendWriteRequest (METH) ¶ METHOD abstrSendWriteRequest : UDINT InOut: Scope Name Type Return abstrSendWriteRequest UDINT Input pConn POINTER TO PlcAppConnection
DSD_StandardSymbolicMonitoring.abstrWishedMonitoringFinishedState (PROP) ¶ PROPERTY abstrWishedMonitoringFinishedState : PlcConnectionState
DSD_StandardSymbolicMonitoringInit (STRUCT) ¶ TYPE DSD_StandardSymbolicMonitoringInit EXTENDS StandardMonitoringInit_Base : STRUCT InOut: Name Type Comment Inherited from stPlcAddr STRING StandardMonitoringInit_Base credentials PlcCredentials StandardMonitoringInit_Base udiInitialCommBufferSize UDINT StandardMonitoringInit_Base pServiceBuffer POINTER TO BYTE StandardMonitoringInit_Base ServiceBufferSize UDINT StandardMonitoringInit_Base pServiceBufferAdd POINTER TO BYTE If no memory is configured here, then we will only use one channel to connect to the plc otherwise we will try to open two channels, one for reading and one for writing StandardMonitoringInit_Base ServiceBufferAddSize UDINT StandardMonitoringInit_Base monitoringMode PlcSymbolicMonitoringType
DSD_StandardSymbolicMonitoringInit2 (STRUCT) ¶ TYPE DSD_StandardSymbolicMonitoringInit2 EXTENDS DSD_StandardSymbolicMonitoringInit : STRUCT InOut: Name Type Comment Inherited from stPlcAddr STRING StandardMonitoringInit_Base credentials PlcCredentials StandardMonitoringInit_Base udiInitialCommBufferSize UDINT StandardMonitoringInit_Base pServiceBuffer POINTER TO BYTE StandardMonitoringInit_Base ServiceBufferSize UDINT StandardMonitoringInit_Base pServiceBufferAdd POINTER TO BYTE If no memory is configured here, then we will only use one channel to connect to the plc otherwise we will try to open two channels, one for reading and one for writing StandardMonitoringInit_Base ServiceBufferAddSize UDINT StandardMonitoringInit_Base monitoringMode PlcSymbolicMonitoringType DSD_StandardSymbolicMonitoringInit bUseDynamicAddressResolution BOOL addrResolutionInfo DSD_DynamicAddressResolutionInfo
DSD_StandardSymbolicMonitoringInit3 (STRUCT) ¶ TYPE DSD_StandardSymbolicMonitoringInit3 EXTENDS DSD_StandardSymbolicMonitoringInit2 : STRUCT InOut: Name Type Initial Comment Inherited from stPlcAddr STRING StandardMonitoringInit_Base credentials PlcCredentials StandardMonitoringInit_Base udiInitialCommBufferSize UDINT StandardMonitoringInit_Base pServiceBuffer POINTER TO BYTE StandardMonitoringInit_Base ServiceBufferSize UDINT StandardMonitoringInit_Base pServiceBufferAdd POINTER TO BYTE If no memory is configured here, then we will only use one channel to connect to the plc otherwise we will try to open two channels, one for reading and one for writing StandardMonitoringInit_Base ServiceBufferAddSize UDINT StandardMonitoringInit_Base monitoringMode PlcSymbolicMonitoringType DSD_StandardSymbolicMonitoringInit bUseDynamicAddressResolution BOOL DSD_StandardSymbolicMonitoringInit2 addrResolutionInfo DSD_DynamicAddressResolutionInfo DSD_StandardSymbolicMonitoringInit2 bWithDeviceLogin BOOL This flag is no longer evaluated as the device login is mandatory for plcs with runtime versions >= 3.5.2 and it does not hurt for older runtimes. Further code assumes that this flag is set. bAskForCredentials BOOL TRUE TRUE -> The dataserver has to care about credentials, FALSE -> the credentials in StandardMonitoringInit_Base are used