model 72em2-m4 - M
72EM2-M4
INSTRUCTION MANUAL
ETHERNET COMMUNICATION ADAPTOR MODEL 72EM2-M4
Modbus use
Contents
1.INTRODUCTION.......................................................................................................................2
2.HARDWARE SPECIFICATIONS..............................................................................................3
2.1 GENERAL DESCRIPTIONS...................................................................................................................... 3
2.2COMMUNICATIONS.................................................................................................................................. 4
2.3INSTALLATION.......................................................................................................................................... 5
2.4 FRONT & INSIDE VIEW............................................................................................................................ 6
2.5 TERMINAL CONNECTION........................................................................................................................ 6
2.6 CONNECTION EXAMPLE: HOW TO CONNECT R3 AND R5 SERIES.................................................... 6
3. MODBUS FUNCTIONS............................................................................................................7
3.1 SUPPORTED COMMANDS...................................................................................................................... 7
3.2 CACHE FUNCTION................................................................................................................................... 8
3.3 PC CONFIGURATION............................................................................................................................... 9
3.4 MODBUS / TCP & MODBUS RTU.............................................................................................................10
4. VERSION HISTORY................................................................................................................. 11
4.1VER.1.03...................................................................................................................................................11
P. 1 EM-6731 Rev.4
72EM2-M4
1.INTRODUCTION
Thank you for choosing M-System. Before use, please check contents of the package you received as outlined
below.
If you have any problems or questions with the product, please contact M-System’s Sales Office or representatives.
This instruction manual describes necessary points of caution when you use the model 72EM2-M4 Ethernet
Communication Adaptor for PC Recorder, including installation, connection and configuration procedures.
Package includes:
Ethernet Communication Adaptor.............................................................................. (1)
P. 2 EM-6731 Rev.4
72EM2-M4
2.HARDWARE SPECIFICATIONS
2.1 GENERAL DESCRIPTIONS
The model 72EM2-M4 is a bidirectional protocol converter for Modbus / TCP (Ethernet) and Modbus RTU
(RS-485). Fast response time can be achieved thanks to the Cache functions.
Typical system configuration is shown in the figure below.
PC Recorder Software
STP Cable
Switch / Hub
STP Cable
(10BASE-T, 100BASE-TX)
Communication
Adaptor
72EM2-M4
ETHERNET
Communication
Adaptor
72EM2-M4
ETHERNET
RUN
SEND
FIELD
RS-485
RUN
SEND
FIELD
CNFG
RS-485
CNFG
R3 / R5 / R6 /
R7 Series etc.
RS-485
RS-485
Network module
R3-NM1, R5-NM1
R6-NM1, R6-NM2
Remote I/O modules (R7M etc.)
Max. 31 nodes*
* The number of nodes actually connected is limited by setting range of the module.
GENERAL SPECIFICATIONS
Construction: Plug-in
Connection
Ethernet: RJ-45 modular jack
RS-485: Euro type connector terminal
PWB connector: MSTB2.5/4-GF-5.08AU
Cable connector: MSTB2.5/4-STF-5.08AU
(Applicable wire size: 0.2 - 2.5 mm2, stripped length 7 mm)
Recommended solderless terminal
AI0.25-6BU 0.25 mm2 (Phoenix Contact)
AI0.34-6TQ 0.34 mm2 (Phoenix Contact)
AI0.5-6WH 0.5 mm2 (Phoenix Contact)
AI0.75-6GY 0.75 mm2 (Phoenix Contact)
AI1-6RD 1.0 mm2 (Phoenix Contact)
AI1,5-6BK 1.5 mm2 (Phoenix Contact)
Power input: M3.5 screw terminal
Screw terminal:
Chromated steel (standard) or stainless
P. 3 EM-6731 Rev.4
72EM2-M4
Housing material: Flame-resistant resin (black)
Isolation:
Ethernet to RS-485 to FG to power
Modbus RTU nodes: Max. 31
RUN indicator: Green LED light flashes in normal operating conditions in 1-sec. cycles; 2-sec. cycles
when configurating the unit.
SEND indicator: Green LED light turns on when sending data to Ethernet.
FIELD indicator: Green LED light turns on when sending data to RS-485.
PERFORMANCE
Insulation resistance: ≥100MΩ with 500V DC (Ethernet to RS-485 to FG to power)
Dielectric strength: 2000V AC @1 minute (Ethernet or FG to RS-485 to power)
500V AC @1 minute (Ethernet to FG)
2.2COMMUNICATIONS
ETHERNET
Standard: IEEE 802.3u
Protocol: TCP / IP (compatible to Modbus / TCP Standard by Schneider Automation)
Transmission speed: 10M or 100M bps (Auto Negotiation) selectable via PC Configurator browsed on
the Internet. Refer to 3.3.
Transmission media: 10BASE-T (STP cable; category 5)
100BASE-TX (STP cable; category 5e)
Number of connections: 8
IP address: Set via PC Configurator; factory default set to 192.168.0.1. Refer to 3.3.
Port No.: 502 (fixed)
Maximum segment length: 100 meters
RS-485
Standard: Conforms to RS-485, EIA
Protocol: Modbus RTU, Half-duplex, asynchronous, no procedure
Baud rate: 4.8k, 9.6k, 19.2k or 38.4k bps selectable via PC Configurator; factory default set
to 38.4 kbps. Refer to 3.3.
Start / Stop bit: 1 bit
Data bit: 8 bits
Parity: Odd
Response timeout: 10 – 10000 msec. (configured by PC)
Transmission distance: 500 meters max.
Transmission media: Shielded twisted-pair cable (CPEV-S 0.9 dia.)
P. 4 EM-6731 Rev.4
72EM2-M4
2.3INSTALLATION
INSTALLATION SPECIFICATIONS
Power input: Operational voltage range 85 – 264V AC, 47 – 66 Hz, approx. 10VA
Operating temperature: -5 to +55°C (23 to +131°F)
Operating humidity: 20 to 70% RH (non-condensing)
Mounting:
Surface or DIN rail
Dimensions: W72×H80×D149 mm (2.83"×3.15"×5.87")
Weight:
450 g (0.99 lbs)
MOUNTING REQUIREMENTS mm (inch)
92 (3.62)
60 ± .2
(2.36 ± .01)
2–M4 SCREW
60 ± .2
(2.36 ± .01)
EXTERNAL DIMENSIONS mm (inch)
CLAMP
(top & bottom)
20
(.79)
7.8 (.31)
ETHERNET
DIN RAIL
35mm wide
RS-485
RUN
SEND
FIELD
7 14 6
5 12 4
T1
3
T4
72 (2.83)
10(.39)
2–4.5 (.18) dia.
MTG HOLE
25 (.98) deep
14–M3.5
SCREW
109 (4.29)
139 (5.47)
80 (3.15)
T3
35.4 (1.39)
80 (3.15)
T2
CNFG
8
9 15 10
1 11 2
60 (2.36)
[3.3 (.13)]
72 (2.83)
P. 5 EM-6731 Rev.4
72EM2-M4
2.4 FRONT & INSIDE VIEW
RJ-45 Modular Jack
RS-485
Connector
ETHERNET
RS-485
RUN
SEND
FIELD
Operation Indicator LED
T1
T2
T3
T4
CNFG
Configurator Jack
DIP SW (behind the cover)
• DIP SW Setting
OFF ON
1
2
3
4
1 : IP Address
ON Setting via the configurator
OFF Reset to factory default (192.168.0.1)
2 : Not Used (Always ON)
3 : Not Used (Always ON)
4 : Maintenance (Stop Output)
ON Normal operation
OFF Stop output
(Modbus function 05, 06, 15, 16)
2.5 TERMINAL CONNECTION
Ethernet Hub / Transceiver **
10BASE-5
Cable
72EM2-M4
RJ-45 MODULAR JACK
STP Cable
RJ-45 MODULAR JACK
Term.
Resist.
T1
T2
T3
T4
+
–
Shielded Twisted-pair Cable
To Other
I/O Modules
Jumper*
7 U
14 V
8
POWER
FG ***
* When the 72EM2 unit is located at an end of transmission line via twisted-pair cable (= when there is no cross wiring),
close across the terminal 2 – 11 with the jumper attached to the product.
Remove the jumper for all other units.
** Install the 72EM2 and the Ethernet Hub/Transceiver inside the same panel.
In order to extend outside the panel, use a 10BASE-5 cable.
*** Ground inside the same panel where the 72EM2 is installed.
2.6 CONNECTION EXAMPLE: HOW TO CONNECT R3 AND R5 SERIES
R3-NM1
R5-NM1
72EM2-M4
T1
T2
T3
T4
+
–
DA
DB
DG
SLD
FG
Jumper*
FG
*Refer to * in sec.2.5
*For other models, refer to each specification sheet and manual.
P. 6 EM-6731 Rev.4
72EM2-M4
3. MODBUS FUNCTIONS
3.1 SUPPORTED COMMANDS
The following commands are supported with the 72EM2-M4.
Read Coil Status (01)
Read Input Status (02)
Read Holding Registers (03)
Read Input Registers (04)
Force Single Coil (05)
Preset Single Register (06)
Diagnostics (08)
Fetch Comm. Event Counter (11)
Fetch Comm. Event Log (12)
Force Multiple Coils (15)
Preset Multiple Registers (16)
Report Slave ID (17)
For detailed explanations on the Modbus Function Commands, refer to the Modbus Protocol Reference Guide
(EM-5650).
P. 7 EM-6731 Rev.4
72EM2-M4
3.2 CACHE FUNCTION
Fast response time can be achieved with the Cache function.
The 72EM2-M4 regularly communicates with the client (RS-485) I / O modules regardless of requests from the
host (Ethernet) and stores data at its Cache area. Whenever a query is received from the host, the 72EM2M4 sends data stored in the Cache without loss of time to scan the client every time.
For example, the response times required for a query command ‘Read Input Status’ for one contact signal
sent in 1-sec scan cycle to be responded at the host are as follows with or without the Cache: (Assume no
collision on the Ethernet.)
With Cache
Approx. 5 milliseconds
Without Cache
Approx. 50 milliseconds
The response time depends upon number of queries and scan cycle.
The following commands are supported for Cache function.
Read Coil Status (01)
Read Input Status (02)
Read Holding Registers (03)
Read Input Registers (04)
Up to 100 Cache areas (100 queries of the commands supported for Cache) are usable.
Each Cache is managed with Slave address, Function code, Begin address and Register number.
One Cache area is shared by identical queries. If one or more of the above differs, another Cache area is
assigned.
When the number of Cache areas reaches 100, following queries will be handled as normal queries without
Cache function.
If no query is sent from the host for longer than 10 seconds, the Cache is cancelled.
If data received from the client is in error for three (3) times in series, the Cache is cancelled.
P. 8 EM-6731 Rev.4
72EM2-M4
3.3 PC CONFIGURATION
The PC Configurator is used to set / change the IP Address, Subnet Mask, Default Gateway, Baud Rate, etc.
The PC must have a web browser with the TCP / IP protocol installed. Recommended browser is Microsoft
Internet Exploror 6.0 or later versions; referred to as I. E. in the following explanations.
(1) Start up the I. E. and enter the address of the 72EM2-M4.
If you have forgotten the preset address or when you are to set your own address for the first time since
the unit is commissioned, reset the IP address to the factory default (192.168.0.1) and enter these numbers.
In order to reset the IP address, access the DIP switch behind the front panel and turn the SW1 to OFF and
restart the 72EM2-M4.
(2) The 72EM2-M4 Configuration window appears on the screen.
IP Address:
0. 0. 0. 0 through 255.255.255.255, decimal
Subnet Mask:
0. 0. 0. 0 through 255.255.255.255, decimal
Default Gateway: 0. 0. 0. 0 through 255.255.255.255, decimal
RS-485:
Pull down the menu and specify a baud rate, either 38400, 19200, 9600 or 4800
bps.
Ethernet: Pull down the menu and choose either Auto Negotiation, or 10 Mbps or 100 Mbps,
and the half-duplex or the full-duplex transmission. Auto Negotiation is used to
detect Ethernet transmission speed automatically. In order to use this function,
the corresponding Ethernet switch (hub) must have the same function.
ModbusRTU Response Timeout: Specify in 10 ms. increments. If you have set, for example, to 56 ms,
50 ms is actually set.
Read Timeout: 10 through 10000 ms
Write Timeout: 10 through 10000 ms (Function code 05, 06, 15 and 16)
ModbusTCP Timeout: Specify timeout for Modbus / TCP.
Linger Timeout: Specify the time to terminate the connection when the query
doesn’t come from a host. (1 − 3600 sec.)
Password: Enter “72EM2” to enable any setting change.
P. 9 EM-6731 Rev.4
72EM2-M4
(3) Press ‘Set’ button.
When the setting is complete, a message ‘Please reset the power supply to the 72EM2.’ appears on the screen.
Turn the power supply off and on to restart the 72EM2-M4 to apply the change.
If the 72EM2-M4 is unable to set the new configuration, the following messages may appear.
Invalid value: Values set in ‘IP Address,’ ‘Subnet Mask’ and / or ‘Default Gateway’ are incorrect.
Wrong password: Wrong password has been entered.
Internal error 1: An internal error of the 72EM2-M4. Please consult M-System.
Memory error: The new configuration has not been written in the memory. Please consult
M-System.
Invalid value ‘Read Timeout’: Values set in ‘Read Timeout’ is incorrect.
Invalid value ‘Write Timeout’: Values set in ‘Write Timeout’ is incorrect.
Invalid value ‘Linger Timeout’: Value set in ‘Linger Timeout’ is incorrect.
3.4 MODBUS / TCP & MODBUS RTU
Query and Response message formats are different between Modbus / TCP (Ethernet) and Modbus RTU (RS485). For detailed explanations, please refer to Modbus Protocol Reference Guide (EM-5650).
For example, when a query is sent to read data addresses 30017 to 30018 at the slave address 1 and ‘12345678’
is stored at these addresses: (hexadecimal)
QUERY
Modbus / TCP
0 0 0 1 0 0 0 0 0 0 0 6 0 1 0 4 0 0 1 0 0 0 0 2
(1)
(2)
(3)
(4) (5)
(6)
Modbus RTU
01 04 00 10 00 02 70 0E
(4) (5)
(6)
(7)
RESPONSE
Modbus / TCP
0 0 0 1 0 0 0 0 0 0 0 7 0 1 0 4 0 4 1 2 3 4 5 6 7 8
(1)
(2)
(3)
(4) (5)
(6)
Modbus RTU
01 04 04 12 34 56 78 80 B0
(4) (5)
(6)
(7)
(1) Transaction identifier (2 bytes): The value in the query is recopied in the response.
(2) Protocol identifier (2 bytes): Fixed to zero (0).
(3) Length (2 bytes): Number of following bytes.
(4) Unit identifier (1 byte): Modbut RTU slave address.
(5) Function command (1 byte)
(6) Data fields (variable length): Related to the Function Code.
(7) CRC check
(4), (5) and (6) are common to both Modbus / TCP and Modbus RTU.
Six (6) bytes of data precedes with the Modbus / TCP while a CRC follows with the Modbus RTU.
P. 10 EM-6731 Rev.4
72EM2-M4
4. VERSION HISTORY
4.1VER.1.03
1) Baud rate 4800, 9600 bps were added for RS-485.
2) Max. nodes were expanded from 15 to 31 for RS-485.
4.2VER.1.05
‘Linger Timeout’ for Modbus / TCP is added.
P. 11 EM-6731 Rev.4
Was this manual useful for you? yes no
Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Download PDF

advertisement