Sercos3Slave_Diag.ParentNode (PROP) ¶ PROPERTY ParentNode : INode Returns the parent node or zero if the root node is already reached.
Sercos3Slave_Diag.SiblingNodeCount (PROP) ¶ PROPERTY SiblingNodeCount : CAA.Count Returns the number of sibling (same level) nodes
Sercos3Slave_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
IDNCommands ¶ ENUMS SERCOS3_ERROR (Enum) Sercos3_IDNCmd (FunctionBlock) Sercos3_IDNRead (FunctionBlock) Sercos3_IDNRead4 (FunctionBlock) Sercos3_IDNWrite (FunctionBlock) Sercos3_IDNWrite4 (FunctionBlock)
ENUMS ¶ SERCOS3_ERROR (Enum)
Sercos3Slave_Diag.ChildNodeCount (PROP) ¶ PROPERTY ChildNodeCount : CAA.Count Returns the number of childs below the current node
Sercos3Slave_Diag.Enable (PROP) ¶ PROPERTY Enable : BOOL Set: This property is used for enabling/disabling a node. Changes will take effect after doing a Reconfigure (see |Reconfigure| ). Get: Returns the current Enable value
Sercos3Slave_Diag.FirstChildNode (PROP) ¶ PROPERTY FirstChildNode : INode Returns the first child node below the current one
ClientRequestReadWideRegisters (FB) ¶ FUNCTION_BLOCK ABSTRACT ClientRequestReadWideRegisters EXTENDS ModbusFB.ClientRequestRead Read client request base class for ReadHoldingRegistersWide and ReadInputRegistersWide InOut: Scope Name Type Initial Comment Inherited from Input xExecute BOOL Rising edge: Starts defined operation FALSE : Resets the defined operation after ready condition was reached ETrigTo udiTimeOut UDINT Max. operating time for executing [µs], 0: No operating time limit ETrigTo Output xDone BOOL Ready condition reached ETrigTo xBusy BOOL Operation is running ETrigTo xError BOOL Error condition reached ETrigTo Inout rClient Client Reference to |Client| . ClientRequest Input uiUnitId UINT 0 Unit-Id to send the request to. ClientRequest udiReplyTimeout UDINT (50 * 1000) 50 ms ClientRequest uiMaxRetries UINT 0 Maximum number of request retries in case of “reply timeout”. ClientRequest Output eErrorID Error Error status ClientRequest eException ExceptionCodes Request exception code. ClientRequest uiRetryCnt UINT 0 Number of request retries in case of “reply timeout”. ClientRequest Input uiStartItem UINT 0 First “data item” to read. ClientRequestRead uiQuantity UINT 1 Number of “data items” to read. ReadCoils / ReadDiscreteInputs: 1 to 2000 ReadHoldingRegisters / ReadInputRegisters: 1 to 125 ClientRequestRead pData POINTER TO BYTE 0 Pointer to result data, memory has to be provided by caller. uiDataItemSize UINT “data item” size / register width (in bytes). The ClientRequest has to know about the “data item” size a-priori to provide memory for result data. In case the server unexpectedly does have a different “data item” size than assumed, the ClientRequest can not succeed.
ClientRequestReadWriteMultipleRegistersWide (FB) ¶ FUNCTION_BLOCK ClientRequestReadWriteMultipleRegistersWide EXTENDS ModbusFB.ClientRequest ReadWriteMultipleRegister client request (FC23) for registers > 16bit. For details about client request see |ClientRequest| . For details about “wide registers” and endianess see ServerTCP_extended or ServerSerial_extended . Please note: The write operation is performed before the read. Please visit https://forge.codesys.com/prj/codesys-example/modbus/home to find examples. InOut: Scope Name Type Initial Comment Inherited from Input xExecute BOOL Rising edge: Starts defined operation FALSE : Resets the defined operation after ready condition was reached ETrigTo udiTimeOut UDINT Max. operating time for executing [µs], 0: No operating time limit ETrigTo Output xDone BOOL Ready condition reached ETrigTo xBusy BOOL Operation is running ETrigTo xError BOOL Error condition reached ETrigTo Inout rClient Client Reference to |Client| . ClientRequest Input uiUnitId UINT 0 Unit-Id to send the request to. ClientRequest udiReplyTimeout UDINT (50 * 1000) 50 ms ClientRequest uiMaxRetries UINT 0 Maximum number of request retries in case of “reply timeout”. ClientRequest Output eErrorID Error Error status ClientRequest eException ExceptionCodes Request exception code. ClientRequest uiRetryCnt UINT 0 Number of request retries in case of “reply timeout”. ClientRequest Input uiWriteStartItem UINT 0 First “data item” to write. uiWriteQuantity UINT 1 Number of “data items” to write. pWriteData POINTER TO BYTE 0 Pointer to write data. uiWriteDataItemSize UINT write “data item” size / register width (in bytes). The ClientRequest has to know about the “data item” size a-priori to provide memory for result data. In case the server unexpectedly does have a different “data item” size than assumed, the ClientRequest can not succeed. uiReadStartItem UINT 0 First “data item” to read. uiReadQuantity UINT 1 Number of “data items” to read. pReadData POINTER TO BYTE 0 Pointer to read data. uiReadDataItemSize UINT read “data item” size / register width (in bytes).