User Manual for DAUDIN models including: GFGW-RM01N Remote I O Module System, GFGW-RM01N Remote I O Module System, I O Module System, Module System, GFMS-RM01S, GFDI-RM01N, GFDO-RM01N, GFPS-0202, GFPS-0303
1 mag 2023 — III. The power module is standard for remote I/Os and users can choose the model or brand of power module they prefer.20 pagine
File Info : application/pdf, 20 Pages, 2.09MB
DocumentDocument2310EN V2.0.0 and SIEMENS PLC Modbus TCP Connection Operating Manual Table of Contents 1. Remote I/O Module System Configuration List ........................................................................3 1.1 Product Description ................................................................................................. 3 2. Gateway Parameter Settings .........................................................................................................4 2.1 i-Designer Program Setup......................................................................................... 4 3. Siemens S7-1500 Connection Setup ......................................................................................9 3.1 Siemens S7-1500 hardware connection ...................................................................... 9 3.2 Siemens S7-1500 IP Address and Connection Setup.................................................. 10 3.3 CONNECT Setup for MB_CLIENT V4.1 or Above.................................................. 13 4. Siemens S7-1500 Simple Programming Example.................................................................. 18 2 1. Remote I/O Module System Configuration List Part No. Specification Description GFGW-RM01N Modbus TCP-to-Modbus RTU/ASCII, 4 Ports Gateway GFMS-RM01S Master Modbus RTU, 1 Port Main Controller GFDI-RM01N Digital Input 16 Channel Digital Input GFDO-RM01N Digital Output 16 Channel / 0.5A Digital Output GFPS-0202 Power 24V / 48W Power Supply GFPS-0303 Power 5V / 20W Power Supply 1.1 Product Description I. The gateway is used externally to connect with Siemens S7-1500's communication port (Modbus TCP). II. The main controller is in charge of the management and dynamic configuration of I/O parameters and so on. III. The power module is standard for remote I/Os and users can choose the model or brand of power module they prefer. 3 2. Gateway Parameter Settings This section details how to connect a gateway to Siemens S7-1500. For detailed information regarding , please refer to the -Series Product Manual 2.1 i-Designer Program Setup I. Make sure that the module is powered and connected to the gateway module using an Ethernet cable II. Click to launch the software 4 III. Select "M Series Module Configuration" IV. Click on the "Setting Module" icon 5 V. Enter the "Setting Module" page for M-series VI. Select the mode type based on the connected module 6 VII. Click on "Connect" VIII. Gateway Module IP Settings Note: The IP address must be in the same domain as the controller equipment 7 IX. Gateway Module Operational Modes Note: Set Group 1 as Slave and set the gateway to use the first set of RS485 port to connect to the main controller (GFMS-RM01N) 8 3. Siemens S7-1500 Connection Setup This chapter explains how to use the TIA Portal program to connect S7-1500 to a gateway and add a remote I/O module. For detailed information, please refer to "SIMATIC S7-1500" 3.1 Siemens S7-1500 hardware connection I. The Ethernet port is at the bottom center of machine. Match this port to the gateway's Ethernet port. 9 3.2 Siemens S7-1500 IP Address and Connection Setup I. Launch the TIA Portal, click on "Device Configuration" and then the "PROFINET Port" on the left side of the program II. Click on "Ethernet Address" and type in the IP address as the same as the gateway at 192.168.1.XXX 10 III. On the right side of the MAIN program, select "Commands" A. Click on the "Communication" menu B. Click on the "Others" menu C. Click on the "Modbus TCP" menu D. Click to add a new "MB_CLIENT" IV. Reading of the communication register Triggers "REQ" with rising edge DISCONNECT: Set to "false" MB_MODE set to "0" MB_DATA_ADDR set to "44097" DATA_LEN set to "Data Length" DATA_PTR set to CPU's register address CONNECT setup will be explained below 11 V. Writing of the communication register Triggers "REQ" with rising edge DISCONNECT: Set to "false" MB_MODE set to "1" MB_DATA_ADDR set to "48193" DATA_LEN set to "Data Length" DATA_PTR set to CPU's register address CONNECT setup will be explained below Notes: 's first GFDI-RM01N has the register address at 1000(HEX) converted to 4096(DEC)+1 and the starting address at 44097 's first GFDO-RM01N has the register address at 2000(HEX) converted to 8192(DEC)+1 and the starting address at 48193 For MODE settings, please refer to Siemens MB_MODE, MB_DATA_ADDR and DATA_LEN Parameters 12 3.3 CONNECT Setup for MB_CLIENT V4.1 or Above The PLC on the client uses the "MB_CLIENT" command. The biggest difference from the old version of the command is that now DB needs to be created manually for CONNECT. The section below shows how to add and setup a DB I. Under the "Program Block" in the "Project" column on the left, click on "Add a new block" and then select "DB (Data block)" II. From the generated DB list, add a new data type and type in "TCON_IP_V4" to generate a configuration list 13 III. With the list generated, we can proceed to set up the connection Interfaceld: Hardware ID - the value is as illustrated below ID: Station number ConnectionType: For Modbus TCP, please use 11 or "16#0B' ActiveEstablished: RemoteAddress: Please set up according to the connection's IP address RemorePort: When used as a client, please set the connection device's port to "502" LocalPort: When used as a client, please set it to "0" 14 IV. Under "Device Configuration", double-click on "PROFINET Port" to see the hardware ID under "Hardware ID" under "Attributes" . V. Once the DB module has been established, please compile the program and set up MB_CLIENT's CONNECT pins 15 VI. CONNECT Pin Setup Click on the CONNECT pin's and select the DB module just setup earlier. Then select the "Static" list just generated Finally, select "None" to complete the setup process 16 Once the setup is complete, if you can connect to the network to shut off the module but there is no control module matched, a potential cause is the PLC still has the default "FF" for its packet output station number. Please refer to the section below for solution. VII. Under the "Program Block" in the "Project" column on the left, select "System Block" and then select the "MB_CLIENT_DB" module for connection. VIII. In the "MD_UNIT_ID" field for the selected DB module, type in the control module station number that you need to connect 17 4. Siemens S7-1500 Simple Programming Example This demonstration shows how to use the program to control 's input/output contacts I. Under "PLC Variable" of the project column on the left, click on "Add a New Variable Chart", which will come in handy when you compile your program later II. With the variable chart established, define the "Variable Names" and "Addresses" 18 III. A variable's address depends on the address you have set up for communication. Please see the demonstration below: 1. This section reads 's register address and starts storing data at M1000 in the PLC The register's address is at 1000(HEX) converted to 4096(DEC)+1, with the starting address at 44097 2. This section writes 's register address and starts writing data at M1000 in the PLC The register's address is at 2000(HEX) converted to 8192(DEC)+1, with the starting address at 48193 19 IV. Program Control I/O The two sections of this program have the same functions if defined so in the new variable chart earlier as below: In this demonstration, "Dinkle_DI1" has been defined as "%MW1000" and "Dinkle_DO1" as "%MW1100". Therefore, a user can type in "Dinkle_DI1".%X0 and "Dinkle_DO1".%X0 to define the coils, which will function the same as typing in "%M1000.0" and "%M1100.0" 20