Home

S5-PCLink Ethernet-Gateway for Siemens S5 Controller User Manual

image

Contents

1. only word orientated DBNo Number of the data and or of the DX components We only evaluate DATA AREA DB or DX Start Start byte or start word number dependent on DATA type Count Number of units Err 0 Action successful during read reading the data follow 2 Data area in the PLC missing the DB is missing 6 LAN module recognized wrong request format 3 Desired range too small e g DB too small 7 Data size exceeded max 2048 bytes 9 Exceeded the time allowed with PLC 10 The module received too little data Version Nr Version number of the firmware of the module Version 1 04 is shown as 104 UserCode These 4 bytes can be used for your own purposes Reserved Reserved for future extensions Datenblock This is where the usable data is located DB 10 starting from DW5 20 words then there are 40 bytes of usable data Low byte High byte sequence For SIMATIC S7 Datentyp Name r w Funktion BYTE 0 Interface_LoByte r w_ 0 BYTE 1 PLCType r w PLC type BYTE 2 PCLNo r w_ PLC address BYTE 3 Interface_HiByte r w Interface number BYTE 4 Cmd r w_ Command type for e g R read BYTE 5 HdLen r w_ length of this header in bytes BYTE 6 DataArea r w_ data area in the plc BYTE 7 DataType r w_ Type of data related to Cmd WORD 9 8 _ DBNo r w_ block number WORD 11 10 Start r w_ Start byte start word WORD 13
2. 12 Count r w_ Number of data types Integer 15 14 Err r failure code WORD 17 16 VersionNo r version number BYTE 4 UserCode r w_ code can be used by the user BYTE 4 Reserved r 4 bytes reserves for future extension BYTE n Datenblock r w optional data is on dependent whether its a read or write 5 WinCC Communication with S5 PCLink To communicate with S5 PCLink under WinCC use the following set up Set the S5 lan as server Port 102 Add a new driver Select SIMATIC S5 Ethernet Layer 4 CHN Neuen Treiber hinzuf gen ii Suchen in E bin e E er Ed PDLCache a SIMATIC 55 Ethernet TF CHN la oPC chn sa SIMATIC 55 Profibus FDL chn la Profibus DP chn laa SIMATIC 55 Programmers Port a Profibus FMS chn a SIMATIC 55 Serial 3964R CHIN laa SIMATIC 505 TCPIP chn SIMATIC 57 Protocol Suite chn a a SIMATIC TI Ethernet Layer 4 CF Xj Dateiname SIMATIC 55 Ethemet Layer 4 Dateityp WinCC Kommunikationstreiber chn y Abbrechen i 7 This opens the following picture SIMATIC 55 Ethernet Layer 4 CHN WinCCExplorer C PROGRAMME SIEMENS WINCC WINCCPROJECE Datei Bearbeiten Ansicht Extras A Gs Ae EE SS LAN EP Rechner E Variablenhaushalt E 3 Interne Variablen A Script TagLoggimgRt y SIMATIC 55 ETHERNET LAYER S5 Transport CP1413 1 S5 Transport CP1413 2 S5 Transport TCP IP E Strukturtypen Keine Objekte vo
3. s own PLC via Ethernet If you want to use this protocol you have to define in the module the S5 server port 3 Software S5 PCLink Manager When you click on the button Suchen the software will search for all the S5 PCLink modules connected to the network These modules will be listed in the table Suche im lokalem Netz Fimwaredateiladen your connection to ancellenos S5 Gateway Verbindungen ___ Einstellungen Suche bsnl Ads Sprache Language Beenden Configuration of the device Select the module in the table that you want to work with and click on the button Einstellungen The following dialog box with parameters will open This is where you can establish the parameters you want to use Ger tename Device Name This name will identify the module in the table and make it easier to identify which PLC you want to connect with S5 PG Port TCP IP port number this is used for programming software communication to the plc Normally it should not be changed S5 Server Port The TCP IP port number is where you can define the type of protocol you want to use for communication You would use it for the S5 PCLink Link protocol or the VIPA protocol For H1 ISO on TCP RFC1006 you have to define it as102 because this will be the RFC1006 port DHCP AutolP If this box is checked the module will be looking for a DHCP server when it starts up If th
4. PCLink as server port Yerbindungsparameter xl Transport Verbindung IP Adresse fi 92 168 0 99 r READ Funktion Fetch Aktiv Auftragstyp von Partner ist READ PASSIV Fetch Passiv Auftragstyp von Partner ist WRITE AKTIV Eigener TSAP DontCare Hex 44 6F 6E 74 43 61 72 65 Fremder TSAP DontCare Hex 44 6F 6E 74 43 61 72 65 r WRITE Funktion Auftragstyp von Partner ist WRITE PASSI Eigener TSAP DontCare Hex 44 6F 6 74 43 61 72 65 Fremder TSAP DontCare Hex 44 6F 6 74 43 61 72 65 Abbrechen Hilfe assign of PG PC interface As the S5 Layer 4 driver also uses the selected network card you must define the point of entry where the TCP_IP in the PG PC Interface system control is assigned and established This is done in the following way Move to the system control and call PG PC interface adjust Under point of entrance to the application TCP_IP should exist If this entry is missing then you can establish the point by selecting lt adding deletion gt which will open the correct dialog box For a new point of entrance you insert TCP_IP and assign the name you want to use Using adding you can establish a new point of entry Establish the point of entry for TCP_IP and also for the selected network card PG PC Schnittstelle einstellen x Zugriffsweg Zugangspunkt der Applikation TCP_IP gt TEPAP gt 3Com EtherLink XL 10 1 h lt Hinz
5. e DHCPserver is not found after 3 attempts it will run for some seconds the module will use an IP address from the auto IP address range auto Subnet If this box is checked the module automatically selects the right subnet mask For instance for an IP address of 192 168 0 80 the correct SubNet mask is 255 255 255 0 you do not have to configure it IP Adresse If DHCP AutoIP is switched off you can define the IP address you want to use it Subnet Mask This is where you define the SubNet mask you want to use it If you define 0 0 0 0 the module uses Auto SubNet mask Standard Gateway If the S5 PCLink will be connected to a router this is where you can define the IP address of the router By pressing the OK Button all the configured data will be saved in the S5 PCLink module 4 S5 LAN LINK Protocol The S5 LAN LINK protocol will take priority over a configured S5 server port from the S5 PCLink At the present time only one connection to the S5 PCLink at a time is possible The S5 PCLink module works the same way as a TCP IP server works this means it is always listening The protocol is based on a request response principle The client PC sends a request block such as described below to the module via TCP IP If the PC wants to read data from the PLC it sends a request block to the S5 PCLink module If the PC wants to write data to the PLC it sends a request block with the data to the PLC At that time the S5 PCLink mod
6. ine LED and network link state are flashing gt there is communication to the plc 2 Supported Protocols Programming with the virtual COM port With the PLC VCom software supplied with the S5 PCLink you can communicate to the S5 PCLink via virtual COM port which allows you to program the S5 PLC over the network The S5 PCLink module has an integrated multiplexer so you can program the S5 PLC via one connection and support an HMI or connect to a visualization program on another PC with AS 511 Communication with other devices To communicate with other devices you can also use the two connections For this there are 3 types of protocols provided S5 PCLink will automatically recognize the correct protocol 1 S5 LAN LINK S5 LAN LINK has a special protocol for communication with the PC For this communication you need a DLL In this document this DLL will be written down There is no security of this protocol 2 H1 ISO on TCP RFC1006 you need firmware V 0 32 This protocol from Siemens will be used in the S5 world for to communicate with the CP1430TCP via Ethernet This requires you to define TSAP and SSAP S5 PCLink uses the entire name you define for SSAP or TSAP You can also use this protocol to communicate with WinCC use the S5 TCP IP layer 4 If you want to use this protocol you have to define the S5 server port for 102 3 VIPA S5 TCP This protocol from VIPA will be used in the S5 world to communicate with VIPA
7. me r w Funktion BYTE PLCType Ir w PLC type WORD Interface r w Interface number BYTE PCLNo r w PLC address BYTE HdLen r w length of this header in byte BYTE Cmd r w command for e g R read BYTE DataType r w Type of data related to Cmd BYTE DataArea r w data area in the plc WORD DBNo r w block number WORD Start r w Start byte start word WORD Count r w Number of data types integer Err r failure code WORD VersionNo _ r version number BYTE 4 UserCode _ r w code can be used by the user BYTE 4 Reserved Ir 4 bytes reserved for future extension BYTE n Datenblock r w optional data is on dependent whether its a read or write the fields in the detail PLCType Type of PLC which is to be addressed is specified Must be set on 5 35Hex Interface Is set to zero in later versions one will be used PLCNo Is set to zero in later versions one will be used which is intended for S7 MPI HdLen Is the maximum length of the request block without data in bytes At present 26 byte Cmd The type of the command is set R or r read W or w write DataType Select the data type B byte 8Bit wW word 16 Bit DataArea Determine the data area in the PLC MP MW Indicator O Process image of exits Y Process image of entrances Timer only word orientated C Counter only word orientated Data component only word orientated DX component
8. rt F Put a new connection under S5 Transport TCP IP In our example this is called S5 PCLink WinCCExplorer C PROGRAMME SIEMENS WING Datei Bearbeiten Ansicht Extras 2 Da m gt Bel Es El S5 LAN ke Rechner SIMATIC 55 ETHERNET LAYER H E S5 Transport CP1413 1 S5 Transport CP1413 2 55 Tra I 5 E48 S5 LAN New connection with S5 PCLink is established Now the parameters need to be setup Select S5 Transport TCP IP With the Right Mouse Button in the menu select system parameters In the folder transportation parameter you will find the following parameters The S5 LAN connection still must be configured With the right mouse button select S5 LAN and then Eigenschaften In the next dialog box select Eigenschaften again Eigenschaften Kanal Unit Eigenschaften Yerbindung x Allgemein Gruppen Variable Name Eigenschaften Unit 55 Transport TCP IP 7 Serverliste Achten Sie bitte darauf dass der Namen der Verbindung keine nationalen Sonderzeichen und nicht die Zeichen 3 und enth lt Abbrechen Hite This is the dialog box where you enter the connection parameters The IP address of the S5 PCLink in the example is 192 168 0 99 Select Fetch active The data you defined as TSAP is not important to the enterprise over S5 PCLink Do not forget to define the port 102 in the S5
9. softing your connection to excellence S5 PCLink Ethernet Gateway for Siemens S5 Controller User Manual Edition 1 2006 11 17 STEP Protool and SIMATIC are trademarks of Siemens AG MS DOS and Windows are trademarks of Microsoft Corporation Softing AG O Richard Reitzner Allee 6 0 D 85540 Haar Tel 49 89 4 56 56 340 DO Fax 49 89 4 56 56 399 0 info automation softing com O www softing com OOPOD Hardware ieh ah th debate zitierten 3 SuUpPPOrnEd Protocols vean aai hla trier Rh eh E 3 SOMWA E A een io ads 4 S5 EAN EINK Proto6ol 82 3 a a id 6 WinCC Communication with S5 PCLink oooccccccccnnnnnonccnnnnnnnnnnnnancnnnnnnononnnnnncnnnnnnnnnnnnnnnnnnn nono nnnnicnnns 10 1 Hardware The S5 PCLink will plug directly into the PG Port of your S5 It uses the 24V of your S5 PLC for power If your model of S5 PLC does not have 24V you can externally power the S5 PCLink by connecting it with the green plug directly to a power supply The green LED on the front of the network plug displays the link status of the network LED off gt there is no connected network LED on gt network is connected The LED will be flashing if data is being transferred The round green LED displays the state of the PLC communication LED off gt module power off or is in start up LED on gt PLC is online and module is awaiting data LED is flashing slowly and no network is connected gt searching for PLC no PLC onl
10. uf gen L schen gt gt TCP IP gt 3Com EtherLink XL 10 1 Micro WIN gt PC PPI cable PPI MPI WinCC gt PC Adapter MPI S7ONLINE EP gt PC Adapter MP MERJE gt TCP IP gt 3Com EtherLink XL 10 1 22 PC PPI cable PPI Kopieren ITCR gt Coni ION of econ gt Parametrierung Ihrer NDIS CPs mit TCP IP Protokoll RFC 1006 Schnittstellen Hinzuf igen Entfemen Ausw hlen Abbrechen Hite Zugangspunkte hinzuf gen l schen x m Hinzuf gen Neuer Zugangspunkt Beschreibung wince S5 LAN TCP IP r L schen L schen MPI WinCC S7ONLINF STEP 71 Y WinCC s5 TCP Schlie en
11. ule will process the data During the processing time you cannot send a new request block to the S5 PCLink module After the S5 PCLink module has processed the data it sends a response block to the PC The format of the response block is the same as the request format With the Err field you can check the result of this action Read data from the S5 PLC 1 Make a request block and send it to the S5 PCLink 2 Wait for the answer the wait time is dependant on the size of the requested data Time about 50ms number of bytes X 1 5ms Check response block proof the Err field If the requested data can be read from the S5 PCLink module it will follow the response block 7 29 If you want to get the data in bytes you will receive it byte after byte 6 If you want to get the data in words you get the data as LOW Byte High Byte Write data into the plc 1 Make the request block and prepare the data you want to send If you want to send the data in word then place the Low Byte in front of the High Byte Send the request block and data in one cycle Wait for the answer the wait time is dependant on the size of the requested data Time about 50ms number of bytes X 1 5ms Check response block proof the Err field You will get only a response block from the module no data Requestblock Responseblock Byte 8 Bit WORD 16 Bit integer 16 Bit with sign Datentyp Na

Download Pdf Manuals

image

Related Search

S5 PCLink Ethernet Gateway for Siemens S5 Controller User Manual

Related Contents

      ANALOG DEVICES ad9054as English products handbook Rev D              

Copyright © All rights reserved.
DMCA: DMCA_mwitty#outlook.com.