OneFex CE-IO Series User manual

1
/ 13
CE-IO0222 User Manual
CE-IO0222
Ethernet I/O Module
Manual

2
/ 13
CE-IO0222 User Manual
1PRODUCT INTRODUCTION............................................................................................... 5
1.1 Features ...........................................................................................................................................5
1.2 Parameter.........................................................................................................................................5
1.3 Item Selection .................................................................................................................................6
1.4 Dimension........................................................................................................................................6
2WIRING INSTRUCTIONS..................................................................................................... 6
2.1 Terminal Definition.........................................................................................................................6
2.2 Reset button....................................................................................................................................7
2.3 Communication Wiring..................................................................................................................7
2.3.1 RS485 Wiring.....................................................................................................................................7
2.3.2 RS232 Wiring.....................................................................................................................................7
2.4 Input&Output Wiring......................................................................................................................8
2.4.1 DI Wiring ............................................................................................................................................. 8
2.4.2 DO Wiring ........................................................................................................................................... 8
2.4.3 Analog Wiring..................................................................................................................................... 8
3DEVICE PARAMETERS CONFIGURATION................................................................. 9
3.1 Download Link ................................................................................................................................9
3.2 Software Interface ..........................................................................................................................9
3.3 Communication Test....................................................................................................................10
3.4 Analog data input expaination...................................................................................................11
4ETHERNET PARAMETER CONFIG...............................................................................11
4.1 Direct mode ...................................................................................................................................11
4.2 Networking mode .........................................................................................................................14
4.3 TCP/UDP Configuration...............................................................................................................18
4.3.1 TCP Server..........................................................................................................................................18
4.3.2 TCP Client............................................................................................................................................19
4.3.3 UDP Server..........................................................................................................................................21
4.3.4 UDP Client...........................................................................................................................................21
5COMMUNICATION TEST...................................................................................................22
5.1 Test Software ................................................................................................................................22

3
/ 13
CE-IO0222 User Manual
5.2 TCP Server Mode..........................................................................................................................22
5.3 TCP Client Mode...........................................................................................................................24
5.4 UDP Server Mode .........................................................................................................................25
5.5 UDP Client Mode...........................................................................................................................27
5.6 Modbus TCP Testing ...................................................................................................................29
5.6.1 Software Download......................................................................................................................... 29
5.6.2 Test Instruction................................................................................................................................. 29
5.6.3 Communication OK......................................................................................................................... 31
6PLC COMMUNICATION.....................................................................................................33
7DEVELOPMENT DATA INSTRUCTION........................................................................33
7.1 Flash On Flash Off Mode ............................................................................................................33
7.2 Modbus Register Instruction......................................................................................................33
7.3 Command List...............................................................................................................................35
7.4 Command Details.........................................................................................................................35
7.4.1 Control DO........................................................................................................................................ 35
7.4.2 Query DO Status .............................................................................................................................36
7.4.3 Query DI............................................................................................................................................36
7.4.4 Query AI............................................................................................................................................ 37
7.4.5 Flash ON Flash OFF Command.................................................................................................... 37
7.4.6 All ON and All OFF Command.......................................................................................................38
8PRODUCT MAINTENANCE..............................................................................................39
8.1 Device Usage Environment ........................................................................................................39
9AFTER-SALE SERVICE.....................................................................................................39
9.1 Commitment..................................................................................................................................39
9.2 Disclaimer......................................................................................................................................39
10 UPDATE HISTORY...........................................................................................................39

4
/ 13
CE-IO0222 User Manual
Notice
❖Please read this manual carefully before use and save it for reference.
❖Please follow to the operating procedures and precautions in this manual.
❖Please open the package carefully and check whether the device and accessories have been
damaged due to transportation when you receive the device.
Please contact us for return processing once damage occurs.
❖Please do not repair it yourself, and contact our technical support department directly if the
device fails.
❖Manual and Config Tool download link:
https://onefexindustrial.com/ethernet-io-module

5
/ 13
CE-IO0222 User Manual
1 Product Introduction
CE-IO series products are Ethernet I/O module using standard Modbus RTU/TCP protocol,
integrates DO (digital output), DI (digital input), AI (analog input).
The communication method supports Ethernet networking, wide voltage power supply, and
supports functions such as logic control between analog acquisition and relay output.
Widely used in farms, agricultural greenhouses, IoT terminals, water conservancy,
electricity, gas collection and control and other application scenarios, its unique logic control
function can easily realize automatic water supply, fertilization, start and stop valves It is an ideal
device for small automatic control scenes.
1.1 Features
◆DC 5V/7-20V/24V power supply, support anti-reverse connection;
◆2*optocoupler inputs (5-24V);
◆2*DO contact isolation, normally ON and normally OFF, 10A 250VAC / 10A 30VDC;
◆2 *analog voltage inputs with 12-bit resolution;
◆LED indication for power and working status; 2 leds for DO status;
◆SupportsRS485/RS232+ EthernetCommunicationinterface,powerisolationplussignalisolation,
reliablecommunication;
◆Communication baud rate: 300bps~38400bps (It is 9600 by default and can be
modified by software);
◆SupportstandardModbus RTU/TCP/UDPprotocol,readand writebyregisteraddress;
◆Support input and output linkage, such as local linkage or dual-computer linkage, which is
convenient for multi-terminal control;
◆Support flash ON flash OFF;
◆Supporting setting software for setting parameters and IO control;
◆Support software and hardware customization.
1.2 Parameter
Paremater
Contact capacity
10A/30VDC 10A/250VAC
Durability
100,000 times (Electrical)
10,000,000 times (Mechanical)
Data interface
RS485/RS232+Ethernet
Default IP
192.168.16.254
Working Voltage
DC5V/7-20V/ 24V options
Power / work indication
1 red LED
(power, always on; working, flashing)
Output indication
2red LEDs (relay on and off)
Working temperature
-40℃~85℃, Industrial Grade
Size
88*72*59mm
Weight
330g
Default communication format
9600,n,8,1
Baud rate
300~38400bps
Software support
Setting and control software;
Support various configuration software;
support Labviewd, etc.

6
/ 13
CE-IO0222 User Manual
Installation
35mm Din Rail Mounting / Screw Holes
1.3 Item Selection
CE-IO0222
2*DI&2*DO&2*AI, RS485+Ethernet, Modbus RTU/ TCP/UDP
CE-IO0222S
2*DI&2*DO&2*AI, RS485+Ethernet, Modbus RTU/ TCP/UDP,
Smart Intelligent Control Version
CE-IO4444
4DO+4DI+4AI+4AO,RS232+Ethernet,Modbus RTU/ TCP/UDP
CE-IO1600
16DO,RS485+Ethernet,Modbus RTU/ TCP/UDP
CE-IO12884
12DO+8DI+8AI+4AO,RS232+RS485+Ethernet,Modbus RTU/ TCP/UDP
1.4 Dimension
88*72*59mm
2 Wiring Instructions
2.1 Terminal Definition

7
/ 13
CE-IO0222 User Manual
2.2 Reset button
Press and hold the button for 6 seconds
release the button,enter the default DHCP mode.
Press and hold the button for 12
seconds
release the button, enter the default static IP mode.
2.3 Communication Wiring
By default, its address is 1, The host computer software can use the default address
1 to communicate with the device (or broadcast address 254, which is only applicable
when one device is mounted on the network).
2.3.1 RS485 Wiring
2.3.2 RS232 Wiring

8
/ 13
CE-IO0222 User Manual
2.4 Input&Output Wiring
2.4.1 DI Wiring
Passive switch Wiring
2.4.2 DO Wiring
The relay output contact capacity is up to AC250V 10A, single pole double throw.
2.4.3 Analog Wiring

9
/ 13
CE-IO0222 User Manual
3 Device Parameters Configuration
3.1 Download Link
JYDAMEn
https://onefexindustrial.com/ethernet-io-module
3.2 Software Interface
Toolbar
Explaination
Communication
settings
Serial port/network communication mode selection;
Port number/TCP address selection;
Set AI/DI/DO read refresh time
DO control
Operate the DO channel;
Select DO mode;
Set the action time
DI input
View DI input status;
Read DI status to generate query command;
Set DI/DO channel name

10
/ 13
CE-IO0222 User Manual
Analog Input
Display 4-20ma/0-10v/0-5v real-time data/curve;
Display PT100/K type thermocouple/DS18B20 temperature data/curve;
Display real-time acquisition time;
Set the AI/temperature channel name;
Set the AI channel range conversion and display unit;
Manually export excel table data;
Manually save the data curve.
Analog Output
Set AO output;
Generate AO multi-channel output command.
Parameter Setting
Display the current device AI/DI/DO channel number information;
Set the baud rate;
Set the offset address;
Set the working mode;
Set AI/DI/DO automatic return;
Set DO power-down memory
Command area
Generate commands such as AI/DI/DO/AO/parameter setting.
Debugging area
User-defined sending command test
3.3 Communication Test
1 Select the current serial port number of the device (fill in IP for the IP address);
2 Select the default baud rate of 9600;
3 Open the port:
4 There is a receiving command on the right side, and the relay can be controlled, that is, the
communication is successful.

11
/ 13
CE-IO0222 User Manual
3.4 Analog data input expaination
1 Select analog input;
2 The data size and real-time curve can be directly viewed below.
4 Ethernet Parameter Config
Ethernet
IP Address
Network
Mode
Port#
Device
Address
192.168.1.232
TCP
Server
10000
1
There are 2 modes for ethernet parameter configuration
Hardware
Connection
Instuctions
Direct mode
The io is directly connected to computer
through a network cable
Networking mode
The io is connected to the router/switch via a
network cable
4.1 Direct mode
Open [Network and Sharing Center]---->[Change Adapter Settings]---->[Local Area Connection]--
-->[Properties]---->[IPV4], modify the computer IP to static IP: 192.168.1.10;

12
/ 13
CE-IO0222 User Manual
(Because the default IP of io is 192.168.1.232, when modifying its parameters, the io IP must be
in the same network segment as the computer IP.
➢Open JYNetConfigEn, it shows as below:
➢Chosse Local connection:

13
/ 13
CE-IO0222 User Manual
➢Searching:
Revise parameter

14
/ 13
CE-IO0222 User Manual
➢researching
4.2 Networking mode
Check to make sure that the computer network and the router/switch connected to io are in
the same network.
Note: generally, there are multi-level networks in the enterprise. When the computer is
connected to the wireless network and the io is connected to the router through a network
cable, it must be confirmed that the router connected to the io is the same as the wireless
WIFI router.

15
/ 13
CE-IO0222 User Manual
➢searching;
➢View current network information
Open [Network and Sharing Center]---->[Active Network]---->[Local Area Connection/Wireless
Network Connection]---->[Details], as shown in the following figure:

16
/ 13
CE-IO0222 User Manual
➢Check whether the IP to be modified by the device is occupied

17
/ 13
CE-IO0222 User Manual
➢Revise IP
➢Researching

18
/ 13
CE-IO0222 User Manual
4.3 TCP/UDP Configuration
Mode
Instruction
TCP Server
①The device is used as the server side;
②Support two Clients to use different port numbers to communicate
with the device.
TCP CLient
①The device is used as the Client;
②It can be set to communicate with two different server addresses;
③Support setting handshake packets and heartbeat packets
UDP Server
①The device is used as the server side;
②Support setting two clients to use different port numbers to
communicate with the device
UDP Client
①The device is used as the Client;
②It can be set to communicate with two different server
addresses;
4.3.1 TCP Server

19
/ 13
CE-IO0222 User Manual
4.3.2 TCP Client
➢Mode revisement
➢Login information packet (handshake packet)
When using the TCP Client mode, the device will send a handshake message when connecting
to the server for the first time as a client, which can be customized and modified.

20
/ 13
CE-IO0222 User Manual
➢Heartbeat packet
This manual suits for next models
5
Table of contents
Other OneFex I/O System manuals
Popular I/O System manuals by other brands

NI
NI FD-11605 CALIBRATION PROCEDURE

National Instruments
National Instruments 9361 Getting started guide

iSystem
iSystem IOM6 ADIO user manual

Allen-Bradley
Allen-Bradley SLC 500 Installation instructions manual

ICOP Technology
ICOP Technology QEC-R D Series user manual

Thinget
Thinget XC-E8AD Operator's manual

Siemens
Siemens SIMATIC ET 200iSP operating instructions

Avaya
Avaya M4648ML-T installation guide

NorthStar
NorthStar HSIO-4 User's & technical manual

M-system
M-system R3-AS8 instruction manual

Johnson Controls
Johnson Controls IOM4711 installation instructions

M-system
M-system R7I4DML3-DC32A instruction manual