Sign in to follow this  
Followers 0
Johanb

Modbus Problem

14 posts in this topic

I have a OMRON PLC CJ2M and a SCU42 Modbus Card .

I am trying to communicate with a Danfoss FC051 by Modbus protcol .

But I can not find a testprog that lets me talk between the SCU & FC051 .

Is there some one that can help me with a example ( test ) prog

Share this post


Link to post
Share on other sites

Thanks Jay .

wil try if the program works .

I let you if Y encounter any problems .

 

 

Share this post


Link to post
Share on other sites

Hallo Jay .

If I tell teh program I am using a CJ2M plc it shows these warnings .

WARNING: Symbol Consecutive_Writes's data type (INT) is not compatible with the data type (UINT) for this instruction operand at rung 8 ( 6, 0 ).
[Ladder Section Name : Polling]
WARNING: Symbol Consecutive_Writes's data type (INT) is not compatible with the data type (UINT) for this instruction operand at rung 0 ( 2, 1 ).
[Ladder Section Name : Responses]
WARNING: Symbol TemporaryStartingDMErrorLocation's data type (DWORD) is not compatible with the data type (INT) for this instruction operand at rung 3 ( 6, 16 ).
WARNING: Symbol TemporaryStartingDMErrorLocation's data type (DWORD) is not compatible with the data type (UINT) for this instruction operand at rung 3 ( 1, 16 ).
WARNING: Symbol TemporaryStartingDMErrorLocation's data type (DWORD) is not compatible with the data type (DINT) for this instruction operand at rung 3 ( 6, 12 ).
[Ladder Section Name : PMCR]
[Ladder Section Name : END]

CJ1CJ2CS1ModbusSinglePort - 0 errors, 32 warnings.

What do I have to do to correct this ?

regards Johan

Share this post


Link to post
Share on other sites

Don't worry about warnings; just worry about errors.  They're just data type issues and won't affect the program.:shrug:

Share this post


Link to post
Share on other sites

Hallo Jay .

I have a erh light on .

how do I correct this ?

 

Share this post


Link to post
Share on other sites

Hallo Jay .

I am have a error on the SCU42 unit .

the error log is reponding

Error Code 0301/0103 Protocol macro operation error and I do not know how to correct this .

With rung do I need to change

I just want to read these registers .

Function code 03Hex Read Holding Registers

Fieldname

Example

Description

Slave Adress

05 Hex

Adress 5

Function

03 Hex

Read holding registers

Starting Adress Hi

0B Hex

Start adres register 2910

(2909 base 0) 

Starting Adress Lo

5D Hex

No. Of Registers Hi

00 Hex

6 registers 

No. Of Registers Lo

06 Hex

Error Check (CRC)

-

 

Share this post


Link to post
Share on other sites

Did you load the psw file using protocol macro?

Share this post


Link to post
Share on other sites

Hallo Jay .

I have loaded the psw file into the PLC , but then encounter a connection error .

I used this Ethernet (Fins/TCP)  to connect to the PLC .

Network : 1

Unit : 1

But after loading the pws file to the plc .

I could not connect the plc with the setting above , and I can only use Ethernet/IP

the alarm is gone but it looks like the program cannot  find the SCU42 unit .

If you want I can attatch the program to you so you can mark where I went wrong .

regards Johan

Share this post


Link to post
Share on other sites

What is the unit Number of the SCU42?

Share this post


Link to post
Share on other sites

The unit number is 2

try the numbers from 2 untill 15 but still no luck .

this my i/o table .

 

I-O table.JPG

Share this post


Link to post
Share on other sites

The program is setup for Unit 15. Also load the .psw file to Unit 15 with CX Protocol

Share this post


Link to post
Share on other sites

Hallo Jay .

I have loaded the psw file to unit 15 .

but could still not communicate with the SCU42 .

I have enter the port number ; coil numbers and still no communication .

Is there a way that a OMRON CJ1M cpu 31 can communicate with a Danfoss FC051 VLT ??

Thanks for all the support

Share this post


Link to post
Share on other sites
On 7-4-2016 at 3:35 AM, Johanb said:

Hallo Jay .

I have loaded the psw file to unit 15 .

but could still not communicate with the SCU42 .

I have enter the port number ; coil numbers and still no communication .

Is there a way that a OMRON CJ1M cpu 31 can communicate with a Danfoss FC051 VLT ??

I have used the EXEL program to setup the coil read request , but now I cannot find the the rungthat I have to replace .

 

Thanks for all the support

 

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
Sign in to follow this  
Followers 0