ModbusTCP_Parameter (PARAMS) ¶ InOut: Scope Name Type Initial Constant MAX_MODBUS_CHANNELS UINT 100
Structs ¶ MB_ErrorCodes (Enum) RequestStatus (Enum)
MB_ErrorCodes (ENUM) ¶ TYPE MB_ErrorCodes : InOut: Name Initial Comment RESPONSE_SUCCESS 16#0 Everything OK ILLEGAL_FUNCTION 16#1 Slave does not support the function code ILLEGAL_DATA_ADDRESS 16#2 Slave does not support this register offset ILLEGAL_DATA_VALUE 16#3 The value to be written is not valid SLAVE_DEVICE_FAILURE 16#4 Unrecoverable error while performing the request ACKNOWLEDGE 16#5 Notification of a Slave that a lengthy operation being started SLAVE_DEVICE_BUSY 16#6 Notification of a Slave that a lengthy operation is in progress MEMORY_PARITY_ERROR 16#8 Special error for function code 20, 21 GATEWAY_PATH_UNAVAILABLE 16#A Special error when using devices behind a gateway (Gateway misconfigured/busy) GATEWAY_DEVICE_FAILED_TO_RESPOND 16#B Special error when using devices behind a gateway (Device does not respond) RESPONSE_TIMEOUT 16#A1 There was no response in time RESPONSE_CRC_FAIL 16#A2 The checksum of the response is not correct RESPONSE_WRONG_SLAVE 16#A3 The response is not from the expected Slave RESPONSE_WRONG_FUNCTIONCODE 16#A4 The response is not the expected function code TCP_COMMUNICATION_ERROR 16#A5 TCP Port error. Request was not sent RESPONSE_INVALID_DATA 16#A6 The response contains invalid data RESPONSE_INVALID_PROTOCOL 16#A7 The response is not modbus protocol RESPONSE_INVALID_HEADER 16#A8 Any field of Modbus MBAP (Protocoll, Length) header is invalid INVALID_PARAMETER 16#A9 Any input parameter of the operation is invalid (e.g. data- pointer is not set or FC is not supported by Modbus stack UNDEFINED 16#FF The request’s result is undefined or not yet known, e.g. initial state
RequestStatus (ENUM) ¶ TYPE RequestStatus : InOut: Name Comment NONE REQUEST_PENDING WAIT_REPLY RECEIVED_DATA ERROR_SEND_COMMAND Unable to Send Command !
ModbusTCPSlaveUnit_Diag.GetSpecificDeviceErrorAsync (METH) ¶ METHOD GetSpecificDeviceErrorAsync : DED.PROC_STATE Returns the specific device error of the current node; interpretation is fieldbus-dependent; you can also use functionblock GetSpecificDeviceError InOut: Scope Name Type Comment Return GetSpecificDeviceErrorAsync DED.PROC_STATE Input eCmd DED.PROC_CMD eCommand pData CAA.PVOID Pointer to memory szSize CAA.SIZE Size of memory in bytes where pData is pointing to Output szCount CAA.SIZE Number of Bytes written to pData eError DED.ERROR error code if method fails
ModbusTCPSlaveUnit_Diag.GetSpecificDeviceState (METH) ¶ METHOD GetSpecificDeviceState : DED.ERROR Returns the fieldbus specific device state; interpretation is fieldbus dependent InOut: Scope Name Type Comment Return GetSpecificDeviceState DED.ERROR Input pData CAA.PVOID Pointer to memory szSize CAA.SIZE Size of memory in bytes where pData is pointing to Output szCount CAA.SIZE Number of Bytes written to pData
ModbusTCPSlaveUnit_Diag.SetCommunicationState (METH) ¶ METHOD SetCommunicationState : DED.ERROR Starts, stops or resets a device InOut: Scope Name Type Return SetCommunicationState DED.ERROR Input eRequestedState DED.DEVICE_TRANSITION_STATE
INode ¶ ChildNodeCount (Property) Enable (Property) FirstChildNode (Property) IsRootNode (Property) NextSiblingNode (Property) ParentNode (Property) SiblingNodeCount (Property)
ModbusTCPSlaveUnit_Diag.ChildNodeCount (PROP) ¶ PROPERTY ChildNodeCount : CAA.Count
ModbusTCPSlaveUnit_Diag.Enable (PROP) ¶ PROPERTY Enable : BOOL This property returns if the node is enabled in the device tree. The setter can be used to change the Enabled flag. If enabling/disabling is not supported on the node the flag’s value will not change.