SERCOS3_ERROR (ENUM) ¶ TYPE SERCOS3_ERROR : The returned errors from the stack and for example sercos3_IDNRead InOut: Name Initial SERCOS3_NO_ERROR 0 SERCOS3_FIRST_ERROR 1 SERCOS3_OTHER_ERROR SERCOS3_FIRST_ERROR + 16#1 SERCOS3_SERCOS_ERROR SERCOS3_FIRST_ERROR + 16#2 SERCOS3_TIMEOUT SERCOS3_FIRST_ERROR + 16#3 SERCOS3_FIRST_MF SERCOS3_FIRST_ERROR + 16#20 SERCOS3_LAST_ERROR SERCOS3_FIRST_ERROR + 16#FF
Sercos3_IDNCmd (FB) ¶ FUNCTION_BLOCK Sercos3_IDNCmd This function block allows to execute commands in the Sercos slave. InOut: Scope Name Type Initial Comment Input xExecute BOOL On a rising edge at this input the command in the slave will be started. In order to get the internal channel deallocated, the instance must be called at least once by “xExecute:= FALSE”. xAbort BOOL FALSE If this parameter is TRUE, the current command will be aborted. usiCom USINT 1 Number of the Sercos III master: If only one Sercos III master is used, usiCom is ‘1’. In case of multiple masters use ‘1’ for the first, ‘2’ for the second, etc. uiAddress UINT Topological address or Sercos address, depends on the parameter xIsSercosAddress xIsSercosAddress BOOL FALSE This input switches between topological address and Sercos address FALSE: uiAddress is the topological address TRUE: uiAddress is the Sercos address usiChannel USINT 1 Reserved for future extensions. Currently not used. dwIDN DWORD IDN (Identification Number) with 4 Bytes (SI (structure instance) and SE (structure element)) udiTimeOut UDINT Here you can set a timeout in milliseconds. If the execution of the command has not been finished within this time, an error message will be generated. Output xDone BOOL This output is TRUE as soon as the command has been finished successfully. xBusy BOOL This output is TRUE as long as the execution of the command has not been finished. xError BOOL This output is TRUE, if an error is detected. eError will show the cause. eError SERCOS3_ERROR This output shows the cause of the detected error, which is indicated by xError. For example ‘SERCOS3_TIMEOUT’ in case of an timeout. udiSercosError UDINT Error code if the function block has not been finished successfully.
Sercos3_IDNRead (FB) ¶ FUNCTION_BLOCK Sercos3_IDNRead This functionn block could be used to read Sercos III slave parameter. In contrast TO Sercos3_IDNRead4 also parameters longer than 4 Bytes will be supported. The parameter TO be read is specified BY the IDN as used in the object dictionary. InOut: Scope Name Type Initial Comment Input xExecute BOOL On a rising edge at this input the reading of the slave parameter will be started. In order to get the internal channel deallocated, the instance must be called at least once by “xExecute:= FALSE”. xAbort BOOL FALSE If this parameter is TRUE, the current read process will be aborted. usiCom USINT 1 Number of the Sercos III master: If only one Sercos III master is used, usiCom is ‘1’. In case of multiple masters use ‘1’ for the first, ‘2’ for the second, etc. uiAddress UINT Topological address or Sercos address, depends on the parameter xIsSercosAddress xIsSercosAddress BOOL FALSE This input switches between topological address and Sercos address FALSE: uiAddress is the topological address TRUE: uiAddress is the Sercos address usiChannel USINT 1 Reserved for future extensions. Currently not used. dwIDN DWORD IDN (Identification Number) with 4 Bytes (SI (structure instance) and SE (structure element)) wElem WORD Value 1: Structure of the IDN Value 2: Name of the parameters Value 3: Data attributes Value 4: Unit Value 5: Minimal value Value 6: Maximal value Value 7: Data value udiTimeOut UDINT Here you can set a timeout in milliseconds. If the reading of the parameter has not been finished within this time, an error message will be generated. pBuffer POINTER TO BYTE 0 Pointer on a data buffer in which the data will be stored after a successful parameter transfer szSize CAA_SIZE 0 Size of the data buffer (see above: pBuffer) in Bytes. Output xDone BOOL This output is TRUE as soon as the command has been finished successfully. xBusy BOOL This output is TRUE as long as the execution of the command has not been finished. xError BOOL This output is TRUE, if an error is detected. eError will show the cause. eError SERCOS3_ERROR This output shows the cause of the detected error, which is indicated by xError. For example ‘SERCOS3_TIMEOUT’ in case of an timeout. udiSercosError UDINT Error code if the function block has not been finished successfully. szDataRead CAA_SIZE Number of read bytes; maximum szSize (see input parameters).
Sercos3_IDNRead4 (FB) ¶ FUNCTION_BLOCK Sercos3_IDNRead4 This function block could be used to read Sercos III slave parameter. In contrast to Sercos3_IDNRead only parameters not longer than 4 Bytes will be supported. The parameter to be read is specified by the IDN as used in the object dictionary. InOut: Scope Name Type Initial Comment Input xExecute BOOL On a rising edge at this input the reading of the slave parameter will be started. In order to get the internal channel deallocated, the instance must be called at least once by “xExecute:= FALSE”. xAbort BOOL FALSE If this parameter is TRUE, the current read process will be aborted. usiCom USINT 1 Number of the Sercos III master: If only one Sercos III master is used, usiCom is ‘1’. In case of multiple masters use ‘1’ for the first, ‘2’ for the second, etc. uiAddress UINT Topological address or Sercos address, depends on the parameter xIsSercosAddress xIsSercosAddress BOOL FALSE This input switches between topological address and Sercos address FALSE: uiAddress is the topological address TRUE: uiAddress is the Sercos address usiChannel USINT 1 Reserved for future extensions. Currently not used. dwIDN DWORD IDN (Identification Number) with 4 Bytes (SI (structure instance) and SE (structure element)) wElem WORD Value 1: Structure of the IDN Value 2: Name of the parameters Value 3: Data attributes Value 4: Unit Value 5: Minimal value Value 6: Maximal value Value 7: Data value udiTimeOut UDINT Here you can set a timeout in milliseconds. If the reading of the parameter has not been finished within this time, an error message will be generated. Output xDone BOOL This output is TRUE as soon as the command has been finished successfully. xBusy BOOL This output is TRUE as long as the execution of the command has not been finished. xError BOOL This output is TRUE, if an error is detected. eError will show the cause. eError SERCOS3_ERROR This output shows the cause of the detected error, which is indicated by xError. For example ‘SERCOS3_TIMEOUT’ in case of an timeout. udiSercosError UDINT Error code if the function block has not been finished successfully. abyData ARRAY [1..4] OF BYTE This is an array of 4 Bytes to which the read parameter data will be copied. If 1 Byte have been read, this will be stored in index 1 of the array. Values of 2 resp. 4 bytes will be copied to the array according to Intel byte order. usiDataLength USINT Number of read bytes (1,2,4).
Sercos3_IDNWrite (FB) ¶ FUNCTION_BLOCK Sercos3_IDNWrite This function block could be used to write Sercos III slave parameter. In contrast to Sercos3_IDNWrite4 also parameters longer than 4 Bytes will be supported. The parameter to be written is specified by the IDN as used in the object dictionary. InOut: Scope Name Type Initial Comment Input xExecute BOOL On a rising edge at this input the reading of the slave parameter will be started. In order to get the internal channel deallocated, the instance must be called at least once by “xExecute:= FALSE”. xAbort BOOL FALSE If this parameter is TRUE, the current write process will be aborted. usiCom USINT 1 Number of the Sercos III master: If only one Sercos III master is used, usiCom is ‘1’. In case of multiple masters use ‘1’ for the first, ‘2’ for the second, etc. uiAddress UINT Topological address or Sercos address, depends on the parameter xIsSercosAddress xIsSercosAddress BOOL FALSE This input switches between topological address and Sercos address FALSE: uiAddress is the topological address TRUE: uiAddress is the Sercos address usiChannel USINT 1 Reserved for future extensions. Currently not used. dwIDN DWORD IDN (Identification Number) with 4 Bytes (SI (structure instance) and SE (structure element)) wElem WORD Value 7: Data value udiTimeOut UDINT Here you can set a timeout in milliseconds. If the writing of the parameter has not been finished within this time, an error message will be generated. pBuffer POINTER TO BYTE 0 Pointer on a the buffer which contains the data to be written szSize CAA_SIZE 0 Size of the data buffer (see above: pBuffer) in Bytes. Output xDone BOOL This output is TRUE as soon as the command has been finished successfully. xBusy BOOL This output is TRUE as long as the execution of the command has not been finished. xError BOOL This output is TRUE, if an error is detected. eError will show the cause. eError SERCOS3_ERROR This output shows the cause of the detected error, which is indicated by xError. For example ‘SERCOS3_TIMEOUT’ in case of an timeout. udiSercosError UDINT Error code if the function block has not been finished successfully. szDataWritten CAA_SIZE Number of written Bytes; will be set to szSize after successful writing
Sercos3_IDNWrite4 (FB) ¶ FUNCTION_BLOCK Sercos3_IDNWrite4 This function block could be used to write Sercos III slave parameter. In contrast to Sercos3_IDNWrite only parameters not longer than 4 Bytes will be supported. The parameter to be written is specified by the IDN as used in the object dictionary. InOut: Scope Name Type Initial Comment Input xExecute BOOL On a rising edge at this input the reading of the slave parameter will be started. In order to get the internal channel deallocated, the instance must be called at least once by “xExecute:= FALSE”. xAbort BOOL FALSE If this parameter is TRUE, the current write process will be aborted. usiCom USINT 1 Number of the Sercos III master: If only one Sercos III master is used, usiCom is ‘1’. In case of multiple masters use ‘1’ for the first, ‘2’ for the second, etc. uiAddress UINT Topological address or Sercos address, depends on the parameter xIsSercosAddress xIsSercosAddress BOOL FALSE This input switches between topological address and Sercos address FALSE: uiAddress is the topological address TRUE: uiAddress is the Sercos address usiChannel USINT 1 Reserved for future extensions. Currently not used. dwIDN DWORD IDN (Identification Number) with 4 Bytes (SI (structure instance) and SE (structure element)) wElem WORD Value 7: Data value udiTimeOut UDINT Here you can set a timeout in milliseconds. If the writing of the parameter has not been finished within this time, an error message will be generated. abyData ARRAY [1..4] OF BYTE This array of 4 Bytes contains the data to be written If 1 byte have been written, this will be stored in index 1 of the array. Values of 2 resp. 4 bytes will be copied to the array according to Intel byte order. usiDataLength USINT Number of bytes to be written (1,2,4). Output xDone BOOL This output is TRUE as soon as the command has been finished successfully. xBusy BOOL This output is TRUE as long as the execution of the command has not been finished. xError BOOL This output is TRUE, if an error is detected. eError will show the cause. eError SERCOS3_ERROR This output shows the cause of the detected error, which is indicated by xError. For example ‘SERCOS3_TIMEOUT’ in case of an timeout. udiSercosError UDINT Error code if the function block has not been finished successfully.
IoDrvSercos3 Library Documentation ¶ Company 3S - Smart Software Solutions GmbH Title IoDrvSercos3 Version 3.5.17.0 Categories Intern|IoDrivers Author 3S - Smart Software Solutions GmbH Placeholder IoDrvSercos3 Description 1 ¶ Sercos iodriver library for Automata Sercos3 PCI card. Contents: ¶ CoSeMa StructsEnums Diagnosis IoDrvSercos3_Diag (FunctionBlock) Sercos3Slave_Diag (FunctionBlock) IDNCommands ENUMS Sercos3_IDNCmd (FunctionBlock) Sercos3_IDNRead (FunctionBlock) Sercos3_IDNRead4 (FunctionBlock) Sercos3_IDNWrite (FunctionBlock) Sercos3_IDNWrite4 (FunctionBlock) IoDrvSercos ConfigStructs IoDrvSercos3 (FunctionBlock) SERCOS_TOPOLOGY (Enum) Sercos3MasterGlobals (GVL) Sercos3Slave (FunctionBlock) Library Information GetLibVersion (Function) GetLibVersionNumber (Function) IsLibReleased (Function) Sercos3HAL Sercos3Master_GetVersion (Function) Utils Indices and tables ¶ 1 Based on IoDrvSercos3.library, last modified 20.04.2021, 15:05:39. LibDoc 4.4.0.0-b.27 The content file IoDrvSercos3.clean.json was generated with CODESYS V3.5 SP16 Patch 3 on 20.04.2021, 15:05:39.
IoDrvSercos3_Diag.ParentNode (PROP) ¶ PROPERTY ParentNode : INode Returns the parent node or zero if the root node is already reached.
IoDrvSercos3_Diag.SiblingNodeCount (PROP) ¶ PROPERTY SiblingNodeCount : CAA.Count Returns the number of sibling (same level) nodes
IoDrvSercos3_Diag.SetCommunicationState (METH) ¶ METHOD SetCommunicationState : DED.ERROR Starts, stops or resets a device Note Use |IDevice2.CheckSupportedCommunicationState| and |IDevice2.CheckCurrentSupportedCommunicationState| to check which transitions are possible! InOut: Scope Name Type Comment Return SetCommunicationState DED.ERROR Input eRequestedState DED.DEVICE_TRANSITION_STATE desired transition