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.
Sercos3Slave.StatusWord (PROP) ¶ PROPERTY StatusWord : DWORD the current status word from the slave
Library Information ¶ GetLibVersion (Function) GetLibVersionNumber (Function) IsLibReleased (Function)
GetLibVersion (FUN) ¶ FUNCTION GetLibVersion : VERSION This function has been automatically generated from the project information. InOut: Scope Name Type Return GetLibVersion VERSION
GetLibVersionNumber (FUN) ¶ FUNCTION GetLibVersionNumber : DWORD This function has been automatically generated from the project information. InOut: Scope Name Type Return GetLibVersionNumber DWORD
IsLibReleased (FUN) ¶ FUNCTION IsLibReleased : BOOL This function has been automatically generated from the project information. InOut: Scope Name Type Return IsLibReleased BOOL
Sercos3HAL ¶ /// for internal use only
Sercos3Master_GetVersion (FUN) ¶ FUNCTION Sercos3Master_GetVersion : DWORD Returns the current version of the Sercos stack Example: 16#03050800 Each byte is one version number part InOut: Scope Name Type Return Sercos3Master_GetVersion DWORD
Utils ¶ /// for internal use only