You are not registered yet. Please click here to register!


 
 
plc storereviewsdownloads
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc.
 
Try our online PLC Simulator- FREE.  Click here now to try it.

---------->>>>>Get FREE PLC Programming Tips

New Here? Please read this important info!!!


Go Back   PLCS.net - Interactive Q & A > PLCS.net - Interactive Q & A > LIVE PLC Questions And Answers

PLC training tools sale

Reply
 
Thread Tools Display Modes
Old February 20th, 2008, 09:13 AM   #1
sapoleon
Member
Argentina

sapoleon is offline
 
Join Date: Aug 2003
Location: salta, salta
Posts: 308
Cimplicity - Adam 4572

Hi all,
I'm in a project now, where I neet to read 4 Shinko ASC that are connected in modbus RTU 485, to an Adam 4572 (Modbus RTU to Modbus TCP/IP).
Up to that point there is no problem, the Adam is respondig nice, and working OK against the 4 Shinko. I tested it with modpoll with good results.

So, the problem arrives when I connect it to Cimplicity 6.1. I need to read one point form the Shinko (40129) that is the PV, and write to another one that is the SP (40002).
The thing is that cimplicity does not see the points. I configured a port for Modbus TCP (MASTER_MBTCP10), and then the devices (HEATPIPE 1 .. 4) with model STAT_PLC and the ip@ 1 ..4 for every device.
The thing is that when I insert the points, it says that they are not valid....

If someone need more details, or if someone have any idea, I'll gladly appreciate it.

Thanks
__________________
I am responsible for everything...
except my very responsibility.
J.P.Sartre
  Reply With Quote
Old February 20th, 2008, 12:36 PM   #2
zova
Member
Russian Federation

zova is offline
 
zova's Avatar
 
Join Date: Jan 2006
Location: Russia, Komi
Posts: 116
I don't know how it is with ADAM4572, but the similar device I-7188EX MTCP has, by default, only 100 registers of each type 0X, 1X, 3X, 4X (for example 40001..40100). So, address 40129 is overrange. More ouver, usually PV is 3X, SP - 4X. Check it up carefully.
  Reply With Quote
Old February 24th, 2008, 02:17 AM   #3
sapoleon
Member
Argentina

sapoleon is offline
 
Join Date: Aug 2003
Location: salta, salta
Posts: 308
zovan, thanks, but the register is OK, like I allready said, I test it in other ways and works very good.

Now, I make it work (the reading part), I erase all, the port, the devices and the points, make a Cimplicity restart, started all again, made another Cimplicity restart (the people from the plant wherent too happy), and now it's all working.

But, I still can not write to the point. It seems that the Shinko can receive read or write request for only one point at the time, and I do not find the way to force limit this to cimplicity.

Does someone have an idea?
__________________
I am responsible for everything...
except my very responsibility.
J.P.Sartre
  Reply With Quote
Old February 24th, 2008, 01:39 PM   #4
Mike Carter
Member
United States

Mike Carter is offline
 
Mike Carter's Avatar
 
Join Date: Aug 2003
Location: Nashville Tennessee, USA
Posts: 23
Make sure the Cimplicity tags for your set points are not checked "Read Only". Just a suggestion.
  Reply With Quote
Old February 25th, 2008, 12:38 AM   #5
sapoleon
Member
Argentina

sapoleon is offline
 
Join Date: Aug 2003
Location: salta, salta
Posts: 308
Thanks Mike, but they are not. Well, the read only yes, the SP no
__________________
I am responsible for everything...
except my very responsibility.
J.P.Sartre
  Reply With Quote
Old February 25th, 2008, 02:42 AM   #6
cjd1965
Member
United Kingdom

cjd1965 is offline
 
Join Date: Apr 2007
Location: UK
Posts: 1,540
Cimplicity driver setup

Hi Please read this excerpt from the cimplicity device communications manual GFK-1181J . I had to follow this to talk to an adam unit. Apologies for layout but it is a cut and paste


Entering Model Information
Each device included in the project that will be using the alternate configuration must
have a STAT_PLC model.
If the STAT_PLC model is not a selectable from the device configuration screen, it can be added to the CIMPLICITY configuration by editing the IC646TME000.MODEL configuration file located in the BSM_DATA subdirectory of the original CIMPLICITY distribution. Using a text editor, add the following line to the file:

MB_TCPIP|STAT_PLC|35


GFK-1181J Modbus TCP/IP Communications 17-19


For existing projects, these additional steps define a process for adding the model:

1. Set default directory to the master sub-directory of the project.

2.
Idtpop model

3. Using a text editor, add the following line to the file:

MB_TCPIP|STAT_PLC|35

4. Save and exit from the text editor.

5.
Scpop model

6. Update the project.

Entering Required Configuration Data

For each device port in the project, a separate alternate configuration file must be
created. The alternate configuration file must be located in the data subdirectory for
each project.

For each alternate configuration file, the file name is based on the port configuration.

For the first port, the file name is MASTER_MBTCP0.INI. This file would contain any devices configured on the first port that use the alternative configuration. The MASTER_MBTCP1.INI would contain the alternate configuration information for devices configured on the second port. The same convention is followed for devices configured for use on the other Modbus Ethernet ports.

In the alternate configuration file, for each device using this scheme, the following information is required:

1. CIMPLICITY device name

2. Number of bytes used for each of the following memory references:

 Coils (COILS)

 Discrete Inputs (DISC INPUTS)

 Input Registers (INPUT REG)

 Holding Registers (HOLDING REG)

 General Reference File 1 (GEN REF FILE1)

 General Reference File 2 (GEN REF FILE2)

 General Reference File 3 (GEN REF FILE3)

 General Reference File 4 (GEN REF FILE4)

 General Reference File 5 (GEN REF FILE5)

 General Reference File 6 (GEN REF FILE6)

 General Reference File 7 (GEN REF FILE7)

 General Reference File 8 (GEN REF FILE8)

 General Reference File 9 (GEN REF FILE9)

 General Reference File 10 (GEN REF FILE10)

 Double Precision Input Registers (DP_INPUT REG)

 Double Precision Holding Registers (DP_HOLDING REG)

17-20 CIMPLICITY HMI Device Communications Manual–July 2001 GFK-1181J

For example, if there are 16384 coils on the device, the coil byte count in the

configuration file would be 2048 (8 coils per byte). Similarly, if there are 32767

holding registers on the device, the byte count of holding registers in the

configuration file would be 65534 (2 bytes per holding register).

Sample Alternate Configuration File

The sample configuration file in this section defines the domain configuration for two

devices, DEVICE1 and DEVICE2. Note that each Device ID appears as a section

heading inside square brackets.

Also notice the
UseTheseDomainSizes variable is set to 1. This variable must

appear in each device section. If this variable is set to 0, or if there is no section

heading for a device on this port, or if this
.ini file does not exist, the Modbus

TCP/IP devcom will auto-size the domains as it always has.

There are 16 domains in a Modbus TCP/IP device. In the example below, you will see each domain's name followed by the default size of that domain. If a domain name is not provided within a device section, the default size is assigned.

The format of the alternate configuration file is shown below:

[DEVICE1]

UseTheseDomainSizes=1

COILS=65535

DISC INPUTS=65535

INPUT REG.=65535

HOLDING REG.=65535

GEN REF FILE1=0

GEN REF FILE2=0

GEN REF FILE3=0

GEN REF FILE4=0

GEN REF FILE5=0

GEN REF FILE6=0

GEN REF FILE7=0

GEN REF FILE8=0

GEN REF FILE9=0

GEN REF FILE10=0

DP_INPUT REG.=0

DP_HOLDING REG.=0

[DEVICE2]

UseTheseDomainSizes=1

COILS=65535

DISC INPUTS=65535

INPUT REG.=65535

HOLDING REG.=65535

GEN REF FILE1=0

GEN REF FILE2=0

GEN REF FILE3=0

GEN REF FILE4=0

GEN REF FILE5=0

GEN REF FILE6=0

GEN REF FILE7=0

GEN REF FILE8=0

GEN REF FILE9=0

GEN REF FILE10=0

DP_INPUT REG.=0

DP_HOLDING REG.=0

  Reply With Quote
Old February 26th, 2008, 06:24 AM   #7
sapoleon
Member
Argentina

sapoleon is offline
 
Join Date: Aug 2003
Location: salta, salta
Posts: 308
thanks cjd, I had already created a STAT_PLC, and using it. It seems that the client won't use the write SP option, so I don't think I'll continue to the end of the mater...

Anyway, like I said, the reading is already OK.
__________________
I am responsible for everything...
except my very responsibility.
J.P.Sartre
  Reply With Quote
Old March 3rd, 2008, 02:14 AM   #8
sapoleon
Member
Argentina

sapoleon is offline
 
Join Date: Aug 2003
Location: salta, salta
Posts: 308
Solved! Cimplicity's funtionality whas the cause!

Ok, after my last report that everythig was fine, I was happy.
Nontheless, one week later, I was again to finish this small project, and after making a restart to cimplicity, NO MORE READINGS.

Ok here's the thing, and it was not with the Adam module. The conversion from Modbus RTU to IP was fine. The shinko modules, (ACS 33 PID controllers) can commuincate Modbus but only one register at the time. They don't support multiple registers readings.

But it worked! why it stops when I restarted Cimplicity? Because Cimplicity, when making the points in dinamic mode (like I was because it's a BIG project running) tryies the communication to every point individually, but, when making a restart, It takes a device configuration that by default for Modbus tryies to read 512 registers, and because I was reading register 2 and 129 from the Shinko, Cimplicity wanted to read both in one read.

So how to make it read only 1 Integer at the time (2 registers)? Well, you will need another Cimplicity restart, and do the follow:

1. Open the tools, command prompt.
2. go to the master subdirectory of the running proyect.
3. Idtpop devcom_proc
4. notepad devcom_proc.idt
5. You will see the drivers list that you use, have a list of what is every parameter, in this case, it's easy to see because you have 3 parameters in the middle that writes 512. I had to change them from 512 to 2.
6. save the file
7. scpop devcom_proc
8. restart cimplicity!

And everything was ok from there on. Still, didn't check how to write to the device.
__________________
I am responsible for everything...
except my very responsibility.
J.P.Sartre
  Reply With Quote
Reply
Jump to Live PLC Question and Answer Forum

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Topics
Thread Thread Starter Forum Replies Last Post
Cimplicity 6.1 manasi LIVE PLC Questions And Answers 8 September 8th, 2011 04:39 AM
Which (PC) PLC Simulator works with Cimplicity Private Citizen LIVE PLC Questions And Answers 3 November 16th, 2006 08:47 AM
Vijeo and Cimplicity Hakutsuru LIVE PLC Questions And Answers 15 October 2nd, 2006 03:54 PM
OPC Servers, Cimplicity problem pavel47 LIVE PLC Questions And Answers 3 July 27th, 2005 06:18 AM
Cimplicity OPC and Control Logix brianafischer LIVE PLC Questions And Answers 7 February 10th, 2004 07:12 PM


All times are GMT -5. The time now is 08:37 AM.


.