DefaultIParameterDB (FB) ¶ FUNCTION_BLOCK DefaultIParameterDB Create one single instance in an application. Execute cyclically. This instance performs storing data of all registered instances of DefaultIParData. Do not execute in bus-cycle as it can be blocking ! Methods: Register Structure: Register (Method)
DefaultIParameterDB.Register (METH) ¶ METHOD Register : UDINT InOut: Scope Name Type Return Register UDINT Input ipar IIParameterData
IIParameterData (ITF) ¶ INTERFACE IIParameterData Methods: Close Execute Load OpenUpdate Update Structure: Close (Method) Execute (Method) Load (Method) OpenUpdate (Method) Update (Method)
IIParameterData.Execute (METH) ¶ METHOD Execute : UDINT InOut: Scope Name Type Return Execute UDINT
IIParameterData.Close (METH) ¶ METHOD Close : UDINT InOut: Scope Name Type Return Close UDINT
IIParameterData.Load (METH) ¶ METHOD Load : UDINT InOut: Scope Name Type Return Load UDINT Output pData POINTER TO BYTE dataLen UDINT
IIParameterData.OpenUpdate (METH) ¶ METHOD OpenUpdate : UDINT InOut: Scope Name Type Return OpenUpdate UDINT Input Total_iPar_Size UDINT Output pData POINTER TO BYTE
IIParameterData.Update (METH) ¶ METHOD Update : UDINT InOut: Scope Name Type Return Update UDINT
iParServer (FB) ¶ FUNCTION_BLOCK iParServer Handles iPar-Request for a single slot/subslot of a Field Device InOut: Scope Name Type Comment Input ID DWORD Identifier of a slot / subslot of a Field Device DATA IIParameterData Output xSave BOOL Received iPar Save-Notification, Upload of data in progress xRestore BOOL Received iPar Restore-Notification, Download of data in progress xError BOOL Error occured, see outputs eErrorCode and dwCommError for details eErrorCode iParServerError see enum iParServer Error dwCommError DWORD Error Code of underlying communication layer, see IEC 61158-6 Type 3(Profibus DP) and Type 10 (Profinet IO)
iParServerError (ENUM) ¶ TYPE iParServerError : Attributes: qualified_only InOut: Name Initial NO_ERROR 0 ERROR_RDIAG 1 ERROR_RALARM 2 ERROR_RDREC 3 ERROR_WRREC 4 ERROR_INVALID_NOTIFICATION 10 ERROR_SAVE_DATA 16#20 ERROR_LOAD_DATA 16#40 ERROR_INVALID_PARAMETER 16#80 ERROR_UNKOWN 16#FF