18 posts in this topic

Hallo my name is Danu, i have a CP1E wirh CP1W-CIF11 and connect to modbus RTU device, i have done with write single coil, write single register,  read single register and read multiple register. But i try to write multiple register,  the indicator of CP1W-CIF11 is off and if i check d memory its no data. I attached my cx programmer.
Can you help me create write multiple register in cx programmer? 

Thank you

AD4402-modbus edit edit edit edit edit.cxp

Share this post


Link to post
Share on other sites
39 minutes ago, riandanualdy said:

Hallo my name is Danu, i have a CP1E wirh CP1W-CIF11 and connect to modbus RTU device, i have done with write single coil, write single register,  read single register and read multiple register. But i try to write multiple register,  the indicator of CP1W-CIF11 is off and if i check d memory its no data. I attached my cx programmer.
Can you help me create write multiple register in cx programmer? 

Thank you

AD4402-modbus edit edit edit edit edit.cxp

First you should check that your slave device could receive modbus command 16(10 hex) or not. If it could you should use easy modbus to write them by set Function code to 10(hex) and set number to send byte for example please check thsi link at page 161

http://www.edata.omron.com.au/eData/PLCs/CP1/W461-E1-05.pdf

Share this post


Link to post
Share on other sites
11 minutes ago, Wasan said:

First you should check that your slave device could receive modbus command 16(10 hex) or not. If it could you should use easy modbus to write them by set Function code to 10(hex) and set number to send byte for example please check thsi link at page 161

http://www.edata.omron.com.au/eData/PLCs/CP1/W461-E1-05.pdf

How to check my slave device can receive modbus command 16(10 Hex)? i use CP1E

Share this post


Link to post
Share on other sites
5 minutes ago, riandanualdy said:

How to check my slave device can receive modbus command 16(10 Hex)? i use CP1E

I have checked AD4402 manual it have not information about modbus code but you can check it by connect USB to RS-485 on your computer and use this software to test Write multiple registers (function code 16)

http://www.baseblock.com/PRODUCTS/download/BBCOMTESTPRO.zip

Share this post


Link to post
Share on other sites
2 hours ago, Wasan said:

I have checked AD4402 manual it have not information about modbus code but you can check it by connect USB to RS-485 on your computer and use this software to test Write multiple registers (function code 16)

http://www.baseblock.com/PRODUCTS/download/BBCOMTESTPRO.zip

okay i will test it with software, i will tell you about progress later

Share this post


Link to post
Share on other sites

Dear

Can you give me the guide line for MODBUS RTU as VFD read/write with Omron CJ2M-CPU35 PLC using CP1W-CIF12 ?

Share this post


Link to post
Share on other sites
17 minutes ago, JAHIR01717 said:

Dear

Can you give me the guide line for MODBUS RTU as VFD read/write with Omron CJ2M-CPU35 PLC using CP1W-CIF12 ?

For CJ2M There are not easy Modbus as CP1E but OMRON has created function block at this link please check it

https://www.myomron.com/index.php?action=kb&article=1245

Share this post


Link to post
Share on other sites

Dear Wasan,

Can you help me about professional training on OMRON MODBUS RTU,MODBUS TCP/IP, EHTERNET FINS,DEVICE NET Protocol etc and Indusoft Web Studio.If you know please help me

and I am from Bangladesh

Share this post


Link to post
Share on other sites
4 hours ago, JAHIR01717 said:

Dear Wasan,

Can you help me about professional training on OMRON MODBUS RTU,MODBUS TCP/IP, EHTERNET FINS,DEVICE NET Protocol etc and Indusoft Web Studio.If you know please help me

and I am from Bangladesh

For Indusoft there are webinar for basic function at 

http://www.indusoft.com/training/indusoft-jumpstart-webinar

For Omron Driver

http://www.indusoft.com/Documentation/Technical-Notes?EntryId=213&Command=Core_Download

Edited by Wasan

Share this post


Link to post
Share on other sites
On 10/20/2018 at 10:01 AM, Wasan said:

I have checked AD4402 manual it have not information about modbus code but you can check it by connect USB to RS-485 on your computer and use this software to test Write multiple registers (function code 16)

http://www.baseblock.com/PRODUCTS/download/BBCOMTESTPRO.zip

I done test with modbus master, and if i use function code (0x10), i can do write and read the register at the same time.

how about the ladder diagram?

Share this post


Link to post
Share on other sites
2 hours ago, riandanualdy said:

I done test with modbus master, and if i use function code (0x10), i can do write and read the register at the same time.

how about the ladder diagram?

This is example for writing Modbus registers for 2 register at start address 40001 for more information please check link below at page 245 - 253.

https://industrial.omron.ca/en/media/CP1E_Software_UsersManual_en_201601_W480-E1-08_tcm824-108754.pdf

This is short instructions

1. Initial data when power on.

CP1E_Modbus_01.thumb.jpg.c768c75f7b52dc0

2. Config Modbus parameter.

D1300 -> Slave Address
D1301 -> Function Code
D1302 -> Communication Data Bytes
D1303 -> Start Address
D1304 -> Number of registers written
D1305 -> Number of Bytes to send data

CP1E_Modbus_02.thumb.jpg.fd7c34e8c11afcc

3. Config data to written on Modbus register use MOVD because data is in lower byte of D1305 and upper byte in D1306 and other too.

CP1E_Modbus_03.thumb.jpg.ec968151dae469a

4. Modbus communication trigger.

CP1E_Modbus_04.thumb.jpg.3bb867e7186ef34

CP1E_Easy_Modbus.cxp

Edited by Wasan

Share this post


Link to post
Share on other sites
12 minutes ago, Wasan said:

This is example for writing Modbus registers for 2 register at start address 40001 for more information please check link below at page 245 - 253.

https://industrial.omron.ca/en/media/CP1E_Software_UsersManual_en_201601_W480-E1-08_tcm824-108754.pdf

This is short instructions

1. Initial data when power on.

CP1E_Modbus_01.thumb.jpg.c768c75f7b52dc0

2. Config Modbus parameter.

D1300 -> Slave Address
D1301 -> Function Code
D1302 -> Communication Data Bytes
D1303 -> Start Address
D1304 -> Number of registers written
D1305 -> Number of Bytes to send data

CP1E_Modbus_02.thumb.jpg.fd7c34e8c11afcc

3. Config data to written on Modbus register use MOVD because data is in lower byte of D1305 and upper byte in D1306 and other too.

CP1E_Modbus_03.thumb.jpg.ec968151dae469a

4. Modbus communication trigger.

CP1E_Modbus_04.thumb.jpg.3bb867e7186ef34

CP1E_Easy_Modbus.cxp

Finally i can create write multiple register, i just follow the pdf you give me.

I want ask, how to read data (read input register and read holding register) real time or in data memory always display the real time data? 

Share this post


Link to post
Share on other sites
3 minutes ago, riandanualdy said:

Finally i can create write multiple register, i just follow the pdf you give me.

I want ask, how to read data (read input register and read holding register) real time or in data memory always display the real time data? 

You should change function code to 03 to read data register

D1300 -> Slave Address (#01)
D1301 -> Function Code (#06)
D1302 -> Communication Data Bytes (#04)
D1303 -> Start Address
D1304 -> Number of registers read

Share this post


Link to post
Share on other sites
On 10/23/2018 at 11:48 AM, Wasan said:

You should change function code to 03 to read data register

D1300 -> Slave Address (#01)
D1301 -> Function Code (#06)
D1302 -> Communication Data Bytes (#04)
D1303 -> Start Address
D1304 -> Number of registers read

Dear Wasan,

I want to write multiple register by use Omron  CP1L EM, I already set up the data by follow manual book, but I found some error.

I arrange the data :

Slave ID - Function code - total bit data - address - no of register write

I use 10h function code, and the error is function code error (0090)

and I re-arrange the data become :

Slave ID - Function code - address - total bit data - no of register write

and the error is data length overflow (0x03)

Can you tell me what is my fault while set the configuration?

Thank you,

 

Capture.PNG

Share this post


Link to post
Share on other sites

@feminam For example I have used read register for write register you need to specify data value for each value do you have to write then count length to register wurite length.

Share this post


Link to post
Share on other sites

@Wasan For modbus RS 485, the PLC settings for CP1E we have to use modbus RTU easy master & for CP1L we have to use serial gateway. Is it right? There are different data register settings CP1E -( D1300 to 1349 so on) & CP1L (D13200 to 13299 so on). Apart from these settings for both PLC, is there any other specific setting we have to set in CP1L & CP1H PLC's for successful modbus configuration ?

Share this post


Link to post
Share on other sites

@Abdul Wajid as referrence on this manual for Modbus RTU function at page 439.

https://assets.omron.eu/downloads/manual/en/v59/w516_cp1l-el,_cp1l-em_cpu_unit_operation_manual_en.pdf

 

They use differrent DM register at 


The Modbus-RTU command is stored in the following words in the DM Area.
• EM-type CPU Units
Serial port 1: D32200 to D32249
Serial port 2: D32300 to D32349
• EL-type CPU Units
Serial port 1: D32300 to D32349
When a response is received after turning ON the Modbus-RTU Master Execution Bit, it is sotred in the following words in the DM Area.
• EM-type CPU Units
Serial port 1: D32250 to D32299
Serial port 2: D32350 to D32399
• EL-type CPU Units
Serial port 1: D32350 to D32399

 

And use Auxiliary Relay at A640 and A641 for control communication.

For other parameter I think they are same.

 

 

Share this post


Link to post
Share on other sites

Thanks Mr. Wasan for the detailed info...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now