Technical Forum

Low-Voltage Power Distribution and Installation Technology

Sentron Pac 3200 Modbus TCP/IP

Thread Starter: stefy's   Started: 2/14/2012 1:13 PM   Replies: 10

« Previous thread Next thread »
12» Page 1 of 2 (11 items)
  2/14/2012, 1:13 PM
Joined 6/22/2009
Last visit: 11/1/2012
Posts: 30
Rating:
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hello friends,
      Can it the Sentron 3200, code: 7KM2112-0BA00-3AA0 interfaced via Modbus TCP/IP with others PLC, such as IC695CPU315 made by General Electric?Rnf:lblSmileyTooltip_  think

     thank you!
Top
  2/15/2012, 8:18 AM
Joined 10/3/2008
Last visit: 6/12/2014
Posts: 592
Rating:
Rated: Outstanding [3.51 out of 5 / rated 55 time(s)]. (55) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hi,
I don't know exactly, but I think it's possible. If the part of General Electric works with the modbusTCP standard, then it should be possible to read the values from the PAC.

Wüstenräuber
Top
  2/15/2012, 8:26 AM
Joined 6/22/2009
Last visit: 11/1/2012
Posts: 30
Rating:
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hi,

    All, I want to do is to read some measured variables from SENTRON PAC 3200 with a plc GE Fanuc IC695CPU315 via Modbus TCP/IP. 
    I know that is necessary to do a ladder program to Open the Modbus TCP/IP (done) and to Read Data from Modbus (partial done). 
    
    In the Sentron Pac 3200 pdf. there are measured variables with offset from 1 to 519 with 2 register (4 bytes) and from 521 to 837 with 4 register (8 bytes), I hope that is correct. These measured variables can be available via Modbus with function code 0x03 and 0x04.
    For example I wanted to read from Sentron the variable with offset 3 thatt is VoltageVb_n.
    In the Proficy machine edition software ask me to introduce some Modbus requirements such as:
- Read from a Modbus/TCP device ; I put code 3003 (this is from the GE side)
-
Modbus Function code ; ?? I put code 4 (read input register).
I equate these measured variale beeing input register.
- Adress in the Modbus TCP device ; ?? I put address 3 (VoltageVb_n).
- Number of the Register in the Modbus device ; ?? I put 2. 
and doesn't work.

     In the last three requirements I made a mistake and I need help.
     In the GE pdf. (see attach) the Proficy Machine edition software make an address mapping to use Modbus -to - PLC.
     
  With what could I indentify the Sentron Modbus measured variable from 1 to 837 ?
  Which are the corelation (regarding the last three requirments) of SENTRON Modbus function cod 0X03, 0X04 and the offset to the PLC GE Fanuc?

Any information for me is useful.

Thanks!

  

   
 
   
  
     
    

Attachment: GE _Modbus TCP Server.pdf  (70 Downloads)

Top
  2/15/2012, 10:17 AM
Joined 10/3/2008
Last visit: 6/12/2014
Posts: 592
Rating:
Rated: Outstanding [3.51 out of 5 / rated 55 time(s)]. (55) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hi,
what is "3003"?
Function code 4 is okay, the address 3 and length 2 is also okay.

Is the connection establishment okay? Can you write a telegram traffic with wireshark or so?

Wüstenräuber
Top
  2/15/2012, 11:07 AM
Joined 6/22/2009
Last visit: 11/1/2012
Posts: 30
Rating:
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hi,
The code 3003 is the Read command see word 7. If I put all good why doesn't work? yes the communication is O.K.
At my example I put the following date:
word 9 : 0004
word 12 : 0003
word 13: 0002 

Read Data from a Modbus/TCP Device (3003)

The Read Data from a Modbus/TCP Device COMMREQ requests a data transfer from a Modbus/TCP device to the PLC. The Read Data COMMREQ must reference an active Modbus/TCP channel previously established with the Open Modbus/TCP Client Connection COMMREQ.

Command 3003 Example 1

Read four Input Registers from Input Registers in the remote Modbus/TCP device. Store the registers at location %R20. Return the COMMREQ Status word to %R10.

Dec (Hex)

Word 1 00008 (0008) Length of Channel command Data Block

Word 2 00000 (0000) Always 0 (no-wait mode request)

Word 3 00008 (0008) Memory type of CRS word (%R)

Word 4 00009 (0009) CRS word address minus 1 (%R10) *

Word 5 00000 (0000) Reserved

Word 6 00000 (0000) Reserved

Word 7 03003 (0BBB) Read from a Modbus/TCP Device

Word 8 00006 (0006) Channel number (6)

Word 9 00004 (0004) Modbus Function Code (Read Input Registers)

Word 10 00008 (0008) Local PLC Memory Type

Word 11 00020 (0014) Local PLC Starting Address

Word 12 00200 (00C8) Address in the Remote Server

Word 13 00004 (0004) Number of Registers in the Remote Device

Word 14 00001 (0001) Unit Identifie




=== Edited by stefy''s @ 2/15/2012 11:16 AM [GMT ] ===


=== Edited by stefy''''s @ 2/15/2012 11:15 AM [GMT ] ===


=== Edited by stefy''''''''s @ 2/15/2012 11:11 AM [GMT ] ===


=== Edited by stefy''''''''''''''''s @ 2/15/2012 11:10 AM [GMT ] ===


Top
  2/15/2012, 11:41 AM
Joined 10/3/2008
Last visit: 6/12/2014
Posts: 592
Rating:
Rated: Outstanding [3.51 out of 5 / rated 55 time(s)]. (55) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hi,
I'm sorry, I don't know the General Eletric part.

Wüstenräuber
Top
  2/15/2012, 11:51 AM
Joined 6/22/2009
Last visit: 11/1/2012
Posts: 30
Rating:
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hi,

The adress of the variable is 3 or it is need it to incleude into 0x03?

thanks!
Top
  2/15/2012, 12:54 PM
Joined 10/3/2008
Last visit: 6/12/2014
Posts: 592
Rating:
Rated: Outstanding [3.51 out of 5 / rated 55 time(s)]. (55) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
??? 3 decimal is the same like 3 hexadecimal... Rnf:lblSmileyTooltip_  think
Top
  2/16/2012, 7:25 AM
Joined 6/22/2009
Last visit: 11/1/2012
Posts: 30
Rating:
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 

Hi,

Modbus has 4 separate data types. Each data type is accessed via fixed address ranges. These address ranges were actual memory addresses in the original Modicon. Data types can hold digital (Boolean) or analogue (16-bit registers) and can allow read/write or read only access.

Data type Address Range Address Mapping Access

Coils 00001 to 09998 One address per bit Read / Write

Discrete Inputs 10001 to 10998 One address per bit Read only

Input Registers 30001 to 39998 One address per register Read only

Holding Registers 40001 to 49998 One address per register Read / Write

Extended Holding Registers 40001 to 105536 One address per register Read / Write

Question?
In the Sentron 3200 the MEASURED VARIABLES with OFFSET from 1 to 837, and equate the Measured Variables with Input Registers, then the address from my example: Voltage Vb_n with offset 3 will have the address 30001 + 3 =30004?

These rules described above into Data type Address Range Address Mapping Access it will be applied in my example?   Rnf:lblSmileyTooltip_  think

The MEASURED VARIABLES should be equate with one of the data type (in my example Input Register)? Rnf:lblSmileyTooltip_  think

Could you please be more specified at my questions. 

Thanks!




=== Edited by stefy''s @ 2/16/2012 7:50 AM [GMT ] ===


=== Edited by stefy''''s @ 2/16/2012 7:29 AM [GMT ] ===


=== Edited by stefy''''''''s @ 2/16/2012 7:26 AM [GMT ] ===


=== Edited by stefy''''''''''''''''s @ 2/16/2012 7:26 AM [GMT ] ===


=== Edited by stefy''''''''''''''''''''''''''''''''s @ 2/16/2012 7:25 AM [GMT ] ===


Top
  2/23/2012, 9:32 AM
Joined 6/22/2009
Last visit: 11/1/2012
Posts: 30
Rating:
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hi Wuestenraeuber,
I have a question regarding the Sentron PAC 3200 documentation (page 40).

For example:
The measured variable with ofsset 1:  Voltage Va-n:
number of registers = 2 (this means 2*16=32 bites)?
format = float (this means that is a REAL, DWord or DINT data type)?


When I read this measured variable I used as a INT data type. If so, all the logic that I did is wrong.

I need to know if I'm right. Rnf:lblSmileyTooltip_  think

Thanks!

Top
12» Page 1 of 2 (11 items)
Actions