Industrial Automation
Industrial Automation | Europe


Main > Product Type > Automation Systems > PLCs
Minimize Text   Default    Enlarge Text


TCP Socket Communications Sample For CJ1W-ETN21 and Weidmüller serial to Ethernet converter


TCP sockets can be used with the CJ1W-ETN21 unit with all CJ-series CPUs.

This can be extremely useful when interfacing CJ-series PLCs to 3rd-party equipment such as smart-cards readers, RFID controllers and serial-Ethernet converters.

With the CJ1W-ETN21, CJ-series PLCs can be programmed to handle TCP and UDP sockets as either Server or Client.

The sample that follows employs a CJ2-series PLC with a CJ1W-ETN21 acting as a TCP Client communicating with a Weidmuller IE-CS(T)-2TX-xRS232_485 serial-Ethernet converter set as a TCP Server (port 4001), which in turn connects to a CJ1W-SCU21 serial communcations unit behaving as a simple RS-232 device.


Details are provided in the the attached Word document and CX-Programmer project.

The "IE-CS-2TX-2RS232_485_3616.txt" file is the setup file exported from the Weidmuller converter used in this example.


TCP_Socket_Tests.cxp - Size: 47876

Comments (View All Comments / Add Comment)

Related Articles
No related articles found.
Created 2011-09-12
Modified 2011-10-19
Views 9502


You are not logged in.