You are on page 1of 22

Comunicacin CP1H & MX2

CP1H Comunicacin serial


Easy Modbus

CP1H Serial
CP1W-CIF01
Serial (RS-232C)

CP1H tiene 2 slots para


instalar mdulos de RS232C y
RS422A/485
1 Puerto RS232C

1 Puerto RS485

1 RS232C+1 RS485 2 Puertos RS232C

2 Puertos RS485

CP1W-CIF11
Serial RS-422/485)

Funcionalidad de las Comunicaciones Serie

Puerto de
Perifricos
Puerto Serie 1

Puerto Serie 2

Protocolos de Comunicaciones
Tool bus

Interfase
Tipo USB 1.1 B

Host link,
No-protocolo,
NT Link (1:N),
PLC Link Serie,
Modbus Simple - Funcin de Maestro RTU
Funcin de Gateway Serie
(CompoWay/F o Modbus-RTU Maestro)

Cada puerto puede utilizar


El mdulo RS-232C
CP1WCIF01
o
El mdulo RS-422A/485
CIF11

CP1W-

Identificando los puertos

Puerto 1

Puerto 2

CP1W-CIF11 DIP Switch Settings


Configuracin para Comunicacin
con 3G3JX:
ON

1: Termination Resistance (On / Off)

ON

2: 4 Wire (Off) / 2 Wire (ON)

ON

3: 4 Wire (Off) / 2 Wire (ON)

OFF

4: Off

OFF

5: RS Control for Receiving (On / Off)

ON

6: RS Control for Sending (On / Off)

DIP Switches

SW 4:
Off: Use Internal PLC Settings for Port 1.

SW 5:
Off: Use Internal PLC Settings for Port 2.

Configuracin puerto serial

Easy Modbus Master


This is a new function of CP1H exclusively!!!!
This function allows the user to send Modbus
commands from ladder without complex programming.
The Easy Modbus Master uses the Serial Gateway
function of the serial port.

Easy Modbus Master


The Easy Modbus master function automatically:
Calculates the Modbus CRC-16 Check Code
Performs a timeout function on communications

Parmetros en el MX2

Conexin

Conexin
Resistencis de terminacion en el MX2

OFF
MD SW1 : Resistencia
de terminacin para
RS-485.

ON

Modbus Overview

CP1H/CP1L Easy Modbus Master Step 1


1 Assemble the Modbus command in PLC memory

CP1H/CP1L Easy Modbus Master Step 2


2 Turn on Execute Bit to send the Modbus command

Note: In the preliminary manual for CP1H, the port


numbers are reversed. The above information is correct.

CP1H/CP1L Easy Modbus Master Step 3


3 Wait for the Executing bit to turn off, and then
examine the result bits.

Note: In the preliminary manual for CP1H, the port


numbers are reversed. The above information is correct.

CP1H/CP1L Easy Modbus Master Step 4


4 Examine the Modbus response

CP1E-N

CP1E-N

Filling in the Easy Modbus Registers

Convirtiendo de Estructura Modbus a Easy modbus para CP1H


Estructura Modbus
01
NODO

05
FUNCION

Modbus

Nodo
Funcin
Direccin
Direccin
Dato
Dato
CRC
CRC

01
05
00
02
FF
00
2D
FA

00
02
DIRECCION

FF

00
DATOS

Easy
Modbus
para
CP1H
Puerto 2

15 - 8

7-0

D32300
D32301
D32302
D32303
D32304

XX
XX
XX
00
FF

01
05
04
02
00

2D

FA
CRC

XX = 00 (no tiene ninguna funcin poner en ceros)


Este dato se calcula en base a los datos a enviar

El CRC se calcula automticamente

Comments/Questions?

You might also like