User Manual
cMT+CODESYS and Remote I/O Quick Start
Guide
This is a step-by-step instruction on how to set up cMT+CODESYS and Remote I/O.
UM018003E_20230328
cMT+CODESYS and Remote I/O Quick Start Guide
Table of Contents
1 Installing Weintek Built-in CODESYS ....................................................................... 1
2 Connecting cMT CODESYS ...................................................................................... 3
2.1 Connecting Through Network ........................................................................ 3
2.2 Creating CODESYS Project .............................................................................. 3
3 Creating EasyBuilder Project ................................................................................... 7
3.1 Creating Tags .................................................................................................. 7
3.2 Exporting Tag.................................................................................................. 7
3.3 Configuring EasyBuilder ................................................................................. 8
4 Connecting cMT CODESYS to iR-COP .................................................................... 10
5 Connecting cMT CODESYS to iR-ETN .................................................................... 13
6 Connecting cMT CODESYS to iR-ECAT ................................................................... 17
7 cMT-CTRL01 Quick Start ....................................................................................... 20
8 Ethernet/IP Quick Start ......................................................................................... 21
9 Starting iR Analog Modules .................................................................................. 24
9.1 Analog Module Wiring ................................................................................. 24
9.2 Setting Analog Channels .............................................................................. 24
9.2.1 Using EasyRemoteIO to Set Channels (iR-ETN).................................................. 24
9.2.2 Using CODESYS to Set Channels (iR-ETN) .......................................................... 25
9.2.3 Using CODESYS to Set Channels (iR-COP) .......................................................... 26
9.2.4 Using CODESYS to Set Channels (iR-ECAT)......................................................... 27
9.3 Analog Channel IO Mapping ........................................................................ 28
9.3.1 Reading / Writing iR-ETN Channels ................................................................... 28
9.3.2 Reading / Writing iR-COP Channels ................................................................... 29
9.3.3 Reading / Writing iR-ECAT Channels.................................................................. 30
10 Starting iR Motion Control Module ...................................................................... 32
10.1 Motion Control Module Wiring ................................................................... 32
10.2 Setting Motion Control Module Parameters ............................................... 32
10.2.1 Writing Motion Control Parameters from iR-ETN ......................................... 32
10.2.2 Writing Motion Control Parameters from iR-COP......................................... 33
10.2.3 Writing Motion Control Parameters from iR-ECAT ....................................... 33
10.3 Motion Control Module I/O Mapping .......................................................... 34
10.3.1 Reading / Writing iR-ETN Channels ............................................................... 34
10.3.2 Reading / Writing iR-COP Channels ............................................................... 35
cMT+CODESYS and Remote I/O Quick Start Guide
10.3.3 Reading / Writing iR-ECAT Channels ............................................................. 37
11 Starting Driver ....................................................................................................... 40
11.1 CANopen Driver ........................................................................................... 40
11.2 EtherCAT Driver ............................................................................................ 43
12 Removing Weintek Built-in CODESYS.................................................................... 47
13 Frequently Asked Questions ................................................................................. 49
13.1 Questions Related to IP Address .................................................................. 49
13.2 Questions Related to CODESYS .................................................................... 50
13.3 Questions Related to Downloading cMT CODESYS File ............................... 51
Software version: CODESYS V3.5 SP10 Patch 3
cMT+CODESYS and Remote I/O Quick Start Guide
1 Installing Weintek Built-in CODESYS
Installing Weintek Built-in CODESYS 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.
1. First, get a copy of CODESYS Package file.
2. On your PC, right-click the mouse button and select [Open with CODESYS
Package Manager].
3. Select Complete Setup or Typical Setup (you may select any of these setup
types since the components used by Weintek Built-in CODESYS exist in both
types.)
4. Click [Next] when seeing the following message.
1
cMT+CODESYS and Remote I/O Quick Start Guide
5. The installed component will be shown in the installation summary.
2
cMT+CODESYS and Remote I/O Quick Start Guide
2 Connecting cMT CODESYS
2.1 Connecting Through Network
1. Connect cMT model’s LAN 1 port with a router or PC.
2. Tap Start button to open HMI system settings window.
3. Open CODESYS page and find the IP address. By default, DHCP is used and
it will automatically obtain an IP address.
2.2 Creating CODESYS Project
1. Launch CODESYS V3.5 and click [File] » [New Project], and then select
[Standard project]. Enter the project name in Name filed, browse for the
location, and then click [OK] to leave.
3
cMT+CODESYS and Remote I/O Quick Start Guide
2. Select Weintek Built-in CODESYS. 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.
3. Double-click on Device (Weintek Built-in CODESYS) to open the settings
window.
4
cMT+CODESYS and Remote I/O Quick Start Guide
4. 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].
5. The project will connect the selected device.
5
cMT+CODESYS and Remote I/O Quick Start Guide
Note
IP address of the device can be entered in the field shown below.
6
cMT+CODESYS and Remote I/O Quick Start Guide
3 Creating EasyBuilder Project
*Please use EasyBuilder Pro v6.00.02 build 20180410 or later versions.
3.1 Creating Tags
1. Create several tags in PLC_PRG tab and make tag “test” accumulate
automatically.
3.2 Exporting Tag
1. Right-click on Application in Devices tree and then select [Add Object] »
[Symbol Configuration], use defaults.
2. Find PLC_PRG, select the variables to be exported, and then click [Build].
3. Select [Build] » [General code], the *.xml file can be found in the directory
of the project.
7
cMT+CODESYS and Remote I/O Quick Start Guide
3.3 Configuring EasyBuilder
1. Create a project and select Weintek Built-in CODESYS in the device list.
2. Open Tag Manager and click , and then click [Import Tag] to import
the *.xml file built in preceding steps.
3. The CODESYS tags can now be found in Tag Manager.
8
cMT+CODESYS and Remote I/O Quick Start Guide
4. Create a Numeric object and use “Application.PLC_PRG.test” for address.
After downloading the project to HMI, “test” tag data can be found.
9
cMT+CODESYS and Remote I/O Quick Start Guide
4 Connecting cMT CODESYS to iR-COP
1. Right-click on Device (Weintek Built-in CODESYS) and then select [Add
Device].
2. Select [CANbus] » [CANbus], and then select [Add Device].
3. CANbus (CANbus) can be found in Devices tree.
4. Double-click on CANbus (CANbus) with the current window opened in
Devices tree, or right-click on CANbus (CANbus) and then select [Add
Device].
5. Click [Fieldbusses] » [CANopen] » [CANopen Manager] » [CANopen
Manager], and then select [Add Device].
10
cMT+CODESYS and Remote I/O Quick Start Guide
6. Double-click on CANopen_Manager with the current window opened in
Devices tree or right-click on CANopen_Manager and then click [Add
Device].
7. Click [Fieldbusses] » [CANopen] » [Remote Device], find iR-COP and then
select [Add Device].
8. Under [iR-COP] select [Miscellaneous], add I/O module and then select
[Add Device].
9. Double click on CANbus (CANbus) in Devices tree to open the settings
window. Please select the correct baud rate for iR-COP in General tab.
11
cMT+CODESYS and Remote I/O Quick Start Guide
10. Create CANopen variables in PLC_PRG, for example:
11. Double click on iR_Cop in Devices tree to open the settings window. Select
related variables in CANopen I/O Mapping tab.
12. When finished, click [Online] » [Login] to download the project to
CODESYS.
12
cMT+CODESYS and Remote I/O Quick Start Guide
5 Connecting cMT CODESYS to iR-ETN
1. Right-click on Device (Weintek Built-in CODESYS/cMT-CTRL) and then select
[Add Device].
2. Select [Ethernet Adapter] » [Ethernet] and then click [Add Device].
3. Ethernet (Ethernet) can be found in Devices tree.
4. Double-click on Ethernet with the current window opened in Devices tree
or right-click on Ethernet and then select [Add Device].
5. Click [Fieldbusses] » [Modbus] » [Modbus TCP Master] » [Modbus TCP
Master], and then select [Add Device].
6. Double-click on Modbus TCP Master with the current window opened in
Devices tree or right-click on Modbus TCP Master and then click [Add
13
cMT+CODESYS and Remote I/O Quick Start Guide
Device].
7. Click [Fieldbusses] » [Modbus] » [Modbus TCP Slave] » [Modbus TCP Slave],
and then select [Add Device].
8. Double click on Ethernet in the Devices tree, enter CODESYS’s IP address in
General tab, and then select [Change Operating System Settings].
9. When CODESYS is already connected, go to General tab and click the […]
button near Interface field and select eth0.
10. Select Modbus_TCP_Slave in the Devices tree and then go to General tab
to set up IR-ETN’s IP address and Unit ID.
14
cMT+CODESYS and Remote I/O Quick Start Guide
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
15
cMT+CODESYS and Remote I/O Quick Start Guide
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 variable mapping.
14. When finished, click [Online] » [Login] to download the project to
CODESYS.
16
cMT+CODESYS and Remote I/O Quick Start Guide
6 Connecting cMT CODESYS to iR-ECAT
1. Right-click on Device (Weintek Built-in CODESYS/cMT-CTRL) and then select
[Add Device].
2. Select [EtherCAT] » [Master] » [EtherCAT Master] and then click [Add
Device].
3. EtherCAT_Master can be found in Devices tree.
4. Double-click on EtherCAT_Master with the current window opened or in
Devices tree right-click on EtherCAT_Master and then select [Add Device].
5. Click [Fieldbusses] » [EtherCAT] » [Slave] » [iR-ECAT], and then select [Add
Device].
17
cMT+CODESYS and Remote I/O Quick Start Guide
6. Double-click on iR-ECAT in Devices tree with the current window opened or
right-click on iR-ECAT and then click [Add Device].
7. Click [Fieldbusses] » [EtherCAT] » [Module], and then select [Add Device].
8. Double click on EtherCAT in the Devices tree, click Browse in General tab,
and then select [eth0].
9. Open PLC_PRG in Devices tree, create tag and set Bool as data type. Write
a command as shown below.
18
cMT+CODESYS and Remote I/O Quick Start Guide
10. In Devices tree open iR-ECAT » [EtherCAT I/O Mapping] and configure the
settings.
11. When finished, click [Online] » [Login] to download the project to
CODESYS.
19
cMT+CODESYS and Remote I/O Quick Start Guide
7 cMT-CTRL01 Quick Start
1. Right-click on iBus and select [Add Device].
2. Select [Miscellaneous], add the iR modules connected to cMT-CTRL01, and
click [Add Device].
3. Open PLC_PRG in Devices tree, create tag and set Bool as data type. Write
a command as shown below.
4. In Devices tree open iR module list » [Module I/O Mapping] tab and
configure the settings.
5. When finished, click [Online] » [Login] to download the project to
CODESYS.
20
cMT+CODESYS and Remote I/O Quick Start Guide
8 CODESYS Ethernet/IP Scanner Quick Start
CODESYS limitation: Currently, only the Ethernet/IP Scanner in CODESYS version
3.5.15 is supported. Using other versions may result in compilation failures.
1. Right-click on Device (Weintek Built-in CODESYS/cMT-CTRL) and then select
[Add Device].
2. Select [Ethernet Adapter] » [Ethernet] and then click [Add Device].
3. Ethernet (Ethernet) can be found in Devices tree.
4. With the current window opened, double-click on [Ethernet] in Devices
tree or right-click on [Ethernet] in Devices tree and then select [Add
Device].
5. Click [Fieldbuses] » [Ethernet/IP] » [Ethernet/IP Scanner] » [Ethernet/IP
Scanner], and then select [Add Device].
21
cMT+CODESYS and Remote I/O Quick Start Guide
6. With the current window opened, double-click on [EtherNet/IP Scanner] in
Devices tree or right-click on [EtherNet/IP Scanner] in Devices tree and
then select [Add Device].
7. Click [Fieldbuses] » [EtherNet/IP] » [EtherNet/IP Remote Adapter] »
[iR-ETN], and then select [Add Device].
For more information about how to generate and add iR-ETN.eds file,
please see chapters 1 and 2 in iR-ETN EtherNet/IP Connection Guide.
8. When CODESYS is already connected, go to General tab and click the
[Browse…] button near Interface field and select eth0.
9. Select iR-ETN in Devices tree and then go to General tab to set up IR-ETN’s
22
cMT+CODESYS and Remote I/O Quick Start Guide
IP address.
10. Open PLC_PRG in Devices tree, create tag and set Bool as data type. Write
a command as shown below.
11. In Devices tree open iR_ETN » [Ethernet/IP I/O Mapping] tab and configure
the settings.
12. When finished, click [Online] » [Login] to download the project to
CODESYS.
23
cMT+CODESYS and Remote I/O Quick Start Guide
9 Starting iR Analog Modules
9.1 Analog Module Wiring
Please see UM018013E_iR-Axxx-VI_UserManual_eng.pdf for information on wiring
when using iR-AI04-VI,iR-AM06-VI,iR-AQ04-VI modules.
Please see UM018014E_iR-Axxx-TR_UserManual_eng.pdf for information on wiring
when using iR-AI04-TR module.
9.2 Setting Analog Channels
9.2.1 Using EasyRemoteIO to Set Channels (iR-ETN)
1. Search for iR-ETN on the network.
2. Open the parameter tab of the module to be set.
3. Enter the parameters as shown below.
4. Download the project to finish setting parameters.
24
cMT+CODESYS and Remote I/O Quick Start Guide
9.2.2 Using CODESYS to Set Channels (iR-ETN)
1. Add iR-ETN in CODESYS according to the wiring diagram.
2. [Modbus_TCP_Slave] » [Modbus Slave Init] » [New]
Find iR-ETN Modbus Address Mapping table in these user manuals:
For analog modules see UM018013E_iR-Axxx-VI_UserManual_eng.pdf
For temperature module see UM018014E_iR-Axxx-TR_UserManual_eng.pdf
3. When finished, click [Online] » [Login] to download the project to
CODESYS.
25
cMT+CODESYS and Remote I/O Quick Start Guide
Exporting PLCopenXML from EasyRemoteIO:
1. Open EasyRemoteIO » [File] » [Export PLCopen XML].
2. Select Modbus_TCP_Master device, open Project tab » [Import
PLCopenXML File].
Parameter settings in EasyRemoteIO will be imported to CODESYS, and the
parameters are written to the module after login.
9.2.3 Using CODESYS to Set Channels (iR-COP)
1. Add iR-COP following the steps explained in Chapter 4 in this manual.
2. [iR_COP] » [SDOs] » [Add SDO]
26
cMT+CODESYS and Remote I/O Quick Start Guide
Find iR-COP Address Mapping table in these user manuals:
For analog modules see UM018013E_iR-Axxx-VI_UserManual_eng.pdf
For temperature modules see UM018014E_iR-Axxx-TR_UserManual_eng.pdf
3. When finished, click [Online] » [Login] to download the project to
CODESYS.
9.2.4 Using CODESYS to Set Channels (iR-ECAT)
1. Add iR-ECAT following the steps explained in Chapter 6 in this manual.
2. [iR_ECAT] » [Startup Parameters] » [Add]
27
cMT+CODESYS and Remote I/O Quick Start Guide
3. When finished, click [Online] » [Login] to download the project to
CODESYS.
9.3 Analog Channel IO Mapping
9.3.1 Reading / Writing iR-ETN Channels
1. [Modbus_TCP_Slave] » [Modbus Slave Channel] » [Add Channel]
28
cMT+CODESYS and Remote I/O Quick Start Guide
Channel Input Function Code 3 & 4, Modbus address start from 0x0000.
Channel Output Function Code 6 & 16, Modbus address start from 0x0100.
See UM018002E_iR-ETN_UserManual_eng.pdf for information on:
Analog Input Mapping to Modbus (also applicable for temperature module).
Analog Output Mapping to Modbus.
2. Open PLC_PRG in Devices tree, create tag and set INT as data type. Write a
command as shown below.
3. In Devices tree open Modbus_TCP_Slave » [ModbusTCPSlave I/O Mapping]
tab and configure the settings.
4. When finished, click [Online] » [Login] to download the project to
CODESYS.
9.3.2 Reading / Writing iR-COP Channels
1. Add Analog module.
29
cMT+CODESYS and Remote I/O Quick Start Guide
2. Open PLC_PRG in Devices tree, create tag and set INT as data type. Write a
command as shown below.
3. In Devices tree open the list of Analog Module » [CANopen-Module I/O
Mapping] tab and configure the settings.
4. When finished, click [Online] » [Login] to download the project to
CODESYS.
9.3.3 Reading / Writing iR-ECAT Channels
1. Add Analog module.
30
cMT+CODESYS and Remote I/O Quick Start Guide
2. Open PLC_PRG in Devices tree, create tag and set INT as data type. Write a
command as shown below.
3. In Devices tree open the list of iR-ECAT » [EtherCAT I/O Mapping] tab and
configure the settings.
4. When finished, click [Online] » [Login] to download the project to
CODESYS.
31
cMT+CODESYS and Remote I/O Quick Start Guide
10 Starting iR Motion Control Module
10.1 Motion Control Module Wiring
Please see UM019004E_iR-PU01-P_UserManual_eng.pdf for information on wiring
when using iR-PU01-P module.
10.2 Setting Motion Control Module Parameters
10.2.1 Writing Motion Control Parameters from iR-ETN
1. Add iR-ETN following the steps explained in Chapter 5 in this manual.
2. Go to [Library Manager] » [Add library] and add Weintek_CODESYS_Library
V1.0.0.3.
3. The Function Blocks for writing parameters to iR-PU01P are placed in the
ETN_PU folder.
4. Write iR-PU01-P parameters in the program.
5. When finished, click [Online] » [Login] and download the project to
CODESYS. Trigger Execute to write parameters into iR-PU01-P.
32
cMT+CODESYS and Remote I/O Quick Start Guide
10.2.2 Writing Motion Control Parameters from iR-COP
1. Add iR-COP following the steps explained in Chapter 4 in this manual.
2. [iR_COP] » [SDOs] » [Add SDO]
See UM019004E_iR-PU01-P_UserManual_eng.pdf for information on motion
control parameter configuration and object dictionary when using analog
modules.
3. When finished, click [Online] » [Login] and download the project to
CODESYS.
10.2.3 Writing Motion Control Parameters from iR-ECAT
1. Add iR-ECAT following the steps explained in Chapter 6 in this manual.
2. [iR_ECAT] » [Startup Parameters] » [Add]
33
cMT+CODESYS and Remote I/O Quick Start Guide
See UM019004E_iR-PU01-P_UserManual_eng.pdf for information on motion
control parameter configuration and object dictionary when using analog
modules.
3. When finished, click [Online] » [Login] and download the project to
CODESYS.
10.3 Motion Control Module I/O Mapping
10.3.1 Reading / Writing iR-ETN Channels
1. Add Weintek_CODESYS_Library and follow the steps in Chapter 5 in this
manual to add Modbus TCP device.
34
cMT+CODESYS and Remote I/O Quick Start Guide
2. Add motion control channels and NMT network management channels.
3. Open PLC_PRG in Devices tree, create tag and set AXIS_REF_Lite as data
type. Edit motion control function blocks as shown below.
4. In Devices tree open [iR-COP] » [CANopen I/O Mapping] tab to configure
the settings.
5. When finished, click [Online] » [Login] and download the project to
CODESYS. After triggering xExecute_0, iR-PU01-P enters standstill state.
10.3.2 Reading / Writing iR-COP Channels
1. Add Weintek_CODESYS_Library.
35
cMT+CODESYS and Remote I/O Quick Start Guide
2. Add motion control modules.
3. Open PLC_PRG in Devices tree, create tag and set AXIS_REF_Lite as data
type. Edit motion control function blocks as shown below.
36
cMT+CODESYS and Remote I/O Quick Start Guide
4. In Devices tree open [iR_COP] » [CANopen I/O Mapping] tab and configure
the settings.
5. When finished, click [Online] » [Login] to download the project to CODESYS.
After triggering xExecute_0, iR-PU01-P enters standstill state.
10.3.3 Reading / Writing iR-ECAT Channels
1. Add Weintek_CODESYS_Library.
37
cMT+CODESYS and Remote I/O Quick Start Guide
2. Add motion control modules.
3. Open PLC_PRG in Devices tree, create tag and set AXIS_REF_Lite as data
type. Edit motion control function blocks as shown below.
38
cMT+CODESYS and Remote I/O Quick Start Guide
4. In Devices tree open [iR_ECAT] » [EtherCAT I/O Mapping] tab and configure
the settings.
5. When finished, click [Online] » [Login] to download the project to CODESYS.
After triggering xExecute_0, iR-PU01-P enters standstill state.
39
cMT+CODESYS and Remote I/O Quick Start Guide
11 Starting Driver
11.1 CANopen Driver
1. Add Weintek_CODESYS_Library.
2. Add CANbus, CANopen_Manager, CANopen drivers.
3. CANbus -> Baudrate settings:
CODESYS baudrate must be identical to the driver’s baudrate.
4. CANopen driver settings:
(1) Node ID
40
cMT+CODESYS and Remote I/O Quick Start Guide
Node ID settings must be identical to that of the driver.
(2) PDO settings:
See Axis Variable Instance Mapping_Q to add variables for output
channels.
See Axis Variable Instance Mapping_I to add variables for input channels.
(3) SDO settings:
41
cMT+CODESYS and Remote I/O Quick Start Guide
Follow the settings in the screenshot above to set initial values for checking
motor rotation.
(4) CANopen I/O Mapping:
Mapping_I and Mapping_Q should be mapped to CANopen I/O Mapping.
5. Programming:
Function blocks MC_Power & MC_MoveRelative are needed for testing motor
rotation.
Trigger “xEnable” and then trigger “xINC_Exe” to give command to the motor to
perform positioning. When MC_Power.Status = FALSE, use MC_Reset function
42
cMT+CODESYS and Remote I/O Quick Start Guide
block to reset the motor and then trigger “xINC_Exe”.
※ Function blocks that can give command to the motor can be found in
Weintek_MC_LITE folder in Weintek Library.
For more information, please see the following user manual.
UM018017E_CODESYS_Weintek_Library_UserManual_eng
11.2 EtherCAT Driver
1. Add Weintek_CODESYS_Library.
2. Add EtherCAT_Master, EtherCAT drivers.
3. EtherCAT_Master -> Source Address(MAC):
43
cMT+CODESYS and Remote I/O Quick Start Guide
4. EtherCAT driver settings:
(1) Process Data
Select an RxPDO Mapping and a TxPDO mapping.
(2) Expert Process Data
See Axis Variable Instance Mapping_Q to add variables for output
channels.
44
cMT+CODESYS and Remote I/O Quick Start Guide
See Axis Variable Instance Mapping_I to add variables for input channels.
(3) Startup Parameters:
Follow the settings in the screenshot above to set initial values for checking
motor rotation.
(4) EtherCAT I/O Mapping:
Mapping_I and Mapping_Q should be mapped to EtherCAT I/O Mapping.
5. Programming:
45
cMT+CODESYS and Remote I/O Quick Start Guide
Function blocks MC_Power & MC_MoveRelative are needed for testing motor
rotation.
Trigger “xEnable” and then trigger “xINC_Exe” to give command to the motor to
perform positioning. When MC_Power.Status = FALSE, use MC_Reset function
block to reset the motor and then trigger “xINC_Exe”.
※ Function blocks that can give command to the motor can be found in
Weintek_MC_LITE folder in Weintek Library.
For more information, please see the following user manual.
UM018017E_CODESYS_Weintek_Library_UserManual_eng
46
cMT+CODESYS and Remote I/O Quick Start Guide
12 Removing Weintek Built-in CODESYS
1. Click [Tools] » [Packages Manager].
2. Find Weintek Built-in CODESYS and then click [Uninstall].
3. Click [Next] when seeing the window below.
4. Removing the program.
47
cMT+CODESYS and Remote I/O Quick Start Guide
5. Click [Finish].
48
cMT+CODESYS and Remote I/O Quick Start Guide
13 Frequently Asked Questions
13.1 Questions Related to IP Address
Q1. How to use static IP address for cMT CODESYS?
A: Please follow these steps.
1. Right-click on “Device (Weintek Built-in CODESYS)” and select [Add Device].
2. Select [Ethernet Adapter] » [Ethernet] and then select [Add Device].
3. In Device tree find Ethernet and double click it.
4. The following window opens, click […] button.
5. Select “eth0”. Please see “2.2 Creating CODESYS Project” to finish CODESYS
project settings before doing this step.
49
cMT+CODESYS and Remote I/O Quick Start Guide
6. Select [Change Operating System Settings].
7. Download the project to cMT CODESYS.
Q2. Why my CODESYS Gateway shows 0.0.0.0?
A: When using static IP for cMT CODESYS, its IP address will be displayed as
0.0.0.0.
Q3. Can I use the same domain for cMT HMI’s LAN 1 and LAN 2?
A: This is acceptable only when cMT HMI has CODESYS activated.
13.2 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.
1. Click the icon of “CODESYS Gateway SysTray” in system settings and then
click [Start Gateway].
2. Add new gateway and enter HMI IP.
50
cMT+CODESYS and Remote I/O Quick Start Guide
3. Re-install CODESYS Gateway.
Q2. Why a triangle icon shows near Modbus_TCP_Slave device when I log in
HMI in CODESYS software?
A: This means that HMI cannot connect Modbus TCP/IP device via CODESYS.
Please check the IP settings and make sure the cable is properly connected.
13.3 Questions Related to Downloading cMT CODESYS File
Q1. How to update CODESYS firmware?
A:
There are 2 ways to update CODESYS firmware.
1. Launch Utility Manager and select cMT Series » Maintenance » CODESYS
Firmware Update. Browse for the firmware file and click [Update].
51
cMT+CODESYS and Remote I/O Quick Start Guide
2. Enter cMT HMI’s IP address in the website browser and find [CODESYS] »
[CODESYS update] tab. Select the file and click [Update].
Q2. How to download CODESYS project using website?
A:
1. In CODESYS software select [Online] » [Create boot application]. An *.app
file and a *.crc file will be generated.
52
cMT+CODESYS and Remote I/O Quick Start Guide
2. Enter cMT HMI’s IP address in the website browser and find [CODESYS] »
[Project update] tab. Select the files generated in the last step and click
[Update].
CODESYS® is a trademark of CODESYS GmbH.
Other company names, product names, or trademarks in this document are the trademarks or registered trademarks of their
respective companies.
This document is subject to change without prior notice.
Copyright© 2023 WEINTEK IIOT LTD. All rights reserved.
53