System Requirements and Configuration Guidelines
1. Hardware requirements
Computer: PC or PG that supports CP 1413.
Network adapter: SIMATIC NET CP 1413 must be used.
Network components: industrial Ethernet compatible transceivers, cables, connectors, etc.
2. Software requirements
Operating system: Microsoft Windows 95 or Windows NT 4.0 and above.
Configuration tool: COML S7 (Configuration Management Local) is used for setting communication parameters.
Development environment: A development platform that supports C language compilers (such as Microsoft Visual C++).
3. User skill requirements
Application users: need to be familiar with PC operation and basic functions of SIMATIC S7 system.
Developers: In addition to the above knowledge, they need to master C programming language and understand the basic principles of network communication.
Example of Application Deployment and Communication Process
1. Typical deployment steps
Hardware installation: Insert CP 1413 into the ISA slot of the PC and connect the industrial Ethernet cable.
Software installation: Install the S7-1413 driver and configuration tool.
Network configuration: Use COML S7 to set the address, communication protocol, and service access point (TSAP) for this site.
Program development: Write application logic based on SAPI S7 or SEND/RECEIVE interfaces.
Testing and debugging: Use the tracking function and sample program to verify the correctness of communication.
2. SAPI S7 communication process (taking reading variables as an example)
Call S7_Create to create a communication instance.
Establish a connection with the S7 PLC using S7_Connect.
Read variables from a specified data block using S7_ ReadVar.
Process the returned data and, if necessary, use S7_SriteVar to write the data.
After communication, call S7_Disconnect and S7_Destroy to release resources.
