The specified TCP port is not available on this machine. If it is related to TCP/IP use TCP port number which is outside the IPPORT_RESERVED range. If the error is related to a serial port, change the access privilege. You do not have permission to access the serial or TCP port. Maximum number of usable file descriptors exceeded. The listen operation on the specified TCP port failed. The port might already be taken by another application or has not been released yet by the TCP/IP stack for re-use. Indicates that the specified TCP port cannot be bound. ![]() The TCP/IP socket library could not be loaded. ![]() Signals that the TCP/IP connection was closed by the remote peer or is broken. The remote host must also listen on the appropriate port. Typically, this occurs when a hos does not exist on the network or the IP address or hots name is wrong. Signals that the TCP/IP connection could not be established. The serial port defined is already opened by another application. In case of serial, it indicates that the serial port does not exist on the system. The TCP/IP socket or the serial port could not be opened. The underlaying I/O system reported an error. The slave has been started without adding a data table.Ī slave address or unit ID of 0 is used as broadcast address for ASCII and RTU protocol and therefore illegal for serial protocols (should never be encountered).Ī problem in conjonction with the I/O system is encountered. The version of the FieldTalk library is a function limited evaluation version that has expired (should never be encountered) the protocol has not been opened successfully yet. The command is called in a wrong state, e.g. The error codes are defined as follows: CodesĪ parameter passed to the command is invalid or out of range ModBus XOP commands set the variable V_MBerr after completion. This command writes 23 in the register at address 2 number is either a 16-bit value, a 32-bit long integer (/L) or a 32-bit float number (/F). address is the address of the register (default value is 0). Writes a single holding register in a remote device (public function code 6). address is the address of the coil (default value is 0). Writes a single output to either ON or OFF in a remote device (public function code 5). MBWrite does not report an error to Igor so that your procedure can handle the error using V_MBerr. Specifies 32-bit float data types access (valid when used with keywords HoldingRegisters and InputRegisters). Specifies 32-bit long integers data types access (valid when used with keywords HoldingRegisters and InputRegisters). If an error is encountered, the error code is returned in V_MBerr. The MBWrite operation writes a coil or a register (MODBUS public function codes 5, 6). This command reads the holding register 619 of a remote device into the variable V_HoldingRegister: address is the address of the starting register (default value is 0). Reads an input register in a remote device (public function code 4). Reads the contents of a holding register in a remote device (public function code 3). address is the address of the input (default value is 0). Reads a discrete input in a remote device (public function code 2). Reads a coil status in a remote device (public function code 1). HostName is the IP address of the device to access. Specifies 32-bit float data types access (only valid when used with keywords HoldingRegister and InputRegister). Specifies 32-bit long integers data types access (only valid when used with keywords HoldingRegister and InputRegister). ![]() The MBRead operation reads the status of coils, inputs or registers into variables (MODBUS public function codes 1, 2, 3, 4). MBOpen /Q IP=gDeviceAddress, port=1100, timeout=100, delay=0 This variable is useful for TCP/IP calls using the MODBUS commands. This function opens the TCP/IP connection with a MODBUS device before starting read/write operations: pollDelay is the delay time which applies between two consecutive Modbus read/write. Used in preparation for ModBus/TCP read/write operations. time is the time-out in ms to be used for the communication. Used in preparation for MODBUS/TCP read/write operations. TCPport is the TCP port number to be used for the communication. hostName is the IP address of the device to control. If the error is a timeout (codes 132 or 133), MBOpen does not report it to Igor so that your procedure can handle the error. MBOpen sets V_MBerr to zero if no error occurred or to non-zero if an error did occur. The MBOpen operation opens the communication with a MODBUS device.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |