Simple ethernet connection with Roboteq controller
Controller models that support communication via an Ethernet cable are identified with the letter E, for example, FBL2360E or FBL2360ES. By default, TCP communication is disabled on controllers, so to use this feature configuration is needed. All configuration parameters may be accessed under the Roborun+ Configuration tab. All TCP parameters are configurable from the TCP node under the Inputs/Outputs Column. Find more details in section 15, “TCP Communication Commands”.
TCP Mode: Enabled
Configure this parameter to enable the TCP functionality. When the TCP mode is set as Disabled the Ethernet port is idle and no data packets are being transmitted or received. To communicate via TCP/IP this parameter must be set to Enabled. For communicating via Modbus TCP or Modbus TCP over RTU, TCP Mode must be set to Enabled.
DHCP:
Configure this parameter to enable the DHCP. The default value for DHCP service is disabled. When DHCP is Disabled, the user configured IP address is used by the controller to access the network. By enabling DHCP service, the controller uses the IP address provided by the DHCP server.
IP port: 9761
Configure this parameter to set the IP Port. Default IP Port value is 9761. The IP address combined with the IP Port value are used to connect to the controller.
Gateway Address:
Configure this parameter to set the Gateway Address of your controller’s network. Gateway Address option includes 4 values representing each octet in the IP address v4 format. The default Gateway Address value is 192.168.1.1.
Subnet Mask:
Configure this parameter to set the Subnet Mask to define the range of IP addresses that can be used in your network. Subnet Mask option includes 4 values representing each octet in the IP address v4 format. Devices within the same sub-network can communicate directly. Using the default subnet mask, all devices with the first 3 bytes identical are in the same sub-network and almost 256 (not all 256 values may be used as a host IP) unique host devices may be used in the network. Subnet Mask option includes 4 values representing each octet in the IP address. The default Subnet Mask value is 255.255.255.0.
Example: Connect an ethernet cable to the controller and your PC
Set
TCP Mode: Enabled
Enable DHCP: Disabled
IP Port: 976
Controller IP: 192.168.1.20
Gateway Address: Not used in this example. This is needed if you want to access the controller through a gateway.
Subnet Mask: 255.255.255.0
PC side
Static IP: 192.168.1.100
Subnet Mask: 255.255.255.0
To test, switch off any current active connections, wi-fi for example and open the command prompt.
send Ping -t 192.168.1.20
You will get a response as
Then open the roborun+ and choose COM Port: TCP
Then use the IP and port according to the settings.
The controller will be recognized, and you may use the roborun+
Using a terminal for testing
You can also use a terminal and send commands as when you are using the roborun+
In this example we are using Hercules that you can download from
https://www.hw-group.com/software/hercules-setup-utility
After pressing the connect you can send a command using the “_” at the end for CR LF as