Table of Contents Overview ....................1 1.1. Specification ....................1 1.2. Dimensions....................2 1.3. Pin Assignment..................3 1.4. Restoring factory default................3 1.5. LED indicator .....................3 1.6. Battery.......................4 1.7. Power connection..................5 1.8. Power Consumption...................5 cMT-CTRL01 System Setting ..............6 2.1. Search for cMT-CTRL01’s IP address ............6 2.2.
Page 3
Updating iR Firmware................17 How to create a cMT-CTRL01 project............19 4.1. Create a new project ................19 4.2. Download project to cMT-CTRL01 ............20 4.3. Monitoring OPC UA Client ................22 4.4. On-line/Off-line Simulation ..............22 Functions supported by cMT-CTRL01 ...........24 OPC UA Web Management Interface ............25 6.1.
Page 4
11.2.1........................C ODESYS Settings ...................47 11.2.2........................G ateway Settings..................48 Connecting cMT-CTRL01 via EtherCAT ..........49 Removing Weintek Built-in CODESYS..........52 Frequently Asked Questions ..............54 14.1. Questions Related to CODESYS..............54 14.2. Questions Related to Downloading cMT CODESYS File ......55...
Overview 1.1. Specification CODESYS PLC with IIoT Gateway Features CODESYS PLC compliant with IEC61131-3 Fan-less Cooling System Built- in 4GB Flash Memory and RTC SD Card Slot Supports SD/SDHC Cards Rich combination of iR Series Modules Gateway ...
1.3. Pin Assignment COM1 [RS232], COM2 [RS-485 2W/4W], COM3 [RS-485 2W], 9 Pin, Male, D-sub COM2 [RS-485] COM1 COM3 PIN# [RS-232] [RS-485] 2W Data+ Data- Data+ Data- 1.4. Restoring factory default Press and hold on the Reset button on the unit for more than a certain period of time when the RUN/Stop toggle switch (CODESYS switch) is in STOP state: Period of time ERR LED...
CPU LED Green(RUN) Red(ERR) Description CODESYS STOP CODESYS RUN EBPro or CODESYS scans and the LED of the found unit Blinking winks. CODESYS ERROR Blinking Blinking BOOT IO LED Green(RUN) Red(ERR) Description Power off or no power Fast Blinking CODESYS stops Blinking IO initiating Blinking...
1.7. Power connection Power: The unit can be powered by DC power only, the voltage range is compatible with most controller DC systems. The power conditioning circuitry inside the unit is accomplished by a switching power supply. The peak starting current can be as high as 500mA. cMT-CTRL01 voltage range: 24±20% VDC Power Connector Specifications: Wire AWG: 24~12...
cMT-CTRL01 System Setting Connect cMT-CTRL01’s Ethernet 2 via Ethernet cable and then configure system settings by the following ways. 2.1. Search for cMT-CTRL01’s IP address Launch Utility Manager. On the top-left menu select IIoT Gateway Series, and then select a function from Reboot, Download, or Upload.
cMT-CTRL01 system information is shown in the Login page, and the language used can be changed in this page. Icon Description Displays HMI name. Displays system date. Displays system time. Please note that by default, Ethernet 2 is assigned for Gateway (DHCP). 2.3.
Three levels of privileges can be found: [System Setting]: Controls all the settings [Update]: Controls limited items. [History]: Downloads history data (Recipes and Event Logs). 2.3.1. Network Configure Ethernet ports: IP, Mask, Gateway, and DNS. cMT-CTRL01 is equipped with dual Ethernet ports that can be freely assigned as one of the following: One Ethernet port for CODESYS (Ethernet 1, DHCP) and the other one for IIoT Gateway (Ethernet 2 DHCP).
2.3.3. HMI Name Enter a name to identify the unit. [Identification light]: The LED indicator of the unit will flash three times when this button is clicked, helping user to find the unit. 2.3.4. History This tab offers settings related to historical data. [Clear]: Clears history data.
2.3.5. Email This tab offers settings related to email. [SMTP]: Configure email server and relevant settings. [Contacts]: Set email contacts in this tab. [Update Email Contacts]: Import the email contacts built using Administrator Tools. 2.3.6. Project Management This tab offers settings related to project management. [Restart Project]: Restart cMT-CTRL01 project.
[Update Project]: Upload the project’s *.cxob file to cMT-CTRL01. [Backup Project]: Backup the project file to this computer. [USB/SD Update]: Use the project file stored in the external device to update the project file on cMT-CTRL01. 2.3.7. System Password Set login password and the password for transferring project file. 2.3.8.
2.3.9. EasyAccess 2.0 (Optional) This tab shows Hardware Key, EasyAccess 2.0 activate status, and proxy settings. For more information on EasyAccess 2.0, please see EasyAccess 2.0 User Manual. 2.3.10. OPC UA Configure OPC UA settings. Please see “Chapter 6 OPC UA Web Management Interface” in this manual for details.
Page 18
Parameters that can be viewed and modified for a device connected via COM port. Interface Baud rate Data Bits Parity Stop Bits Timeout Parameter 1 Parameter 2 Send ACK Delay Parameters that can be viewed and modified for a device connected via Ethernet. IP Address Port Timeout...
Updating Web Package and OS cMT-CTRL01 Web Package and OS can be updated through Ethernet. Launch Utility Manager, select [Gateway Series] » [Maintenance] » [cMT-Gateway OS Update]. 3.1 Updating Web Package 1. Select an HMI to update OS. 2. Select [Web package] and browse for the source file. 3.
Page 20
2. Select [OS], a Warning message shows, please read this message carefully before you click [OK]. 3. If you click [OK], the cMT-Gateway OS Update window opens again, browse for the source file, and then click [Update]. 4. The message window below opens, please do not turn off the power while upgrading. 5.
3.3 Updating iR Firmware When updating iR firmware for cMT-CTRL01, please press and hold the Reset button and power up the unit again. 1. Select a cMT-CTRL01. 2. Select the bin file and then click [Update].
Page 22
After update, power up the unit again. In CODESYS log in cMT-CTRL01, and the iR firmware version can be found in the iBus tab.
How to create a cMT-CTRL01 project This chapter explains how to create a project when cMT-CTRL01 is used as an OPC UA Server. The basic steps are: 1. Add a driver into Device List in EasyBuilder Pro. 2. Enable OPC UA Server and designate communication address. 3.
Step 3. Click [IIoT/Energy] » [OPC UA Server], and select [Enable] check box to enable OPC UA Server. Step 4. Click [Tags] of the device and then click [New Tag] to add tags monitored using OPC UA. When finished, click [OK] to leave. Step 5.
Page 25
[Compile] to compile the project into *.cxob format. When finish compiling, you can download the project to cMT-CTRL01 by two ways. Way 1: Download using EasyBuilder Pro. Click [Project] » [Download(PC->HMI)], and set HMI IP address. The project can be downloaded via Ethernet. Way 2: Download using website.
4.3. Monitoring OPC UA Client After downloading the project file, use OPC UA Client software to connect with cMT-CTRL01 to monitor PLC data. Note: The above is a screenshot of UaExpert. For more information on OPC UA Client software settings, please see OPC UA server manual. 4.4.
Page 27
Step 3. In On-line Simulation, data in PLC tags will also change.
OPC UA Web Management Interface 6.1. Introduction cMT-CTRL01 provides a web-based tool for convenient access to OPC UA configurations. Open cMT-CTRL01’s webpage by entering its IP address into the address bar of a web browser. At the entry page, log in with System setting’s password. Factory default of the password is 111111. (Suggested resolution: 1024×768 or higher) Navigate to the OPC UA configuration page from the context menu on the left.
Usage of each window tab: Description Configure server settings such as port, name, security, user Server settings authentication……etc. Edit node Manage tags used by OPC UA server. Certificates Manage certificates used by OPC UA server. Discovery Manage list of discovery server. Advanced Advanced options and features.
Page 31
General Function Port Access port of the OPC UA server Server name Server name of the OPC UA server Supported security policies. At least one must be selected. Security policy Supported Policy: None, Basic128Rsa15, Basic256, Basic256sha256 Mode: Sign, Sign & Encrypt Automatically Trust all client certificates: by enabling this option, the Option OPC UA server will trust the certificate from any client connection.
After completing settings, click the Save button to save the changes. OPC UA server will shut down momentarily and then restart for the changes to take effect. 6.4. Edit Node In this page, the user can view and manage the tags currently available in the OPC UA server. New nodes and groups can be added, while existing nodes and groups can be edited or deleted.
Note that all modifications can only be made for existing drivers. It is not possible to change or add other drivers that are not already available. It is also not possible to edit the nodes used by tag PLCs*. *Tag PLCs are characterized by their use of name tags as device memory address as opposed to using device name with indices.
Page Description Lists of trusted/rejected client certificates on the server. Trusted Clients Supported operation: Trust/Reject, Remove, Import, Export. Lists of trusted/rejected user certificates on the server. Supported Trusted Users operation: Trust/Reject, Remove, Import, Export. Server’s own certificate. Supported operation: Update, Remove. When updating own certificate, matching certificate and Private Key must be uploaded together;...
After completing settings, click the Save button to save the changes. OPC UA server will shut down momentarily and then restart for the changes to take effect. 6.7. Advanced Additional settings can be configured in the Advanced tab. The user can set the trace logging level and specific startup behavior of the OPC UA server.
Installing CODESYS and RemoteIO Package Installing CODESYS and Remote IO Package allows users to easily create a cMT+CODESYS project in CODESYS software. Please find the Package file we prepared and follow these steps for quick installation. Firstly, get a copy of CODESYS and RemoteIO Package file. On your PC, right-click the mouse button and select [Open with CODESYS Package Manager].
Page 37
The installed component will be shown in the installation summary.
Connecting cMT-CTRL01 CODESYS 8.1. Connecting Through Network The PC can directly connect with CODESYS via Ethernet 1 when: The PC and cMT-CTRL01’s Ethernet 1 & 2 are all connected to the same router. The PC is directly connected to cMT-CTRL01’s Ethernet 1 using an Ethernet cable. ...
Page 39
Select cMT-CTRL. CODESYS software provides 6 languages that can be selected in [PLC_PRG in:] drop-down list as shown below. Structure Text (ST) is used as an example in this manual. Double-click on Device (cMT-CTRL) to open the settings window.
Page 40
Open Scan Network tab, CODESYS software, will start searching for the CODESYS devices on the same network. Select the desired device and then click [OK] to leave. The last two IP address parts (between dots) are converted into HEX digits and shown in this window. For example, if the IP address of the CODESYS device is 192.168.2.118, please select HMI Name[0276].
Page 41
IP address of the device can be entered in the field shown below.
Creating EasyBuilder Project *Please use EasyBuilder Pro v6.03.02 or later versions. 9.1. Creating Tags Create several tags in PLC_PRG tab and make tag “test” accumulate automatically. 9.2. Exporting Tags Right-click on Application in Devices tree and then select [Add Object] » [Symbol Configuration], use defaults.
9.3. Configuring EasyBuilder Use Weintek Built-in CODESYS driver for cMT-CTRL01 Gateway or use CODESYS V3 (Ethernet) driver for other HMI models to connect with CODESYS on cMT-CTRL01. 9.3.1. Connecting Built-in CODESYS Create a project and select Weintek Built-in CODESYS in the device list. Click [Import Tag] to import the *.xml file built in preceding steps.
9.3.2. Connecting cMT-CTRL01 CODESYS to other HMI Create a project and select CODESYS V3 (Ethernet) driver in the device list. Click [Import Tag] and select the *.xml generated in the preceding steps. CODESYS Tag can be found after importing.
Connecting cMT-CTRL01 CODESYS to iR Series Modules cMT-CTRL01 and iR Series modules do not support hot swapping by design. Please connect iR Series modules to cMT-CTRL01 before powering up cMT-CTRL01. Right-click on [iBus (iBus)] and then select [Add Device]. Select an iR module and then click [Add Device]. The added device can be found under iBus.
Page 46
Double click on a module name to open iROption I/O Mapping. Analog modules, other modules, and their settings. iBus has two addresses in BYTE type that show low voltage and I/O error. Open PLC_PRG in Devices tree and configure variables as shown below. In Devices tree double click on an iR module name to open object settings window.
Page 47
iROption I/O Mapping tab, select a variable for the object. When finished, click [Online] » [Login] to download the project to CODESYS.
Connecting cMT-CTRL01 to iR-ETN 11.1. Connecting cMT-CTRL01 to iR-ETN using Modbus TCP/IP Right-click on Device (cMT-CTRL01) and then select [Add Device]. Select [Ethernet Adapter] » [Ethernet] and then click [Add Device]. Ethernet (Ethernet) can be found in Devices tree. Double-click on Ethernet with the current window opened in Devices tree or right-click on Ethernet and then select [Add Device].
Page 49
Click [Fieldbusses] » [Modbus] » [Modbus TCP Slave] » [Modbus TCP Slave], and then select [Add Device]. Double click on Ethernet in the Devices tree, enter CODESYS’s IP address in General tab, and then select [Change Operating System Settings]. When [Use operating System Settings] is selected, settings on cMT-CTRL01 will be used without being changed.
Page 50
11. Open [Modbus Slave Channel] tab and create Modbus Variable. 12. Open PLC_PRG in Devices tree, create tag and set Bool as data type. Write a command as shown below.
13. Open Modbus_TCP_Slave in Devices tree and then go to [Modbus_TCPSlave I/O Mapping] tab to set up iR-ETN’s IP address and Unit ID. 14. When finished, click [Online] » [Login] to download the project to CODESYS. 11.2. Connecting CODESYS and Modbus TCP/IP Gateway cMT-CTRL01 supports Modbus TCP/IP Gateway which allows CODESYS to access Modbus TCP/IP Gateway using Modbus TCP Slave, in order to control the devices connected to Modbus TCP/IP Gateway.
To immediately display CODESYS data on HMI, values can be written to HMI’s LW registers for objects to read. When setting Modbus Slave Channel, Cycle Time can be configured to adjust the frequency at which data is written to the registers. 11.2.2.
Connecting cMT-CTRL01 via EtherCAT From CODESYS Firmware 20200401, cMT-CTRL01 supports EtherCAT connection. Please see Chapter 14.2 Questions relating to Downloading cMT CODESYS File, and Chapter 7 Installing Weintek CODESYS and RemoteIO Package in this manual for more information. This chapter explains how to connect cMT-CTRL01’s LAN1 to iR-ECAT and iR module. Open the CODESYS project file of cMT-CTRL01 and add a device.
Page 54
After adding the device, select cMT-CTRL01. Double click on EtherCAT Master, click [Browse…], and select network adapter eth0. To set the device manually, add iR-ECAT first. iR-ECAT may have multiple versions, please select a suitable version.
Page 55
Add iR I/O module. CODESYS can scan EtherCAT devices on the network. Set the device and select cMT-CTRL01. Right-click on EtherCAT Master and then select [Scan For Devices…]. Information on iR-ECAT and iR I/O modules is displayed in the Scan Devices window. Click [Copy All Devices to Project] to finish setting up the device.
Frequently Asked Questions 14.1. Questions Related to CODESYS Q1. When the indicator of CODESYS Gateway lights up in red, how can I connect to the device? A: When CODESYS Gateway is not properly started or installed, its indicator will light up in red. Please try the following 3 methods to solve this situation.
IP settings and make sure the cable is properly connected. Q3. Which CODESYS Development System version is suitable for cMT+CODESYS? Is there any other version to use? A: Use the same version as cMT+CODESYS runtime The built-in CODESYS Runtime of cMT+CODESYS is 3.5.10.30; therefore, using CODESYS Development 3.5.10.30 is recommended.
Page 60
Launch Utility Manager and select Gateway Series » Maintenance » CODESYS Firmware Update. Browse for the firmware file and click [Update]. Enter cMT HMI’s IP address in the website browser and find [CODESYS] » [CODESYS update] tab. Select the file and click [Update]. Q2.
Page 61
Enter cMT HMI’s IP address in the website browser and find [CODESYS] » [Project update] tab. Select the files generated in the previous step and click [Update].
Need help?
Do you have a question about the cMT Series and is the answer not in the manual?
Questions and answers