SlideShare a Scribd company logo
CPU224XP-ETH Ethernet interface
The PLC with Ethernet port integrates the CP243 Ethernet module, but it does not
require configuration settings. After configuring the IP address, it can be used directly.
It is simpler and more reliable than the CP243 module. Ethernet supports two
protocols: S7 Ethernet protocol and Modbus TCP protocol. The upload, download and
monitoring of the program can be realized through the network cable, and the
download speed is super fast. It can also communicate with the touch screen and
directly connect with WINCC. If multiple PLC hosts are connected to a switch, they can
also communicate with each other.
www.lollette.com
IP address view and modification
Connect the PLC with a network cable. The factory default IP address of this machine is
192.168.1.218. The PLC can be directly connected to the computer, or it can be
connected to a router or switch, and the PLC can be accessed through the router
settings.
To access the PLC from the computer, it is required that the computer and the PLC are
in the same LAN segment, and the wired network card (note that it is not a wireless
network card) IP address is in the network segment 192.168.1.XXX
After filling in the computer’s IP address, test whether the computer and the PLC are
physically connected properly. Open the “Command Line Prompt” on the computer,
and ping 192.168.1.218. If the PLC returns the data within 1ms, the physical link is
normal.
View and modify IP address via web page
Use a browser (IE browser is recommended) to enter the URL, http://192.168.1.218
Ethernet download and monitoring
Download
Take the PLC network cable connected to the computer as an example, click Set PG/PC
interfacein the viewing window and choose according to your computer network card
(the picture below is the demo machine network card, the user needs to choose
according to your computer network card, the name of your computer network card
can be viewed in the “device manager”, if the driver list There is no network card in
the computer, this is a S7 software compatibility problem, it is recommended to apply a
64-bit system patch), click Diagnose to test.
OK means that the SR protocol test is successful, but it does not mean that the PLC
connection is successful, because even if the PLC is not connected, if the SR protocol is
okay, the test will be OK; if it fails, please refer to the “SR Protocol Diagnosis Failure
Solution”.
Click the communication button on the viewing interface
Click OK, double-click to refresh the list, the PLC model is identified in the host column,
indicating that the connection is successful
Be sure to click the searched device, and then click Confirm.
SR protocol diagnosis failure solution
An error occurred in the function call SRMD_Set(..)
Error: No interface handle
Question: S7ONLINE Error: SRMD_Set No interface handle?
Reason: “C:Program FilesCommon FilesSiemensS7IEPGs7oiehsx.exe” file is
blocked from running, causing: “SIMATIC IEPG Help Service” to stop.
MODBUS TCP Protocol-Communication Example
Ethernet port PLC, supports Modbut TCP server mode and client mode
Install MODBUS TCP command library
Open the S7 programming software, there is no Modbus TCP in the library, download
the latest Modbus TCP library “S7-200 software Modbus TCP installation library 4.0.m
wl“
Solution 1:
1
Right-click on the computer, left-click on Manage—>Services and
Applications—>Service—>and then activate "SIMATIC IEPG Help Service"; if
it fails to activate, it means that it is blocked by antivirus software.
Add the s7oiehsx.exe file to the "antivirus software" "In the executable
file trust table, re-run "SIMATIC IEPG Help Service", finally restart the
computer, and restart STEP 7.
2
Solution 2:
3
Left-click the mouse and click Start—>Run—>services.msc to activate
"SIMATIC IEPG Help Service"; if it fails to activate, it means it is
blocked by anti-virus software. Add the s7oiehsx.exe file to the
executable file of "360 or other anti-virus software" In the trust list,
re-run "SIMATIC IEPG Help Service", finally restart the computer, and
restart STEP7.
4
This library file cannot be deleted after installation, otherwise the library will be lost, so
it is recommended to copy it to a fixed location. After restarting, the MODBUS_TCP
library is installed
MODBUS address mapping table
PLC as server, computer (touch screen) as client example
The PLC is the server and the touch screen is the client is the most commonly used
connection method. It is also the easiest way to program on the PLC. You only need to
write a command. Modbus tcp serves as the server, and the port is 502.
Modbus
address Read/write Description Function code
00001 to
00128
Q0.0 to Q15.7 Digital output Read coil: No. 1 function
code;
Write single coil: No. 5
function code, Write multiple
coils: No. 15 function code
10001 to
10128
I0.0 to I15.7 Digital input Read input status bit:No. 2
Function code
30001 to
30128
AIW0 to AIW62 Analog input register Read input register: No. 4
function code;
40001 to
4XXXX
VW(HoldStart)
to
VW[HoldStart
+2 * (XXXX-1)]
Holding register,
corresponding to V area,
HoldStart is filled in the
program instruction.
40001 to 4XXXX
Read holding register: No. 3
function code;
Write a single register:
function code No. 6; write
multiple registers: function
code No. 16
PLC server command (ModbusTCP_Sever)
PLC as client, computer (touch screen) as server setting
This kind of use is mainly used in PLC connection with sensor applications that support
Modbus TCP protocol.
Client instruction (ModbusTCP_Client)
Parameter
Parameter
Type
Data
Type Definition
EN INPUT Bool Enable
Port INPUT Byte Communication port 1,2,3,4,5
Error INPUT Byte error code
MaxIO INPUT Word The maximum I/Q bit, the maximum number of I/O
points involved in communication, the I/O image
area of S7-200 is 128/128, and the default value
is 128
MaxAI INPUT Word The maximum number of AI words, the maximum
number of AI channels involved in communication,
can be 16 or 32
MaxHold INPUT Word The largest holding register area, V memory area
words involved in communication (VW)
Holdstart INPUT DWord The starting address of the holding register area,
specified by &VBx (indirect addressing mode)
Add data in the data block according to the access requirements
Parameter
Parameter
Type
Data
Type Definition
EN INPUT Bool Enable
CONNECT INPUT Bool 0: Disconnect, 1: Establish and keep the
connection.
Socket INPUT Byte Communication port 1,2,3,4,5
Profile_Table INPUT Word The starting address of the communication profile
table is represented by a byte offset from V0 (for
example, VB99, the corresponding value is 99)
Error INPUT Byte Error code
Send data configuration format
Offset address of sending
start address example example
VBn 4 Number of segments accessed by
this socket
4
VBn+1 The highest byte of the other
party’s IP address
192
VBn+2 The second byte of the other
party’s IP address
168
VBn+3 The third byte of the other party’s
IP address
1
VBn+4 The last byte of the other party’s
IP address
205
VBn+5 Slave ID Slave address 16#FF
VBn+6 function code 3
The format of the received data
VBn+7 The data address of the slave to
be read and written
40001
VBn+9 Number of read and write data 4
VBn+11 Start address of sending data in V
storage area
1000
VBn+13 Start address of the received data
in the V storage area
1300
VBn+15 Status byte of this section
VBn+16 to VBn+20 This section reserved for use
VBn+21 The highest byte of the other
party’s IP address
192
VBn+22 The second byte of the other
party’s IP address
168
VBn+23 The third byte of the other party’s
IP address
1
VBn+24 The last byte of the other party’s
IP address
205
VBn+25 Slave ID Slave address 16#FF
VBn+26 function code 16
VBn+27 The data address of the slave to
be read and written
41000
VBn+29 Number of read and write data 4
VBn+31 Start address of sending data in V
storage area
1600
VBn+33 Start address of the received data
in the V storage area
1900
VBn+35 Status byte of this section
VBn+36 to VBn+40 This section reserved for use
continuous continuous
answer
Receive the offset address
of the start address Description
Correct
answer
VBn Number of
received data
VBn+1 Slave ID Slave
address
VBn+2 function code
In the above example, only the Socket1 communication port is turned on, segment 1
accesses 192.168.1.205, segment 2 accesses 192.168.1.205, segment 3 accesses
192.168.1.210, segment 4 accesses 192.168.1.213, and the same communication port
accesses the unreachable IP Address, this will reduce the efficiency of communication.
It is recommended that the same socket only access the same IP address. If you want to
access another IP address, open another socket for configuration.
FAQ
Ping fails.
Answer: It means that the physical layer is not connected successfully. 1 Check whether
the network cable is loose. 2 Check whether the computer IP and PLC’s IP are in the
same network segment. 3Whether the computer gateway address, subnet mask and
DNS address are filled in completely. 4Turn off the computer’s wireless network card
and try. 5 Let the computer and the PLC connect directly with the network cable, and
try to remove the intermediate router.
It can be pinged, but the web page cannot be opened.
Answer: 1 Try changing the IE browser. 2 https is not allowed in the URL, but http
should be used. 3 Try changing to another computer.
The S7 software settings PC/PG interface cannot find the network card driver.
Answer: Download the 64-bit patch from the website and try it out.
Two CPU226-ETH devices are hung under the same switch, and one of them is not
smooth.
Answer: After the PLC leaves the factory, the MAC addresses are all the same. Check if
the MAC addresses are the same, and just modify one of them.
The two PLCs can’t communicate directly with the network cable, but they can
communicate when they are plugged into the switch.
Answer: Try changing the crossover cable.
VBn+3 Number of data
read
VBn+4 Data area
Error VBn Number of
received data
VBn+1 Slave ID Slave
address
VBn+2 function
code+0x80
The highest position of
the function code 1
VBn+3 Error code:
0 no error
1 The value of
Count is 0
2 Illegal data
address
4 Communication
port is busy
6 Function code
error
https://www.xueplc.com/cpu224xp-eth-ethernet-interface.html

More Related Content

PDF
Cpu224 xp eth-manual
DOC
Tb6600 stepper motor driver controller
PDF
SOMADOR BINáRIO de 4 bits
PDF
Mini plc-programmable logic controller
PDF
Maxon epos2 feature-comparison-chart
PDF
Wecon PLC Introduction 2017
PDF
IM 48XX Series - Intelligent Monitoring System - Panel Mount. (Serial RS-485 ...
PDF
Galil DMC 42x0 Catalog
Cpu224 xp eth-manual
Tb6600 stepper motor driver controller
SOMADOR BINáRIO de 4 bits
Mini plc-programmable logic controller
Maxon epos2 feature-comparison-chart
Wecon PLC Introduction 2017
IM 48XX Series - Intelligent Monitoring System - Panel Mount. (Serial RS-485 ...
Galil DMC 42x0 Catalog

What's hot (19)

PPT
Wireless UART Controller: XR18W750
PDF
Harmonic rtl series_catalog
PPTX
PDF
Xilinxaxi uart16550
PDF
Applied motion products servo products datasheet
PDF
Приводы Xenus 120-240 Copley Controls
PDF
Advanced motion controls dzralte 040l080
PPT
Serial Communication In Atmega 16
PDF
Advanced motion controls dzralte 060l080
PDF
SEM88_Presentation
PDF
Lineup (fp0, fp0 r, fpς, and fp x)
PPTX
Analog to Digital converter in ARM
PPTX
Timer counter in arm7(lpc2148)
DOCX
PREPARATION OF C&I CABLE SCHEDULES FOR DCS PANELS
PPT
Chapter5 dek3133
PDF
PDF
Isolated Transmitter Wiring Examples
PPTX
Bluetooth
PDF
9. io link technology - russell smith
Wireless UART Controller: XR18W750
Harmonic rtl series_catalog
Xilinxaxi uart16550
Applied motion products servo products datasheet
Приводы Xenus 120-240 Copley Controls
Advanced motion controls dzralte 040l080
Serial Communication In Atmega 16
Advanced motion controls dzralte 060l080
SEM88_Presentation
Lineup (fp0, fp0 r, fpς, and fp x)
Analog to Digital converter in ARM
Timer counter in arm7(lpc2148)
PREPARATION OF C&I CABLE SCHEDULES FOR DCS PANELS
Chapter5 dek3133
Isolated Transmitter Wiring Examples
Bluetooth
9. io link technology - russell smith
Ad

Similar to Cpu224 xp eth-ethernet_interface (20)

PDF
Quantum composers white paper ethernet connectivity
PPTX
System installation in CCTV
PDF
Manual de config hw ap80
PDF
communicate with instrument by using lan
PDF
Ccnav5.org ccna 4-v50_practice_final_exam
PDF
Esp8266 wi fi_module_quick_start_guide_v_1.0.4
PDF
Ccna1 v6.0 pretest exam answers 2018
DOCX
Running head network design 1 netwo
PDF
NetToPLCsim-Manual-en.pdfjkhljkmlkmliomio
PDF
Ccna 2 Final V4 1
PDF
Mikro tik vpn configuration with site converted
PDF
Modbus_TCP_Client_AOI_based_code_for_ControlLogix_v_2_04_00.pdf
PDF
Report on routing interface configuration
PDF
ccna 1 chapter 2 v5.0 exam answers 2014
DOCX
Wi fi ruckus config
PDF
Current System
PDF
DVR Networking: How to Connect Your DVR to the LAN
PDF
7106506104 tl wa701-nd(eu)_2.0_qig
PDF
CMIT 350 FINAL EXAM CCNA CERTIFICATION PRACTICE EXAM
PDF
Merged document
Quantum composers white paper ethernet connectivity
System installation in CCTV
Manual de config hw ap80
communicate with instrument by using lan
Ccnav5.org ccna 4-v50_practice_final_exam
Esp8266 wi fi_module_quick_start_guide_v_1.0.4
Ccna1 v6.0 pretest exam answers 2018
Running head network design 1 netwo
NetToPLCsim-Manual-en.pdfjkhljkmlkmliomio
Ccna 2 Final V4 1
Mikro tik vpn configuration with site converted
Modbus_TCP_Client_AOI_based_code_for_ControlLogix_v_2_04_00.pdf
Report on routing interface configuration
ccna 1 chapter 2 v5.0 exam answers 2014
Wi fi ruckus config
Current System
DVR Networking: How to Connect Your DVR to the LAN
7106506104 tl wa701-nd(eu)_2.0_qig
CMIT 350 FINAL EXAM CCNA CERTIFICATION PRACTICE EXAM
Merged document
Ad

More from arco zhang (20)

PDF
DYZ-103.pdf
PDF
DYZL-101.pdf
PDF
DYZ-109.pdf
PDF
DYZ-106.pdf
PDF
DYZC-055.pdf
PDF
DYZ-014.pdf
PDF
DYZ-107.pdf
PDF
DYZ-102.pdf
PDF
DYZ-100.pdf
PDF
DYZL-106.pdf
PDF
DYX-307.pdf
PDF
DYZL-104.pdf
PDF
DYZ-013.pdf
PDF
DYX-302.pdf
PDF
DYZ-104.pdf
PDF
DYZX-001.pdf
PDF
DYTB-001.pdf
PDF
DYZ-015.pdf
PDF
DYZ-011.pdf
PDF
DYZHL.pdf
DYZ-103.pdf
DYZL-101.pdf
DYZ-109.pdf
DYZ-106.pdf
DYZC-055.pdf
DYZ-014.pdf
DYZ-107.pdf
DYZ-102.pdf
DYZ-100.pdf
DYZL-106.pdf
DYX-307.pdf
DYZL-104.pdf
DYZ-013.pdf
DYX-302.pdf
DYZ-104.pdf
DYZX-001.pdf
DYTB-001.pdf
DYZ-015.pdf
DYZ-011.pdf
DYZHL.pdf

Recently uploaded (20)

PPT
Teaching material agriculture food technology
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
KodekX | Application Modernization Development
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
Machine learning based COVID-19 study performance prediction
PDF
Modernizing your data center with Dell and AMD
PPTX
Cloud computing and distributed systems.
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Teaching material agriculture food technology
Per capita expenditure prediction using model stacking based on satellite ima...
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
MYSQL Presentation for SQL database connectivity
Spectral efficient network and resource selection model in 5G networks
Mobile App Security Testing_ A Comprehensive Guide.pdf
KodekX | Application Modernization Development
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Dropbox Q2 2025 Financial Results & Investor Presentation
NewMind AI Monthly Chronicles - July 2025
Machine learning based COVID-19 study performance prediction
Modernizing your data center with Dell and AMD
Cloud computing and distributed systems.
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Advanced methodologies resolving dimensionality complications for autism neur...
Network Security Unit 5.pdf for BCA BBA.
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Diabetes mellitus diagnosis method based random forest with bat algorithm
Agricultural_Statistics_at_a_Glance_2022_0.pdf

Cpu224 xp eth-ethernet_interface

  • 1. CPU224XP-ETH Ethernet interface The PLC with Ethernet port integrates the CP243 Ethernet module, but it does not require configuration settings. After configuring the IP address, it can be used directly. It is simpler and more reliable than the CP243 module. Ethernet supports two protocols: S7 Ethernet protocol and Modbus TCP protocol. The upload, download and monitoring of the program can be realized through the network cable, and the download speed is super fast. It can also communicate with the touch screen and directly connect with WINCC. If multiple PLC hosts are connected to a switch, they can also communicate with each other. www.lollette.com IP address view and modification Connect the PLC with a network cable. The factory default IP address of this machine is 192.168.1.218. The PLC can be directly connected to the computer, or it can be connected to a router or switch, and the PLC can be accessed through the router settings. To access the PLC from the computer, it is required that the computer and the PLC are in the same LAN segment, and the wired network card (note that it is not a wireless network card) IP address is in the network segment 192.168.1.XXX
  • 2. After filling in the computer’s IP address, test whether the computer and the PLC are physically connected properly. Open the “Command Line Prompt” on the computer, and ping 192.168.1.218. If the PLC returns the data within 1ms, the physical link is normal. View and modify IP address via web page Use a browser (IE browser is recommended) to enter the URL, http://192.168.1.218
  • 3. Ethernet download and monitoring Download Take the PLC network cable connected to the computer as an example, click Set PG/PC interfacein the viewing window and choose according to your computer network card (the picture below is the demo machine network card, the user needs to choose according to your computer network card, the name of your computer network card can be viewed in the “device manager”, if the driver list There is no network card in the computer, this is a S7 software compatibility problem, it is recommended to apply a 64-bit system patch), click Diagnose to test.
  • 4. OK means that the SR protocol test is successful, but it does not mean that the PLC connection is successful, because even if the PLC is not connected, if the SR protocol is okay, the test will be OK; if it fails, please refer to the “SR Protocol Diagnosis Failure Solution”. Click the communication button on the viewing interface
  • 5. Click OK, double-click to refresh the list, the PLC model is identified in the host column, indicating that the connection is successful
  • 6. Be sure to click the searched device, and then click Confirm.
  • 7. SR protocol diagnosis failure solution An error occurred in the function call SRMD_Set(..) Error: No interface handle Question: S7ONLINE Error: SRMD_Set No interface handle? Reason: “C:Program FilesCommon FilesSiemensS7IEPGs7oiehsx.exe” file is blocked from running, causing: “SIMATIC IEPG Help Service” to stop. MODBUS TCP Protocol-Communication Example Ethernet port PLC, supports Modbut TCP server mode and client mode Install MODBUS TCP command library Open the S7 programming software, there is no Modbus TCP in the library, download the latest Modbus TCP library “S7-200 software Modbus TCP installation library 4.0.m wl“ Solution 1: 1 Right-click on the computer, left-click on Manage—>Services and Applications—>Service—>and then activate "SIMATIC IEPG Help Service"; if it fails to activate, it means that it is blocked by antivirus software. Add the s7oiehsx.exe file to the "antivirus software" "In the executable file trust table, re-run "SIMATIC IEPG Help Service", finally restart the computer, and restart STEP 7. 2 Solution 2: 3 Left-click the mouse and click Start—>Run—>services.msc to activate "SIMATIC IEPG Help Service"; if it fails to activate, it means it is blocked by anti-virus software. Add the s7oiehsx.exe file to the executable file of "360 or other anti-virus software" In the trust list, re-run "SIMATIC IEPG Help Service", finally restart the computer, and restart STEP7. 4
  • 8. This library file cannot be deleted after installation, otherwise the library will be lost, so it is recommended to copy it to a fixed location. After restarting, the MODBUS_TCP library is installed MODBUS address mapping table PLC as server, computer (touch screen) as client example The PLC is the server and the touch screen is the client is the most commonly used connection method. It is also the easiest way to program on the PLC. You only need to write a command. Modbus tcp serves as the server, and the port is 502. Modbus address Read/write Description Function code 00001 to 00128 Q0.0 to Q15.7 Digital output Read coil: No. 1 function code; Write single coil: No. 5 function code, Write multiple coils: No. 15 function code 10001 to 10128 I0.0 to I15.7 Digital input Read input status bit:No. 2 Function code 30001 to 30128 AIW0 to AIW62 Analog input register Read input register: No. 4 function code; 40001 to 4XXXX VW(HoldStart) to VW[HoldStart +2 * (XXXX-1)] Holding register, corresponding to V area, HoldStart is filled in the program instruction. 40001 to 4XXXX Read holding register: No. 3 function code; Write a single register: function code No. 6; write multiple registers: function code No. 16
  • 9. PLC server command (ModbusTCP_Sever) PLC as client, computer (touch screen) as server setting This kind of use is mainly used in PLC connection with sensor applications that support Modbus TCP protocol. Client instruction (ModbusTCP_Client) Parameter Parameter Type Data Type Definition EN INPUT Bool Enable Port INPUT Byte Communication port 1,2,3,4,5 Error INPUT Byte error code MaxIO INPUT Word The maximum I/Q bit, the maximum number of I/O points involved in communication, the I/O image area of S7-200 is 128/128, and the default value is 128 MaxAI INPUT Word The maximum number of AI words, the maximum number of AI channels involved in communication, can be 16 or 32 MaxHold INPUT Word The largest holding register area, V memory area words involved in communication (VW) Holdstart INPUT DWord The starting address of the holding register area, specified by &VBx (indirect addressing mode)
  • 10. Add data in the data block according to the access requirements Parameter Parameter Type Data Type Definition EN INPUT Bool Enable CONNECT INPUT Bool 0: Disconnect, 1: Establish and keep the connection. Socket INPUT Byte Communication port 1,2,3,4,5 Profile_Table INPUT Word The starting address of the communication profile table is represented by a byte offset from V0 (for example, VB99, the corresponding value is 99) Error INPUT Byte Error code
  • 11. Send data configuration format Offset address of sending start address example example VBn 4 Number of segments accessed by this socket 4 VBn+1 The highest byte of the other party’s IP address 192 VBn+2 The second byte of the other party’s IP address 168 VBn+3 The third byte of the other party’s IP address 1 VBn+4 The last byte of the other party’s IP address 205 VBn+5 Slave ID Slave address 16#FF VBn+6 function code 3
  • 12. The format of the received data VBn+7 The data address of the slave to be read and written 40001 VBn+9 Number of read and write data 4 VBn+11 Start address of sending data in V storage area 1000 VBn+13 Start address of the received data in the V storage area 1300 VBn+15 Status byte of this section VBn+16 to VBn+20 This section reserved for use VBn+21 The highest byte of the other party’s IP address 192 VBn+22 The second byte of the other party’s IP address 168 VBn+23 The third byte of the other party’s IP address 1 VBn+24 The last byte of the other party’s IP address 205 VBn+25 Slave ID Slave address 16#FF VBn+26 function code 16 VBn+27 The data address of the slave to be read and written 41000 VBn+29 Number of read and write data 4 VBn+31 Start address of sending data in V storage area 1600 VBn+33 Start address of the received data in the V storage area 1900 VBn+35 Status byte of this section VBn+36 to VBn+40 This section reserved for use continuous continuous answer Receive the offset address of the start address Description Correct answer VBn Number of received data VBn+1 Slave ID Slave address VBn+2 function code
  • 13. In the above example, only the Socket1 communication port is turned on, segment 1 accesses 192.168.1.205, segment 2 accesses 192.168.1.205, segment 3 accesses 192.168.1.210, segment 4 accesses 192.168.1.213, and the same communication port accesses the unreachable IP Address, this will reduce the efficiency of communication. It is recommended that the same socket only access the same IP address. If you want to access another IP address, open another socket for configuration. FAQ Ping fails. Answer: It means that the physical layer is not connected successfully. 1 Check whether the network cable is loose. 2 Check whether the computer IP and PLC’s IP are in the same network segment. 3Whether the computer gateway address, subnet mask and DNS address are filled in completely. 4Turn off the computer’s wireless network card and try. 5 Let the computer and the PLC connect directly with the network cable, and try to remove the intermediate router. It can be pinged, but the web page cannot be opened. Answer: 1 Try changing the IE browser. 2 https is not allowed in the URL, but http should be used. 3 Try changing to another computer. The S7 software settings PC/PG interface cannot find the network card driver. Answer: Download the 64-bit patch from the website and try it out. Two CPU226-ETH devices are hung under the same switch, and one of them is not smooth. Answer: After the PLC leaves the factory, the MAC addresses are all the same. Check if the MAC addresses are the same, and just modify one of them. The two PLCs can’t communicate directly with the network cable, but they can communicate when they are plugged into the switch. Answer: Try changing the crossover cable. VBn+3 Number of data read VBn+4 Data area Error VBn Number of received data VBn+1 Slave ID Slave address VBn+2 function code+0x80 The highest position of the function code 1 VBn+3 Error code: 0 no error 1 The value of Count is 0 2 Illegal data address 4 Communication port is busy 6 Function code error